PageSourceSearch

https://app.korrekturkumpel.de/_nuxt/DmTICmU9.js

js korrekturkumpel.de collected 2026-10-05 20:14:03 UTC 688,886 bytes, 128 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./HPJ7S0I0.js","./DjBgyLt7.js","./BIbHOgXt.js","./X0jOx8Cx.js","./BpSOJ7rb.js","./Df8jg1KA.js","./sFp6MVYz.js","./Cne0MKIu.js","./QBoYmb_5.js","./CEm-AI-2.js","./DF147NlK.js","./BDklKrC5.js","./ClhHisRs.js","./Bx6HW3oi.js","./Cx7yMQyU.js","./CfxGAK6T.js","./Bsy33LCM.js","./CtWBu8o4.js","./DfHkMufV.js","./BLuTdYBG.js","./DiYkFKK7.js","./DFryUOGY.js","./DmHO2Asy.js","./CadljC8E.js","./kCE2xXca.js","./Cgjc6Gvo.js","./eMRvMSqB.js","./b74YxMNm.js","./Cnm3kOQr.js","./DgSZxFs2.js","./MqySxhzN.js","./CwMMaopl.js","./CV_4ptzf.js","./C9LzRHt8.js","./DDptJFC9.js","./BdHGNlbu.js","./CmZH9GTi.js","./DVvy744E.js","./g377aurl.js","./account.UEByC1lq.css","./zaWeM_ii.js","./snbeoJ5k.js","./hijrW1eE.js","./CBb0Kh7o.js","./D0hlPFBW.js","./DpSv7QiD.js","./BcHrV4eB.js","./B0HAhLET.js","./checkout_backup.Cuz-BW8p.css","./B-rRrvml.js","./checkout.B4h6-uPc.css","./DWfFKBQO.js","./CrZiwvsE.js","./BXEIMhqE.js","./00v7p4dH.js","./gcT90el6.js","./CSKy2LaY.js","./VgdEsI_1.js","./CDWxdZiY.js","./V7uHXAY5.js","./feedback.CL6jn93m.css","./Zkm8dxG0.js","./D4HMLbmL.js","./Dn7vurY-.js","./BO52G0ut.js","./t_c1s0Dl.js","./DH9dsGR2.js","./Dj6UkLHs.js","./CTt4Yj3P.js","./C2O47kUn.js","./COZ-t85C.js","./BPcNAJBw.js","./layout-ocr.FB_0c2sB.css","./Dk1lFLAQ.js","./C3goJC7v.js","./C1spCliE.js","./BcVV1mhV.js","./D0qcCMDG.js","./DQVD2GxJ.js","./CUAvpAfm.js","./C7Pj4gPo.js","./layout-persistence.BU5p2VWK.css","./katex.CEY6f2P4.css","./DW7fdbty.js","./Cp8K1iqw.js","./AZ3S3Xcp.js","./Cgpk-NIQ.js","./EnhancedImage.BLLlUp5p.css","./m-9RE7Mf.js","./MenuBar.D6WuJ-Oz.css","./index.6eseno_t.css","./LgJVKUbE.js","./ocr-test.CZ8CtRdz.css","./_CwzWbYK.js","./CJQLjOtG.js","./BkIJguOC.js","./Cpty4OGv.js","./BqUkHSMz.js","./BgxIyXbo.js","./C_-eSGVf.js","./BJITJB4W.js","./B5v_P4ce.js","./5vhyX6tQ.js","./StatusBadge.Ce7WbzEs.css","./BmHZ1LFs.js","./_taskId_.CmnS5vVU.css","./CS6IloHc.js","./matching.Dx9T5Bo2.css","./ChZVfRZP.js","./studentmatching.DxQEhJ3L.css","./CiCaFAtQ.js","./C-_QeVs7.js","./TipTapView.1Sl6Ai0V.css","./tsAc4hYR.js","./CaQomnLs.js","./BhwrFHCx.js","./Clrfpgvp.js","./DFkEgsM6.js","./error.UafbmD6d.css","./YJMnk0k-.js","./Dk-Dh8rC.js","./BqwlgRk-.js","./DShDGj61.js","./DqONMT-r.js","./DWI6qzp5.js","./CZoTRHm_.js","./exercise-creation.BMxZxg-l.css","./B7iw_F7j.js","./CQhNysWw.js","./DEYQ71jL.js","./BMJNsq3R.js","./J1QChpSR.js","./DvwDJ541.js","./P0NQ8fVc.js","./D9-FqILo.js","./K1-_a3-W.js","./D6L39Dow.js","./IC4aFqgt.js","./P9f53jXY.js","./CXZPtMru.js","./CbLlxq9O.js","./CAeSl5XH.js","./C3_xiVM4.js","./CwwcjGTW.js","./CdEu2xXe.js","./index.Cns_qhWx.css","./CZ5VhQmm.js","./Dq5Pnpo7.js","./30IWgy-M.js","./Br4JltJV.js","./Bjd0A5rR.js","./BCW0TTKB.js","./p_o_2IZY.js","./DDgeODpE.js","./C3eqDlx_.js","./CvcxosxY.js","./DSHocmHr.js","./D9nyZL6r.js","./Cn-Z9AyQ.js","./BaQdGPxy.js","./CNLrww2z.js","./onboarding.4boRSirr.css","./DyFh1gFx.js","./-R19qEqO.js","./DzfHu4PZ.js","./report-generator.B2NIO_q5.css","./B6dCmGnY.js","./D4NT8v-4.js","./BQ6L2ueO.js","./DWQSJ0DH.js","./_submissionId_.DCxYn5Hu.css","./DJQZcNMg.js","./_exerciseId_.CUCyXgAi.css","./DvqECvVy.js","./task-preview.BaIFUfdP.css","./DYCQzFyT.js","./b8FPHQK3.js","./CwjYkQgO.js","./Caw3r8Ei.js","./JScanifyHandler.BPuG01pZ.css","./_taskId_.CVduapAH.css","./CfXGln5I.js","./_exerciseId_.Bdptd5h4.css","./BwHRcQT6.js","./B1pWYIoX.js","./DZdTJCTm.js","./CGo40kFd.js","./WorksheetEditor.CpjUz9yT.css","./FxonIX9E.js","./Dfz4mjrU.js","./wor
vendor: 4,292 bytes, lines 1-6
1ksheets.C5Gv3Pqh.css","./5lFXopH4.js","./sidebar.C3IGUPxD.css","./B9D7c4XI.js","./center.DmXRDfTC.css","./BagqiTV-.js","./content.CHx8Dn06.css","./C9dkAE-0.js","./yItda6dD.js","./NavBreadcrumbs.4Fy-juMJ.css","./Cm9TXDod.js","./CoFnJFpS.js","./error.jlrwSbz_.css","./BuHr5F2m.js","./C4L72Vix.js","./fullscreen.vFkO1iGC.css","./D5AChsyq.js","./eR_a5Nvh.js","./report.Dwz3QN__.css","./BrvWRHAx.js","./FyQABIDf.js","./student.B75DgoJm.css","./C5VnxPQc.js","./error-404.CfAA7iBn.css","./DFfIKWda.js","./error-500.D_7S5XUj.css"])))=>i.map(i=>d[i]);
2var nw=Object.defineProperty;var rw=(e,t,n)=>t in e?nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rt=(e,t,n)=>rw(e,typeof t!="symbol"?t+"":t,n);/**
3* @vue/shared v3.5.20
4* (c) 2018-present Yuxi (Evan) You and Vue contributors
5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function qa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ee={},Es=[],Yt=()=>{},sm=()=>!1,di=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mc=e=>e.startsWith("onUpdate:"),Be=Object.assign,Bc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sw=Object.prototype.hasOwnProperty,$e=(e,t)=>sw.call(e,t),ce=Array.isArray,xs=e=>zs(e)==="[object Map]",Xr=e=>zs(e)==="[object Set]",af=e=>zs(e)==="[object Date]",ow=e=>zs(e)==="[object RegExp]",he=e=>typeof e=="function",Ve=e=>typeof e=="string",pn=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",Fc=e=>(Le(e)||he(e))&&he(e.then)&&he(e.catch),om=Object.prototype.toString,zs=e=>om.call(e),iw=e=>zs(e).slice(8,-1),Ka=e=>zs(e)==="[object Object]",Uc=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ps=qa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wa=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aw=/-(\w)/g,lt=Wa(e=>e.replace(aw,(t,n)=>n?n.toUpperCase():"")),lw=/\B([A-Z])/g,Dt=Wa(e=>e.replace(lw,"-$1").toLowerCase()),za=Wa(e=>e.charAt(0).toUpperCase()+e.slice(1)),Eo=Wa(e=>e?`on${za(e)}`:""),xt=(e,t)=>!Object.is(e,t),Cs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},im=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ia=e=>{const t=parseFloat(e);return isNaN(t)?e:t},aa=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let lf;const Ga=()=>lf||(lf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),uw="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",cw=qa(uw);function Kt(e){if(ce(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ve(r)?pw(r):Kt(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Ve(e)||Le(e))return e}const dw=/;(?![^(]*\))/g,fw=/:([^]+)/,hw=/\/\*[^]*?\*\//g;function pw(e){const t={};return e.replace(hw,"").split(dw).forEach(n=>{if(n){const r=n.split(fw);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ir(e){let t="";if(Ve(e))t=e;else if(ce(e))for(let n=0;n<e.length;n++){const r=Ir(e[n]);r&&(t+=r+" ")}else if(Le(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Je(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ve(t)&&(e.class=Ir(t)),n&&(e.style=Kt(n)),e}const mw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gw=qa(mw);function am(e){return!!e||e===""}function yw(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xr(e[r],t[r]);return n}function xr(e,t){if(e===t)return!0;let n=af(e),r=af(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=pn(e),r=pn(t),n||r)return e===t;if(n=ce(e),r=ce(t),n||r)return n&&r?yw(e,t):!1;if(n=Le(e),r=Le(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!xr(e[i],t[i]))return!1}}return String(e)===String(t)}function Ja(e,t){return e.findIndex(n=>xr(n,t))}const lm=e=>!!(e&&e.__v_isRef===!0),Ns=e=>Ve(e)?e:e==null?"":ce(e)||Le(e)&&(e.toString===om||!he(e.toString))?lm(e)?Ns(e.value):JSON.stringify(e,um,2):String(e),um=(e,t)=>
vendor: 8,423 bytes, lines 6-10
6lm(t)?um(e,t.value):xs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Bl(r,o)+" =>"]=s,n),{})}:Xr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bl(n))}:pn(t)?Bl(t):Le(t)&&!ce(t)&&!Ka(t)?String(t):t,Bl=(e,t="")=>{var n;return pn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function vw(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
7* @vue/reactivity v3.5.20
8* (c) 2018-present Yuxi (Evan) You and Vue contributors
9* @license MIT
10**/let gt;class cm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=gt,!t&&gt&&(this.index=(gt.scopes||(gt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=gt;try{return gt=this,t()}finally{gt=n}}}on(){++this._on===1&&(this.prevScope=gt,gt=this)}off(){this._on>0&&--this._on===0&&(gt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function fi(e){return new cm(e)}function hi(){return gt}function Hc(e,t=!1){gt&&gt.cleanups.push(e)}let He;const Fl=new WeakSet;class la{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,gt&&gt.active&&gt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fl.has(this)&&(Fl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uf(this),hm(this);const t=He,n=fn;He=this,fn=!0;try{return this.fn()}finally{pm(this),He=t,fn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Kc(t);this.deps=this.depsTail=void 0,uf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Eu(this)&&this.run()}get dirty(){return Eu(this)}}let dm=0,xo,Po;function fm(e,t=!1){if(e.flags|=8,t){e.next=Po,Po=e;return}e.next=xo,xo=e}function Vc(){dm++}function qc(){if(--dm>0)return;if(Po){let t=Po;for(Po=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xo;){let t=xo;for(xo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function hm(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pm(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Kc(r),bw(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Eu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mm(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mm(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Fo)||(e.globalVersion=Fo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Eu(e))))return;e.flags|=2;const t=e.dep,n=He,r=fn;He=e,fn=!0;try{hm(e);const s=e.fn(e._value);(t.version===0||xt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{He=n,fn=r,pm(e),e.flags&=-3}}function Kc(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Kc(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function bw(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function v6(e,t){e.effect instanceof la&&(e=e.effect.fn);const n=new la(e);t&&Be(n,t);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function b6(e){e.effect.stop()}let fn=!0;const gm=[];function Zn(){gm.push(fn),fn=!1}function er(){const e=gm.pop();fn=e===void 0?!0:e}function uf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=He;He=void 0;try{t()}finally{He=n}}}let Fo=0;class ww{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ya{constructor(t){this.computed=t,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(t){if(!He||!fn||He===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==He)n=this.activeLink=new ww(He,this),He.deps?(n.prevDep=He.depsTail,He.depsTail.nextDep=n,He.depsTail=n):He.deps=He.depsTail=n,ym(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=He.depsTail,n.nextDep=void 0,He.depsTail.nextDep=n,He.depsTail=n,He.deps===n&&(He.deps=r)}return n}trigger(t){this.version++,Fo++,this.notify(t)}notify(t){Vc();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{qc()}}}function ym(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ym(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ua=new WeakMap,Kr=Symbol(""),xu=Symbol(""),Uo=Symbol("");function yt(e,t,n){if(fn&&He){let r=ua.get(e);r||ua.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ya),s.map=r,s.key=n),s.track()}}function Gn(e,t,n,r,s,o){const i=ua.get(e);if(!i){Fo++;return}const a=l=>{l&&l.trigger()};if(Vc(),t==="clear")i.forEach(a);else{const l=ce(e),c=l&&Uc(n);if(l&&n==="length"){const u=Number(r);i.forEach((d,f)=>{(f==="length"||f===Uo||!pn(f)&&f>=u)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Uo)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Kr)),xs(e)&&a(i.get(xu)));break;case"delete":l||(a(i.get(Kr)),xs(e)&&a(i.get(xu)));break;case"set":xs(e)&&a(i.get(Kr));break}}qc()}function _w(e,t){const n=ua.get(e);return n&&n.get(t)}function os(e){const t=Se(e);return t===e?t:(yt(t,"iterate",Uo),Xt(e)?t:t.map(ut))}function Xa(e){return yt(e=Se(e),"iterate",Uo),e}const Sw={__proto__:null,[Symbol.iterator](){return Ul(this,Symbol.iterator,ut)},concat(...e){return os(this).concat(...e.map(t=>ce(t)?os(t):t))},entries(){return Ul(this,"entries",e=>(e[1]=ut(e[1]),e))},every(e,t){return Ln(this,"every",e,t,void 0,arguments)},filter(e,t){return Ln(this,"filter",e,t,n=>n.map(ut),arguments)},find(e,t){return Ln(this,"find",e,t,ut,arguments)},findIndex(e,t){return Ln(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ln(this,"findLast",e,t,ut,arguments)},findLastIndex(e,t){return Ln(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ln(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hl(this,"includes",e)},indexOf(...e){return Hl(this,"indexOf",e)},join(e){return os(this).join(e)},lastIndexOf(...e){return Hl(this,"lastIndexOf",e)},map(e,t){return Ln(this,"map",e,t,void 0,arguments)},pop(){return fo(this,"pop")},push(...e){return fo(this,"push",e)},reduce(e,...t){return cf(this,"reduce",e,t)},reduceRight(e,...t){return cf(this,"reduceRight",e,t)},shift(){return fo(this,"shift")},some(e,t){return Ln(this,"some",e,t,void 0,arguments)},splice(...e){return fo(this,"splice",e)},toReversed(){return os(this).toReversed()},toSorted(e){return os(this).toSorted(e)},toSpliced(...e){return os(this).toSpliced(...e)},unshift(...e){return fo(this,"unshift",e)},values(){return Ul(this,"values",ut)}};function Ul(e,t,n){const r=Xa(e),s=r[t]();return r!==e&&!Xt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const kw=Array.prototype;function Ln(e,t,n,r,s,o){const i=Xa(e),a=i!==e&&!Xt(e),l=i[t];if(l!==kw[t]){const d=l.apply(e,o);return a?ut(d):d}let c=n;
vendor: 4,590 bytes, line 10
10i!==e&&(a?c=function(d,f){return n.call(this,ut(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function cf(e,t,n,r){const s=Xa(e);let o=n;return s!==e&&(Xt(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,ut(a),l,e)}),s[t](o,...r)}function Hl(e,t,n){const r=Se(e);yt(r,"iterate",Uo);const s=r[t](...n);return(s===-1||s===!1)&&Wc(n[0])?(n[0]=Se(n[0]),r[t](...n)):s}function fo(e,t,n=[]){Zn(),Vc();const r=Se(e)[t].apply(e,n);return qc(),er(),r}const Ew=qa("__proto__,__v_isRef,__isVue"),vm=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pn));function xw(e){pn(e)||(e=String(e));const t=Se(this);return yt(t,"has",e),t.hasOwnProperty(e)}class bm{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?xm:Em:o?km:Sm).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ce(t);if(!s){let l;if(i&&(l=Sw[n]))return l;if(n==="hasOwnProperty")return xw}const a=Reflect.get(t,n,Ne(t)?t:r);return(pn(n)?vm.has(n):Ew(n))||(s||yt(t,"get",n),o)?a:Ne(a)?i&&Uc(n)?a:a.value:Le(a)?s?Za(a):Ct(a):a}}class wm extends bm{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=tr(o);if(!Xt(r)&&!tr(r)&&(o=Se(o),r=Se(r)),!ce(t)&&Ne(o)&&!Ne(r))return l||(o.value=r),!0}const i=ce(t)&&Uc(n)?Number(n)<t.length:$e(t,n),a=Reflect.set(t,n,r,Ne(t)?t:s);return t===Se(s)&&(i?xt(r,o)&&Gn(t,"set",n,r):Gn(t,"add",n,r)),a}deleteProperty(t,n){const r=$e(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Gn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!pn(n)||!vm.has(n))&&yt(t,"has",n),r}ownKeys(t){return yt(t,"iterate",ce(t)?"length":Kr),Reflect.ownKeys(t)}}class _m extends bm{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Pw=new wm,Cw=new _m,Tw=new wm(!0),Ow=new _m(!0),Pu=e=>e,Ci=e=>Reflect.getPrototypeOf(e);function Rw(e,t,n){return function(...r){const s=this.__v_raw,o=Se(s),i=xs(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Pu:t?ca:ut;return!t&&yt(o,"iterate",l?xu:Kr),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Ti(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Aw(e,t){const n={get(s){const o=this.__v_raw,i=Se(o),a=Se(s);e||(xt(s,a)&&yt(i,"get",s),yt(i,"get",a));const{has:l}=Ci(i),c=t?Pu:e?ca:ut;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&yt(Se(s),"iterate",Kr),s.size},has(s){const o=this.__v_raw,i=Se(o),a=Se(s);return e||(xt(s,a)&&yt(i,"has",s),yt(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=Se(a),c=t?Pu:e?ca:ut;return!e&&yt(l,"iterate",Kr),a.forEach((u,d)=>s.call(o,c(u),c(d),i))}};return Be(n,e?{add:Ti("add"),set:Ti("set"),delete:Ti("delete"),clear:Ti("clear")}:{add(s){!t&&!Xt(s)&&!tr(s)&&(s=Se(s));const o=Se(this);return Ci(o).has.call(o,s)||(o.add(s),Gn(o,"add",s,s)),this},set(s,o){!t&&!Xt(o)&&!tr(o)&&(o=Se(o));const i=Se(this),{has:a,get:l}=Ci(i);let c=a.call(i,s);c||(s=Se(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?xt(o,u)&&Gn(i,"set",s,o):Gn(i,"add",s,o),this},delete(s){const o=Se(this),{has:i,get:a}=Ci(o);let l=i.call(o,s);l||(s=Se(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&Gn(o,"delete",s,void 0),c},clear(){const s=Se(this),o=s.size!==0,i=s.clear();return o&&Gn(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Rw(s,e,t)}),n}function Qa(e,t){const n=Aw(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get($e(n,s)&&s in r?n:r,s,o)}const $w={get:Qa(!1,!1)},Iw={get:Qa(!1,!0)},Dw={get:Qa(!0,!1)},Nw={get:Qa(!0,!0)},Sm=new WeakMap,km=new WeakMap,Em=new WeakMap,xm=new WeakMap;function jw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lw(e){return e.__v_skip||!Object.isExtensible(e)?0:jw(iw(e))}function Ct(e){return tr(e)?e:el(e,!1,Pw,$w,Sm)}function Xn(e){return el(e,!1,Tw,Iw,km)}function Za(e){return el(e,!0,Cw,Dw,Em)}function is(e){return el(e,!0,Ow,Nw,xm)}
vendor: 4,776 bytes, lines 10-13
10function el(e,t,n,r,s){if(!Le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Lw(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Pn(e){return tr(e)?Pn(e.__v_raw):!!(e&&e.__v_isReactive)}function tr(e){return!!(e&&e.__v_isReadonly)}function Xt(e){return!!(e&&e.__v_isShallow)}function Wc(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function tl(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&im(e,"__v_skip",!0),e}const ut=e=>Le(e)?Ct(e):e,ca=e=>Le(e)?Za(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function I(e){return Pm(e,!1)}function Pr(e){return Pm(e,!0)}function Pm(e,t){return Ne(e)?e:new Mw(e,t)}class Mw{constructor(t,n){this.dep=new Ya,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:ut(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xt(t)||tr(t);t=r?t:Se(t),xt(t,n)&&(this._rawValue=t,this._value=r?t:ut(t),this.dep.trigger())}}function w6(e){e.dep&&e.dep.trigger()}function p(e){return Ne(e)?e.value:e}function _6(e){return he(e)?e():p(e)}const Bw={get:(e,t,n)=>t==="__v_raw"?e:p(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ne(s)&&!Ne(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Cm(e){return Pn(e)?e:new Proxy(e,Bw)}class Fw{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ya,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Tm(e){return new Fw(e)}function Me(e){const t=ce(e)?new Array(e.length):{};for(const n in e)t[n]=Om(e,n);return t}class Uw{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return _w(Se(this._object),this._key)}}class Hw{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function nl(e,t,n){return Ne(e)?e:he(e)?new Hw(e):Le(e)&&arguments.length>1?Om(e,t,n):I(e)}function Om(e,t,n){const r=e[t];return Ne(r)?r:new Uw(e,t,n)}class Vw{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ya(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Fo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&He!==this)return fm(this,!0),!0}get value(){const t=this.dep.track();return mm(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function qw(e,t,n=!1){let r,s;return he(e)?r=e:(r=e.get,s=e.set),new Vw(r,s,n)}const S6={GET:"get",HAS:"has",ITERATE:"iterate"},k6={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Oi={},da=new WeakMap;let yr;function E6(){return yr}function Kw(e,t=!1,n=yr){if(n){let r=da.get(n);r||da.set(n,r=[]),r.push(e)}}function Ww(e,t,n=Ee){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=_=>s?_:Xt(_)||s===!1||s===0?Jn(_,1):Jn(_);let u,d,f,h,m=!1,y=!1;if(Ne(e)?(d=()=>e.value,m=Xt(e)):Pn(e)?(d=()=>c(e),m=!0):ce(e)?(y=!0,m=e.some(_=>Pn(_)||Xt(_)),d=()=>e.map(_=>{if(Ne(_))return _.value;if(Pn(_))return c(_);if(he(_))return l?l(_,2):_()})):he(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Zn();try{f()}finally{er()}}const _=yr;yr=u;try{return l?l(e,3,[h]):e(h)}finally{yr=_}}:d=Yt,t&&s){const _=d,S=s===!0?1/0:s;d=()=>Jn(_(),S)}const b=hi(),v=()=>{u.stop(),b&&b.active&&Bc(b.effects,u)};if(o&&t){const _=t;t=(...S)=>{_(...S),v()}}let w=y?new Array(e.length).fill(Oi):Oi;const g=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const S=u.run();if(s||m||(y?S.some((C,k)=>xt(C,w[k])):xt(S,w))){f&&f();const C=yr;yr=u;try{const k=[S,w===Oi?void 0:y&&w[0]===Oi?[]:w,h];w=S,l?l(t,3,k):t(...k)}finally{yr=C}}}else u.run()};return a&&a(g),u=new la(d),u.scheduler=i?()=>i(g,!1):g,h=_=>Kw(_,!1,u),f=u.onStop=()=>{const _=da.get(u);if(_){if(l)l(_,4);else for(const S of _)S();da.delete(u)}},t?r?g(!0):w=u.run():i?i(g.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Jn(e,t=1/0,n){if(t<=0||!Le(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ne(e))Jn(e.value,t,n);else if(ce(e))for(let r=0;r<e.length;r++)Jn(e[r],t,n);else if(Xr(e)||xs(e))e.forEach(r=>{Jn(r,t,n)});else if(Ka(e)){for(const r in e)Jn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Jn(e[r],t,n)}return e}/**
11* @vue/runtime-core v3.5.20
12* (c) 2018-present Yuxi (Evan) You and Vue contributors
13* @license MIT
14**/const Rm=[];function zw(e){Rm.push(e)}function Gw(){Rm.pop()}function x6(e,t){}const P6={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"},Jw={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 pi(e,t,n,r){try{return r?e(...r):e()}catch(s){Gs(s,t,n)}}function mn(e,t,n,r){if(he(e)){const s=pi(e,t,n,r);return s&&Fc(s)&&s.catch(o=>{Gs(o,t,n)}),s}if(ce(e)){const s=[];for(let o=0;o<e.length;o++)s.push(mn(e[o],t,n,r));return s}}function Gs(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ee;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(o){Zn(),pi(o,null,10,[e,l,c]),er();return}}Yw(e,n,s,r,i)}function Yw(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Pt=[];let Sn=-1;const Ts=[];let vr=null,gs=0;const Am=Promise.resolve();let fa=null;function Re(e){const t=fa||Am;return e?t.then(this?e.bind(this):e):t}function Xw(e){let t=Sn+1,n=Pt.length;for(;t<n;){const r=t+n>>>1,s=Pt[r],o=Ho(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function zc(e){if(!(e.flags&1)){const t=Ho(e),n=Pt[Pt.length-1];!n||!(e.flags&2)&&t>=Ho(n)?Pt.push(e):Pt.splice(Xw(t),0,e),e.flags|=1,$m()}}function $m(){fa||(fa=Am.then(Im))}function ha(e){ce(e)?Ts.push(...e):vr&&e.id===-1?vr.splice(gs+1,0,e):e.flags&1||(Ts.push(e),e.flags|=1),$m()}function df(e,t,n=Sn+1){for(;n<Pt.length;n++){const r=Pt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Pt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function pa(e){if(Ts.length){const t=[...new Set(Ts)].sort((n,r)=>Ho(n)-Ho(r));if(Ts.length=0,vr){vr.push(...t);return}for(vr=t,gs=0;gs<vr.length;gs++){const n=vr[gs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vr=null,gs=0}}const Ho=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Im(e){try{for(Sn=0;Sn<Pt.length;Sn++){const t=Pt[Sn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Sn<Pt.length;Sn++){const t=Pt[Sn];t&&(t.flags&=-2)}Sn=-1,Pt.length=0,pa(),fa=null,(Pt.length||Ts.length)&&Im()}}let ys,Ri=[];function Dm(e,t){var n,r;ys=e,ys?(ys.enabled=!0,Ri.forEach(({event:s,args:o})=>ys.emit(s,...o)),Ri=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Dm(o,t)}),setTimeout(()=>{ys||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ri=[])},3e3)):Ri=[]}let dt=null,rl=null;function Vo(e){const t=dt;return dt=e,rl=e&&e.type.__scopeId||null,t}function C6(e){rl=e}function T6(){rl=null}const O6=e=>R;function R(e,t=dt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Cf(-1);const o=Vo(t);let i;try{i=e(...s)}finally{Vo(o),r._d&&Cf(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Nm(e,t){if(dt===null)return e;const n=yi(dt),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=Ee]=t[s];o&&(he(o)&&(o={mounted:o,updated:o}),o.deep&&Jn(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function En(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];
vendor: 28,613 bytes, lines 14-15
14l&&(Zn(),mn(l,n,8,[e.el,a,e,t]),er())}}const jm=Symbol("_vte"),Lm=e=>e.__isTeleport,Co=e=>e&&(e.disabled||e.disabled===""),ff=e=>e&&(e.defer||e.defer===""),hf=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Cu=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},Mm={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:y,createComment:b}}=c,v=Co(t.props);let{shapeFlag:w,children:g,dynamicChildren:_}=t;if(e==null){const S=t.el=y(""),C=t.anchor=y("");h(S,n,r),h(C,n,r);const k=(P,x)=>{w&16&&(s&&s.isCE&&(s.ce._teleportTarget=P),u(g,P,x,s,o,i,a,l))},$=()=>{const P=t.target=Cu(t.props,m),x=Bm(P,t,y,h);P&&(i!=="svg"&&hf(P)?i="svg":i!=="mathml"&&pf(P)&&(i="mathml"),v||(k(P,x),Qi(t,!1)))};v&&(k(n,C),Qi(t,!0)),ff(t.props)?(t.el.__isMounted=!1,it(()=>{$(),delete t.el.__isMounted},o)):$()}else{if(ff(t.props)&&e.el.__isMounted===!1){it(()=>{Mm.process(e,t,n,r,s,o,i,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,C=t.target=e.target,k=t.targetAnchor=e.targetAnchor,$=Co(e.props),P=$?n:C,x=$?S:k;if(i==="svg"||hf(C)?i="svg":(i==="mathml"||pf(C))&&(i="mathml"),_?(f(e.dynamicChildren,_,P,s,o,i,a),od(e,t,!0)):l||d(e,t,P,x,s,o,i,a,!1),v)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ai(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Cu(t.props,m);j&&Ai(t,j,null,c,0)}else $&&Ai(t,C,k,c,1);Qi(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(s(c),s(u)),o&&s(l),i&16){const h=o||!Co(f);for(let m=0;m<a.length;m++){const y=a[m];r(y,t,n,h,!!y.dynamicChildren)}}},move:Ai,hydrate:Qw};function Ai(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&r(i,t,n),(!d||Co(u))&&l&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&r(a,t,n)}function Qw(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},d){const f=t.target=Cu(t.props,l);if(f){const h=Co(t.props),m=f._lpa||f.firstChild;if(t.shapeFlag&16)if(h)t.anchor=d(i(e),t,a(e),n,r,s,o),t.targetStart=m,t.targetAnchor=m&&i(m);else{t.anchor=i(e);let y=m;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,f._lpa=t.targetAnchor&&i(t.targetAnchor);break}}y=i(y)}t.targetAnchor||Bm(f,t,u,c),d(m&&i(m),t,f,n,r,s,o)}Qi(t,h)}return t.anchor&&i(t.anchor)}const Gc=Mm;function Qi(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Bm(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[jm]=o,e&&(r(s,e),r(o,e)),o}const zn=Symbol("_leaveCb"),$i=Symbol("_enterCb");function Fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _e(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}const Gt=[Function,Array],Um={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gt,onEnter:Gt,onAfterEnter:Gt,onEnterCancelled:Gt,onBeforeLeave:Gt,onLeave:Gt,onAfterLeave:Gt,onLeaveCancelled:Gt,onBeforeAppear:Gt,onAppear:Gt,onAfterAppear:Gt,onAppearCancelled:Gt},Hm=e=>{const t=e.subTree;return t.component?Hm(t.component):t},Zw={name:"BaseTransition",props:Um,setup(e,{slots:t}){const n=et(),r=Fm();return()=>{const s=t.default&&Jc(t.default(),!0);if(!s||!s.length)return;const o=Vm(s),i=Se(e),{mode:a}=i;if(r.isLeaving)return Vl(o);const l=mf(o);if(!l)return Vl(o);let c=qo(l,i,r,n,d=>c=d);l.type!==Ye&&Cr(l,c);let u=n.subTree&&mf(n.subTree);if(u&&u.type!==Ye&&!dn(l,u)&&Hm(n).type!==Ye){let d=qo(u,i,r,n);if(Cr(u,d),a==="out-in"&&l.type!==Ye)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},Vl(o);a==="in-out"&&l.type!==Ye?d.delayLeave=(f,h,m)=>{const y=qm(r,u);y[String(u.key)]=u,f[zn]=()=>{h(),f[zn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Vm(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ye){t=n;break}}return t}const e_=Zw;function qm(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function qo(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:b,onAppear:v,onAfterAppear:w,onAppearCancelled:g}=t,_=String(e.key),S=qm(n,e),C=(P,x)=>{P&&mn(P,r,9,x)},k=(P,x)=>{const j=x[1];C(P,x),ce(P)?P.every(O=>O.length<=1)&&j():P.length<=1&&j()},$={mode:i,persisted:a,beforeEnter(P){let x=l;if(!n.isMounted)if(o)x=b||l;else return;P[zn]&&P[zn](!0);const j=S[_];j&&dn(e,j)&&j.el[zn]&&j.el[zn](),C(x,[P])},enter(P){let x=c,j=u,O=d;if(!n.isMounted)if(o)x=v||c,j=w||u,O=g||d;else return;let q=!1;const K=P[$i]=V=>{q||(q=!0,V?C(O,[P]):C(j,[P]),$.delayedLeave&&$.delayedLeave(),P[$i]=void 0)};x?k(x,[P,K]):K()},leave(P,x){const j=String(e.key);if(P[$i]&&P[$i](!0),n.isUnmounting)return x();C(f,[P]);let O=!1;const q=P[zn]=K=>{O||(O=!0,x(),K?C(y,[P]):C(m,[P]),P[zn]=void 0,S[j]===e&&delete S[j])};S[j]=e,h?k(h,[P,q]):q()},clone(P){const x=qo(P,t,n,r,s);return s&&s(x),x}};return $}function Vl(e){if(mi(e))return e=Rn(e),e.children=null,e}function mf(e){if(!mi(e))return Lm(e.type)&&e.children?Vm(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&he(n.default))return n.default()}}function Cr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Cr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Jc(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Oe?(i.patchFlag&128&&s++,r=r.concat(Jc(i.children,t,a))):(t||i.type!==Ye)&&r.push(a!=null?Rn(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function D(e,t){return he(e)?Be({name:e.name},t,{setup:e}):e}function gf(){const e=et();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Yc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function R6(e){const t=et(),n=Pr(null);if(t){const s=t.refs===Ee?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Os(e,t,n,r,s=!1){if(ce(e)){e.forEach((m,y)=>Os(m,t&&(ce(t)?t[y]:t),n,r,s));return}if(Er(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Os(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?yi(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ee?a.refs={}:a.refs,d=a.setupState,f=Se(d),h=d===Ee?sm:m=>$e(f,m);if(c!=null&&c!==l){if(Ve(c))u[c]=null,h(c)&&(d[c]=null);else if(Ne(c)){c.value=null;const m=t;m.k&&(u[m.k]=null)}}if(he(l))pi(l,a,12,[i,u]);else{const m=Ve(l),y=Ne(l);if(m||y){const b=()=>{if(e.f){const v=m?h(l)?d[l]:u[l]:l.value;if(s)ce(v)&&Bc(v,o);else if(ce(v))v.includes(o)||v.push(o);else if(m)u[l]=[o],h(l)&&(d[l]=u[l]);else{const w=[o];l.value=w,e.k&&(u[e.k]=w)}}else m?(u[l]=i,h(l)&&(d[l]=i)):y&&(l.value=i,e.k&&(u[e.k]=i))};i?(b.id=-1,it(b,n)):b()}}}let yf=!1;const as=()=>{yf||(console.error("Hydration completed but contains mismatches."),yf=!0)},t_=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",n_=e=>e.namespaceURI.includes("MathML"),Ii=e=>{if(e.nodeType===1){if(t_(e))return"svg";if(n_(e))return"mathml"}},Ss=e=>e.nodeType===8;function r_(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(g,_)=>{if(!_.hasChildNodes()){n(null,g,_),pa(),_._vnode=g;return}d(_.firstChild,g,null,null,null),pa(),_._vnode=g},d=(g,_,S,C,k,$=!1)=>{$=$||!!_.dynamicChildren;const P=Ss(g)&&g.data==="[",x=()=>y(g,_,S,C,k,P),{type:j,ref:O,shapeFlag:q,patchFlag:K}=_;let V=g.nodeType;_.el=g,K===-2&&($=!1,_.dynamicChildren=null);let F=null;switch(j){case zr:V!==3?_.children===""?(l(_.el=s(""),i(g),g),F=g):F=x():(g.data!==_.children&&(as(),g.data=_.children),F=o(g));break;case Ye:w(g)?(F=o(g),v(_.el=g.content.firstChild,g,S)):V!==8||P?F=x():F=o(g);break;case As:if(P&&(g=o(g),V=g.nodeType),V===1||V===3){F=g;const W=!_.children.length;for(let X=0;X<_.staticCount;X++)W&&(_.children+=F.nodeType===1?F.outerHTML:F.data),X===_.staticCount-1&&(_.anchor=F),F=o(F);return P?o(F):F}else x();break;case Oe:P?F=m(g,_,S,C,k,$):F=x();break;default:if(q&1)(V!==1||_.type.toLowerCase()!==g.tagName.toLowerCase())&&!w(g)?F=x():F=f(g,_,S,C,k,$);else if(q&6){_.slotScopeIds=k;const W=i(g);if(P?F=b(g):Ss(g)&&g.data==="teleport start"?F=b(g,g.data,"teleport end"):F=o(g),t(_,W,null,S,C,Ii(W),$),Er(_)&&!_.type.__asyncResolved){let X;P?(X=Q(Oe),X.anchor=F?F.previousSibling:W.lastChild):X=g.nodeType===3?An(""):Q("div"),X.el=g,_.component.subTree=X}}else q&64?V!==8?F=x():F=_.type.hydrate(g,_,S,C,k,$,e,h):q&128&&(F=_.type.hydrate(g,_,S,C,Ii(i(g)),k,$,e,d))}return O!=null&&Os(O,null,C,_),F},f=(g,_,S,C,k,$)=>{$=$||!!_.dynamicChildren;const{type:P,props:x,patchFlag:j,shapeFlag:O,dirs:q,transition:K}=_,V=P==="input"||P==="option";if(V||j!==-1){q&&En(_,null,S,"created");let F=!1;if(w(g)){F=dg(null,K)&&S&&S.vnode.props&&S.vnode.props.appear;const X=g.content.firstChild;if(F){const pe=X.getAttribute("class");pe&&(X.$cls=pe),K.beforeEnter(X)}v(X,g,S),_.el=g=X}if(O&16&&!(x&&(x.innerHTML||x.textContent))){let X=h(g.firstChild,_,g,S,C,k,$);for(;X;){Di(g,1)||as();const pe=X;X=X.nextSibling,a(pe)}}else if(O&8){let X=_.children;X[0]===`
15`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(X=X.slice(1)),g.textContent!==X&&(Di(g,0)||as(),g.textContent=_.children)}if(x){if(V||!$||j&48){const X=g.tagName.includes("-");for(const pe in x)(V&&(pe.endsWith("value")||pe==="indeterminate")||di(pe)&&!Ps(pe)||pe[0]==="."||X)&&r(g,pe,null,x[pe],void 0,S)}else if(x.onClick)r(g,"onClick",null,x.onClick,void 0,S);else if(j&4&&Pn(x.style))for(const X in x.style)x.style[X]}let W;(W=x&&x.onVnodeBeforeMount)&&At(W,S,_),q&&En(_,null,S,"beforeMount"),((W=x&&x.onVnodeMounted)||q||F)&&yg(()=>{W&&At(W,S,_),F&&K.enter(g),q&&En(_,null,S,"mounted")},C)}return g.nextSibling},h=(g,_,S,C,k,$,P)=>{P=P||!!_.dynamicChildren;const x=_.children,j=x.length;for(let O=0;O<j;O++){const q=P?x[O]:x[O]=$t(x[O]),K=q.type===zr;g?(K&&!P&&O+1<j&&$t(x[O+1]).type===zr&&(l(s(g.data.slice(q.children.length)),S,o(g)),g.data=q.children),g=d(g,q,C,k,$,P)):K&&!q.children?l(q.el=s(""),S):(Di(S,1)||as(),n(null,q,S,null,C,k,Ii(S),$))}return g},m=(g,_,S,C,k,$)=>{const{slotScopeIds:P}=_;P&&(k=k?k.concat(P):P);const x=i(g),j=h(o(g),_,x,S,C,k,$);return j&&Ss(j)&&j.data==="]"?o(_.anchor=j):(as(),l(_.anchor=c("]"),x,j),j)},y=(g,_,S,C,k,$)=>{if(Di(g.parentElement,1)||as(),_.el=null,$){const j=b(g);for(;;){const O=o(g);if(O&&O!==j)a(O);else break}}const P=o(g),x=i(g);return a(g),n(null,_,x,P,S,C,Ii(x),k),S&&(S.vnode.el=_.el,al(S,_.el)),P},b=(g,_="[",S="]")=>{let C=0;for(;g;)if(g=o(g),g&&Ss(g)&&(g.data===_&&C++,g.data===S)){if(C===0)return o(g);C--}return g},v=(g,_,S)=>{const C=_.parentNode;C&&C.replaceChild(g,_);let k=S;for(;k;)k.vnode.el===_&&(k.vnode.el=k.subTree.el=g),k=k.parent},w=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,d]}const vf="data-allow-mismatch",s_={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Di(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(vf);)e=e.parentElement;const n=e&&e.getAttribute(vf);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(s_[t])}}const o_=Ga().requestIdleCallback||(e=>setTimeout(e,1)),i_=Ga().cancelIdleCallback||(e=>clearTimeout(e)),A6=(e=1e4)=>t=>{const n=o_(t,{timeout:e});return()=>i_(n)};function a_(e){const{top:t,left:n,bottom:r,right:s}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:i}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<i||s>0&&s<i)}const $6=e=>(t,n)=>{const r=new IntersectionObserver(s=>{for(const o of s)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(a_(s))return t(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},I6=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},D6=(e=[])=>(t,n)=>{Ve(e)&&(e=[e]);let r=!1;const s=i=>{r||(r=!0,o(),t(),i.target.dispatchEvent(new i.constructor(i.type,i)))},o=()=>{n(i=>{for(const a of e)i.removeEventListener(a,s)})};return n(i=>{for(const a of e)i.addEventListener(a,s,{once:!0})}),o};function l_(e,t){if(Ss(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ss(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Er=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function bf(e){he(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const f=()=>(d++,c=null,h()),h=()=>{let m;return c||(m=c=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),l)return new Promise((b,v)=>{l(y,()=>b(f()),()=>v(y),d+1)});throw y}).then(y=>m!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),u=y,y)))};return D({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(m,y,b){let v=!1;(y.bu||(y.bu=[])).push(()=>v=!0);const w=()=>{v||b()},g=o?()=>{const _=o(w,S=>l_(m,S));_&&(y.bum||(y.bum=[])).push(_)}:w;u?g():h().then(()=>!y.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const m=ct;if(Yc(m),u)return()=>ql(u,m);const y=g=>{c=null,Gs(g,m,13,!r)};if(a&&m.suspense||js)return h().then(g=>()=>ql(g,m)).catch(g=>(y(g),()=>r?Q(r,{error:g}):null));const b=I(!1),v=I(),w=I(!!s);return s&&setTimeout(()=>{w.value=!1},s),i!=null&&setTimeout(()=>{if(!b.value&&!v.value){const g=new Error(`Async component timed out after ${i}ms.`);y(g),v.value=g}},i),h().then(()=>{b.value=!0,m.parent&&mi(m.parent.vnode)&&m.parent.update()}).catch(g=>{y(g),v.value=g}),()=>{if(b.value&&u)return ql(u,m);if(v.value&&r)return Q(r,{error:v.value});if(n&&!w.value)return Q(n)}}})}function ql(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=Q(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const mi=e=>e.type.__isKeepAlive,u_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=et(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(w,g,_,S,C)=>{const k=w.component;c(w,g,_,0,a),l(k.vnode,w,g,_,k,a,S,w.slotScopeIds,C),it(()=>{k.isDeactivated=!1,k.a&&Cs(k.a);const $=w.props&&w.props.onVnodeMounted;$&&At($,k.parent,w)},a)},r.deactivate=w=>{const g=w.component;ya(g.m),ya(g.a),c(w,f,null,1,a),it(()=>{g.da&&Cs(g.da);const _=w.props&&w.props.onVnodeUnmounted;_&&At(_,g.parent,w),g.isDeactivated=!0},a)};function h(w){Kl(w),u(w,n,a,!0)}function m(w){s.forEach((g,_)=>{const S=Mu(g.type);S&&!w(S)&&y(_)})}function y(w){const g=s.get(w);g&&(!i||!dn(g,i))?h(g):i&&Kl(i),s.delete(w),o.delete(w)}ge(()=>[e.include,e.exclude],([w,g])=>{w&&m(_=>wo(w,_)),g&&m(_=>!wo(g,_))},{flush:"post",deep:!0});let b=null;const v=()=>{b!=null&&(va(n.subTree.type)?it(()=>{s.set(b,Ni(n.subTree))},n.subTree.suspense):s.set(b,Ni(n.subTree)))};return _e(v),ol(v),Qr(()=>{s.forEach(w=>{const{subTree:g,suspense:_}=n,S=Ni(g);if(w.type===S.type&&w.key===S.key){Kl(S);const C=S.component.da;C&&it(C,_);return}h(w)})}),()=>{if(b=null,!t.default)return i=null;const w=t.default(),g=w[0];if(w.length>1)return i=null,w;if(!Tr(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return i=null,g;let _=Ni(g);if(_.type===Ye)return i=null,_;const S=_.type,C=Mu(Er(_)?_.type.__asyncResolved||{}:S),{include:k,exclude:$,max:P}=e;if(k&&(!C||!wo(k,C))||$&&C&&wo($,C))return _.shapeFlag&=-257,i=_,g;const x=_.key==null?S:_.key,j=s.get(x);return _.el&&(_=Rn(_),g.shapeFlag&128&&(g.ssContent=_)),b=x,j?(_.el=j.el,_.component=j.component,_.transition&&Cr(_,_.transition),_.shapeFlag|=512,o.delete(x),o.add(x)):(o.add(x),P&&o.size>parseInt(P,10)&&y(o.values().next().value)),_.shapeFlag|=256,i=_,va(g.type)?g:_}}},c_=u_;function wo(e,t){return ce(e)?e.some(n=>wo(n,t)):Ve(e)?e.split(",").includes(t):ow(e)?(e.lastIndex=0,e.test(t)):!1}function Km(e,t){zm(e,"a",t)}function Wm(e,t){zm(e,"da",t)}function zm(e,t,n=ct){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(sl(t,r,n),n){let s=n.parent;for(;s&&s.parent;)mi(s.parent.vnode)&&d_(r,t,n,s),s=s.parent}}function d_(e,t,n,r){const s=sl(t,e,r,!0);Nt(()=>{Bc(r[t],s)},n)}function Kl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ni(e){return e.shapeFlag&128?e.ssContent:e}function sl(e,t,n=ct,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Zn();const a=Jr(n),l=mn(t,n,e,i);return a(),er(),l});return r?s.unshift(o):s.push(o),o}}const sr=e=>(t,n=ct)=>{(!js||e==="sp")&&sl(e,(...r)=>t(...r),n)},Gm=sr("bm"),_e=sr("m"),Xc=sr("bu"),ol=sr("u"),Qr=sr("bum"),Nt=sr("um"),f_=sr("sp"),h_=sr("rtg"),p_=sr("rtc");function Jm(e,t=ct){sl("ec",e,t)}const Qc="components",m_="directives";function g_(e,t){return Zc(Qc,e,!0,t)||e}const Ym=Symbol.for("v-ndc");function Js(e){return Ve(e)?Zc(Qc,e,!1)||e:e||Ym}function N6(e){return Zc(m_,e)}function Zc(e,t,n=!0,r=!1){const s=dt||ct;if(s){const o=s.type;if(e===Qc){const a=Mu(o,!1);if(a&&(a===t||a===lt(t)||a===za(lt(t))))return o}const i=wf(s[e]||o[e],t)||wf(s.appContext[e],t);return!i&&r?o:i}}function wf(e,t){return e&&(e[t]||e[lt(t)]||e[za(lt(t))])}function ma(e,t,n,r){let s;const o=n&&n[r],i=ce(e);if(i||Ve(e)){const a=i&&Pn(e);let l=!1,c=!1;a&&(l=!Xt(e),c=tr(e),e=Xa(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(l?c?ca(ut(e[u])):ut(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o&&o[a])}else if(Le(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o&&o[l])}}else s=[];return n&&(n[r]=s),s}function j6(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(ce(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function L(e,t,n={},r,s){if(dt.ce||dt.parent&&Er(dt.parent)&&dt.parent.ce)return t!=="default"&&(n.name=t),A(),N(Oe,null,[Q("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),A();const i=o&&ed(o(n)),a=n.key||i&&i.key,l=N(Oe,{key:(a&&!pn(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function ed(e){return e.some(t=>Tr(t)?!(t.type===Ye||t.type===Oe&&!ed(t.children)):!0)?e:null}function y_(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Eo(r)]=e[r];return n}const Tu=e=>e?Sg(e)?yi(e):Tu(e.parent):null,To=Be(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=>Tu(e.parent),$root:e=>Tu(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>td(e),$forceUpdate:e=>e.f||(e.f=()=>{zc(e.update)}),$nextTick:e=>e.n||(e.n=Re.bind(e.proxy)),$watch:e=>B_.bind(e)}),Wl=(e,t)=>e!==Ee&&!e.__isScriptSetup&&$e(e,t),Ou={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Wl(r,t))return i[t]=1,r[t];if(s!==Ee&&$e(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&$e(c,t))return i[t]=3,o[t];if(n!==Ee&&$e(n,t))return i[t]=4,n[t];Ru&&(i[t]=0)}}const u=To[t];let d,f;if(u)return t==="$attrs"&&yt(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ee&&$e(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,$e(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Wl(s,t)?(s[t]=n,!0):r!==Ee&&$e(r,t)?(r[t]=n,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o,type:i}},a){let l,c;return!!(n[a]||e!==Ee&&a[0]!=="$"&&$e(e,a)||Wl(t,a)||(l=o[0])&&$e(l,a)||$e(r,a)||$e(To,a)||$e(s.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},v_=Be({},Ou,{get(e,t){if(t!==Symbol.unscopables)return Ou.get(e,t,e)},has(e,t){return t[0]!=="_"&&!cw(t)}});function L6(){return null}function M6(){return null}function B6(e){}function F6(e){}function U6(){return null}function H6(){}function V6(e,t){return null}function Xm(){return Qm().slots}function q6(){return Qm().attrs}function Qm(e){const t=et();return t.setupContext||(t.setupContext=xg(t))}function Ko(e){return ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Zm(e,t){const n=Ko(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?ce(s)||he(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function K6(e,t){return!e||!t?e||t:ce(e)&&ce(t)?e.concat(t):Be({},Ko(e),Ko(t))}function W6(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function z6(e){const t=et();let n=e();return Nu(),Fc(n)&&(n=n.catch(r=>{throw Jr(t),r})),[n,()=>Jr(t)]}let Ru=!0;function b_(e){const t=td(e),n=e.proxy,r=e.ctx;Ru=!1,t.beforeCreate&&_f(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:y,deactivated:b,beforeDestroy:v,beforeUnmount:w,destroyed:g,unmounted:_,render:S,renderTracked:C,renderTriggered:k,errorCaptured:$,serverPrefetch:P,expose:x,inheritAttrs:j,components:O,directives:q,filters:K}=t;if(c&&w_(c,r,null),i)for(const W in i){const X=i[W];he(X)&&(r[W]=X.bind(n))}if(s){const W=s.call(n,n);Le(W)&&(e.data=Ct(W))}if(Ru=!0,o)for(const W in o){const X=o[W],pe=he(X)?X.bind(n,n):he(X.get)?X.get.bind(n,n):Yt,bt=!he(X)&&he(X.set)?X.set.bind(n):Yt,qe=B({get:pe,set:bt});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ht=>qe.value=ht})}if(a)for(const W in a)eg(a[W],r,n,W);if(l){const W=he(l)?l.call(n):l;Reflect.ownKeys(W).forEach(X=>{Cn(X,W[X])})}u&&_f(u,e,"c");function F(W,X){ce(X)?X.forEach(pe=>W(pe.bind(n))):X&&W(X.bind(n))}if(F(Gm,d),F(_e,f),F(Xc,h),F(ol,m),F(Km,y),F(Wm,b),F(Jm,$),F(p_,C),F(h_,k),F(Qr,w),F(Nt,_),F(f_,P),ce(x))if(x.length){const W=e.exposed||(e.exposed={});x.forEach(X=>{Object.defineProperty(W,X,{get:()=>n[X],set:pe=>n[X]=pe,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Yt&&(e.render=S),j!=null&&(e.inheritAttrs=j),O&&(e.components=O),q&&(e.directives=q),P&&Yc(e)}function w_(e,t,n=Yt){ce(e)&&(e=Au(e));for(const r in e){const s=e[r];let o;Le(s)?"default"in s?o=tt(s.from||r,s.default,!0):o=tt(s.from||r):o=tt(s),Ne(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function _f(e,t,n){mn(ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function eg(e,t,n,r){let s=r.includes(".")?hg(n,r):()=>n[r];if(Ve(e)){const o=t[e];he(o)&&ge(s,o)}else if(he(e))ge(s,e.bind(n));else if(Le(e))if(ce(e))e.forEach(o=>eg(o,t,n,r));else{const o=he(e.handler)?e.handler.bind(n):t[e.handler];he(o)&&ge(s,o,e)}}function td(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>ga(l,c,i,!0)),ga(l,t,i)),Le(t)&&o.set(t,l),l}function ga(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ga(e,o,n,!0),s&&s.forEach(i=>ga(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=__[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const __={data:Sf,props:kf,emits:kf,methods:_o,computed:_o,beforeCreate:St,created:St,beforeMount:St,mounted:St,beforeUpdate:St,updated:St,beforeDestroy:St,beforeUnmount:St,destroyed:St,unmounted:St,activated:St,deactivated:St,errorCaptured:St,serverPrefetch:St,components:_o,directives:_o,watch:k_,provide:Sf,inject:S_};function Sf(e,t){return t?e?function(){return Be(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function S_(e,t){return _o(Au(e),Au(t))}function Au(e){if(ce(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function St(e,t){return e?[...new Set([].concat(e,t))]:t}function _o(e,t){return e?Be(Object.create(null),e,t):t}function kf(e,t){return e?ce(e)&&ce(t)?[...new Set([...e,...t])]:Be(Object.create(null),Ko(e),Ko(t??{})):t}function k_(e,t){if(!e)return t;if(!t)return e;const n=Be(Object.create(null),e);for(const r in t)n[r]=St(e[r],t[r]);return n}function tg(){return{app:null,config:{isNativeTag:sm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let E_=0;function x_(e,t){return function(r,s=null){he(r)||(r=Be({},r)),s!=null&&!Le(s)&&(s=null);const o=tg(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:E_++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Pg,get config(){return o.config},set config(u){},use(u,...d){return i.has(u)||(u&&he(u.install)?(i.add(u),u.install(c,...d)):he(u)&&(i.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,f){if(!l){const h=c._ceVNode||Q(r,s);return h.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(h,u):e(h,u,f),l=!0,c._container=u,u.__vue_app__=c,yi(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(mn(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Wr;Wr=c;try{return u()}finally{Wr=d}}};return c}}let Wr=null;function Cn(e,t){if(ct){let n=ct.provides;const r=ct.parent&&ct.parent.provides;r===n&&(n=ct.provides=Object.create(r)),n[e]=t}}function tt(e,t,n=!1){const r=et();if(r||Wr){let s=Wr?Wr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&he(t)?t.call(r&&r.proxy):t}}function nd(){return!!(et()||Wr)}const ng={},rg=()=>Object.create(ng),sg=e=>Object.getPrototypeOf(e)===ng;function P_(e,t,n,r=!1){const s={},o=rg();e.propsDefaults=Object.create(null),og(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Xn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function C_(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=Se(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(il(e.emitsOptions,f))continue;const h=t[f];if(l)if($e(o,f))h!==o[f]&&(o[f]=h,c=!0);else{const m=lt(f);s[m]=$u(l,a,m,h,e,!1)}else h!==o[f]&&(o[f]=h,c=!0)}}}else{og(e,t,s,o)&&(c=!0);let u;for(const d in a)(!t||!$e(t,d)&&((u=Dt(d))===d||!$e(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=$u(l,a,d,void 0,e,!0)):delete s[d]);if(o!==a)for(const d in o)(!t||!$e(t,d))&&(delete o[d],c=!0)}c&&Gn(e.attrs,"set","")}function og(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Ps(l))continue;const c=t[l];let u;s&&$e(s,u=lt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:il(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=Se(n),c=a||Ee;for(let u=0;u<o.length;u++){const d=o[u];n[d]=$u(s,l,d,c[d],e,!$e(c,d))}}return i}function $u(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=$e(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&he(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Jr(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===Dt(n))&&(r=!0))}return r}const T_=new WeakMap;function ig(e,t,n=!1){const r=n?T_:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;
vendor: 4,725 bytes, line 15
15if(!he(e)){const u=d=>{l=!0;const[f,h]=ig(d,t,!0);Be(i,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Le(e)&&r.set(e,Es),Es;if(ce(o))for(let u=0;u<o.length;u++){const d=lt(o[u]);Ef(d)&&(i[d]=Ee)}else if(o)for(const u in o){const d=lt(u);if(Ef(d)){const f=o[u],h=i[d]=ce(f)||he(f)?{type:f}:Be({},f),m=h.type;let y=!1,b=!0;if(ce(m))for(let v=0;v<m.length;++v){const w=m[v],g=he(w)&&w.name;if(g==="Boolean"){y=!0;break}else g==="String"&&(b=!1)}else y=he(m)&&m.name==="Boolean";h[0]=y,h[1]=b,(y||$e(h,"default"))&&a.push(d)}}const c=[i,a];return Le(e)&&r.set(e,c),c}function Ef(e){return e[0]!=="$"&&!Ps(e)}const rd=e=>e==="_"||e==="_ctx"||e==="$stable",sd=e=>ce(e)?e.map($t):[$t(e)],O_=(e,t,n)=>{if(t._n)return t;const r=R((...s)=>sd(t(...s)),n);return r._c=!1,r},ag=(e,t,n)=>{const r=e._ctx;for(const s in e){if(rd(s))continue;const o=e[s];if(he(o))t[s]=O_(s,o,r);else if(o!=null){const i=sd(o);t[s]=()=>i}}},lg=(e,t)=>{const n=sd(t);e.slots.default=()=>n},ug=(e,t,n)=>{for(const r in t)(n||!rd(r))&&(e[r]=t[r])},R_=(e,t,n)=>{const r=e.slots=rg();if(e.vnode.shapeFlag&32){const s=t._;s?(ug(r,t,n),n&&im(r,"_",s,!0)):ag(t,r)}else t&&lg(e,t)},A_=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Ee;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:ug(s,t,n):(o=!t.$stable,ag(t,s)),i=t}else t&&(lg(e,t),i={default:1});if(o)for(const a in s)!rd(a)&&i[a]==null&&delete s[a]},it=yg;function $_(e){return cg(e)}function I_(e){return cg(e,r_)}function cg(e,t){const n=Ga();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=Yt,insertStaticContent:m}=e,y=(E,T,M,z=null,H=null,G=null,se=void 0,te=null,Z=!!T.dynamicChildren)=>{if(E===T)return;E&&!dn(E,T)&&(z=U(E),ht(E,H,G,!0),E=null),T.patchFlag===-2&&(Z=!1,T.dynamicChildren=null);const{type:Y,ref:fe,shapeFlag:ie}=T;switch(Y){case zr:b(E,T,M,z);break;case Ye:v(E,T,M,z);break;case As:E==null&&w(T,M,z,se);break;case Oe:O(E,T,M,z,H,G,se,te,Z);break;default:ie&1?S(E,T,M,z,H,G,se,te,Z):ie&6?q(E,T,M,z,H,G,se,te,Z):(ie&64||ie&128)&&Y.process(E,T,M,z,H,G,se,te,Z,le)}fe!=null&&H?Os(fe,E&&E.ref,G,T||E,!T):fe==null&&E&&E.ref!=null&&Os(E.ref,null,G,E,!0)},b=(E,T,M,z)=>{if(E==null)r(T.el=a(T.children),M,z);else{const H=T.el=E.el;T.children!==E.children&&c(H,T.children)}},v=(E,T,M,z)=>{E==null?r(T.el=l(T.children||""),M,z):T.el=E.el},w=(E,T,M,z)=>{[E.el,E.anchor]=m(E.children,T,M,z,E.el,E.anchor)},g=({el:E,anchor:T},M,z)=>{let H;for(;E&&E!==T;)H=f(E),r(E,M,z),E=H;r(T,M,z)},_=({el:E,anchor:T})=>{let M;for(;E&&E!==T;)M=f(E),s(E),E=M;s(T)},S=(E,T,M,z,H,G,se,te,Z)=>{T.type==="svg"?se="svg":T.type==="math"&&(se="mathml"),E==null?C(T,M,z,H,G,se,te,Z):P(E,T,H,G,se,te,Z)},C=(E,T,M,z,H,G,se,te)=>{let Z,Y;const{props:fe,shapeFlag:ie,transition:de,dirs:me}=E;if(Z=E.el=i(E.type,G,fe&&fe.is,fe),ie&8?u(Z,E.children):ie&16&&$(E.children,Z,null,z,H,zl(E,G),se,te),me&&En(E,null,z,"created"),k(Z,E,E.scopeId,se,z),fe){for(const Fe in fe)Fe!=="value"&&!Ps(Fe)&&o(Z,Fe,null,fe[Fe],G,z);"value"in fe&&o(Z,"value",null,fe.value,G),(Y=fe.onVnodeBeforeMount)&&At(Y,z,E)}me&&En(E,null,z,"beforeMount");const Ce=dg(H,de);Ce&&de.beforeEnter(Z),r(Z,T,M),((Y=fe&&fe.onVnodeMounted)||Ce||me)&&it(()=>{Y&&At(Y,z,E),Ce&&de.enter(Z),me&&En(E,null,z,"mounted")},H)},k=(E,T,M,z,H)=>{if(M&&h(E,M),z)for(let G=0;G<z.length;G++)h(E,z[G]);if(H){let G=H.subTree;if(T===G||va(G.type)&&(G.ssContent===T||G.ssFallback===T)){const se=H.vnode;k(E,se,se.scopeId,se.slotScopeIds,H.parent)}}},$=(E,T,M,z,H,G,se,te,Z=0)=>{for(let Y=Z;Y<E.length;Y++){const fe=E[Y]=te?br(E[Y]):$t(E[Y]);y(null,fe,T,M,z,H,G,se,te)}},P=(E,T,M,z,H,G,se)=>{const te=T.el=E.el;let{patchFlag:Z,dynamicChildren:Y,dirs:fe}=T;Z|=E.patchFlag&16;const ie=E.props||Ee,de=T.props||Ee;let me;if(M&&Nr(M,!1),(me=de.onVnodeBeforeUpdate)&&At(me,M,T,E),fe&&En(T,E,M,"beforeUpdate"),M&&Nr(M,!0),(ie.innerHTML&&de.innerHTML==null||ie.textContent&&de.textContent==null)&&u(te,""),Y?x(E.dynamicChildren,Y,te,M,z,zl(T,H),G):se||X(E,T,te,null,M,z,zl(T,H),G,!1),Z>0){if(Z&16)j(te,ie,de,M,H);else if(Z&2&&ie.class!==de.class&&o(te,"class",null,de.class,H),Z&4&&o(te,"style",ie.style,de.style,H),Z&8){const Ce=T.dynamicProps;for(let Fe=0;Fe<Ce.length;Fe++){const De=Ce[Fe],Ot=ie[De],pt=de[De];(pt!==Ot||De==="value")&&o(te,De,Ot,pt,H,M)}}Z&1&&E.children!==T.children&&u(te,T.children)}else!se&&Y==null&&j(te,ie,de,M,H);((me=de.onVnodeUpdated)||fe)&&it(()=>{me&&At(me,M,T,E),fe&&En(T,E,M,"updated")},z)},x=(E,T,M,z,H,G,se)=>{for(let te=0;te<T.length;te++){const Z=E[te],Y=T[te],fe=Z.el&&(Z.type===Oe||!dn(Z,Y)||Z.shapeFlag&198)?d(Z.el):M;y(Z,Y,fe,null,z,H,G,se,!0)}},j=(E,T,M,z,H)=>
vendor: 23,885 bytes, lines 15-18
15{if(T!==M){if(T!==Ee)for(const G in T)!Ps(G)&&!(G in M)&&o(E,G,T[G],null,H,z);for(const G in M){if(Ps(G))continue;const se=M[G],te=T[G];se!==te&&G!=="value"&&o(E,G,te,se,H,z)}"value"in M&&o(E,"value",T.value,M.value,H)}},O=(E,T,M,z,H,G,se,te,Z)=>{const Y=T.el=E?E.el:a(""),fe=T.anchor=E?E.anchor:a("");let{patchFlag:ie,dynamicChildren:de,slotScopeIds:me}=T;me&&(te=te?te.concat(me):me),E==null?(r(Y,M,z),r(fe,M,z),$(T.children||[],M,fe,H,G,se,te,Z)):ie>0&&ie&64&&de&&E.dynamicChildren?(x(E.dynamicChildren,de,M,H,G,se,te),(T.key!=null||H&&T===H.subTree)&&od(E,T,!0)):X(E,T,M,fe,H,G,se,te,Z)},q=(E,T,M,z,H,G,se,te,Z)=>{T.slotScopeIds=te,E==null?T.shapeFlag&512?H.ctx.activate(T,M,z,se,Z):K(T,M,z,H,G,se,Z):V(E,T,Z)},K=(E,T,M,z,H,G,se)=>{const te=E.component=_g(E,z,H);if(mi(E)&&(te.ctx.renderer=le),kg(te,!1,se),te.asyncDep){if(H&&H.registerDep(te,F,se),!E.el){const Z=te.subTree=Q(Ye);v(null,Z,T,M),E.placeholder=Z.el}}else F(te,E,T,M,H,G,se)},V=(E,T,M)=>{const z=T.component=E.component;if(q_(E,T,M))if(z.asyncDep&&!z.asyncResolved){W(z,T,M);return}else z.next=T,z.update();else T.el=E.el,z.vnode=T},F=(E,T,M,z,H,G,se)=>{const te=()=>{if(E.isMounted){let{next:ie,bu:de,u:me,parent:Ce,vnode:Fe}=E;{const jt=fg(E);if(jt){ie&&(ie.el=Fe.el,W(E,ie,se)),jt.asyncDep.then(()=>{E.isUnmounted||te()});return}}let De=ie,Ot;Nr(E,!1),ie?(ie.el=Fe.el,W(E,ie,se)):ie=Fe,de&&Cs(de),(Ot=ie.props&&ie.props.onVnodeBeforeUpdate)&&At(Ot,Ce,ie,Fe),Nr(E,!0);const pt=Zi(E),nn=E.subTree;E.subTree=pt,y(nn,pt,d(nn.el),U(nn),E,H,G),ie.el=pt.el,De===null&&al(E,pt.el),me&&it(me,H),(Ot=ie.props&&ie.props.onVnodeUpdated)&&it(()=>At(Ot,Ce,ie,Fe),H)}else{let ie;const{el:de,props:me}=T,{bm:Ce,m:Fe,parent:De,root:Ot,type:pt}=E,nn=Er(T);if(Nr(E,!1),Ce&&Cs(Ce),!nn&&(ie=me&&me.onVnodeBeforeMount)&&At(ie,De,T),Nr(E,!0),de&&je){const jt=()=>{E.subTree=Zi(E),je(de,E.subTree,E,H,null)};nn&&pt.__asyncHydrate?pt.__asyncHydrate(de,E,jt):jt()}else{Ot.ce&&Ot.ce._def.shadowRoot!==!1&&Ot.ce._injectChildStyle(pt);const jt=E.subTree=Zi(E);y(null,jt,M,z,E,H,G),T.el=jt.el}if(Fe&&it(Fe,H),!nn&&(ie=me&&me.onVnodeMounted)){const jt=T;it(()=>At(ie,De,jt),H)}(T.shapeFlag&256||De&&Er(De.vnode)&&De.vnode.shapeFlag&256)&&E.a&&it(E.a,H),E.isMounted=!0,T=M=z=null}};E.scope.on();const Z=E.effect=new la(te);E.scope.off();const Y=E.update=Z.run.bind(Z),fe=E.job=Z.runIfDirty.bind(Z);fe.i=E,fe.id=E.uid,Z.scheduler=()=>zc(fe),Nr(E,!0),Y()},W=(E,T,M)=>{T.component=E;const z=E.vnode.props;E.vnode=T,E.next=null,C_(E,T.props,z,M),A_(E,T.children,M),Zn(),df(E),er()},X=(E,T,M,z,H,G,se,te,Z=!1)=>{const Y=E&&E.children,fe=E?E.shapeFlag:0,ie=T.children,{patchFlag:de,shapeFlag:me}=T;if(de>0){if(de&128){bt(Y,ie,M,z,H,G,se,te,Z);return}else if(de&256){pe(Y,ie,M,z,H,G,se,te,Z);return}}me&8?(fe&16&&Tt(Y,H,G),ie!==Y&&u(M,ie)):fe&16?me&16?bt(Y,ie,M,z,H,G,se,te,Z):Tt(Y,H,G,!0):(fe&8&&u(M,""),me&16&&$(ie,M,z,H,G,se,te,Z))},pe=(E,T,M,z,H,G,se,te,Z)=>{E=E||Es,T=T||Es;const Y=E.length,fe=T.length,ie=Math.min(Y,fe);let de;for(de=0;de<ie;de++){const me=T[de]=Z?br(T[de]):$t(T[de]);y(E[de],me,M,null,H,G,se,te,Z)}Y>fe?Tt(E,H,G,!0,!1,ie):$(T,M,z,H,G,se,te,Z,ie)},bt=(E,T,M,z,H,G,se,te,Z)=>{let Y=0;const fe=T.length;let ie=E.length-1,de=fe-1;for(;Y<=ie&&Y<=de;){const me=E[Y],Ce=T[Y]=Z?br(T[Y]):$t(T[Y]);if(dn(me,Ce))y(me,Ce,M,null,H,G,se,te,Z);else break;Y++}for(;Y<=ie&&Y<=de;){const me=E[ie],Ce=T[de]=Z?br(T[de]):$t(T[de]);if(dn(me,Ce))y(me,Ce,M,null,H,G,se,te,Z);else break;ie--,de--}if(Y>ie){if(Y<=de){const me=de+1,Ce=me<fe?T[me].el:z;for(;Y<=de;)y(null,T[Y]=Z?br(T[Y]):$t(T[Y]),M,Ce,H,G,se,te,Z),Y++}}else if(Y>de)for(;Y<=ie;)ht(E[Y],H,G,!0),Y++;else{const me=Y,Ce=Y,Fe=new Map;for(Y=Ce;Y<=de;Y++){const Lt=T[Y]=Z?br(T[Y]):$t(T[Y]);Lt.key!=null&&Fe.set(Lt.key,Y)}let De,Ot=0;const pt=de-Ce+1;let nn=!1,jt=0;const co=new Array(pt);for(Y=0;Y<pt;Y++)co[Y]=0;for(Y=me;Y<=ie;Y++){const Lt=E[Y];if(Ot>=pt){ht(Lt,H,G,!0);continue}let wn;if(Lt.key!=null)wn=Fe.get(Lt.key);else for(De=Ce;De<=de;De++)if(co[De-Ce]===0&&dn(Lt,T[De])){wn=De;break}wn===void 0?ht(Lt,H,G,!0):(co[wn-Ce]=Y+1,wn>=jt?jt=wn:nn=!0,y(Lt,T[wn],M,null,H,G,se,te,Z),Ot++)}const rf=nn?D_(co):Es;for(De=rf.length-1,Y=pt-1;Y>=0;Y--){const Lt=Ce+Y,wn=T[Lt],sf=T[Lt+1],of=Lt+1<fe?sf.el||sf.placeholder:z;co[Y]===0?y(null,wn,M,of,H,G,se,te,Z):nn&&(De<0||Y!==rf[De]?qe(wn,M,of,2):De--)}}},qe=(E,T,M,z,H=null)=>{const{el:G,type:se,transition:te,children:Z,shapeFlag:Y}=E;if(Y&6){qe(E.component.subTree,T,M,z);return}if(Y&128){E.suspense.move(T,M,z);return}if(Y&64){se.move(E,T,M,le);return}if(se===Oe){r(G,T,M);for(let ie=0;ie<Z.length;ie++)qe(Z[ie],T,M,z);r(E.anchor,T,M);return}if(se===As){g(E,T,M);return}if(z!==2&&Y&1&&te)if(z===0)te.beforeEnter(G),r(G,T,M),it(()=>te.enter(G),H);else{const{leave:ie,delayLeave:de,afterLeave:me}=te,Ce=()=>{E.ctx.isUnmounted?s(G):r(G,T,M)},Fe=()=>{G._isLeaving&&G[zn](!0),ie(G,()=>{Ce(),me&&me()})};de?de(G,Ce,Fe):Fe()}else r(G,T,M)},ht=(E,T,M,z=!1,H=!1)=>{const{type:G,props:se,ref:te,children:Z,dynamicChildren:Y,shapeFlag:fe,patchFlag:ie,dirs:de,cacheIndex:me}=E;if(ie===-2&&(H=!1),te!=null&&(Zn(),Os(te,null,M,E,!0),er()),me!=null&&(T.renderCache[me]=void 0),fe&256){T.ctx.deactivate(E);return}const Ce=fe&1&&de,Fe=!Er(E);let De;if(Fe&&(De=se&&se.onVnodeBeforeUnmount)&&At(De,T,E),fe&6)jn(E.component,M,z);else{if(fe&128){E.suspense.unmount(M,z);return}Ce&&En(E,null,T,"beforeUnmount"),fe&64?E.type.remove(E,T,M,le,z):Y&&!Y.hasOnce&&(G!==Oe||ie>0&&ie&64)?Tt(Y,T,M,!1,!0):(G===Oe&&ie&384||!H&&fe&16)&&Tt(Z,T,M),z&&bn(E)}(Fe&&(De=se&&se.onVnodeUnmounted)||Ce)&&it(()=>{De&&At(De,T,E),Ce&&En(E,null,T,"unmounted")},M)},bn=E=>{const{type:T,el:M,anchor:z,transition:H}=E;if(T===Oe){ar(M,z);return}if(T===As){_(E);return}const G=()=>{s(M),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(E.shapeFlag&1&&H&&!H.persisted){const{leave:se,delayLeave:te}=H,Z=()=>se(M,G);te?te(E.el,G,Z):Z()}else G()},ar=(E,T)=>{let M;for(;E!==T;)M=f(E),s(E),E=M;s(T)},jn=(E,T,M)=>{const{bum:z,scope:H,job:G,subTree:se,um:te,m:Z,a:Y}=E;ya(Z),ya(Y),z&&Cs(z),H.stop(),G&&(G.flags|=8,ht(se,E,T,M)),te&&it(te,T),it(()=>{E.isUnmounted=!0},T)},Tt=(E,T,M,z=!1,H=!1,G=0)=>{for(let se=G;se<E.length;se++)ht(E[se],T,M,z,H)},U=E=>{if(E.shapeFlag&6)return U(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const T=f(E.anchor||E.el),M=T&&T[jm];return M?f(M):T};let re=!1;const ee=(E,T,M)=>{E==null?T._vnode&&ht(T._vnode,null,null,!0):y(T._vnode||null,E,T,null,null,null,M),T._vnode=E,re||(re=!0,df(),pa(),re=!1)},le={p:y,um:ht,m:qe,r:bn,mt:K,mc:$,pc:X,pbc:x,n:U,o:e};let Pe,je;return t&&([Pe,je]=t(le)),{render:ee,hydrate:Pe,createApp:x_(ee,Pe)}}function zl({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 Nr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function od(e,t,n=!1){const r=e.children,s=t.children;if(ce(r)&&ce(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=br(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&od(i,a)),a.type===zr&&a.patchFlag!==-1&&(a.el=i.el),a.type===Ye&&!a.el&&(a.el=i.el)}}function D_(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function fg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fg(t)}function ya(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const N_=Symbol.for("v-scx"),j_=()=>tt(N_);function at(e,t){return gi(e,null,t)}function L_(e,t){return gi(e,null,{flush:"post"})}function M_(e,t){return gi(e,null,{flush:"sync"})}function ge(e,t,n){return gi(e,t,n)}function gi(e,t,n=Ee){const{immediate:r,deep:s,flush:o,once:i}=n,a=Be({},n),l=t&&r||!t&&o!=="post";let c;if(js){if(o==="sync"){const h=j_();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Yt,h.resume=Yt,h.pause=Yt,h}}const u=ct;a.call=(h,m,y)=>mn(h,u,m,y);let d=!1;o==="post"?a.scheduler=h=>{it(h,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(h,m)=>{m?h():zc(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const f=Ww(e,t,a);return js&&(c?c.push(f):l&&f()),f}function B_(e,t,n){const r=this.proxy,s=Ve(e)?e.includes(".")?hg(r,e):()=>r[e]:e.bind(r,r);let o;he(t)?o=t:(o=t.handler,n=t);const i=Jr(this),a=gi(s,o.bind(r),n);return i(),a}function hg(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function G6(e,t,n=Ee){const r=et(),s=lt(t),o=Dt(t),i=pg(e,s),a=Tm((l,c)=>{let u,d=Ee,f;return M_(()=>{const h=e[s];xt(u,h)&&(u=h,c())}),{get(){return l(),n.get?n.get(u):u},set(h){const m=n.set?n.set(h):h;if(!xt(m,u)&&!(d!==Ee&&xt(h,d)))return;const y=r.vnode.props;y&&(t in y||s in y||o in y)&&(`onUpdate:${t}`in y||`onUpdate:${s}`in y||`onUpdate:${o}`in y)||(u=h,c()),r.emit(`update:${t}`,m),xt(h,m)&&xt(h,d)&&!xt(m,f)&&c(),d=h,f=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Ee:a,done:!1}:{done:!0}}}},a}const pg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lt(t)}Modifiers`]||e[`${Dt(t)}Modifiers`];function F_(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ee;let s=n;const o=t.startsWith("update:"),i=o&&pg(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Ve(u)?u.trim():u)),i.number&&(s=n.map(ia)));let a,l=r[a=Eo(t)]||r[a=Eo(lt(t))];!l&&o&&(l=r[a=Eo(Dt(t))]),l&&mn(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mn(c,e,6,s)}}function mg(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!he(e)){const l=c=>{const u=mg(c,t,!0);u&&(a=!0,Be(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Le(e)&&r.set(e,null),null):(ce(o)?o.forEach(l=>i[l]=null):Be(i,o),Le(e)&&r.set(e,i),i)}function il(e,t){return!e||!di(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,Dt(t))||$e(e,t))}function Zi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:m,inheritAttrs:y}=e,b=Vo(e);let v,w;try{if(n.shapeFlag&4){const _=s||r,S=_;v=$t(c.call(S,_,u,d,h,f,m)),w=a}else{const _=t;v=$t(_.length>1?_(d,{attrs:a,slots:i,emit:l}):_(d,null)),w=t.props?a:H_(a)}}catch(_){Oo.length=0,Gs(_,e,1),v=Q(Ye)}let g=v;if(w&&y!==!1){const _=Object.keys(w),{shapeFlag:S}=g;_.length&&S&7&&(o&&_.some(Mc)&&(w=V_(w,o)),g=Rn(g,w,!1,!0))}return n.dirs&&(g=Rn(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&Cr(g,n.transition),v=g,Vo(b),v}function U_(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Tr(s)){if(s.type!==Ye||s.children==="v-if"){if(n)return;n=s}}else return}return n}const H_=e=>{let t;for(const n in e)(n==="class"||n==="style"||di(n))&&((t||(t={}))[n]=e[n]);return t},V_=(e,t)=>{const n={};for(const r in e)(!Mc(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function q_(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?xf(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(i[f]!==r[f]&&!il(c,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?xf(r,i,c):!0:!!i;return!1}function xf(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!il(n,o))return!0}return!1}function al({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const va=e=>e.__isSuspense;let Iu=0;const K_={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,c){if(e==null)W_(t,n,r,s,o,i,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}z_(e,t,n,r,s,i,a,l,c)}},hydrate:G_,normalize:J_},id=K_;function Wo(e,t){const n=e.props&&e.props[t];he(n)&&n()}function W_(e,t,n,r,s,o,i,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=gg(e,s,r,t,d,n,o,i,a,l);c(null,f.pendingBranch=e.ssContent,d,null,r,f,o,i),f.deps>0?(Wo(e,"onPending"),Wo(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),Rs(f,e.ssFallback)):f.resolve(!1,!0)}function z_(e,t,n,r,s,o,i,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:b,isHydrating:v}=d;if(y)d.pendingBranch=f,dn(f,y)?(l(y,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0?d.resolve():b&&(v||(l(m,h,n,r,s,null,o,i,a),Rs(d,h)))):(d.pendingId=Iu++,v?(d.isHydrating=!1,d.activeBranch=y):c(y,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),b?(l(null,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0?d.resolve():(l(m,h,n,r,s,null,o,i,a),Rs(d,h))):m&&dn(f,m)?(l(m,f,n,r,s,d,o,i,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0&&d.resolve()));else if(m&&dn(f,m))l(m,f,n,r,s,d,o,i,a),Rs(d,f);else if(Wo(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Iu++,l(null,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0)d.resolve();else{const{timeout:w,pendingId:g}=d;w>0?setTimeout(()=>{d.pendingId===g&&d.fallback(h)},w):w===0&&d.fallback(h)}}function gg(e,t,n,r,s,o,i,a,l,c,u=!1){const{p:d,m:f,um:h,n:m,o:{parentNode:y,remove:b}}=c;let v;const w=Y_(e);w&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const g=e.props?aa(e.props.timeout):void 0,_=o,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Iu++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(C=!1,k=!1){const{vnode:$,activeBranch:P,pendingBranch:x,pendingId:j,effects:O,parentComponent:q,container:K}=S;let V=!1;S.isHydrating?S.isHydrating=!1:C||(V=P&&x.transition&&x.transition.mode==="out-in",V&&(P.transition.afterLeave=()=>{j===S.pendingId&&(f(x,K,o===_?m(P):o,0),ha(O))}),P&&(y(P.el)===K&&(o=m(P)),h(P,q,S,!0)),V||f(x,K,o,0)),Rs(S,x),S.pendingBranch=null,S.isInFallback=!1;let F=S.parent,W=!1;for(;F;){if(F.pendingBranch){F.effects.push(...O),W=!0;break}F=F.parent}!W&&!V&&ha(O),S.effects=[],w&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!k&&t.resolve()),Wo($,"onResolve")},fallback(C){if(!S.pendingBranch)return;const{vnode:k,activeBranch:$,parentComponent:P,container:x,namespace:j}=S;Wo(k,"onFallback");const O=m($),q=()=>{S.isInFallback&&(d(null,C,x,O,P,null,j,a,l),Rs(S,C))},K=C.transition&&C.transition.mode==="out-in";K&&($.transition.afterLeave=q),S.isInFallback=!0,h($,P,null,!0),K||q()},move(C,k,$){S.activeBranch&&f(S.activeBranch,C,k,$),S.container=C},next(){return S.activeBranch&&m(S.activeBranch)},registerDep(C,k,$){const P=!!S.pendingBranch;P&&S.deps++;const x=C.vnode.el;C.asyncDep.catch(j=>{Gs(j,C,0)}).then(j=>{if(C.isUnmounted||S.isUnmounted||S.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:O}=C;ju(C,j,!1),x&&(O.el=x);const q=!x&&C.subTree.el;k(C,O,y(x||C.subTree.el),x?null:m(C.subTree),S,i,$),q&&b(q),al(C,O.el),P&&--S.deps===0&&S.resolve()})},unmount(C,k){S.isUnmounted=!0,S.activeBranch&&h(S.activeBranch,n,C,k),S.pendingBranch&&h(S.pendingBranch,n,C,k)}};return S}function G_(e,t,n,r,s,o,i,a,l){const c=t.suspense=gg(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),u}function J_(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Pf(r?n.default:n),e.ssFallback=r?Pf(n.fallback):Q(Ye)}function Pf(e){let t;if(he(e)){const n=Gr&&e._c;n&&(e._d=!1,A()),e=e(),n&&(e._d=!0,t=vt,vg())}return ce(e)&&(e=U_(e)),e=$t(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function yg(e,t){t&&t.pendingBranch?ce(e)?t.effects.push(...e):t.effects.push(e):ha(e)}function Rs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,al(r,s))}function Y_(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Oe=Symbol.for("v-fgt"),zr=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),As=Symbol.for("v-stc"),Oo=[];let vt=null;function A(e=!1){Oo.push(vt=e?null:[])}function vg(){Oo.pop(),vt=Oo[Oo.length-1]||null}let Gr=1;function Cf(e,t=!1){Gr+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function bg(e){return e.dynamicChildren=Gr>0?vt||Es:null,vg(),Gr>0&&vt&&vt.push(e),e}function ke(e,t,n,r,s,o){return bg(Te(e,t,n,r,s,o,!0))}function N(e,t,n,r,s){return bg(Q(e,t,n,r,s,!0))}function Tr(e){return e?e.__v_isVNode===!0:!1}function dn(e,t){return e.type===t.type&&e.key===t.key}function J6(e){}const wg=({key:e})=>e??null,ea=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Ne(e)||he(e)?{i:dt,r:e,k:t,f:!!n}:e:null);function Te(e,t=null,n=null,r=0,s=null,o=e===Oe?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wg(t),ref:t&&ea(t),scopeId:rl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:dt};return a?(ad(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ve(n)?8:16),Gr>0&&!i&&vt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&vt.push(l),l}const Q=X_;function X_(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Ym)&&(e=Ye),Tr(e)){const a=Rn(e,t,!0);return n&&ad(a,n),Gr>0&&!o&&vt&&(a.shapeFlag&6?vt[vt.indexOf(e)]=a:vt.push(a)),a.patchFlag=-2,a}if(r0(e)&&(e=e.__vccOpts),t){t=Qe(t);let{class:a,style:l}=t;a&&!Ve(a)&&(t.class=Ir(a)),Le(l)&&(Wc(l)&&!ce(l)&&(l=Be({},l)),t.style=Kt(l))}const i=Ve(e)?1:va(e)?128:Lm(e)?64:Le(e)?4:he(e)?2:0;return Te(e,t,n,r,s,i,o,!0)}function Qe(e){return e?Wc(e)||sg(e)?Be({},e):e:null}function Rn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?ne(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&wg(c),ref:t&&t.ref?n&&o?ce(o)?o.concat(ea(t)):[o,ea(t)]:ea(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rn(e.ssContent),ssFallback:e.ssFallback&&Rn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Cr(u,l.clone(u)),u}function An(e=" ",t=0){return Q(zr,null,e,t)}function Q_(e,t){const n=Q(As,null,e);return n.staticCount=t,n}function Ge(e="",t=!1){return t?(A(),N(Ye,null,e)):Q(Ye,null,e)}function $t(e){return e==null||typeof e=="boolean"?Q(Ye):ce(e)?Q(Oe,null,e.slice()):Tr(e)?br(e):Q(zr,null,String(e))}function br(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rn(e)}function ad(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ce(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ad(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!sg(t)?t._ctx=dt:s===3&&dt&&(dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:dt},n=32):(t=String(t),r&64?(n=16,t=[An(t)]):n=8);e.children=t,e.shapeFlag|=n}function ne(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Ir([t.class,r.class]));else if(s==="style")t.style=Kt([t.style,r.style]);else if(di(s)){const o=t[s],i=r[s];i&&o!==i&&!(ce(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function At(e,t,n,r=null){mn(e,t,7,[n,r])}const Z_=tg();let e0=0;function _g(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Z_,o={uid:e0++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new cm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ig(r,s),emitsOptions:mg(r,s),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:r.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,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=F_.bind(null,o),e.ce&&e.ce(o),o}let ct=null;const et=()=>ct||dt;let ba,Du;{const e=Ga(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};ba=t("__VUE_INSTANCE_SETTERS__",n=>ct=n),Du=t("__VUE_SSR_SETTERS__",n=>js=n)}const Jr=e=>{const t=ct;return ba(e),e.scope.on(),()=>{e.scope.off(),ba(t)}},Nu=()=>{ct&&ct.scope.off(),ba(null)};function Sg(e){return e.vnode.shapeFlag&4}let js=!1;function kg(e,t=!1,n=!1){t&&Du(t);const{props:r,children:s}=e.vnode,o=Sg(e);P_(e,r,o,t),R_(e,s,n||t);const i=o?t0(e,t):void 0;return t&&Du(!1),i}function t0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ou);const{setup:r}=n;if(r){Zn();const s=e.setupContext=r.length>1?xg(e):null,o=Jr(e),i=pi(r,e,0,[e.props,s]),a=Fc(i);if(er(),o(),(a||e.sp)&&!Er(e)&&Yc(e),a){if(i.then(Nu,Nu),t)return i.then(l=>{ju(e,l,t)}).catch(l=>{Gs(l,e,0)});e.asyncDep=i}else ju(e,i,t)}else Eg(e,t)}function ju(e,t,n){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Le(t)&&(e.setupState=Cm(t)),Eg(e,n)}let wa,Lu;function Y6(e){wa=e,Lu=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,v_))}}const X6=()=>!wa;function Eg(e,t,n){const r=e.type;if(!e.render){if(!t&&wa&&!r.render){const s=r.template||td(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Be(Be({isCustomElement:o,delimiters:a},i),l);r.render=wa(s,c)}}e.render=r.render||Yt,Lu&&Lu(e)}{const s=Jr(e);Zn();try{b_(e)}finally{er(),s()}}}const n0={get(e,t){return yt(e,"get",""),e[t]}};function xg(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,n0),slots:e.slots,emit:e.emit,expose:t}}function yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cm(tl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in To)return To[n](e)},has(t,n){return n in t||n in To}})):e.proxy}function Mu(e,t=!0){return he(e)?e.displayName||e.name:e.name||t&&e.__name}function r0(e){return he(e)&&"__vccOpts"in e}const B=(e,t)=>qw(e,t,js);function ze(e,t,n){const r=arguments.length;return r===2?Le(t)&&!ce(t)?Tr(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Tr(n)&&(n=[n]),Q(e,t,n))}function Q6(){}function Z6(e,t,n,r){const s=n[r];if(s&&s0(s,e))return s;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function s0(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(xt(n[r],t[r]))return!1;return Gr>0&&vt&&vt.push(e),!0}const Pg="3.5.20",eN=Yt,tN=Jw,nN=ys,rN=Dm,o0={createComponentInstance:_g,setupComponent:kg,renderComponentRoot:Zi,setCurrentRenderingInstance:Vo,isVNode:Tr,normalizeVNode:$t,getComponentPublicInstance:yi,ensureValidVNode:ed,pushWarningContext:zw,popWarningContext:Gw},sN=o0,oN=null,iN=null,aN=null;/**
16* @vue/runtime-dom v3.5.20
17* (c) 2018-present Yuxi (Evan) You and Vue contributors
18* @license MIT
19**/let Bu;const Tf=typeof window<"u"&&window.trustedTypes;if(Tf)try{Bu=Tf.createPolicy("vue",{createHTML:e=>e})}catch{}const Cg=Bu?e=>Bu.createHTML(e):e=>e,i0="http://www.w3.org/2000/svg",a0="http://www.w3.org/1998/Math/MathML",Kn=typeof document<"u"?document:null,Of=Kn&&Kn.createElement("template"),l0={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Kn.createElementNS(i0,e):t==="mathml"?Kn.createElementNS(a0,e):n?Kn.createElement(e,{is:n}):Kn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Kn.createTextNode(e),createComment:e=>Kn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Of.innerHTML=Cg(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Of.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},lr="transition",ho="animation",Ls=Symbol("_vtc"),Tg={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},Og=Be({},Um,Tg),u0=e=>(e.displayName="Transition",e.props=Og,e),Rg=u0((e,{slots:t})=>ze(e_,Ag(e),t)),jr=(e,t=[])=>{ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rf=e=>e?ce(e)?e.some(t=>t.length>1):e.length>1:!1;function Ag(e){const t={};for(const O in e)O in Tg||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=c0(s),y=m&&m[0],b=m&&m[1],{onBeforeEnter:v,onEnter:w,onEnterCancelled:g,onLeave:_,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:k=w,onAppearCancelled:$=g}=t,P=(O,q,K,V)=>{O._enterCancelled=V,hr(O,q?u:a),hr(O,q?c:i),K&&K()},x=(O,q)=>{O._isLeaving=!1,hr(O,d),hr(O,h),hr(O,f),q&&q()},j=O=>(q,K)=>{const V=O?k:w,F=()=>P(q,O,K);jr(V,[q,F]),Af(()=>{hr(q,O?l:o),_n(q,O?u:a),Rf(V)||$f(q,r,y,F)})};return Be(t,{onBeforeEnter(O){jr(v,[O]),_n(O,o),_n(O,i)},onBeforeAppear(O){jr(C,[O]),_n(O,l),_n(O,c)},onEnter:j(!1),onAppear:j(!0),onLeave(O,q){O._isLeaving=!0;const K=()=>x(O,q);_n(O,d),O._enterCancelled?(_n(O,f),Fu()):(Fu(),_n(O,f)),Af(()=>{O._isLeaving&&(hr(O,d),_n(O,h),Rf(_)||$f(O,r,b,K))}),jr(_,[O,K])},onEnterCancelled(O){P(O,!1,void 0,!0),jr(g,[O])},onAppearCancelled(O){P(O,!0,void 0,!0),jr($,[O])},onLeaveCancelled(O){x(O),jr(S,[O])}})}function c0(e){if(e==null)return null;if(Le(e))return[Gl(e.enter),Gl(e.leave)];{const t=Gl(e);return[t,t]}}function Gl(e){return aa(e)}function _n(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ls]||(e[Ls]=new Set)).add(t)}function hr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ls];n&&(n.delete(t),n.size||(e[Ls]=void 0))}function Af(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let d0=0;function $f(e,t,n,r){const s=e._endId=++d0,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=$g(e,t);if(!i)return r();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,f)}function $g(e,t){const n=window.getComputedStyle(e),r=m=>(n[m]||"").split(", "),s=r(`${lr}Delay`),o=r(`${lr}Duration`),i=If(s,o),a=r(`${ho}Delay`),l=r(`${ho}Duration`),c=If(a,l);let u=null,d=0,f=0;t===lr?i>0&&(u=lr,d=i,f=o.length):t===ho?c>0&&(u=ho,d=c,f=l.length):(d=Math.max(i,c),u=d>0?i>c?lr:ho:null,f=u?u===lr?o.length:l.length:0);const h=u===lr&&/\b(transform|all)(,|$)/.test(r(`${lr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function If(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Df(n)+Df(e[r])))}function Df(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fu(){return document.body.offsetHeight}
vendor: 14,197 bytes, line 19
19function f0(e,t,n){const r=e[Ls];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const _a=Symbol("_vod"),Ig=Symbol("_vsh"),Dg={name:"show",beforeMount(e,{value:t},{transition:n}){e[_a]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):po(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),po(e,!0),r.enter(e)):r.leave(e,()=>{po(e,!1)}):po(e,t))},beforeUnmount(e,{value:t}){po(e,t)}};function po(e,t){e.style.display=t?e[_a]:"none",e[Ig]=!t}function h0(){Dg.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ng=Symbol("");function lN(e){const t=et();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Sa(o,s))},r=()=>{const s=e(t.proxy);t.ce?Sa(t.ce,s):Uu(t.subTree,s),n(s)};Xc(()=>{ha(r)}),_e(()=>{ge(r,Yt,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),Nt(()=>s.disconnect())})}function Uu(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Uu(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Sa(e.el,t);else if(e.type===Oe)e.children.forEach(n=>Uu(n,t));else if(e.type===As){let{el:n,anchor:r}=e;for(;n&&(Sa(n,t),n!==r);)n=n.nextSibling}}function Sa(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const o=vw(t[s]);n.setProperty(`--${s}`,o),r+=`--${s}: ${o};`}n[Ng]=r}}const p0=/(^|;)\s*display\s*:/;function m0(e,t,n){const r=e.style,s=Ve(n);let o=!1;if(n&&!s){if(t)if(Ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ta(r,a,"")}else for(const i in t)n[i]==null&&ta(r,i,"");for(const i in n)i==="display"&&(o=!0),ta(r,i,n[i])}else if(s){if(t!==n){const i=r[Ng];i&&(n+=";"+i),r.cssText=n,o=p0.test(n)}}else t&&e.removeAttribute("style");_a in e&&(e[_a]=o?r.display:"",e[Ig]&&(r.display="none"))}const Nf=/\s*!important$/;function ta(e,t,n){if(ce(n))n.forEach(r=>ta(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=g0(e,t);Nf.test(n)?e.setProperty(Dt(r),n.replace(Nf,""),"important"):e[r]=n}}const jf=["Webkit","Moz","ms"],Jl={};function g0(e,t){const n=Jl[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return Jl[t]=r;r=za(r);for(let s=0;s<jf.length;s++){const o=jf[s]+r;if(o in e)return Jl[t]=o}return t}const Lf="http://www.w3.org/1999/xlink";function Mf(e,t,n,r,s,o=gw(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Lf,t.slice(6,t.length)):e.setAttributeNS(Lf,t,n):n==null||o&&!am(n)?e.removeAttribute(t):e.setAttribute(t,o?"":pn(n)?String(n):n)}function Bf(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Cg(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=am(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Yn(e,t,n,r){e.addEventListener(t,n,r)}function y0(e,t,n,r){e.removeEventListener(t,n,r)}const Ff=Symbol("_vei");function v0(e,t,n,r,s=null){const o=e[Ff]||(e[Ff]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=b0(t);if(r){const c=o[t]=S0(r,s);Yn(e,a,c,l)}else i&&(y0(e,a,i,l),o[t]=void 0)}}const Uf=/(?:Once|Passive|Capture)$/;function b0(e){let t;if(Uf.test(e)){t={};let r;for(;r=e.match(Uf);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Dt(e.slice(2)),t]}let Yl=0;const w0=Promise.resolve(),_0=()=>Yl||(w0.then(()=>Yl=0),Yl=Date.now());function S0(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mn(k0(r,n.value),t,5,[r])};return n.value=e,n.attached=_0(),n}function k0(e,t){if(ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Hf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,E0=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?f0(e,r,i):t==="style"?m0(e,n,r):di(t)?Mc(t)||v0(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):x0(e,t,r,i))?(Bf(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mf(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ve(r))?Bf(e,lt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Mf(e,t,r,i))};function x0(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hf(t)&&he(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Hf(t)&&Ve(n)?!1:t in e}const Vf={};/*! #__NO_SIDE_EFFECTS__ */function P0(e,t,n){const r=D(e,t);Ka(r)&&Be(r,t);class s extends ld{constructor(i){super(r,i,n)}}return s.def=r,s}const uN=(e,t)=>P0(e,t,Wg),C0=typeof HTMLElement<"u"?HTMLElement:class{};class ld extends C0{constructor(t,n={},r=Vu){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Vu?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof ld){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Re(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:i}=r;let a;if(o&&!ce(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=aa(this._props[l])),(a||(a=Object.create(null)))[lt(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(i),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)$e(this,r)||Object.defineProperty(this,r,{get:()=>p(n[r])})}_resolveProps(t){const{props:n}=t,r=ce(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(lt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Vf;const s=lt(t);n&&this._numberProps&&this._numberProps[s]&&(r=aa(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(n===Vf?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const o=this._ob;o&&o.disconnect(),n===!0?this.setAttribute(Dt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Dt(t),n+""):n||this.removeAttribute(Dt(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),U0(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Q(this._def,Be(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(o,i)=>{this.dispatchEvent(new CustomEvent(o,Ka(i[0])?Be({detail:i},i[0]):{detail:i}))};r.emit=(o,...i)=>{s(o,i),Dt(o)!==o&&s(Dt(o),i)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[s],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],o=s.getAttribute("name")||"default",i=this._slots[o],a=s.parentNode;if(i)for(const l of i){if(n&&l.nodeType===1){const c=n+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function T0(e){const t=et(),n=t&&t.ce;return n||null}function cN(){const e=T0();return e&&e.shadowRoot}function dN(e="$style"){{const t=et();if(!t)return Ee;const n=t.type.__cssModules;if(!n)return Ee;const r=n[e];return r||Ee}}const jg=new WeakMap,Lg=new WeakMap,ka=Symbol("_moveCb"),qf=Symbol("_enterCb"),O0=e=>(delete e.props.mode,e),R0=O0({name:"TransitionGroup",props:Be({},Og,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=et(),r=Fm();let s,o;return ol(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!D0(s[0].el,n.vnode.el,i)){s=[];return}s.forEach(A0),s.forEach($0);const a=s.filter(I0);Fu(),a.forEach(l=>{const c=l.el,u=c.style;_n(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ka]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[ka]=null,hr(c,i))};c.addEventListener("transitionend",d)}),s=[]}),()=>{const i=Se(e),a=Ag(i);let l=i.tag||Oe;if(s=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(s.push(u),Cr(u,qo(u,a,r,n)),jg.set(u,u.el.getBoundingClientRect()))}o=t.default?Jc(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&Cr(u,qo(u,a,r,n))}return Q(l,null,o)}}}),fN=R0;function A0(e){const t=e.el;t[ka]&&t[ka](),t[qf]&&t[qf]()}function $0(e){Lg.set(e,e.el.getBoundingClientRect())}function I0(e){const t=jg.get(e),n=Lg.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function D0(e,t,n){const r=e.cloneNode(),s=e[Ls];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=$g(r);return o.removeChild(r),i}const Or=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ce(t)?n=>Cs(t,n):t};function N0(e){e.target.composing=!0}function Kf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qt=Symbol("_assign"),Hu={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Qt]=Or(s);const o=r||s.props&&s.props.type==="number";Yn(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ia(a)),e[Qt](a)}),n&&Yn(e,"change",()=>{e.value=e.value.trim()}),t||(Yn(e,"compositionstart",N0),Yn(e,"compositionend",Kf),Yn(e,"change",Kf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[Qt]=Or(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ia(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Mg={deep:!0,created(e,t,n){e[Qt]=Or(n),Yn(e,"change",()=>{const r=e._modelValue,s=Ms(e),o=e.checked,i=e[Qt];if(ce(r)){const a=Ja(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const c=[...r];c.splice(a,1),i(c)}}else if(Xr(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(Ug(e,o))})},mounted:Wf,beforeUpdate(e,t,n){e[Qt]=Or(n),Wf(e,t,n)}};function Wf(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(ce(t))s=Ja(t,r.props.value)>-1;else if(Xr(t))s=t.has(r.props.value);else{if(t===n)return;s=xr(t,Ug(e,!0))}e.checked!==s&&(e.checked=s)}const Bg={created(e,{value:t},n){e.checked=xr(t,n.props.value),e[Qt]=Or(n),Yn(e,"change",()=>{e[Qt](Ms(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Qt]=Or(r),t!==n&&(e.checked=xr(t,r.props.value))}},Fg={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Xr(t);Yn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ia(Ms(i)):Ms(i));e[Qt](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Re(()=>{e._assigning=!1})}),e[Qt]=Or(r)},mounted(e,{value:t}){zf(e,t)},beforeUpdate(e,t,n){e[Qt]=Or(n)},updated(e,{value:t}){e._assigning||zf(e,t)}};function zf(e,t){const n=e.multiple,r=ce(t);if(!(n&&!r&&!Xr(t))){for(let s=0,o=e.options.length;s<o;s++){const i=e.options[s],a=Ms(i);if(n)if(r){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(c=>
vendor: 2,089 bytes, line 19
19String(c)===String(a)):i.selected=Ja(t,a)>-1}else i.selected=t.has(a);else if(xr(Ms(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ms(e){return"_value"in e?e._value:e.value}function Ug(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const j0={created(e,t,n){ji(e,t,n,null,"created")},mounted(e,t,n){ji(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ji(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ji(e,t,n,r,"updated")}};function Hg(e,t){switch(e){case"SELECT":return Fg;case"TEXTAREA":return Hu;default:switch(t){case"checkbox":return Mg;case"radio":return Bg;default:return Hu}}}function ji(e,t,n,r,s){const i=Hg(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,r)}function L0(){Hu.getSSRProps=({value:e})=>({value:e}),Bg.getSSRProps=({value:e},t)=>{if(t.props&&xr(t.props.value,e))return{checked:!0}},Mg.getSSRProps=({value:e},t)=>{if(ce(e)){if(t.props&&Ja(e,t.props.value)>-1)return{checked:!0}}else if(Xr(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},j0.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Hg(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const M0=["ctrl","shift","alt","meta"],B0={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)=>M0.some(n=>e[`${n}Key`]&&!t.includes(n))},We=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i<t.length;i++){const a=B0[t[i]];if(a&&a(s,t))return}return e(s,...o)})},F0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ft=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Dt(s.key);if(t.some(i=>i===o||F0[i]===o))return e(s)})},Vg=Be({patchProp:E0}
19,l0);let Ro,Gf=!1;function qg(){return Ro||(Ro=$_(Vg))}function Kg(){return Ro=Gf?Ro:I_(Vg),Gf=!0,Ro}const U0=(...e)=>{qg().render(...e)},hN=(...e)=>{Kg().hydrate(...e)},Vu=(...e)=>{const t=qg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gg(r);if(!s)return;const o=t._component;!he(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,zg(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Wg=(...e)=>{const t=Kg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gg(r);if(s)return n(s,!0,zg(s))},t};function zg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gg(e){return Ve(e)?document.querySelector(e):e}let Jf=!1;const pN=()=>{Jf||(Jf=!0,L0(),h0())},H0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,V0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,q0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function K0(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){W0(e);return}return t}function W0(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ea(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!q0.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(H0.test(e)||V0.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,K0)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const z0=/#/g,G0=/&/g,J0=/\//g,Y0=/=/g,ud=/\+/g,X0=/%5e/gi,Q0=/%60/gi,Z0=/%7c/gi,e1=/%20/gi;function t1(e){return encodeURI(""+e).replace(Z0,"|")}function qu(e){return t1(typeof e=="string"?e:JSON.stringify(e)).replace(ud,"%2B").replace(e1,"+").replace(z0,"%23").replace(G0,"%26").replace(Q0,"`").replace(X0,"^").replace(J0,"%2F")}function Xl(e){return qu(e).replace(Y0,"%3D")}function xa(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function n1(e){return xa(e.replace(ud," "))}function r1(e){return xa(e.replace(ud," "))}function s1(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=n1(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=r1(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function o1(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Xl(e)}=${qu(n)}`).join("&"):`${Xl(e)}=${qu(t)}`:Xl(e)}function i1(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>o1(t,e[t])).filter(Boolean).join("&")}const a1=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,l1=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,u1=/^([/\\]\s*){2,}[^/\\]/,c1=/^[\s\0]*(blob|data|javascript|vbscript):$/i,d1=/\/$|\/\?|\/#/,f1=/^\.?\//;function Ys(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?a1.test(e):l1.test(e)||(t.acceptRelative?u1.test(e):!1)}function h1(e){return!!e&&c1.test(e)}function Ku(e="",t){return t?d1.test(e):e.endsWith("/")}function Jg(e="",t){if(!t)return(Ku(e)?e.slice(0,-1):e)||"/";if(!Ku(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Wu(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ku(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function p1(e=""){return e.startsWith("/")}function Yf(e=""){return p1(e)?e:"/"+e}function m1(e,t){if(Xg(t)||Ys(e))return e;const n=Jg(t);return e.startsWith(n)?e:Qg(n,e)}function Xf(e,t){if(Xg(t))return e;const n=Jg(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Yg(e,t){const n=v1(e),r={...s1(n.search),...t};return n.search=i1(r),b1(n)}function Xg(e){return!e||e==="/"}function g1(e){return e&&e!=="/"}function Qg(e,...t){let n=e||"";for(const r of t.filter(s=>g1(s)))if(n){const s=r.replace(f1,"");n=Wu(n)+s}else n=r;return n}function Zg(...e){var i,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[d,f]of u.split(t).entries())if(!(!f||f===".")){if(f===".."){if(r.length===1&&Ys(r[0]))continue;r.pop(),s--;continue}if(d===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+f;continue}r.push(f),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(c=n[n.length-1])!=null&&c.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function y1(e,t,n={}){return n.trailingSlash||(e=Wu(e),t=Wu(t)),n.leadingSlash||(e=Yf(e),t=Yf(t)),n.encoding||(e=xa(e),t=xa(t)),e===t}const ey=Symbol.for("ufo:protocolRelative");function v1(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Ys(e,{acceptRelative:!0}))return Qf(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Qf(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[ey]:!r}}function Qf(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function b1(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?""
19:"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[ey]?(e.protocol||"")+"//":"")+s+o+t+n+r}let w1=class extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}};function _1(e){var l,c,u,d,f;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((d=e.options)==null?void 0:d.method)||"GET",r=((f=e.request)==null?void 0:f.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new w1(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,m]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[m]}});return a}const S1=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Zf(e="GET"){return S1.has(e.toUpperCase())}function k1(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const E1=new Set(["image/svg","application/xml","application/xhtml","application/html"]),x1=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function P1(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return x1.test(t)?"json":E1.has(t)||t.startsWith("text/")?"text":"blob"}function C1(e,t,n,r){const s=T1((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function T1(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function Li(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const O1=new Set([408,409,425,429,500,502,503,504]),R1=new Set([101,204,205,304]);function ty(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=Zf(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):O1.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),o(a.request,{...a.options,retry:u-1})}}const c=_1(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(l,c={}){const u={request:l,options:C1(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Li(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=m1(u.request,u.options.baseURL)),u.options.query&&(u.request=Yg(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&Zf(u.options.method)&&(k1(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let d;if(!u.options.signal&&u.options.timeout){const h=new r;d=setTimeout(()=>{const m=new Error("[TimeoutError]: The operation was aborted due to timeout");m.name="TimeoutError",m.code=23,h.abort(m)},u.options.timeout),u.options.signal=h.signal}try{u.response=await t(u.request,u.options)}catch(h){return u.error=h,u.options.onRequestError&&await Li(u,u.options.onRequestError),await s(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!R1.has(u.response.status)&&u.options.method!=="HEAD"){const h=(u.options.parseResponse?"json":u.options.responseType)||P1(u.response.headers.get("content-type")||"");switch(h){case"json":{const m=await u.response.text(),y=u.options.parseResponse||Ea;u.response._data=y(m);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[h]()}}return u.options.onResponse&&await Li(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Li(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,c){return(await o(l,c))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>ty({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Pa=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),A1=Pa.fetch?(...e)=>Pa.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),$1=Pa.Headers,I1=Pa.AbortController,D1=ty({fetch:A1,Headers:$1,AbortController:I1}),N1=D1,j1=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Ca=j1().app,L1=()=>Ca.baseURL,M1=()=>Ca.buildAssetsDir,cd=(...e)=>Zg(ny(),M1(),...e),ny=(...e)=>{const t=Ca.cdnURL||Ca.baseURL;return e.length?Zg(t,...e):t};globalThis.__buildAssetsURL=cd,globalThis.__publicAssetsURL=ny;globalThis.$fetch||(globalThis.$fetch=N1.create({baseURL:L1()}));function zu(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?zu(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const B1={run:e=>e()},F1=()=>B1,ry=typeof console.createTask<"u"?console.createTask:F1;function U1(e,t){const n=t.shift(),r=ry(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function H1(e,t){const n=t.shift(),r=ry(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Ql(e,t){for(const n of[...e])n(t)}class V1{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=zu(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=zu(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(U1,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(H1,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;
19this._before&&Ql(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&Ql(this._after,s)}):(this._after&&s&&Ql(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function sy(){return new V1}function q1(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;Gu.add(c);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{Gu.delete(c)}}}}function K1(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=q1({...e,...r})),t[n]}}}const Ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},eh="__unctx__",W1=Ta[eh]||(Ta[eh]=K1()),z1=(e,t={})=>W1.get(e,t),th="__unctx_async_handlers__",Gu=Ta[th]||(Ta[th]=new Set);function Qn(e){const t=[];for(const s of Gu){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Ju={name:"page",mode:"out-in"},G1={name:"layout",mode:"out-in"},J1=!1,gN={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Y1=void 0,X1="#__nuxt",oy="nuxt-app",nh=36e5,Q1="vite:preloadError";function iy(e=oy){return z1(e,{asyncContext:!1})}const Z1="__nuxt_plugin";function eS(e){var s;let t=0;const n={_id:e.id||oy||"nuxt-app",_scope:fi(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.14.159"},get vue(){return n.vueApp.version}},payload:Xn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Xn({}),state:Ct({}),once:new Set,_errors:Xn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!hi()?n._scope.run(()=>rh(n,o)):rh(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Xn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=sy(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;Mi(n,a,i),Mi(n.vueApp.config.globalProperties,a,i)},Mi(n.vueApp,"$nuxt",n),Mi(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Q1,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp=window.useNuxtApp||Xe;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function tS(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function nS(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function rS(e,t){const n=[],r=[],s=[],o=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(d=>t.some(f=>f._name===d)&&!n.includes(d)))??[];if(c.length>0)r.push([new Set(c),l]);else{const d=nS(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(h)))})))});l.parallel?s.push(d.catch(f=>o.push(f))):await d}}for(const l of t)tS(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o.length)throw o[0]}function rt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Z1]:!0,_name:t})}const sS=rt;function rh(e,t,n){const r=()=>t();
19return iy(e._id).set(e),e.vueApp.runWithContext(r)}function oS(e){var n;let t;return nd()&&(t=(n=et())==null?void 0:n.appContext.app.$nuxt),t=t||iy(e).tryUse(),t||null}function Xe(e){const t=oS(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function or(e){return Xe().$config}function Mi(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function iS(e,t){return{ctx:{table:e},matchAll:n=>ly(n,e)}}function ay(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,ay(s)])):new Map(Object.entries(e[n]));return t}function aS(e){return iS(ay(e))}function ly(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of sh(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of sh(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...ly(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function sh(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Zl(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Yu(e,t,n=".",r){if(!Zl(t))return Yu(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:Zl(i)&&Zl(s[o])?s[o]=Yu(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function lS(e){return(...t)=>t.reduce((n,r)=>Yu(n,r,"",e),{})}const uy=lS();function uS(e,t){try{return t in e}catch{return!1}}class Xu extends Error{constructor(n,r={}){super(n,r);Rt(this,"statusCode",500);Rt(this,"fatal",!1);Rt(this,"unhandled",!1);Rt(this,"statusMessage");Rt(this,"data");Rt(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:Zu(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=cy(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}Rt(Xu,"__h3_error__",!0);function Qu(e){if(typeof e=="string")return new Xu(e);if(cS(e))return e;const t=new Xu(e.message??e.statusMessage??"",{cause:e.cause||e});if(uS(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Zu(e.statusCode,t.statusCode):e.status&&(t.statusCode=Zu(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;cy(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function cS(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const dS=/[^\u0009\u0020-\u007E]/g;function cy(e=""){return e.replace(dS,"")}function Zu(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const dy=Symbol("layout-meta"),vi=Symbol("route"),Vt=()=>{var e;return(e=Xe())==null?void 0:e.$router},ll=()=>nd()?tt(vi,Xe()._route):Xe()._route;function yN(e){return e}const fS=()=>{try{if(Xe()._processingMiddleware)return!0}catch{return!1}return!1},Lr=(e,t)=>
19{e||(e="/");const n=typeof e=="string"?e:"path"in e?hS(e):Vt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d.toLowerCase()}=${f}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Ys(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&h1(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=fS();if(!s&&o)return e;const i=Vt(),a=Xe();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function hS(e){return Yg(e.path||"",e.query||{})+(e.hash||"")}const fy="__nuxt_error",ul=()=>nl(Xe().payload,"error"),ks=e=>{const t=cl(e);try{const n=Xe(),r=ul();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},pS=async(e={})=>{const t=Xe(),n=ul();t.callHook("app:error:cleared",e),e.redirect&&await Vt().replace(e.redirect),n.value=Y1},mS=e=>!!e&&typeof e=="object"&&fy in e,cl=e=>{const t=Qu(e);return Object.defineProperty(t,fy,{value:!0,configurable:!1,writable:!1}),t};/*!
20 * pinia v2.3.1
21 * (c) 2025 Eduardo San Martin Morote
22 * @license MIT
23 */let hy;const bi=e=>hy=e,py=Symbol();function ec(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ao;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ao||(Ao={}));function gS(){const e=fi(!0),t=e.run(()=>I({}));let n=[],r=[];const s=tl({install(o){bi(s),s._a=o,o.provide(py,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const my=()=>{};function oh(e,t,n,r=my){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&hi()&&Hc(s),s}function ls(e,...t){e.slice().forEach(n=>{n(...t)})}const yS=e=>e(),ih=Symbol(),eu=Symbol();function tc(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];ec(s)&&ec(r)&&e.hasOwnProperty(n)&&!Ne(r)&&!Pn(r)?e[n]=tc(s,r):e[n]=r}return e}const vS=Symbol();function bS(e){return!ec(e)||!e.hasOwnProperty(vS)}const{assign:pr}=Object;function wS(e){return!!(Ne(e)&&e.effect)}function _S(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=Me(n.state.value[e]);return pr(u,o,Object.keys(i||{}).reduce((d,f)=>(d[f]=tl(B(()=>{bi(n);const h=n._s.get(e);return i[f].call(h,h)})),d),{}))}return l=gy(e,c,t,n,r,!0),l}function gy(e,t,n={},r,s,o){let i;const a=pr({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],h;const m=r.state.value[e];!o&&!m&&(r.state.value[e]={}),I({});let y;function b($){let P;c=u=!1,typeof $=="function"?($(r.state.value[e]),P={type:Ao.patchFunction,storeId:e,events:h}):(tc(r.state.value[e],$),P={type:Ao.patchObject,payload:$,storeId:e,events:h});const x=y=Symbol();Re().then(()=>{y===x&&(c=!0)}),u=!0,ls(d,P,r.state.value[e])}const v=o?function(){const{state:P}=n,x=P?P():{};this.$patch(j=>{pr(j,x)})}:my;function w(){i.stop(),d=[],f=[],r._s.delete(e)}const g=($,P="")=>{if(ih in $)return $[eu]=P,$;const x=function(){bi(r);const j=Array.from(arguments),O=[],q=[];function K(W){O.push(W)}function V(W){q.push(W)}ls(f,{args:j,name:x[eu],store:S,after:K,onError:V});let F;try{F=$.apply(this&&this.$id===e?this:S,j)}catch(W){throw ls(q,W),W}return F instanceof Promise?F.then(W=>(ls(O,W),W)).catch(W=>(ls(q,W),Promise.reject(W))):(ls(O,F),F)};return x[ih]=!0,x[eu]=P,x},_={_p:r,$id:e,$onAction:oh.bind(null,f),$patch:b,$reset:v,$subscribe($,P={}){const x=oh(d,$,P.detached,()=>j()),j=i.run(()=>ge(()=>r.state.value[e],O=>{(P.flush==="sync"?u:c)&&$({storeId:e,type:Ao.direct,events:h},O)},pr({},l,P)));return x},$dispose:w},S=Ct(_);r._s.set(e,S);const k=(r._a&&r._a.runWithContext||yS)(()=>r._e.run(()=>(i=fi()).run(()=>t({action:g}
23))));for(const $ in k){const P=k[$];if(Ne(P)&&!wS(P)||Pn(P))o||(m&&bS(P)&&(Ne(P)?P.value=m[$]:tc(P,m[$])),r.state.value[e][$]=P);else if(typeof P=="function"){const x=g(P,$);k[$]=x,a.actions[$]=P}}return pr(S,k),pr(Se(S),k),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:$=>{b(P=>{pr(P,$)})}}),r._p.forEach($=>{pr(S,i.run(()=>$({store:S,app:r._a,pinia:r,options:a})))}),m&&o&&n.hydrate&&n.hydrate(S.$state,m),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function dd(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(a,l){const c=nd();return a=a||(c?tt(py,null):null),a&&bi(a),a=hy,a._s.has(r)||(o?gy(r,t,s,a):_S(r,s,a)),a._s.get(r)}return i.$id=r,i}function vN(e){{const t=Se(e),n={};for(const r in t){const s=t[r];s.effect?n[r]=B({get:()=>e[r],set(o){e[r]=o}}):(Ne(s)||Pn(s))&&(n[r]=nl(e,r))}return n}}function SS(e){const t=ES(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const kS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function ES(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=kS.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const xS=-1,PS=-2,CS=-3,TS=-4,OS=-5,RS=-6;function AS(e,t){return $S(JSON.parse(e),t)}function $S(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===xS)return;if(o===CS)return NaN;if(o===TS)return 1/0;if(o===OS)return-1/0;if(o===RS)return-0;if(i||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[o]=c(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let h=1;h<a.length;h+=1)u.add(s(a[h]));break;case"Map":const d=new Map;r[o]=d;for(let h=1;h<a.length;h+=2)d.set(s(a[h]),s(a[h+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const f=Object.create(null);r[o]=f;for(let h=1;h<a.length;h+=2)f[a[h]]=s(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],m=new h(s(a[1]));r[o]=a[2]!==void 0?m.subarray(a[2],a[3]):m;break}case"ArrayBuffer":{const h=a[1],m=SS(h);r[o]=m;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[o]=Temporal[h].from(a[1]);break}case"URL":{const h=new URL(a[1]);r[o]=h;break}case"URLSearchParams":{const h=new URLSearchParams(a[1]);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let c=0;c<a.length;c+=1){const u=a[c];u!==PS&&(l[c]=s(u))}}else{const l={};r[o]=l;for(const c in a){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const u=a[c];l[c]=s(u)}}return r[o]}return s(0)}const IS=new Set(["title","titleTemplate","script","style","noscript"]),na=new Set(["base","meta","link","style","script","noscript"]),DS=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),NS=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),yy=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),jS=typeof window<"u";function Oa(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function nc(e){if(e._h)return e._h;if(e._d)return Oa(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return Oa(t)}function LS(e,t){return e instanceof Promise?e.then(t):t(e)}function rc(e,t,n,r){const s=r||by(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},e==="templateParams"||e==="titleTemplate");if(s instanceof Promise)return s.then(i=>rc(e,t,n,i));const o={tag:e,props:s};for(const i of yy){const a=o.props[i]!==void 0?o.props[i]:n[i];a!==void 0&&((!(i==="innerHTML"||i==="textContent"||i==="children")||IS.has(o.tag))&&(o[i==="children"?"innerHTML":i]=a),delete o.props[i])}return o.props.body&&(o.tagPosition="bodyClose",delete o.props.body),o.tag==="script"&&typeof o.innerHTML=="object"&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(i=>({...o,props:{...o.props,content:i}})):o}function MS(e,t){var r;const n=e==="class"?" ":";";return t&&typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,s])=>s).map(([s,o])=>e==="style"?`${s}:${o}`:s)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(s=>!!s.trim()).join(n)}function vy(e,t,n,r){for(let s=r;s<n.length;s+=1){const o=n[s];if(o==="class"||o==="style"){e[o]=MS(o,e[o]);continue}if(e[o]instanceof Promise)return e[o].then(i=>(e[o]=i,vy(e,t,n,s)));if(!t&&!yy.has(o)){const i=String(e[o]),a=o.startsWith("data-");i==="true"||i===""?e[o]=a?"true":!0:e[o]||(a&&i==="false"?e[o]="false":delete e[o])}}}function by(e,t=!1){const n=vy(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}const BS=10;function wy(e,t,n){for(let r=n;r<t.length;r+=1){const s=t[r];
23if(s instanceof Promise)return s.then(o=>(t[r]=o,wy(e,t,r)));Array.isArray(s)?e.push(...s):e.push(s)}}function FS(e){const t=[],n=e.resolvedInput;for(const s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;const o=n[s];if(!(o===void 0||!DS.has(s))){if(Array.isArray(o)){for(const i of o)t.push(rc(s,i,e));continue}t.push(rc(s,o,e))}}if(t.length===0)return[];const r=[];return LS(wy(r,t,0),()=>r.map((s,o)=>(s._e=e._i,e.mode&&(s._m=e.mode),s._p=(e._i<<BS)+o,s)))}const ah=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),lh={base:-10,title:10},uh={critical:-80,high:-10,low:20};function Ra(e){const t=e.tagPriority;if(typeof t=="number")return t;let n=100;return e.tag==="meta"?e.props["http-equiv"]==="content-security-policy"?n=-30:e.props.charset?n=-20:e.props.name==="viewport"&&(n=-15):e.tag==="link"&&e.props.rel==="preconnect"?n=20:e.tag in lh&&(n=lh[e.tag]),t&&t in uh?n+uh[t]:n}const US=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],HS=["name","property","http-equiv"];function _y(e){const{props:t,tag:n}=e;if(NS.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const r of HS)if(t[r]!==void 0)return`${n}:${r}:${t[r]}`;return!1}const wr="%separator";function VS(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/"/g,'\\"'):r||""}const qS=new RegExp(`${wr}(?:\\s*${wr})*`,"g");function Bi(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const o=s.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(wr);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===wr||!o.includes(a))return a;const l=VS(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(wr)&&(e=e.slice(0,-wr.length)),e.startsWith(wr)&&(e=e.slice(wr.length)),e=e.replace(qS,n).trim()),e}function ch(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Sy(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var d;const o=(await e.resolveTags()).map(f=>({tag:f,id:na.has(f.tag)?nc(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const f=new Set;for(const h of["body","head"]){const m=(d=n[h])==null?void 0:d.children;for(const y of m){const b=y.tagName.toLowerCase();if(!na.has(b))continue;const v={tag:b,props:await by(y.getAttributeNames().reduce((S,C)=>({...S,[C]:y.getAttribute(C)}),{})),innerHTML:y.innerHTML},w=_y(v);let g=w,_=1;for(;g&&f.has(g);)g=`${w}:${_++}`;g&&(v._d=g,f.add(g)),i.elMap[y.getAttribute("data-hid")||nc(v)]=y}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function a(f,h,m){const y=`${f}:${h}`;i.sideEffects[y]=m,delete i.pendingSideEffects[y]}function l({id:f,$el:h,tag:m}){const y=m.tag.endsWith("Attrs");if(i.elMap[f]=h,y||(m.textContent&&m.textContent!==h.textContent&&(h.textContent=m.textContent),m.innerHTML&&m.innerHTML!==h.innerHTML&&(h.innerHTML=m.innerHTML),a(f,"el",()=>{var b;(b=i.elMap[f])==null||b.remove(),delete i.elMap[f]})),m._eventHandlers)for(const b in m._eventHandlers)Object.prototype.hasOwnProperty.call(m._eventHandlers,b)&&h.getAttribute(`data-${b}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),m._eventHandlers[b].bind(h)),h.setAttribute(`data-${b}`,""));for(const b in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,b))continue;const v=m.props[b],w=`attr:${b}`;if(b==="class"){if(!v)continue;for(const g of v.split(" "))y&&a(f,`${w}:${g}`,()=>h.classList.remove(g)),!h.classList.contains(g)&&h.classList.add(g)}else if(b==="style"){if(!v)continue;for(const g of v.split(";")){const _=g.indexOf(":"),S=g.substring(0,_).trim(),C=g.substring(_+1).trim();a(f,`${w}:${S}`,()=>{h.style.removeProperty(S)}),h.style.setProperty(S,C)}}else h.getAttribute(b)!==v&&h.setAttribute(b,v===!0?"":String(v)),y&&a(f,w,()=>h.removeAttribute(b))}}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:h,shouldRender:m,id:y}=f;if(m){if(h.tag==="title"){n.title=h.textContent;continue}
23f.$el=f.$el||i.elMap[y],f.$el?l(f):na.has(h.tag)&&c.push(f)}}for(const f of c){const h=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),u[h]=u[h]||n.createDocumentFragment(),u[h].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,a);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const f in i.pendingSideEffects)i.pendingSideEffects[f]();e._dom=i,await e.hooks.callHook("dom:rendered",{renders:o}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function KS(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(r=>n(()=>Sy(e,t).then(()=>{delete e._domDebouncedUpdatePromise,r()})))}function WS(e){return t=>{var r,s;const n=((s=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":o=>{KS(o,e)}}}}}const zS=new Set(["templateParams","htmlAttrs","bodyAttrs"]),GS={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=_y(e);t&&!t.startsWith("meta:og:")&&!t.startsWith("meta:twitter:")&&delete e.key;const n=t||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const r of e.tags){const s=(r.key?`${r.tag}:${r.key}`:r._d)||nc(r),o=t[s];if(o){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&zS.has(r.tag)&&(a="merge"),a==="merge"){const l=o.props;l.style&&r.props.style&&(l.style[l.style.length-1]!==";"&&(l.style+=";"),r.props.style=`${l.style} ${r.props.style}`),l.class&&r.props.class?r.props.class=`${l.class} ${r.props.class}`:l.class&&(r.props.class=l.class),t[s].props={...l,...r.props};continue}else if(r._e===o._e){o._duped=o._duped||[],r._d=`${o._d}:${o._duped.length+1}`,o._duped.push(r);continue}else if(Ra(r)>Ra(o))continue}if(!(r.innerHTML||r.textContent||Object.keys(r.props).length!==0)&&na.has(r.tag)){delete t[s];continue}t[s]=r}const n=[];for(const r in t){const s=t[r],o=s._duped;n.push(s),o&&(delete s._duped,n.push(...o))}e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},JS=new Set(["script","link","bodyAttrs"]),YS=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!JS.has(n.tag))continue;const r=n.props;for(const s in r){if(s[0]!=="o"||s[1]!=="n"||!Object.prototype.hasOwnProperty.call(r,s))continue;const o=r[s];typeof o=="function"&&(e.ssr&&ah.has(s)?r[s]=`this.dataset.${s}fired = true`:delete r[s],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[s]=o)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Oa(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:n})=>{var s,o;const r=t==null?void 0:t.dataset;if(r)for(const i in r){if(!i.endsWith("fired"))continue;const a=i.slice(0,-5);ah.has(a)&&((o=(s=n._eventHandlers)==null?void 0:s[a])==null||o.call(t,new Event(a.substring(2))))}}}}),XS=new Set(["link","style","script","noscript"]),QS={hooks:{"tag:normalise":({tag:e})=>{e.key&&XS.has(e.tag)&&(e.props["data-hid"]=e._h=Oa(e.key))}}},ZS={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const r of e.tags)r._m!=="server"||r.tag!=="titleTemplate"&&r.tag!=="templateParams"&&r.tag!=="title"||(t[r.tag]=r.tag==="title"||r.tag==="titleTemplate"?r.textContent:r.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},ek={hooks:{"tags:resolve":e=>{var t;for(const n of e.tags)if(typeof n.tagPriority=="string")for(const{prefix:r,offset:s}of US){if(!n.tagPriority.startsWith(r))continue;const o=n.tagPriority.substring(r.length),i=(t=e.tags.find(a=>a._d===o))==null?void 0:t._p;if(i!==void 0){n._p=i+s;break}}e.tags.sort((n,r)=>{const s=Ra(n),o=Ra(r);return s<o?-1:s>o?1:n._p-r._p})}}},tk={meta:"content",link:"href",htmlAttrs:"lang"},nk=["innerHTML","textContent"],rk=e=>({hooks:{"tags:resolve":t=>{var i;const{tags:n}=t;let r;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(r=t.tags.splice(a,1)[0].props,a-=1);const s=r||{},o=s.separator||"|";delete s.separator,s.pageTitle=Bi(s.pageTitle||((i=n.find(a=>a.tag==="title"))==null?void 0:i.textContent)||"",s,o);for(const a of n){if(a.processTemplateParams===!1)continue;const l=tk[a.tag];if(l&&typeof a.props[l]=="string")a.props[l]=Bi(a.props[l],s,o);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const c of nk)typeof a[c]=="string"&&(a[c]=Bi(a[c],s,o,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=s,e._separator=o},"tags:afterResolve":({tags:t})=>{let n;for(let r=0;r<t.length;r+=1){const s=t[r];s.tag==="title"&&s.processTemplateParams!==!1&&(n=s)}n!=null&&n.textContent&&(n.textContent=Bi(n.textContent,e._templateParams,e._separator))}}}),sk={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,r;for(let s=0;s<t.length;s+=1){const o=t[s];o.tag==="title"?n=o:o.tag==="titleTemplate"&&(r=o)}if(r&&n){const s=ch(r.textContent,n.textContent);s!==null?n.textContent=s||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(r){const s=ch(r.textContent);s!==null&&(r.textContent=s,r.tag="title",r=void 0)}r&&e.tags.splice(e.tags.indexOf(r),1)}}},ok={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&(t.props.type==="application/ld+json"||t.props.type==="application/json")?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let ky;function ik(e={}){const t=ak(e);return t.use(WS()),ky=t}function dh(e,t){return!e||e==="server"&&t||e==="client"&&!t}function ak(e={}){const t=sy();t.addHooks(e.hooks||{}),e.document=e.document||(jS?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let s=0,o=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return o},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!i.some(u=>u.key===c.key))&&(i.push(c),dh(c.mode,n)&&t.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:s++,input:l,...c};return dh(u.mode,n)&&(o.push(u),r()),{dispose(){o=o.filter(d=>d._i!==u._i),r()},patch(d){for(const f of o)f._i===u._i&&(f.input=u.input=d);r()}}},async resolveTags(){const l={tags:[],entries:[...o]};await t.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const d of await FS(c)){const f={tag:d,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[GS,ZS,YS,QS,ek,rk,sk,ok,...(e==null?void 0:e.plugins)||[]].forEac
23h(l=>a.use(l)),a.hooks.callHook("init",a),a}function lk(){return ky}const uk=Pg[0]==="3";function ck(e){return typeof e=="function"?e():p(e)}function sc(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=ck(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>sc(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=p(t[r]);continue}n[r]=sc(t[r])}return n}return t}const dk={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=sc(t.input)}}},Ey="usehead";function fk(e){return{install(n){uk&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ey,e))}}.install}function hk(e={}){e.domDelayFn=e.domDelayFn||(n=>Re(()=>setTimeout(()=>n(),0)));const t=ik(e);return t.use(dk),t.install=fk(t),t}const oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ic="__unhead_injection_handler__";function pk(e){oc[ic]=e}function bN(){return ic in oc?oc[ic]():tt(Ey)||lk()}let ra,sa;function mk(){return ra=$fetch(cd(`builds/meta/${or().app.buildId}.json`),{responseType:"json"}),ra.then(e=>{sa=aS(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),ra}function xy(){return ra||mk()}async function Py(e){if(await xy(),!sa)return console.error("[nuxt] Error creating app manifest matcher.",sa),{};try{return uy({},...sa.matchAll(e).reverse())}catch(t){return console.error("[nuxt] Error matching route rules.",t),{}}}async function gk(e){return null}let Mr=null;async function yk(){var r;if(Mr)return Mr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await vk(e.textContent||""),n=e.dataset.src?await gk(e.dataset.src):void 0;return Mr={...t,...n,...window.__NUXT__},(r=Mr.config)!=null&&r.public&&(Mr.config.public=Ct(Mr.config.public)),Mr}async function vk(e){return await AS(e,Xe()._payloadRevivers)}function Cy(e,t){Xe()._payloadRevivers[e]=t}const bk=sS(()=>{Cy("skipHydrate",e=>{})}),wk=[["NuxtError",e=>cl(e)],["EmptyShallowRef",e=>Pr(e==="_"?void 0:e==="0n"?BigInt(0):Ea(e))],["EmptyRef",e=>I(e==="_"?void 0:e==="0n"?BigInt(0):Ea(e))],["ShallowRef",e=>Pr(e)],["ShallowReactive",e=>Xn(e)],["Ref",e=>I(e)],["Reactive",e=>Ct(e)]],_k=rt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of wk)Cy(r,s);Object.assign(e.payload,([t,n]=Qn(()=>e.runWithContext(yk)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Sk=[],kk=rt({name:"nuxt:head",enforce:"pre",setup(e){const t=hk({plugins:Sk});pk(()=>Xe().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Sy(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*!
24  * vue-router v4.5.1
25  * (c) 2025 Eduardo San Martin Morote
26  * @license MIT
27  */const vs=typeof document<"u";function Ty(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ek(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ty(e.default)}const Ie=Object.assign;function tu(e,t){const n={};for(const r in t){const s=t[r];n[r]=gn(s)?s.map(e):e(s)}return n}const $o=()=>{},gn=Array.isArray,Oy=/#/g,xk=/&/g,Pk=/\//g,Ck=/=/g,Tk=/\?/g,Ry=/\+/g,Ok=/%5B/g,Rk=/%5D/g,Ay=/%5E/g,Ak=/%60/g,$y=/%7B/g,$k=/%7C/g,Iy=/%7D/g,Ik=/%20/g;function fd(e){return encodeURI(""+e).replace($k,"|").replace(Ok,"[").replace(Rk,"]")}function Dk(e){return fd(e).replace($y,"{").replace(Iy,"}").replace(Ay,"^")}function ac(e){return fd(e).replace(Ry,"%2B").replace(Ik,"+").replace(Oy,"%23").replace(xk,"%26").replace(Ak,"`").replace($y,"{").replace(Iy,"}").replace(Ay,"^")}function Nk(e){return ac(e).replace(Ck,"%3D")}function jk(e){return fd(e).replace(Oy,"%23").replace(Tk,"%3F")}function Lk(e){return e==null?"":jk(e).replace(Pk,"%2F")}function zo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Mk=/\/$/,Bk=e=>e.replace(Mk,"");function nu(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Vk(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:zo(i)}}function Fk(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function fh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Uk(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Bs(t.matched[r],n.matched[s])&&Dy(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Bs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Hk(e[n],t[n]))return!1;return!0}function Hk(e,t){return gn(e)?hh(e,t):gn(t)?hh(t,e):e===t}function hh(e,t){return gn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vk(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i<r.length;
vendor: 9,345 bytes, line 27
27i++)if(a=r[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const un={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(e){e.pop="pop",e.push="push"})(Go||(Go={}));var Io;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Io||(Io={}));function qk(e){if(!e)if(vs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bk(e)}const Kk=/^[^#]+#/;function Wk(e,t){return e.replace(Kk,"#")+t}function zk(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const dl=()=>({left:window.scrollX,top:window.scrollY});function Gk(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=zk(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ph(e,t){return(history.state?history.state.position-t:-1)+e}const lc=new Map;function Jk(e,t){lc.set(e,t)}function Yk(e){const t=lc.get(e);return lc.delete(e),t}let Xk=()=>location.protocol+"//"+location.host;function Ny(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),fh(l,"")}return fh(n,e)+r+s}function Qk(e,t,n,r){let s=[],o=[],i=null;const a=({state:f})=>{const h=Ny(e,location),m=n.value,y=t.value;let b=0;if(f){if(n.value=h,t.value=f,i&&i===m){i=null;return}b=y?f.position-y.position:0}else r(h);s.forEach(v=>{v(n.value,m,{delta:b,type:Go.pop,direction:b?b>0?Io.forward:Io.back:Io.unknown})})};function l(){i=n.value}function c(f){s.push(f);const h=()=>{const m=s.indexOf(f);m>-1&&s.splice(m,1)};return o.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Ie({},f.state,{scroll:dl()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function mh(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?dl():null}}function Zk(e){const{history:t,location:n}=window,r={value:Ny(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Xk()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function i(l,c){const u=Ie({},t.state,mh(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});o(l,u,!0),r.value=l}function a(l,c){const u=Ie({},s.value,t.state,{forward:l,scroll:dl()});o(u.current,u,!0);const d=Ie({},mh(r.value,l,null),{position:u.position+1},c);o(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function jy(e){e=qk(e);const t=Zk(e),n=Qk(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=Ie({location:"",base:e,go:r,createHref:Wk.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function eE(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),jy(e)}function tE(e){return typeof e=="string"||e&&typeof e=="object"}function Ly(e){return typeof e=="string"||typeof e=="symbol"}const My=Symbol("");var gh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gh||(gh={}));function Fs(e,t){return Ie(new Error,{type:e,[My]:!0},t)}function Mn(e,t){return e instanceof Error&&My in e&&(t==null||!!(e.type&t))}const yh="[^/]+?",nE={sensitive:!1,strict:!1,start:!0,end:!0},rE=/[.+*?^${}()[\]/\\]/g;function sE(e,t){const n=Ie({},nE,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(s+="/"),s+=f.value.replace(rE,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:y,optional:b,regexp:v}=f;o.push({name:m,repeatable:y,optional:b});const w=v||yh;if(w!==yh){h+=10;try{new RegExp(`(${w})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${m}" (${w}): `+_.message)}}let g=y?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(g=b&&c.length<2?`(?:/${g})`:"/"+g),b&&(g+="?"),s+=g,h+=20,b&&(h+=-8),y&&(h+=-20),w===".*"&&(h+=-50)}u.push(h)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function a(c){const u=c.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",m=o[f-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===0)u+=h.value;else if(h.type===1){const{value:m,repeatable:y,optional:b}=h,v=m in c?c[m]:"";if(gn(v)&&!y)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const w=gn(v)?v.join("/"):v;if(!w)if(b)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=w}}return u||"/"}return{re:i,score:r,keys:o,parse:a,stringify:l}}function oE(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function By(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=oE(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(vh(r))return 1;if(vh(s))return-1}return s.length-r.length}function vh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const iE={type:0,value:""},aE=/[a-zA-Z0-9_]/;function lE(e){if(!e)return[[]];if(e==="/")return[[iE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(c&&d(),i()):l===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:aE.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),s}function uE(e,t,n){const r=sE(lE(e.path),n),s=Ie(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function cE(e,t){const n=[],r=new Map;t=Sh({strict:!1,end:!0,sensitive:!1},t);function s(d){return r.get(d)}function o(d,f,h){const m=!h,y=wh(d);y.aliasOf=h&&h.record;const b=Sh(t,d),v=[y];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of _)v.push(wh(Ie({},y,{components:h?h.record.components:y.components,path:S,aliasOf:h?h.record:y})))}let w,g;for(const _ of v){const{path:S}=_;if(f&&S[0]!=="/"){const C=f.record.path,k=C[C.length-1]==="/"?"":"/";_.path=f.record.path+(S&&k+S)}if(w=uE(_,f,b),h?h.alias.push(w):(g=g||w,g!==w&&g.alias.push(w),m&&d.name&&!_h(w)&&i(d.name)),Fy(w)&&l(w),y.children){const C=y.children;for(let k=0;k<C.length;k++)o(C[k],w,h&&h.children[k])}h=h||w}return g?()=>{i(g)}:$o}function i(d){if(Ly(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){const f=hE(d,n);n.splice(f,0,d),d.record.name&&!_h(d)&&r.set(d.record.name,d)}function c(d,f){let h,m={},y,b;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Fs(1,{location:d});b=h.record.name,m=Ie(bh(f.params,h.keys.filter(g=>!g.optional).concat(h.parent?h.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),d.params&&bh(d.params,h.keys.map(g=>g.name))),y=h.stringify(m)}else if(d.path!=null)y=d.path,h=n.find(g=>g.re.test(y)),h&&(m=h.parse(y),b=h.record.name);else{if(h=f.name?r.get(f.name):n.find(g=>g.re.test(f.path)),!h)throw Fs(1,{location:d,currentLocation:f});b=h.record.name,m=Ie({},f.params,d.params),y=h.stringify(m)}const v=[];let w=h;for(;w;)v.unshift(w.record),w=w.parent;return{name:b,path:y,params:m,matched:v,meta:fE(v)}}e.forEach(d=>
vendor: 5,834 bytes, line 27
27o(d));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function bh(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function wh(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function _h(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fE(e){return e.reduce((t,n)=>Ie(t,n.meta),{})}function Sh(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function hE(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;By(e,t[o])<0?r=o:n=o+1}const s=pE(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function pE(e){let t=e;for(;t=t.parent;)if(Fy(t)&&By(e,t)===0)return t}function Fy({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function mE(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(Ry," "),i=o.indexOf("="),a=zo(i<0?o:o.slice(0,i)),l=i<0?null:zo(o.slice(i+1));if(a in t){let c=t[a];gn(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function kh(e){let t="";for(let n in e){const r=e[n];if(n=Nk(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(gn(r)?r.map(o=>o&&ac(o)):[r&&ac(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gE(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=gn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Uy=Symbol(""),Eh=Symbol(""),fl=Symbol(""),hd=Symbol(""),uc=Symbol("");function mo(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function yE(e,t,n){const r=()=>{e[t].delete(n)};Nt(r),Wm(r),Km(()=>{e[t].add(n)}),e[t].add(n)}function wN(e){const t=tt(Uy,{}).value;t&&yE(t,"leaveGuards",e)}function _r(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Fs(4,{from:n,to:t})):f instanceof Error?l(f):tE(f)?l(Fs(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),a())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function ru(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Ty(l)){const u=(l.__vccOpts||l)[t];u&&o.push(_r(u,n,r,i,a,s))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=Ek(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&_r(h,n,r,i,a,s)()}))}}return o}function xh(e){const t=tt(fl),n=tt(hd),r=B(()=>{const l=p(e.to);return t.resolve(l)}),s=B(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Bs.bind(null,u));if(f>-1)return f;const h=Ph(l[c-2]);return c>1&&Ph(u)===h&&d[d.length-1].path!==h?d.findIndex(Bs.bind(null,l[c-2])):f}),o=B(()=>s.value>-1&&SE(n.params,r.value.params)),i=B(()=>s.value>-1&&s.value===n.matched.length-1&&Dy(n.params,r.value.params));function a(l={}){if(_E(l)){const c=t[p(e.replace)?"replace":"push"](p(e.to)).catch($o);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}function vE(e){return e.length===1?e[0]:e}const bE=D({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:xh,setup(e,{slots:t}){const n=Ct(xh(e)),{options:r}=tt(fl),s=B(()=>({[Ch(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ch(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&vE(t.default(n));return e.custom?o:ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),wE=bE;function _E(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function SE(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!gn(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Ph(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ch=(e,t,n)=>e??t??n,kE=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=tt(uc),s=B(()=>e.route||r.value),o=tt(Eh,0),i=B(()=>{let c=p(o);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=B(()=>s.value.matched[i.value]);Cn(Eh,B(()=>i.value+1)),Cn(Uy,a),Cn(uc,s);const l=I();return ge(()=>[l.value,a.value,e.name],([c,u,d],[f,h,m])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Bs(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEac
vendor: 4,790 bytes, line 27
27h(y=>y(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Th(n.default,{Component:f,route:c});const h=d.props[u],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,b=ze(f,Ie({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Th(n.default,{Component:b,route:c})||b}}});function Th(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Hy=kE;function EE(e){const t=cE(e.routes,e),n=e.parseQuery||mE,r=e.stringifyQuery||kh,s=e.history,o=mo(),i=mo(),a=mo(),l=Pr(un);let c=un;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=tu.bind(null,U=>""+U),d=tu.bind(null,Lk),f=tu.bind(null,zo);function h(U,re){let ee,le;return Ly(U)?(ee=t.getRecordMatcher(U),le=re):le=U,t.addRoute(le,ee)}function m(U){const re=t.getRecordMatcher(U);re&&t.removeRoute(re)}function y(){return t.getRoutes().map(U=>U.record)}function b(U){return!!t.getRecordMatcher(U)}function v(U,re){if(re=Ie({},re||l.value),typeof U=="string"){const T=nu(n,U,re.path),M=t.resolve({path:T.path},re),z=s.createHref(T.fullPath);return Ie(T,M,{params:f(M.params),hash:zo(T.hash),redirectedFrom:void 0,href:z})}let ee;if(U.path!=null)ee=Ie({},U,{path:nu(n,U.path,re.path).path});else{const T=Ie({},U.params);for(const M in T)T[M]==null&&delete T[M];ee=Ie({},U,{params:d(T)}),re.params=d(re.params)}const le=t.resolve(ee,re),Pe=U.hash||"";le.params=u(f(le.params));const je=Fk(r,Ie({},U,{hash:Dk(Pe),path:le.path})),E=s.createHref(je);return Ie({fullPath:je,hash:Pe,query:r===kh?gE(U.query):U.query||{}},le,{redirectedFrom:void 0,href:E})}function w(U){return typeof U=="string"?nu(n,U,l.value.path):Ie({},U)}function g(U,re){if(c!==U)return Fs(8,{from:re,to:U})}function _(U){return k(U)}function S(U){return _(Ie(w(U),{replace:!0}))}function C(U){const re=U.matched[U.matched.length-1];if(re&&re.redirect){const{redirect:ee}=re;let le=typeof ee=="function"?ee(U):ee;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=w(le):{path:le},le.params={}),Ie({query:U.query,hash:U.hash,params:le.path!=null?{}:U.params},le)}}function k(U,re){const ee=c=v(U),le=l.value,Pe=U.state,je=U.force,E=U.replace===!0,T=C(ee);if(T)return k(Ie(w(T),{state:typeof T=="object"?Ie({},Pe,T.state):Pe,force:je,replace:E}),re||ee);const M=ee;M.redirectedFrom=re;let z;return!je&&Uk(r,le,ee)&&(z=Fs(16,{to:M,from:le}),qe(le,le,!0,!1)),(z?Promise.resolve(z):x(M,le)).catch(H=>Mn(H)?Mn(H,2)?H:bt(H):X(H,M,le)).then(H=>{if(H){if(Mn(H,2))return k(Ie({replace:E},w(H.to),{state:typeof H.to=="object"?Ie({},Pe,H.to.state):Pe,force:je}),re||M)}else H=O(M,le,!0,E,Pe);return j(M,le,H),H})}function $(U,re){const ee=g(U,re);return ee?Promise.reject(ee):Promise.resolve()}function P(U){const re=ar.values().next().value;return re&&typeof re.runWithContext=="function"?re.runWithContext(U):U()}function x(U,re){let ee;const[le,Pe,je]=xE(U,re);ee=ru(le.reverse(),"beforeRouteLeave",U,re);for(const T of le)T.leaveGuards.forEach(M=>{ee.push(_r(M,U,re))});const E=$.bind(null,U,re);return ee.push(E),Tt(ee).then(()=>{ee=[];for(const T of o.list())ee.push(_r(T,U,re));return ee.push(E),Tt(ee)}).then(()=>{ee=ru(Pe,"beforeRouteUpdate",U,re);for(const T of Pe)T.updateGuards.forEach(M=>{ee.push(_r(M,U,re))});return ee.push(E),Tt(ee)}).then(()=>{ee=[];for(const T of je)if(T.beforeEnter)if(gn(T.beforeEnter))for(const M of T.beforeEnter)ee.push(_r(M,U,re));else ee.push(_r(T.beforeEnter,U,re));return ee.push(E),Tt(ee)}).then(()=>(U.matched.forEach(T=>T.enterCallbacks={}),ee=ru(je,"beforeRouteEnter",U,re,P),ee.push(E),Tt(ee))).then(()=>{ee=[];for(const T of i.list())ee.push(_r(T,U,re));return ee.push(E),Tt(ee)}).catch(T=>Mn(T,8)?T:Promise.reject(T))}function j(U,re,ee){a.list().forEach(le=>P(()=>le(U,re,ee)))}function O(U,re,ee,le,Pe){const je=g(U,re);if(je)return je;const E=re===un,T=vs?history.state:{};ee&&(le||E?s.replace(U.fullPath,Ie({scroll:E&&T&&T.scroll},Pe)):s.push(U.fullPath,Pe)),l.value=U,qe(U,re,ee,E),bt()}let q;function K(){q||(q=s.listen((U,re,ee)=>{if(!jn.listening)return;const le=v(U),Pe=C(le);if(Pe){k(Ie(Pe,{replace:!0,force:!0}),le).catch($o);return}c=le;const je=l.value;vs&&Jk(ph(je.fullPath,ee.delta),dl()),x(le,je).catch(E=>Mn(E,12)?E:Mn(E,2)?(k(Ie(w(E.to),{force:!0}),le).then(T=>{Mn(T,20)&&!ee.delta&&ee.type===Go.pop&&s.go(-1,!1)}).catch($o),Promise.reject()):(ee.delta&&s.go(-ee.delta,!1),X(E,le,je))).then(E=>{E=E||O(le,je,!1),E&&(ee.delta&&!Mn(E,8)?s.go(-ee.delta,!1):ee.type===Go.pop&&Mn(E,20)&&s.go(-1,!1)),j(le,je,E)}).catch($o)}))}let V=mo(),F=mo(),W;function X(U,re,ee){bt(U);const le=F.list();return le.length?le.forEach(Pe=>Pe(U,re,ee)):console.error(U),Promise.reject(U)}function pe(){return W&&l.value!==un?Promise.resolve():new Promise((U,re)=>{V.add([U,re])})}
27function bt(U){return W||(W=!U,K(),V.list().forEach(([re,ee])=>U?ee(U):re()),V.reset()),U}function qe(U,re,ee,le){const{scrollBehavior:Pe}=e;if(!vs||!Pe)return Promise.resolve();const je=!ee&&Yk(ph(U.fullPath,0))||(le||!ee)&&history.state&&history.state.scroll||null;return Re().then(()=>Pe(U,re,je)).then(E=>E&&Gk(E)).catch(E=>X(E,U,re))}const ht=U=>s.go(U);let bn;const ar=new Set,jn={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:y,resolve:v,options:e,push:_,replace:S,go:ht,back:()=>ht(-1),forward:()=>ht(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:F.add,isReady:pe,install(U){const re=this;U.component("RouterLink",wE),U.component("RouterView",Hy),U.config.globalProperties.$router=re,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>p(l)}),vs&&!bn&&l.value===un&&(bn=!0,_(s.location).catch(Pe=>{}));const ee={};for(const Pe in un)Object.defineProperty(ee,Pe,{get:()=>l.value[Pe],enumerable:!0});U.provide(fl,re),U.provide(hd,Xn(ee)),U.provide(uc,l);const le=U.unmount;ar.add(U),U.unmount=function(){ar.delete(U),ar.size<1&&(c=un,q&&q(),q=null,l.value=un,bn=!1,W=!1),le()}}};function Tt(U){return U.reduce((re,ee)=>re.then(()=>P(ee)),Promise.resolve())}return jn}function xE(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(c=>Bs(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Bs(c,l))||s.push(l))}return[n,r,s]}function _N(){return tt(fl)}function Vy(e){return tt(hd)}const PE=/(:\w+)\([^)]+\)/g,CE=/(:\w+)[?+*]/g,TE=/:\w+/g,OE=(e,t)=>t.path.replace(PE,"$1").replace(CE,"$1").replace(TE,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),cc=(e,t)=>{const n=e.route.matched.find(s=>{var o;return((o=s.components)==null?void 0:o.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&OE(e.route,n));return typeof r=="function"?r(e.route):r},RE=(e,t)=>({default:()=>e?ze(c_,e===!0?{}:e,t):t});function pd(e){return Array.isArray(e)?e:[e]}const AE="modulepreload",$E=function(e,t){return new URL(e,t).href},Oh={},oe=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=$E(c,r),c in Oh)return;Oh[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(!!r)for(let m=i.length-1;m>=0;m--){const y=i[m];if(y.href===c&&(!u||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":AE,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((m,y)=>{h.addEventListener("load",m),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},IE={layout:"error"},DE={title:"Preferences",layout:"sidebar"},NE={layout:"auth"},jE={layout:"default"},LE={layout:"sidebar"},ME={layout:"auth"},BE={layout:"sidebar"},FE={layout:"sidebar"},UE={layout:"none"},HE={layout:"none"},VE={layout:"sidebar"},qE={layout:!1},KE={layout:!1},WE={layout:!1},zE={layout:"sidebar"},GE={layout:"auth"},JE={layout:"auth"},YE={layout:"sidebar"},XE={layout:"sidebar"},QE={layout:"sidebar"},ZE={title:"Home",ssr:!1},ex={title:"Info - KorrekturKumpel",ssr:!1},tx={layout:"auth"},nx={title:"Logout",layout:"center"},rx={layout:"student"},sx={layout:"onboarding"},ox={layout:"auth"},ix={layout:"report"},ax={layout:"auth"},lx={layout:"content"},ux={layout:"fullscreen",auth:!1},cx={layout:"fullscreen",auth:!1},dx={layout:"fullscreen",middleware:"auth"},fx={layout:"sidebar"},hx={layout:"none"},px={layout:"none"},mx={layout:"none"},gx={layout:"auth"},yx={layout:"center"},vx={layout:"sidebar"},bx={layout:"sidebar"},wx={layout:"sidebar"},su=[{name:"all",path:"/:all(.*)*",meta:IE||{},component:()=>oe(()=>
27import("./C8CPgl4s.js"),[],import.meta.url)},{name:"account",path:"/account",meta:DE||{},component:()=>oe(()=>import("./HPJ7S0I0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url)},{name:"auth-callback",path:"/auth/callback",meta:NE||{},component:()=>oe(()=>import("./CavrEmWB.js"),[],import.meta.url)},{name:"berichte",path:"/berichte",meta:jE||{},component:()=>oe(()=>import("./zaWeM_ii.js"),__vite__mapDeps([40,34,41,42,43,36,31,16,44,30,45]),import.meta.url)},{name:"checkout_backup",path:"/checkout_backup",component:()=>oe(()=>import("./BcHrV4eB.js"),__vite__mapDeps([46,47,48]),import.meta.url)},{name:"checkout",path:"/checkout",component:()=>oe(()=>import("./B-rRrvml.js"),__vite__mapDeps([49,50]),import.meta.url)},{name:"classes",path:"/classes",meta:LE||{},component:()=>oe(()=>import("./DWfFKBQO.js"),__vite__mapDeps([51,1,3,4,5,6,7,8,9,10,11,12,13,34,27,52,53,36,31]),import.meta.url)},{name:"confirm",path:"/confirm",meta:ME||{},component:()=>oe(()=>import("./B6c8ZoYs.js"),[],import.meta.url)},{name:"dev-competenceGenerationStep",path:"/dev/competenceGenerationStep",meta:BE||{},component:()=>oe(()=>import("./00v7p4dH.js"),__vite__mapDeps([54,36]),import.meta.url)},{name:"dev-feedback",path:"/dev/feedback",meta:FE||{},component:()=>oe(()=>import("./gcT90el6.js"),__vite__mapDeps([55,1,2,5,12,11,25,26,36,56,57,58,37,59,60]),import.meta.url)},{name:"dev-layout-ocr",path:"/dev/layout-ocr",meta:UE||{},component:()=>oe(()=>import("./Zkm8dxG0.js"),__vite__mapDeps([61,1,2,34,12,11,25,26,62,7,8,9,63,64,65,66,67,45,30,31,18,68,69,70,71,72]),import.meta.url)},{name:"dev-layout-persistence",path:"/dev/layout-persistence",meta:HE||{},component:()=>oe(()=>import("./Dk1lFLAQ.js"),__vite__mapDeps([73,1,2,34,25,26,62,74,7,8,9,57,75,76,65,77,78,63,67,30,18,79,80,70,22,45,81,82]),import.meta.url)},{name:"dev-ocr-test",path:"/dev/ocr-test",component:()=>oe(()=>import("./DW7fdbty.js"),__vite__mapDeps([83,1,2,12,11,34,84,85,75,86,87,88,30,89,90,82,91,36,92]),import.meta.url)},{name:"dev-qr-code-generator",path:"/dev/qr-code-generator",meta:VE||{},component:()=>oe(()=>import("./_CwzWbYK.js"),__vite__mapDeps([93,94,1,2,12,11,10,36,71,70]),import.meta.url)},{name:"dev-stats",path:"/dev/stats",component:()=>oe(()=>import("./BkIJguOC.js"),__vite__mapDeps([95,5,12,11,17,96,65,1,36]),import.meta.url)},{name:"dev-submissions-badge",path:"/dev/submissions/badge",component:()=>oe(()=>import("./BqUkHSMz.js"),__vite__mapDeps([97,98,99,59,100,101,18,65,102,103]),import.meta.url)},{name:"dev-submissions-flow-taskId",path:"/dev/submissions/flow/:taskId()",meta:qE||{},component:()=>oe(()=>import("./BmHZ1LFs.js"),__vite__mapDeps([104,101,22,91,105]),import.meta.url)},{name:"dev-submissions-matching",path:"/dev/submissions/matching",meta:KE||{},component:()=>oe(()=>import("./CS6IloHc.js"),__vite__mapDeps([106,107]),import.meta.url)},{name:"dev-submissions-studentmatching",path:"/dev/submissions/studentmatching",meta:WE||{},component:()=>oe(()=>import("./ChZVfRZP.js"),__vite__mapDeps([108,109]),import.meta.url)},{name:"dev-tiptaptest",path:"/dev/tiptaptest",meta:zE||{},component:()=>oe(()=>import("./CiCaFAtQ.js"),__vite__mapDeps([110,84,85,75,86,87,88,30,89,90,82,111,76,112,113,36]),import.meta.url)},{name:"email-confirmed",path:"/email-confirmed",meta:GE||{},component:()=>oe(()=>import("./DwzfRAHP.js"),[],import.meta.url)},{name:"error",path:"/error",meta:JE||{},component:()=>oe(()=>import("./CaQomnLs.js"),__vite__mapDeps([114,115,116,117,118]),import.meta.url)},{name:"essays",path:"/essays",component:()=>oe(()=>import("./YJMnk0k-.js"),__vite__mapDeps([119,24]),import.meta.url)},{name:"exercise-creation",path:"/exercise-creation",meta:YE||{},component:()=>oe(()=>import("./Dk-Dh8rC.js"),__vite__mapDeps([120,99,121,122,31,45,123,124,15,125,58,36,126]),import.meta.url)},{name:"exercises-exerciseId",path:"/exercises/:exerciseId()",meta:XE||{},component:()=>oe(()=>import("./B7iw_F7j.js"),__vite__mapDeps([127,94,128,99,121,122,123,69,45,129,130,86,75,87,76,11,8,74,18,56,57,58,37,59,131,132,98,100,101,65,102,103,133,42,12,30,66,134,135,136,52,137,138,28,4,5,6,10,34,125,80,13,64,70,71,20,139,41,62,111,112,82,85,88,89,113,140,141,23,78,44,142,19,38,25,26,14,63,9,143,144,36,145]),import.meta.url)},{name:"exercises",path:"/exercises",meta:QE||{},component:()=>oe(()=>import("./CZ5VhQmm.js"),__vite__mapDeps([146,125,58,36,42,100,147,101,45,30]),import.meta.url)},{name:"index",path:"/",meta:ZE||{},component:()=>oe(()=>import("./30IWgy-M.js"),__vite__mapDeps([148,96,65,149,1,150,125,58]),import.meta.url)},{name:"info",path:"/info",meta:ex||{},component:()=>oe(()=>import("./BCW0TTKB.js"),__vite__mapDeps([151,150,130,86,75,87,76,122,152,149,1]),import.meta.url)},{name:"login",path:"/login",meta:tx||{},component:()=>oe(()=>import("./DDgeODpE.js"),__vite__mapDeps([153,115,116,117,12,11,144,154,18,19]),import.meta.url)},{name:"logout",path:"/logout",meta:nx||{},component:()=>oe(()=>import("./4CTsA9Xc.js"),[],import.meta.url)},{name:"maintenance",path:"/maintenance",meta:rx||{},component:()=>oe(()=>import("./CvcxosxY.js"),__vite__mapDeps([155,156,59,64,157,24]),import.meta.url)},{name:"onboarding",path:"/onboarding",meta:sx||{},component:()=>oe(()=>import("./Cn-Z9AyQ.js"),__vite__mapDeps([158,116,88,159,160,101,12,11,18,19,7,8,9,132,13,136,65,161]),import.meta.url)},{name:"register",path:"/register",meta:ox||{},component:()=>oe(()=>import("./DyFh1gFx.js"),__vite__mapDeps([162,115,116,117,159,154,147,157,6,5,12,11,21]),import.meta.url)},{name:"report-generator",path:"/report-generator",meta:ix||{},component:()=>oe(()=>import("./-R19qEqO.js"),__vite__mapDeps([163,34,12,11,4,20,141,42,164,152,43,36,10,88,71,137,45,100,99,101,30,35,7,8,9,14,160,27,142,65,79,63,31,124,44,165]),import.meta.url)},{name:"reset-password",path:"/reset-password",meta:ax||{},component:()=>oe(()=>import("./B6dCmGnY.js"),__vite__mapDeps([166,115,116,117,159,6,5,12,11,17,21,136]),import.meta.url)},{name:"subjects",path:"/subjects",meta:lx||{},component:()=>oe(()=>import("./D4NT8v-4.js"),__vite__mapDeps([167,139,12,11,41,29,6,5,4,10,28]),import.meta.url)},{name:"submission-submissionId",path:"/submission/:submissionId()",meta:ux||{},component:()=>oe(()=>import("./BQ6L2ueO.js"),__vite__mapDeps([168,101,111,86,75,87,76,112,82,140,25,169,113,131,65,78,143,52,136,8,45,170]),import.meta.url)},{name:"submit-exerciseId",path:"/submit/:exerciseId()",meta:cx||{},component:()=>oe(()=>import("./DJQZcNMg.js"),__vite__mapDeps([171,156,59,64,12,11,100,115,116,117,1,34,111,86,75,87,76,112,82,101,138,69,79,169,143,52,136,65,102,135,147,172]),import.meta.url)},{name:"task-preview",path:"/task-preview",meta:dx||{},component:()=>oe(()=>import("./DvqECvVy.js"),__vite__mapDeps([173,33,121,122,174]),import.meta.url)},{name:"tasks-taskId",path:"/tasks/:taskId()",meta:fx||{},component:()=>oe(()=>import("./DYCQzFyT.js"),__vite__mapDeps([175,121,122,36]),import.meta.url)},{name:"teacher-upload-classId-taskId",path:"/teacher/upload/:classId()/:taskId()",meta:hx||{},component:()=>oe(()=>import("./b8FPHQK3.js"),__vite__mapDeps([176,177,134,31,88,178,78,179,59,138,52,136,30,66,117,180]),import.meta.url)},{name:"teacher-upload-exerciseId",path:"/teacher/upload/:exerciseId()",meta:px||{},component:()=>oe(()=>import("./CfXGln5I.js"),__vite__mapDeps([181,133,177,134,31,88,178,78,179,138,100,137,65,30,117,182]),import.meta.url)},{name:"tu-code",path:"/tu/:code()",meta:mx||{},component:()=>oe(()=>import("./BmXh5z8o.js"),[],import.meta.url)},{name:"update-password",path:"/update-password",meta:gx||{},component:()=>oe(()=>import("./BwHRcQT6.js"),__vite__mapDeps([183,115,116,117,159,6,5,12,11,18,19,136]),import.meta.url)},{name:"waitlist",path:"/waitlist",meta:yx||{},component:()=>oe(()=>import("./B1pWYIoX.js"),__vite__mapDeps([184,115,116,117]),import.meta.url)},{name:"worksheet-editor-id",path:"/worksheet-editor/:id()",meta:vx||{},component:()=>oe(()=>import("./DZdTJCTm.js"),__vite__mapDeps([185,36,186,42,34,129,121,122,130,86,75,87,76,11,4,99,12,140,74,84,85,88,30,89,90,82,13,8,9,20,178,77,18,19,66,31,100,45,10,65,141,78,111,112,124,136,52,187]),import.meta.url)},{name:"worksheet-editor",path:"/worksheet-editor",meta:bx||{},component:()=>oe(()=>import("./FxonIX9E.js"),__vite__mapDeps([188,36,186,42,34,129,121,122,130,86,75,87,76,11,4,99,12,140,74,84,85,88,30,89,90,82,13,8,9,20,178,77,18,19,66,31,100,45,10,65,141,78,111,112,124,136,52,187]),import.meta.url)},{name:"worksheets",path:"/worksheets",meta:wx||{},component:()=>oe(()=>import("./Dfz4mjrU.js"),__vite__mapDeps([189,42,34,36,128,121,122,59,31,45,123,64,30,190]),import.meta.url)}],qy=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?ze(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),_x=/(:\w+)\([^)]+\)/g,Sx=/(:\w+)[?+*]/g,kx=/:\w+/g;function Rh(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(_x,"$1").replace(Sx,"$1").replace(kx,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Ex(e,t){return e===t||t===un?!1:Rh(e)!==Rh(t)?!0:!e.matched.every((r,s)=>{var o,i;return r.components&&r.components.default===((i=(o=t.matched[s])==null?void 0:o.components)==null?void 0:i.default)})}const xx={scrollBehavior(e,t,n){var c;const r=Xe(),s=((c=Vt().options)==null?void 0:c.scrollBehaviorType)??"auto";let o=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!o&&t&&e&&i!==!1&&Ex(e,t)&&(o={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Ah(e.hash),behavior:s}:!1;const a=u=>!!(u.meta.pageTransition??Ju),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await new Promise(d=>setTimeout(d,0)),e.hash&&(o={el:e.hash,top:Ah(e.hash),behavior:s}),u(o)})})}};function Ah(e){try{const t=document.querySelector(e);
27if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}const Px={hashMode:!1,scrollBehaviorType:"auto"},Jt={...Px,...xx},Cx=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Xe(),s=Vt(),o=([t,n]=Qn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(o===!0)return;const i=cl({statusCode:o&&o.statusCode||404,statusMessage:o&&o.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(c=>{if(a(),c===e){const u=s.afterEach(async()=>{u(),await r.runWithContext(()=>ks(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},Tx="$s";function hl(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=Tx+n,o=Xe(),i=nl(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(Ne(a))return o.payload.state[s]=a,a;i.value=a}return i}const Ze=()=>Xe().$supabase.client;function Ox(){return hl("onboarding-cache",()=>({userId:null,completed:null}))}function Rx(){const e=Ox(),t=Ze();async function n(o,{forceRefresh:i=!1}={}){if(!i&&e.value.userId===o&&e.value.completed!==null)return e.value.completed;const{data:a,error:l}=await t.from("user_profile").select("onboarding_completed_at").eq("user_id",o).maybeSingle();if(l)return l.code==="PGRST116"?(r(o,!1),!1):(console.error("Failed to load onboarding state in middleware:",l),r(o,!1),!1);const c=!!(a!=null&&a.onboarding_completed_at);return r(o,c),c}function r(o,i){e.value={userId:o,completed:i}}function s(o){(!o||e.value.userId===o)&&(e.value={userId:null,completed:null})}return{getOnboardingCompleted:n,setOnboardingCompleted:r,invalidateOnboardingStatus:s}}const Ax=["signup","invite","magiclink","recovery","email_change","email"];function Aa(e){try{return decodeURIComponent(e)}catch{return e}}function md(e){return Aa(Aa(String(e||"").trim()))}function $x(e){return Ax.includes(e)?e:null}function SN(e,t){const n=$x(e);return n||"email"}function Ix(e){const t=String(e||"").trim();if(!t)return null;const n=md(t);return n==="onboarding"?"/onboarding":!n.startsWith("/")||n.startsWith("//")?null:n}function Br(e){if(Array.isArray(e)){const t=e.find(n=>typeof n=="string"&&n.trim());return String(t||"").trim()}return typeof e=="string"?e.trim():""}function kt(e,t,n){const r=String(n||"").trim();r&&!e.has(t)&&e.set(t,r)}function Dx(e,t){if(t)try{const n=new URL(Aa(t));kt(e,"token_hash",n.searchParams.get("token_hash")||n.searchParams.get("token")||""),kt(e,"type",n.searchParams.get("type")||""),kt(e,"code",n.searchParams.get("code")||"");const r=n.searchParams.get("redirect_to")||"";if(!r)return;const s=new URL(Aa(r));kt(e,"next",s.searchParams.get("next")||""),kt(e,"email",s.searchParams.get("email")||""),kt(e,"token_hash",s.searchParams.get("token_hash")||""),kt(e,"type",s.searchParams.get("type")||""),kt(e,"code",s.searchParams.get("code")||""),kt(e,"auth_code",s.searchParams.get("auth_code")||"")}catch{}}function kN(e){const t=new URLSearchParams;return Dx(t,Br(e.confirmation_url)),kt(t,"token_hash",Br(e.token_hash)),kt(t,"type",Br(e.type)),kt(t,"code",Br(e.code)),kt(t,"auth_code",Br(e.auth_code)),kt(t,"email",Br(e.email)),kt(t,"next",Br(e.next)),t.has("next")||t.set("next","onboarding"),Object.fromEntries(t.entries())}function gd(e,t){return e==="onboarding"||t==="signup"||t==="invite"}function EN({code:e,message:t}){const n=String(e||"").trim().toLowerCase(),r=md(String(t||"")).toLowerCase();return n==="otp_expired"?!0:r?!!(r.includes("invalid link")||r.includes("email link is invalid")||r.includes("expired")&&(r.includes("link")||r.includes("otp"))):!1}function Nx({email:e,next:t,type:n,message:r}){const s=md(String(e||""));if(gd(t,n)){const i={messageType:"info",message:r};return s&&(i.confirmation="true",i.email=s),{path:"/register",query:i}}const o={messageType:"info",message:r};return s&&(o.email=s),{path:"/login",query:o}}function xN({next:e,type:t,onboardingCompleted:n}){const r=Ix(e);return r==="/onboarding"||gd(e,t)||!n?"/onboarding":r||"/"}const Ky=["/login","/register","/forgot-password","/reset-password","/error","/waitlist","/email-confirmed","/confirm","/404","/maintenance","/update-password","/auth/callback"],jx=["/onboarding","/logout","/auth/callback","/confirm","/error","/maintenance","/reset-password","/forgot-password","/update-password"],Wy=["/submit","/feedback","/submission","/teacher/upload","/tu"];function Do(e,t){return t.some(n=>e.startsWith(n))}function Lx(e){return Do(e,Wy)||Do(e,Ky)}
27class So extends Error{}So.prototype.name="InvalidTokenError";function Mx(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Bx(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Mx(t)}catch{return atob(t)}}function Fx(e,t){if(typeof e!="string")throw new So("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new So(`Invalid token specified: missing part #${n+1}`);let s;try{s=Bx(r)}catch(o){throw new So(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new So(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}async function Ux(){const e=Ze();if(!await e.auth.getUser())return null;const{data:{session:n}}=await e.auth.getSession(),r=n==null?void 0:n.access_token;if(!r)return null;const s=Fx(r);return(s==null?void 0:s.user_role)||null}const Rr=()=>hl("supabase_user",()=>null),Hx=async(e,t)=>{let n,r;if(e.query.error&&e.query.error_code==="otp_expired"){const h=typeof e.query.email=="string"?e.query.email:"",m=typeof e.query.next=="string"?e.query.next:"",y=typeof e.query.type=="string"?e.query.type:"",b=gd(m,y)?"Dein Bestätigungslink 
27ist abgelaufen oder wurde bereits verwendet. Du kannst dir hier sofort einen neuen Bestätigungslink senden lassen.":"Dein Login-Link ist abgelaufen oder wurde bereits verwendet. Bitte fordere dir einen neuen Magic Link an.";return Lr(Nx({email:h,next:m,type:y,message:b}))}const s=Ze();let o=Rr().value;if(!o)try{const{data:{session:h}}=([n,r]=Qn(()=>s.auth.getSession()),n=await n,r(),n);o=(h==null?void 0:h.user)??null}catch(h){console.warn("Failed to restore session in auth middleware:",h)}if(Do(e.path,Wy)||!o&&Lx(e.path))return;if(!o)return Lr("/login");const{getOnboardingCompleted:a}=Rx(),l=t.path.startsWith("/onboarding")||t.path.startsWith("/auth/callback"),c=([n,r]=Qn(()=>a(o.id,{forceRefresh:l})),n=await n,r(),n),u=Do(e.path,jx),d=e.path.startsWith("/onboarding")&&(e.query.debug==="true"||e.query.debug==="1");if(!c&&!u)return Lr("/onboarding");if(c&&e.path.startsWith("/onboarding")&&!d||c&&e.path.startsWith("/auth/callback")||Do(e.path,Ky)&&(e.path.startsWith("/login")||e.path.startsWith("/register")))return Lr("/");const f=([n,r]=Qn(()=>Ux()),n=await n,r(),n);if(e.path.startsWith("/admin")&&!["organization_member"].includes(f??""))return Lr("/404")},Vx=async e=>{let t,n;const r=([t,n]=Qn(()=>Py(e.path)),t=await t,n(),t);if(r.redirect)return Ys(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},qx=[Cx,Hx,Vx],No={checkadmin:()=>oe(()=>import("./B0fHUOFr.js"),[],import.meta.url)};function Kx(e,t,n){const{pathname:r,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){const c=o.includes(e.slice(i))?e.slice(i).length:1;let u=o.slice(c);return u[0]!=="/"&&(u="/"+u),Xf(u,"")}const a=Xf(r,e),l=!n||y1(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+o}const Wx=rt({name:"nuxt:router",enforce:"pre",async setup(e){var b;let t,n,r=or().app.baseURL;Jt.hashMode&&!r.includes("#")&&(r+="#");const s=((b=Jt.history)==null?void 0:b.call(Jt,r))??(Jt.hashMode?eE(r):jy(r)),o=Jt.routes?([t,n]=Qn(()=>Jt.routes(su)),t=await t,n(),t??su):su;let i;const a=EE({...Jt,scrollBehavior:(v,w,g)=>{if(w===un){i=g;return}if(Jt.scrollBehavior){if(a.options.scrollBehavior=Jt.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return Jt.scrollBehavior(v,un,i||g)}},history:s,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=Pr(a.currentRoute.value);a.afterEach((v,w)=>{l.value=w}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=Kx(r,window.location,e.payload.path),u=Pr(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};e.hook("page:finish",d),a.afterEach((v,w)=>{var g,_,S,C;((_=(g=v.matched[0])==null?void 0:g.components)==null?void 0:_.default)===((C=(S=w.matched[0])==null?void 0:S.components)==null?void 0:C.default)&&d()});const f={};for(const v in u.value)Object.defineProperty(f,v,{get:()=>u.value[v],enumerable:!0});e._route=Xn(f),e._middleware=e._middleware||{global:[],named:{}};const h=ul();a.afterEach(async(v,w,g)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(pS),g&&await e.callHook("page:loading:end")});try{[t,n]=Qn(()=>a.isReady()),await t,n()}catch(v){[t,n]=Qn(()=>e.runWithContext(()=>ks(v))),await t,n()}const m=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;d();const y=e.payload.state._layout;return a.beforeEach(async(v,w)=>{var g;await e.callHook("page:loading:start"),v.meta=Ct(v.meta),e.isHydrating&&y&&!tr(v.meta.layout)&&(v.meta.layout=y),e._processingMiddleware=!0;{const _=new Set([...qx,...e._middleware.global]);for(const S of v.matched){const C=S.meta.middleware;if(C)for(const k of pd(C))_.add(k)}{const S=await e.runWithContext(()=>Py(v.path));if(S.appMiddleware)for(const C in S.appMiddleware)S.appMiddleware[C]?_.add(C):_.delete(C)}for(const S of _){const C=typeof S=="string"?e._middleware.named[S]||await((g=No[S])==null?void 0:g.call(No).then($=>$.default||$)):S;if(!C)throw new Error(`Unknown route middleware: '${S}'.`);const k=await e.runWithContext(()=>C(v,w));if(!e.payload.serverRendered&&e.isHydrating&&(k===!1||k instanceof Error)){const $=k||Qu({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>ks($)),!1}if(k!==!0&&(k||k===!1))return k}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(v,w)=>{v.matched.length===0&&await e.runWithContext(()=>ks(Qu({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>
27{try{"name"in m&&(m.name=void 0),await a.replace({...m,force:!0}),a.options.scrollBehavior=Jt.scrollBehavior}catch(v){await e.runWithContext(()=>ks(v))}}),{provide:{router:a}}}}),zx=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>oe(async()=>{const{default:r}=await Promise.resolve().then(()=>Xs);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class yd extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class Gx extends yd{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class $h extends yd{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Ih extends yd{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var dc;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(dc||(dc={}));var Jx=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class Yx{constructor(t,{headers:n={},customFetch:r,region:s=dc.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=zx(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return Jx(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:l}=n;l||(l=this.region);const c=new URL(`${this.url}/${t}`);l&&l!=="any"&&(a["x-region"]=l,c.searchParams.set("forceFunctionRegion",l));let u;i&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",u=i):typeof i=="string"?(a["Content-Type"]="text/plain",u=i):typeof FormData<"u"&&i instanceof FormData?u=i:(a["Content-Type"]="application/json",u=JSON.stringify(i)));const d=yield this.fetch(c.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:u}).catch(y=>{throw new Gx(y)}),f=d.headers.get("x-relay-error");if(f&&f==="true")throw new $h(d);if(!d.ok)throw new Ih(d);let h=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),m;return h==="application/json"?m=yield d.json():h==="application/octet-stream"?m=yield d.blob():h==="text/event-stream"?m=d:h==="multipart/form-data"?m=yield d.formData():m=yield d.text(),{data:m,error:null,response:d}}catch(s){return{data:null,error:s,response:s instanceof Ih||s instanceof $h?s.context:void 0}}})}}var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var It={},vd={},pl={},wi={},ml={},gl={},Qx=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Us=Qx();const Zx=Us.fetch,zy=Us.fetch.bind(Us),Gy=Us.Headers,eP=Us.Request,tP=Us.Response,Xs=Object.freeze(Object.defineProperty({__proto__:null,Headers:Gy,Request:eP,Response:tP,default:zy,fetch:Zx},Symbol.toStringTag,{value:"Module"})),nP=Xx(Xs);var yl={};
27Object.defineProperty(yl,"__esModule",{value:!0});let rP=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};yl.default=rP;var Jy=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gl,"__esModule",{value:!0});const sP=Jy(nP),oP=Jy(yl);let iP=class{constructor(t){var n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=sP.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{var i,a,l,c;let u=null,d=null,f=null,h=o.status,m=o.statusText;if(o.ok){if(this.method!=="HEAD"){const w=await o.text();w===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((i=this.headers.get("Accept"))===null||i===void 0)&&i.includes("application/vnd.pgrst.plan+text"))?d=w:d=JSON.parse(w))}const b=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),v=(l=o.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");b&&v&&v.length>1&&(f=parseInt(v[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(u={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,h=406,m="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const b=await o.text();try{u=JSON.parse(b),Array.isArray(u)&&o.status===404&&(d=[],u=null,h=200,m="OK")}catch{o.status===404&&b===""?(h=204,m="No Content"):u={message:b}}if(u&&this.isMaybeSingle&&(!((c=u==null?void 0:u.details)===null||c===void 0)&&c.includes("0 rows"))&&(u=null,h=200,m="OK"),u&&this.shouldThrowOnError)throw new oP.default(u)}return{error:u,data:d,count:f,status:h,statusText:m}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,l;return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:`${(a=o==null?void 0:o.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=o==null?void 0:o.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};gl.default=iP;var aP=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ml,"__esModule",{value:!0});const lP=aP(gl);let uP=class extends lP.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:o=s}={}){const i=o?`${o}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const o=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
27explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};ml.default=uP;var cP=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wi,"__esModule",{value:!0});const dP=cP(ml);let fP=class extends dP.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${o}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};wi.default=fP;var hP=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pl,"__esModule",{value:!0});const go=hP(wi);let pP=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new go.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:r=!0}={}){var s;const o="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
270){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new go.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){var i;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new go.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(t,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new go.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var n;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new go.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};pl.default=pP;var Yy=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vd,"__esModule",{value:!0});const mP=Yy(pl),gP=Yy(wi);let yP=class Xy{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new mP.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Xy(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{l.searchParams.append(d,f)})):(a="POST",c=n);const u=new Headers(this.headers);return o&&u.set("Prefer",`count=${o}`),new gP.default({method:a,url:l,headers:u,schema:this.schemaName,body:c,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};vd.default=yP;var Qs=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(It,"__esModule",{value:!0});It.PostgrestError=It.PostgrestBuilder=It.PostgrestTransformBuilder=It.PostgrestFilterBuilder=It.PostgrestQueryBuilder=It.PostgrestClient=void 0;const Qy=Qs(vd);It.PostgrestClient=Qy.default;const Zy=Qs(pl);It.PostgrestQueryBuilder=Zy.default;const ev=Qs(wi);It.PostgrestFilterBuilder=ev.default;const tv=Qs(ml);It.PostgrestTransformBuilder=tv.default;const nv=Qs(gl);It.PostgrestBuilder=nv.default;const rv=Qs(yl);It.PostgrestError=rv.default;var vP=It.default={PostgrestClient:Qy.default,PostgrestQueryBuilder:Zy.default,PostgrestFilterBuilder:ev.default,PostgrestTransformBuilder:tv.default,PostgrestBuilder:nv.default,PostgrestError:rv.default};const{PostgrestClient:bP,PostgrestQueryBuilder:$N,PostgrestFilterBuilder:IN,PostgrestTransformBuilder:DN,PostgrestBuilder:NN,PostgrestError:jN}=vP;class wP{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"&&process.versions&&process.versions.node){const n=parseInt(process.versions.node.split(".")[0]);return n>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${n} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${n} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
28import ws from "ws"
29new RealtimeClient(url, { transport: ws })`}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
30
31Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const _P="2.15.1",SP=`realtime-js/${_P}`,kP="1.0.0",fc=1e4,EP=1e3,xP=100;var jo;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(jo||(jo={}));var st;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(st||(st={}));var cn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(cn||(cn={}));var hc;(function(e){e.websocket="websocket"})(hc||(hc={}));var Vr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Vr||(Vr={}));class PP{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+s));i=i+s;const l=r.decode(t.slice(i,i+o));i=i+o;const c=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class sv{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ue;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Ue||(Ue={}));const Dh=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((o,i)=>(o[i]=CP(i,e,t,s),o),{})},CP=(e,t,n,r)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=n[e];return o&&!r.includes(o)?ov(o,i):pc(i)},ov=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return AP(t,n)}switch(e){case Ue.bool:return TP(t);case Ue.float4:case Ue.float8:case Ue.int2:case Ue.int4:case Ue.int8:case Ue.numeric:case Ue.oid:return OP(t);case Ue.json:case Ue.jsonb:return RP(t);case Ue.timestamp:return $P(t);case Ue.abstime:case Ue.date:case Ue.daterange:case Ue.int4range:case Ue.int8range:case Ue.money:case Ue.reltime:case Ue.text:case Ue.time:case Ue.timestamptz:case Ue.timetz:case Ue.tsrange:case Ue.tstzrange:return pc(t);default:return pc(t)}},pc=e=>e,TP=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},OP=e=>{if(typeof e=="string"){const t=parseFloat(e);
31if(!Number.isNaN(t))return t}return e},RP=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},AP=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const i=e.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>ov(t,a))}return e},$P=e=>typeof e=="string"?e.replace(" ","T"):e,iv=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class ou{constructor(t,n,r={},s=fc){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Nh;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Nh||(Nh={}));class Lo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Lo.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=Lo.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Lo.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const o=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(o,(c,u)=>{i[c]||(l[c]=u)}),this.map(i,(c,u)=>{const d=o[c];if(d){const f=u.map(b=>b.presence_ref),h=d.map(b=>b.presence_ref),m=u.filter(b=>h.indexOf(b.presence_ref)<0),y=d.filter(b=>f.indexOf(b.presence_ref)<0);m.length>0&&(a[c]=m),y.length>0&&(l[c]=y)}else a[c]=u}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const d=t[a].map(h=>h.presence_ref),f=u.filter(h=>d.indexOf(h.presence_ref)<0);t[a].unshift(...f)}r(a,u,l)}),this.map(i,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var jh;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(jh||(jh={}));var Mo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Mo||(Mo={}));var Wn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Wn||(Wn={}));class bd{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=st.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new ou(this,cn.join,this.params,this.timeout),this.rejoinTimer=new sv(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=st.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=st.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=st.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=st.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=st.errored,this.rejoinTimer.scheduleTimeout())}),this._on(cn.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new Lo(this),this.broadcastEndpointURL=iv(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.state==st.closed){const{config:{broadcast:o,presence:i,private:a}}=this.params,l=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[Mo.PRESENCE]&&this.bindings[Mo.PRESENCE].length>0,u={},d={broadcast:o,presence:Object.assign(Object.assign({},i),{enabled:c}),postgres_changes:l,private:a};this.socket.accessTokenValue&&(u.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Wn.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Wn.CLOSED)),this.updateJoinPayload(Object.assign({config:d},u)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var h;if(this.socket.setAuth(),f===void 0){t==null||t(Wn.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,y=(h=m==null?void 0:m.length)!==null&&h!==void 0?h:0,b=[];for(let v=0;v<y;v++){const w=m[v],{filter:{event:g,schema:_,table:S,filter:C}}=w,k=f&&f[v];if(k&&k.event===g&&k.schema===_&&k.table===S&&k.filter===C)b.push(Object.assign(Object.assign({},w),{id:k.id}));else{this.unsubscribe(),this.state=st.errored,t==null||t(Wn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=b,t&&t(Wn.SUBSCRIBED);return}}).receive("error",f=>{this.state=st.errored,t==null||t(Wn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Wn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===st.joined&&t===Mo.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:o,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),
31c.receive("ok",()=>o("ok")),c.receive("error",()=>o("error")),c.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=st.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(cn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new ou(this,cn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=st.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new ou(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>xP){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=cn;if(r&&[a,l,c,u].indexOf(i)>=0&&r!==this._joinRef())return;let f=this._onMessage(i,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(h=>{var m,y,b;return((m=h.filter)===null||m===void 0?void 0:m.event)==="*"||((b=(y=h.filter)===null||y===void 0?void 0:y.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(h=>h.callback(f,r)):(o=this.bindings[i])===null||o===void 0||o.filter(h=>{var m,y,b,v,w,g;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in h){const _=h.id,S=(m=h.filter)===null||m===void 0?void 0:m.event;return _&&((y=n.ids)===null||y===void 0?void 0:y.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(w=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return _==="*"||_===((g=n==null?void 0:n.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===i}).map(h=>{if(typeof f=="object"&&"ids"in f){const m=f.data,{schema:y,table:b,commit_timestamp:v,type:w,errors:g}=m;f=Object.assign(Object.assign({},{schema:y,table:b,commit_timestamp:v,eventType:w,new:{},old:{},errors:g}),this._getPayloadRecords(m))}h.callback(f,r)})}_isClosed(){return this.state===st.closed}_isJoined(){return this.state===st.joined}_isJoining(){return this.state===st.joining}_isLeaving(){return this.state===st.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&bd.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(cn.close,{},t)}_onError(t){this._on(cn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=st.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Dh(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Dh(t.columns,t.old_record)),n}}const Lh=()=>{},Fi={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},IP=[1e3,2e3,5e3,1e4],DP=1e4,NP=`
32  addEventListener("message", (e) => {
33    if (e.data.event === "start") {
34      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
35    }
36  });`;class jP{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=fc,this.transport=null,this.heartbeatIntervalMs=Fi.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Lh,this.ref=0,this.reconnectTimer=null,this.logger=Lh,this.conn=null,this.sendBuffer=[],this.serializer
36=new PP,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...i)=>oe(async()=>{const{default:a}=await Promise.resolve().then(()=>Xs);return{default:a}},void 0,import.meta.url).then(({default:a})=>a(...i)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):o=fetch,(...i)=>o(...i)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${hc.websocket}`,this.httpEndpoint=iv(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=wP.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
37
38To use Realtime in Node.js, you need to provide a WebSocket implementation:
39
40Option 1: Use Node.js 22+ which has native WebSocket support
41Option 2: Install and provide the "ws" package:
42
43  npm install ws
44
45  import ws from "ws"
46  const client = new RealtimeClient(url, {
47    ...options,
48    transport: ws
49  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:kP}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case jo.connecting:return Vr.Connecting;case jo.open:return Vr.Open;case jo.closing:return Vr.Closing;default:return Vr.Closed}}isConnected(){return this.connectionState()===Vr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new bd(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(EP,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Fi.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{n.topic==="phoenix"&&n.event==="phx_reply"&&this.heartbeatCallback(n.payload.status==="ok"?"ok":"error"),n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:o,ref:i}=n,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),o),this.channels.filter(c=>
49c._isMember(r)).forEach(c=>c._trigger(s,o,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(cn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([NP],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:SP};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(cn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new sv(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Fi.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,o,i,a,l,c;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:fc,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Fi.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=t==null?void 0:t.reconnectAfterMs)!==null&&a!==void 0?a:u=>IP[u-1]||DP,this.encode=(l=t==null?void 0:t.encode)!==null&&l!==void 0?l:(u,d)=>d(JSON.stringify(u)),this.decode=(c=t==null?void 0:t.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}
49class wd extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function ot(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class LP extends wd{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class mc extends wd{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var MP=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const av=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>oe(async()=>{const{default:r}=await Promise.resolve().then(()=>Xs);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},BP=()=>MP(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield oe(()=>Promise.resolve().then(()=>Xs),void 0,import.meta.url)).Response:Response}),gc=e=>{if(Array.isArray(e))return e.map(n=>gc(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=gc(r)}),t},FP=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var Zr=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const iu=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),UP=(e,t,n
49)=>Zr(void 0,void 0,void 0,function*(){const r=yield BP();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{const o=e.status||500,i=(s==null?void 0:s.statusCode)||o+"";t(new LP(iu(s),o,i))}).catch(s=>{t(new mc(iu(s),s))}):t(new mc(iu(e),e))}),HP=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(FP(r)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),Object.assign(Object.assign({},s),n))};function _i(e,t,n,r,s,o){return Zr(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,HP(t,r,s,o)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>UP(l,a,r))})})}function $a(e,t,n,r){return Zr(this,void 0,void 0,function*(){return _i(e,"GET",t,n,r)})}function kn(e,t,n,r,s){return Zr(this,void 0,void 0,function*(){return _i(e,"POST",t,r,s,n)})}function yc(e,t,n,r,s){return Zr(this,void 0,void 0,function*(){return _i(e,"PUT",t,r,s,n)})}function VP(e,t,n,r){return Zr(this,void 0,void 0,function*(){return _i(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function lv(e,t,n,r,s){return Zr(this,void 0,void 0,function*(){return _i(e,"DELETE",t,r,s,n)})}var wt=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const qP={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Mh={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class KP{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=av(s)}uploadOrUpdate(t,n,r,s){return wt(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Mh),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const c=this._removeEmptyFolders(n),u=this._getFinalPath(c),d=yield(t=="PUT"?yc:kn)(this.fetch,`${this.url}/object/${u}`,o,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:c,id:d.Id,fullPath:d.Key},error:null}}catch(o){if(ot(o))return{data:null,error:o};throw o}})}upload(t,n,r){return wt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return wt(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(t),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const c=Object.assign({upsert:Mh.upsert},s),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const d=yield yc(this.fetch,a.toString(),l,{headers:u});return{data:{path:o,fullPath:d.Key},error:null}}catch(l){if(ot(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return wt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield kn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new wd("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(ot(r))return{data:null,error:r};throw r}})}update(t,n,r){return wt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return wt(this,void 0,void 0,function*(){try{return{data:yield kn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(ot(s))return{data:null,error:s};throw s}})}copy(t,n,r){return wt(this,void 0,void 0,function*(){try{return{data:{path:(yield kn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(ot(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return wt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),o=yield kn(this.fetch,`${this.url}/object/sign/${s}
49`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(ot(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return wt(this,void 0,void 0,function*(){try{const s=yield kn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(ot(s))return{data:null,error:s};throw s}})}download(t,n){return wt(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=o?`?${o}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield $a(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(ot(a))return{data:null,error:a};throw a}})}info(t){return wt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield $a(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:gc(r),error:null}}catch(r){if(ot(r))return{data:null,error:r};throw r}})}exists(t){return wt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield VP(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(ot(r)&&r instanceof mc){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${c}`)}}}remove(t){return wt(this,void 0,void 0,function*(){try{return{data:yield lv(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(ot(n))return{data:null,error:n};throw n}})}list(t,n,r){return wt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},qP),n),{prefix:t||""});return{data:yield kn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(ot(s))return{data:null,error:s};throw s}})}listV2(t,n){return wt(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield kn(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(ot(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const WP="2.11.0",zP={"X-Client-Info":`storage-js/${WP}`};var us=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class GP{constructor(t,n={},r,s){const o=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href,this.headers=Object.assign(Object.assign({},zP),n),this.fetch=av(r)}listBuckets(){return us(this,void 0,void 0,function*(){try{return{data:yield $a(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(ot(t))return{data:null,error:t};throw t}})}getBucket(t){return us(this,void 0,void 0,function*(){try{return{data:yield $a(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(ot(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return us(this,void 0,void 0,function*(){try{return{data:yield kn(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(ot(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return us(this,void 0,void 0,function*(){try{return{data:yield yc(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(ot(r))return{data:null,error:r};throw r}})}emptyBucket(t){return us(this,void 0,void 0,function*(){try{return{data:yield kn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(ot(n))return{data:null,error:n};throw n}})}deleteBucket(t){return us(this,void 0,void 0,function*(){try{return{data:yield lv(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(ot(n))return{data:null,error:n};throw n}})}}class JP extends GP{constructor(t,n={},r,s){super(t,n,r,s)}from(t){return new KP(this.url,this.headers,t,this.fetch)}}const YP="2.56.0";let ko="";typeof Deno<"u"?ko="deno":typeof document<"u"?ko="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ko="react-native":ko="node";const XP={"X-Client-Info":`supabase-js-${ko}/${YP}`},QP={headers:XP},ZP={schema:"public"},eC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},tC={};var nC=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
49return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const rC=e=>{let t;return e?t=e:typeof fetch>"u"?t=zy:t=fetch,(...n)=>t(...n)},sC=()=>typeof Headers>"u"?Gy:Headers,oC=(e,t,n)=>{const r=rC(n),s=sC();return(o,i)=>nC(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new s(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(o,Object.assign(Object.assign({},i),{headers:c}))})};var iC=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};function aC(e){return e.endsWith("/")?e:e+"/"}function lC(e,t){var n,r;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,f={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},c),o),realtime:Object.assign(Object.assign({},u),i),storage:{},global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>iC(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}const uv="2.71.1",bs=30*1e3,vc=3,au=vc*bs,uC="http://localhost:9999",cC="supabase.auth.token",dC={"X-Client-Info":`gotrue-js/${uv}`},bc="X-Supabase-Api-Version",cv={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},fC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,hC=10*60*1e3;
49class _d extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ye(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class pC extends _d{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function mC(e){return ye(e)&&e.name==="AuthApiError"}class dv extends _d{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Dr extends _d{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class mr extends Dr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function gC(e){return ye(e)&&e.name==="AuthSessionMissingError"}class Ui extends Dr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Hi extends Dr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Vi extends Dr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function yC(e){return ye(e)&&e.name==="AuthImplicitGrantRedirectError"}class Bh extends Dr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class wc extends Dr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function lu(e){return ye(e)&&e.name==="AuthRetryableFetchError"}class Fh extends Dr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class _c extends Dr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Uh=` 	
50\r=`.split(""),vC=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Uh.length;t+=1)e[Uh[t].charCodeAt(0)]=-2;for(let t=0;t<Ia.length;t+=1)e[Ia[t].charCodeAt(0)]=t;return e})();function Hh(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ia[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ia[r]),t.queuedBits-=6}}function fv(e,t,n){const r=vC[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Vh(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{_C(i,r,n)};for(let i=0;i<e.length;i+=1)fv(e.charCodeAt(i),s,o);return t.join("")}function bC(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function wC(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}bC(r,t)}}function _C(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function SC(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)fv(e.charCodeAt(s),n,r);return new Uint8Array(t)}function kC(e){const t=[];return wC(e,n=>t.push(n)),new Uint8Array(t)}function EC(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Hh(s,n,r)),Hh(null,n,r),t.join("")}function xC(e){return Math.round(Date.now()/1e3)+e}function PC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const on=()=>typeof window<"u"&&typeof document<"u",Fr={tested:!1,writable:!1},hv=()=>{if(!on())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Fr.tested)return Fr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Fr.tested=!0,Fr.writable=!0}catch{Fr.tested=!0,Fr.writable=!1}return Fr.writable};function CC(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
50h((s,o)=>{t[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const pv=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>oe(async()=>{const{default:r}=await Promise.resolve().then(()=>Xs);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},TC=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ws=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ur=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},ur=async(e,t)=>{await e.removeItem(t)};class vl{constructor(){this.promise=new vl.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}vl.promiseConstructor=Promise;function uu(e){const t=e.split(".");if(t.length!==3)throw new _c("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!fC.test(t[r]))throw new _c("JWT not in base64url format");return{header:JSON.parse(Vh(t[0])),payload:JSON.parse(Vh(t[1])),signature:SC(t[2]),raw:{header:t[0],payload:t[1]}}}async function OC(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function RC(e,t){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){r(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function AC(e){return("0"+e.toString(16)).substr(-2)}function $C(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,AC).join("")}async function IC(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function DC(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await IC(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function cs(e,t,n=!1){const r=$C();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await ws(e,`${t}-code-verifier`,s);const o=await DC(r);return[o,r===o?"plain":"s256"]}const NC=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function jC(e){const t=e.headers.get(bc);if(!t||!t.match(NC))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function LC(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function MC(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const BC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ds(e){if(!BC.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function cu(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function qh(e){return JSON.parse(JSON.stringify(e))}var FC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const Hr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),UC=[502,503,504];async function Kh(e){var t;if(!TC(e))throw new wc(Hr(e),0);if(UC.includes(e.status))throw new wc(Hr(e),e.status);let n;try{n=await e.json()}catch(o){throw new dv(Hr(o),o)}let r;const s=jC(e);if(s&&s.getTime()>=cv["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Fh(Hr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new mr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new Fh(Hr(n),e.status,n.weak_password.reasons);throw new pC(Hr(n),e.status||500,r)}const HC=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function we(e,t,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[bc]||(o[bc]=cv["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await VC(e,t,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function VC(e,t,n,r,s,o){const i=HC(t,r,s,o);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new wc(Hr(l),0)}if(a.ok||await Kh(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Kh(l)}}function qn(e){var t;let n=null;zC(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=xC(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Wh(e){const t=qn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Sr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function qC(e){return{data:e,error:null}}function KC(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=e,i=FC(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function WC(e){return e}function zC(e){return e.access_token&&e.refresh_token&&e.expires_in}const du=["global","local","others"];var GC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class JC{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=pv(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=du[0]){if(du.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${du.join(", ")}`);try{return await we(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ye(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await we(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Sr})}catch(r){if(ye(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=GC(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await we(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:KC,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ye(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await we(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Sr})}catch(n){if(ye(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await we(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:WC});if(u.error)throw u.error;const d=await u.json(),f=(i=u.headers.get("x-total-count"))!==null&&i!==void 0?i:0,h=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
500&&(h.forEach(m=>{const y=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(m.split(";")[1].split("=")[1]);c[`${b}Page`]=y}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(ye(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ds(t);try{return await we(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Sr})}catch(n){if(ye(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ds(t);try{return await we(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Sr})}catch(r){if(ye(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){ds(t);try{return await we(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Sr})}catch(r){if(ye(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ds(t.userId);try{const{data:n,error:r}=await we(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ye(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ds(t.userId),ds(t.id);try{return{data:await we(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ye(n))return{data:null,error:n};throw n}}}function zh(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function YC(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const fs={debug:!!(globalThis&&hv()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class mv extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class XC extends mv{}async function QC(e,t,n){fs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),fs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){fs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{fs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw fs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new XC(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(fs.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}YC();const ZC={url:uC,storageKey:cC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:dC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Gh(e,t,n){return await n()}const hs={};class Jo{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Jo.nextInstanceID,Jo.nextInstanceID+=1,this.instanceID>0&&on()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},ZC),t);
50if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new JC({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=pv(s.fetch),this.lock=s.lock||Gh,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:on()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=QC:this.lock=Gh,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:hv()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=zh(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=zh(this.memoryStorage)),on()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=hs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){hs[this.storageKey]=Object.assign(Object.assign({},hs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=hs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){hs[this.storageKey]=Object.assign(Object.assign({},hs[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${uv}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=CC(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),on()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),yC(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ye(n)?{error:n}:{error:new dv("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const o=await we(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:qn}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(ye(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(t){var n,r,s;try{let o;if("email"in t){const{email:u,password:d,options:f}=t;let h=null,m=null;this.flowType==="pkce"&&([h,m]=await cs(this.storage,this.storageKey)),o=await we(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:m},xform:qn})}else if("phone"in t){const{phone:u,password:d,options:f}=t;o=await we(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:qn})}else throw new Hi("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(ye(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:i,options:a}=t;n=await we(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Wh})}else if("phone"in t){const{phone:o,password:i,options:a}=t;n=await we(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Wh})}else throw new Hi("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Ui}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(ye(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
50ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,s,o,i,a,l,c,u,d,f,h;let m,y;if("message"in t)m=t.message,y=t.signature;else{const{chain:b,wallet:v,statement:w,options:g}=t;let _;if(on())if(typeof v=="object")_=v;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))_=C.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const C=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),w?{statement:w}:null));let k;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")k=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)k=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)m=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),y=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");m=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=g==null?void 0:g.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=g==null?void 0:g.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((i=g==null?void 0:g.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((a=g==null?void 0:g.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((c=g==null?void 0:g.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((d=(u=g==null?void 0:g.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...g.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
51`);const C=await _.signMessage(new TextEncoder().encode(m),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=C}}try{const{data:b,error:v}=await we(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:m,signature:EC(y)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:qn});if(v)throw v;return!b||!b.session||!b.user?{data:{user:null,session:null},error:new Ui}:(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),{data:Object.assign({},b),error:v})}catch(b){if(ye(b))return{data:{user:null,session:null},error:b};throw b}}async _exchangeCodeForSession(t){const n=await Ur(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await we(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:qn});if(await ur(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new Ui}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(ye(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=t,a=await we(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:qn}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Ui}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(ye(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,o,i;try{if("email"in t){const{email:a,options:l}=t;
51let c=null,u=null;this.flowType==="pkce"&&([c,u]=await cs(this.storage,this.storageKey));const{error:d}=await we(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await we(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new Hi("You must provide either an email or phone number.")}catch(a){if(ye(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,o;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await we(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:qn});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(ye(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await cs(this.storage,this.storageKey)),await we(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:qC})}catch(o){if(ye(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new mr;const{error:s}=await we(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(ye(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:o}=t,{error:i}=await we(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:s,options:o}=t,{data:i,error:a}=await we(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new Hi("You must provide either an email or phone number and a type")}catch(n){if(ye(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ur(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
51id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<au:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await Ur(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=cu()}if(this.storage.isServer&&t.user){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,c,u)=>(!i&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,u))})}return{data:{session:t},error:null}}const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await we(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Sr}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new mr}:await we(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:Sr})})}catch(n){if(ye(n))return gC(n)&&(await this._removeSession(),await ur(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new mr;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await cs(this.storage,this.storageKey));const{data:c,error:u}=await we(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Sr});if(u)throw u;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(ye(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new mr;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=uu(t.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(ye(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new mr;const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(ye(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!on())throw new Vi("No browser detected.");
51if(t.error||t.error_description||t.error_code)throw new Vi(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Bh("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Vi("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Bh("No code detected.");const{data:w,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=t;if(!o||!a||!i||!c)throw new Vi("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let f=u+d;l&&(f=parseInt(l));const h=f-u;h*1e3<=bs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const m=f-d;u-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,f,u):u-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,f,u);const{data:y,error:b}=await this._getUser(o);if(b)throw b;const v={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:d,expires_at:f,refresh_token:i,token_type:c,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(r){if(ye(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ur(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{error:o};const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(mC(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await ur(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=PC(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await cs(this.storage,this.storageKey,!0));try{return await we(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(ye(o))return{data:null,error:o};throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(ye(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,c,u;const{data:d,error:f}=o;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await we(this.fetch,"GET",h,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return on()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(ye(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;
51return await we(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ye(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await RC(async s=>(s>0&&await OC(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await we(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:qn})),(s,o)=>{const i=200*Math.pow(2,s);return o&&lu(o)&&Date.now()+i-r<bs})}catch(r){if(this._debug(n,"error",r),ye(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),on()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Ur(this.storage,this.storageKey);if(s&&this.userStorage){let i=await Ur(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await ws(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:cu()}else if(s&&!s.user&&!s.user){const i=await Ur(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await ur(this.storage,this.storageKey+"-user"),await ws(this.storage,this.storageKey,s)):s.user=cu()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const o=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<au;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${au}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),lu(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new mr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new vl;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new mr;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={session:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),ye(o)){const i={session:null,error:o};return lu(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await ws(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const o=qh(s);await ws(this.storage,this.storageKey,o)}else{const s=qh(n);await ws(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await ur(this.storage,this.storageKey),await ur(this.storage,this.storageKey+"-code-verifier"),await ur(this.storage,this.storageKey+"-user"),this.userStorage&&await ur(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&on()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
51catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),bs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/bs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${bs}ms, refresh threshold is ${vc} ticks`),s<=vc&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof mv)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!on()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await cs(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await we(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ye(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:c}=await we(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return c?{data:null,error:c}:(t.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(ye(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
51if(o)return{data:null,error:o};const{data:i,error:a}=await we(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(ye(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await we(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ye(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),o=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:s,phone:o},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:o}=t;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=uu(s.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const u=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:u},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+hC>s)return r;const{data:o,error:i}=await we(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,r=o.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:m}
51=await this.getSession();if(m||!h.session)return{data:null,error:m};r=h.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=uu(r);n!=null&&n.allowExpired||LC(o.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:o,header:s,signature:i},error:null}}const u=MC(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,i,kC(`${a}.${l}`)))throw new _c("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(ye(r))return{data:null,error:r};throw r}}}Jo.nextInstanceID=0;const eT=Jo;class tT extends eT{constructor(t){super(t)}}var nT=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class rT{constructor(t,n,r){var s,o,i;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=aC(t),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,u={db:ZP,realtime:tC,auth:Object.assign(Object.assign({},eC),{storageKey:c}),global:QP},d=lC(r??{},u);this.storageKey=(s=d.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=d.global.headers)!==null&&o!==void 0?o:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=d.auth)!==null&&i!==void 0?i:{},this.headers,d.global.fetch),this.fetch=oC(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new bP(new URL("rest/v1",l).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new JP(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new Yx(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return nT(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:o,flowType:i,lock:a,debug:l},c,u){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new tT({url:this.authUrl.href,headers:Object.assign(Object.assign({},d),c),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:i,lock:a,debug:l,fetch:u,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new jP(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}
51const gv=(e,t,n)=>new rT(e,t,n);function sT(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}sT()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const oT="0.7.0";var Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});var iT=Sd.parse=pT,aT=Sd.serialize=mT;const lT=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,uT=/^[\u0021-\u003A\u003C-\u007E]*$/,cT=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,dT=/^[\u0020-\u003A\u003D-\u007E]*$/,fT=Object.prototype.toString,hT=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function pT(e,t){const n=new hT,r=e.length;if(r<2)return n;const s=(t==null?void 0:t.decode)||gT;let o=0;do{const i=e.indexOf("=",o);if(i===-1)break;const a=e.indexOf(";",o),l=a===-1?r:a;if(i>l){o=e.lastIndexOf(";",i-1)+1;continue}const c=Jh(e,o,i),u=Yh(e,i,c),d=e.slice(c,u);if(n[d]===void 0){let f=Jh(e,i+1,l),h=Yh(e,l,f);const m=s(e.slice(f,h));n[d]=m}o=l+1}while(o<r);return n}function Jh(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function Yh(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function mT(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!lT.test(e))throw new TypeError(`argument name is invalid: ${e}`);const s=r(t);if(!uT.test(s))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+s;if(!n)return o;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);o+="; Max-Age="+n.maxAge}if(n.domain){if(!cT.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);o+="; Domain="+n.domain}if(n.path){if(!dT.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);o+="; Path="+n.path}if(n.expires){if(!yT(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invali
51d: ${n.expires}`);o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.partitioned&&(o+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return o}function gT(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function yT(e){return fT.call(e)==="[object Date]"}function Bo(){return typeof window<"u"&&typeof window.document<"u"}const qi={path:"/",sameSite:"lax",httpOnly:!1,maxAge:400*24*60*60},vT=3180,bT=/^(.*)[.](0|[1-9][0-9]*)$/;function Xh(e,t){if(e===t)return!0;const n=e.match(bT);return!!(n&&n[1]===t)}function wT(e,t,n){const r=vT;let s=encodeURIComponent(t);if(s.length<=r)return[{name:e,value:t}];const o=[];for(;s.length>0;){let i=s.slice(0,r);const a=i.lastIndexOf("%");a>r-3&&(i=i.slice(0,a));let l="";for(;i.length>0;)try{l=decodeURIComponent(i);break}catch(c){if(c instanceof URIError&&i.at(-3)==="%"&&i.length>3)i=i.slice(0,i.length-3);else throw c}o.push(l),s=s.slice(i.length)}return o.map((i,a)=>({name:`${e}.${a}`,value:i}))}async function _T(e,t){const n=await t(e);if(n)return n;let r=[];for(let s=0;;s++){const o=`${e}.${s}`,i=await t(o);if(!i)break;r.push(i)}return r.length>0?r.join(""):null}const Da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Qh=` 	
52\r=`.split(""),ST=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Qh.length;t+=1)e[Qh[t].charCodeAt(0)]=-2;for(let t=0;t<Da.length;t+=1)e[Da[t].charCodeAt(0)]=t;return e})();function kT(e){const t=[];let n=0,r=0;if(PT(e,o=>{for(n=n<<8|o,r+=8;r>=6;){const i=n>>r-6&63;t.push(Da[i]),r-=6}}),r>0)for(n=n<<6-r,r=6;r>=6;){const o=n>>r-6&63;t.push(Da[o]),r-=6}return t.join("")}function ET(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0};let s=0,o=0;for(let i=0;i<e.length;i+=1){const a=e.charCodeAt(i),l=ST[a];if(l>-1)for(s=s<<6|l,o+=6;o>=8;)CT(s>>o-8&255,r,n),o-=8;else{if(l===-2)continue;throw new Error(`Invalid Base64-URL character "${e.at(i)}" at position ${i}`)}}return t.join("")}function xT(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function PT(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}xT(r,t)}}function CT(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}const fu="base64-";function TT(e,t){const n=e.cookies??null,r=e.cookieEncoding,s={},o={};let i,a;if(n)if("get"in n){const l=async c=>{const u=c.flatMap(f=>[f,...Array.from({length:5}).map((h,m)=>`${f}.${m}`)]),d=[];for(let f=0;f<u.length;f+=1){const h=await n.get(u[f]);!h&&typeof h!="string"||d.push({name:u[f],value:h})}return d};if(i=async c=>await l(c),"set"in n&&"remove"in n)a=async c=>{for(let u=0;u<c.length;u+=1){const{name:d,value:f,options:h}=c[u];f?await n.set(d,f,h):await n.remove(d,h)}};else throw new Error("@supabase/ssr: createBrowserClient requires configuring a getAll and setAll cookie method (deprecated: alternatively both get, set and remove can be used)")}else if("getAll"in n)if(i=async()=>await n.getAll(),"setAll"in n)a=n.setAll;else throw new Error("@supabase/ssr: createBrowserClient requires configuring both getAll and setAll cookie methods (deprecated: alternatively both get, set and remove can be used)");else throw new Error(`@supabase/ssr: createBrowserClient requires configuring getAll and setAll cookie methods (deprecated: alternatively use get, set and remove).${Bo()?" As this is called 
52in a browser runtime, consider removing the cookies option object to use the document.cookie API automatically.":""}`);else if(Bo()){const l=()=>{const c=iT(document.cookie);return Object.keys(c).map(u=>({name:u,value:c[u]??""}))};i=()=>l(),a=c=>{c.forEach(({name:u,value:d,options:f})=>{document.cookie=aT(u,d,f)})}}else i=()=>[],a=()=>{throw new Error("@supabase/ssr: createBrowserClient in non-browser runtimes (including Next.js pre-rendering mode) was not initialized cookie options that specify getAll and setAll functions (deprecated: alternatively use get, set and remove), but they were needed")};return{getAll:i,setAll:a,setItems:s,removedItems:o,storage:{isServer:!1,getItem:async l=>{const c=await i([l]),u=await _T(l,async f=>{const h=(c==null?void 0:c.find(({name:m})=>m===f))||null;return h?h.value:null});if(!u)return null;let d=u;return u.startsWith(fu)&&(d=ET(u.substring(fu.length))),d},setItem:async(l,c)=>{const u=await i([l]),d=(u==null?void 0:u.map(({name:w})=>w))||[],f=new Set(d.filter(w=>Xh(w,l)));let h=c;r==="base64url"&&(h=fu+kT(c));const m=wT(l,h);m.forEach(({name:w})=>{f.delete(w)});const y={...qi,...e==null?void 0:e.cookieOptions,maxAge:0},b={...qi,...e==null?void 0:e.cookieOptions,maxAge:qi.maxAge};delete y.name,delete b.name;const v=[...[...f].map(w=>({name:w,value:"",options:y})),...m.map(({name:w,value:g})=>({name:w,value:g,options:b}))];v.length>0&&await a(v)},removeItem:async l=>{const c=await i([l]),d=((c==null?void 0:c.map(({name:h})=>h))||[]).filter(h=>Xh(h,l)),f={...qi,...e==null?void 0:e.cookieOptions,maxAge:0};delete f.name,d.length>0&&await a(d.map(h=>({name:h,value:"",options:f})))}}}}let hu;function OT(e,t,n){var i,a;const r=(n==null?void 0:n.isSingleton)===!0||(!n||!("isSingleton"in n))&&Bo();if(r&&hu)return hu;if(!e||!t)throw new Error(`@supabase/ssr: Your project's URL and API key are required to create a Supabase client!
53
54Check your Supabase project's API settings to find these values
55
56https://supabase.com/dashboard/project/_/settings/api`);const{storage:s}=TT({...n,cookieEncoding:(n==null?void 0:n.cookieEncoding)??"base64url"}),o=gv(e,t,{...n,global:{...n==null?void 0:n.global,headers:{...(i=n==null?void 0:n.global)==null?void 0:i.headers,"X-Client-Info":`supabase-ssr/${oT} createBrowserClient`}},auth:{...n==null?void 0:n.auth,...(a=n==null?void 0:n.cookieOptions)!=null&&a.name?{storageKey:n.cookieOptions.name}:null,flowType:"pkce",autoRefreshToken:Bo(),detectSessionInUrl:Bo(),persistSession:!0,storage:s}});return r&&(hu=o),o}async function Zh(e,t){var r;for(let s=1;s<=3;s++)try{return await fetch(e,t)}catch(o){if((r=t==null?void 0:t.signal)!=null&&r.aborted)throw o;if(s===3)throw console.error(`Error fetching request ${e}`,o,t),o;console.warn(`Retrying fetch attempt ${s+1} for request: ${e}`)}throw new Error("Unreachable code")}const RT=()=>hl("supabase_session",()=>null),AT=rt({name:"supabase",enforce:"pre",async setup({provide:e}){const{url:t,key:n,cookieOptions:r,cookiePrefix:s,useSsrCookies:o,clientOptions:i}=or().public.supabase;let a;o?a=OT(t,n,{...i,cookieOptions:{...r,name:s},isSingleton:!0,global:{fetch:Zh,...i.global}}):a=gv(t,n,{...i,global:{fetch:Zh,...i.global}}),e("supabase",{client:a});const l=RT(),c=Rr();a.auth.onAuthStateChange((u,d)=>{JSON.stringify(l.value)!==JSON.stringify(d)&&(l.value=d,c.value=(d==null?void 0:d.user)??null)})}}),ep=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),LN=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),yv=e=>{const t=Xe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{ep(()=>e())}):ep(()=>e())},$T=rt(()=>{const e=Vt();yv(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),IT=rt(e=>{let t;async function n(){const r=await xy();t&&clearTimeout(t),t=setTimeout(n,nh);try{const s=await $fetch(cd("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}yv(()=>{t=setTimeout(n,nh)})});function DT(e={}){const t=e.path||window.location.pathname;let n={};try{n=Ea(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Xe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const NT=rt({name:"nuxt:chunk-reload",setup(e){const t=Vt(),n=or(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:Qg(n.app.baseURL,o.fullPath);DT({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),jT=rt({name:"pinia",setup(e){const t=gS();return e.vueApp.use(t),bi(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),LT=rt({name:"nuxt:global-components"}),kr={admin:()=>oe(()=>import("./5lFXopH4.js"),__vite__mapDeps([191,192]),import.meta.url),auth:()=>oe(()=>import("./DjdvKgHP.js"),[],import.meta.url),center:()=>oe(()=>import("./B9D7c4XI.js"),__vite__mapDeps([193,194]),import.meta.url),content:()=>oe(()=>import("./BagqiTV-.js"),__vite__mapDeps([195,196]),import.meta.url),default:()=>oe(()=>import("./C9dkAE-0.js"),__vite__mapDeps([197,198,11,36,99,32,33,34,35,37,150,53,68,38,164,116,8,14,144,52,199,200]),import.meta.url),editor:()=>oe(()=>import("./CoFnJFpS.js"),__vite__mapDeps([201,115,116,117,202]),import.meta.url),error:()=>oe(()=>import("./BuHr5F2m.js"),__vite__mapDeps([203,202]),import.meta.url),fullscreen:()=>oe(()=>import("./C4L72Vix.js"),__vite__mapDeps([204,205]),import.meta.url),none:()=>oe(()=>import("./D5AChsyq.js"),__vite__mapDeps([206,194]),import.meta.url),onboarding:()=>oe(()=>import("./Bm0js7p8.js"),[],import.meta.url),report:()=>oe(()=>import("./eR_a5Nvh.js"),__vite__mapDeps([207,198,11,36,99,32,33,34,35,37,150,53,68,38,164,116,8,14,144,52,199,208]),import.meta.url),sidebar:()=>oe(()=>import("./BrvWRHAx.js"),__vite__mapDeps([209,198,11,36,99,32,33,34,35,37,150,53,68,38,164,116,8,14,144,52,199,200,192]),import.meta.url),student:()=>oe(()=>
56import("./FyQABIDf.js"),__vite__mapDeps([210,115,116,117,211]),import.meta.url)},MT=rt({name:"nuxt:prefetch",setup(e){const t=Vt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof kr[r]=="function"&&await kr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Ys(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let o=pd(r.meta.middleware);o=o.filter(i=>typeof i=="string");for(const i of o)typeof No[i]=="function"&&No[i]();s&&typeof kr[s]=="function"&&kr[s]()})}}),BT=rt(()=>({provide:{pwaIcons:{transparent:{},maskable:{},favicon:{},apple:{},appleSplashScreen:{}}}})),FT="__NUXT_COLOR_MODE__",pu="nuxt-color-mode",UT="localStorage",Bn=window[FT]||{},HT=rt(e=>{const t=hl("color-mode",()=>Ct({preference:Bn.preference,value:Bn.value,unknown:!1,forced:!1})).value;Vt().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?Bn.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Bn.getColorScheme())}))}function s(o,i){var a,l;switch(o){case"cookie":window.document.cookie=pu+"="+i;break;case"sessionStorage":(a=window.sessionStorage)==null||a.setItem(pu,i);break;case"localStorage":default:(l=window.localStorage)==null||l.setItem(pu,i)}}ge(()=>t.preference,o=>{t.forced||(o==="system"?(t.value=Bn.getColorScheme(),r()):t.value=o,s(UT,o))},{immediate:!0}),ge(()=>t.value,(o,i)=>{Bn.removeColorScheme(i),Bn.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Bn.preference,t.value=Bn.value,t.unknown=!1)}),e.provide("colorMode",t)}),VT=rt(()=>{});function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function kd(e,t,n){return t=Qo(t),qT(e,xd()?Reflect.construct(t,n||[],Qo(e).constructor):t.apply(e,n))}function qT(e,t){if(t&&(Hs(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KT(e)}function KT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ed(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xo(e,t)}function Yo(e){var t=typeof Map=="function"?new Map:void 0;return Yo=function(r){if(r===null||!zT(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return WT(r,arguments,Qo(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Xo(s,r)},Yo(e)}function WT(e,t,n){if(xd())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var s=new(e.bind.apply(e,r));return n&&Xo(s,n.prototype),s}function xd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xd=function(){return!!e})()}function zT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Xo(e,t){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xo(e,t)}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qo(e)}function tp(e){return YT(e)||JT(e)||vv(e)||GT()}function GT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YT(e){if(Array.isArray(e))return Sc(e)}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
57t%2?np(Object(n),!0).forEach(function(r){Zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oa(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vv(e))||t){n&&(e=n);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,o=c},f:function(){try{i||n.return==null||n.return()}finally{if(a)throw o}}}}function vv(e,t){if(e){if(typeof e=="string")return Sc(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sc(e,t):void 0}}function Sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zs(e,t,n){return(t=bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function o(h,m,y,b){var v=m&&m.prototype instanceof a?m:a,w=Object.create(v.prototype);return Mt(w,"_invoke",function(g,_,S){var C,k,$,P=0,x=S||[],j=!1,O={p:0,n:0,v:e,a:q,f:q.bind(e,4),d:function(V,F){return C=V,k=0,$=e,O.n=F,i}};function q(K,V){for(k=K,$=V,t=0;!j&&P&&!F&&t<x.length;t++){var F,W=x[t],X=O.p,pe=W[2];K>3?(F=pe===V)&&($=W[(k=W[4])?5:(k=3,3)],W[4]=W[5]=e):W[0]<=X&&((F=K<2&&X<W[1])?(k=0,O.v=V,O.n=W[1]):X<pe&&(F=K<3||W[0]>V||V>pe)&&(W[4]=K,W[5]=V,O.n=pe,k=0))}if(F||K>1)return i;throw j=!0,V}return function(K,V,F){if(P>1)throw TypeError("Generator is already running");for(j&&V===1&&q(V,F),k=V,$=F;(t=k<2?e:$)||!j;){C||(k?k<3?(k>1&&(O.n=-1),q(k,$)):O.n=$:O.v=$);try{if(P=2,C){if(k||(K="next"),t=C[K]){if(!(t=t.call(C,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,k<2&&(k=0)}else k===1&&(t=C.return)&&t.call(C),k<2&&($=TypeError("The iterator does not provide a '"+K+"' method"),k=1);C=e}else if((t=(j=O.n<0)?$:g.call(_,O))!==i)break}catch(W){C=e,k=1,$=W}finally{P=1}}return{value:t,done:j}}}(h,y,b),!0),w}var i={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mt(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function f(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,Mt(h,s,"GeneratorFunction")),h.prototype=Object.create(d),h}return l.prototype=c,Mt(d,"constructor",c),Mt(c,"constructor",l),l.displayName="GeneratorFunction",Mt(c,s,"GeneratorFunction"),Mt(d),Mt(d,s,"Generator"),Mt(d,r,function(){return this}),Mt(d,"toString",function(){return"[object Generator]"}),(Et=function(){return{w:o,m:f}})()}function Mt(e,t,n,r){var s=Object.defineProperty;try{s({},"",{})}catch{s=0}Mt=function(i,a,l,c){function u(d,f){Mt(i,d,function(h){return this._invoke(d,f,h)})}a?s?s(i,a,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[a]=l:(u("next",0),u("throw",1),u("return",2))},Mt(e,t,n,r)}function rp(e,t,n,r,s,o,i){try{var a=e[o](i),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,s)}function qr(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var o=e.apply(t,n);function i(l){rp(o,r,s,i,a,"next",l)}function a(l){rp(o,r,s,i,a,"throw",l)}i(void 0)})}}function es(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bv(r.key),r)}}function ts(e,t,n){return t&&XT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bv(e){var t=QT(e,"string");return Hs(t)=="symbol"?t:t+""}function QT(e,t){if(Hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZT="http://localhost".replace(/\/+$/,""),wv=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};es(this,e),this.configuration=t}
58return ts(e,[{key:"config",set:function(n){this.configuration=n}},{key:"basePath",get:function(){return this.configuration.basePath!=null?this.configuration.basePath:ZT}},{key:"fetchApi",get:function(){return this.configuration.fetchApi}},{key:"middleware",get:function(){return this.configuration.middleware||[]}},{key:"queryParamsStringify",get:function(){return this.configuration.queryParamsStringify||Sv}},{key:"username",get:function(){return this.configuration.username}},{key:"password",get:function(){return this.configuration.password}},{key:"apiKey",get:function(){var n=this.configuration.apiKey;if(n)return typeof n=="function"?n:function(){return n}}},{key:"accessToken",get:function(){var n=this.configuration.accessToken;if(n)return typeof n=="function"?n:qr(Et().m(function r(){return Et().w(function(s){for(;;)switch(s.n){case 0:return s.a(2,n)}},r)}))}},{key:"headers",get:function(){return this.configuration.headers}},{key:"credentials",get:function(){return this.configuration.credentials}}])}(),eO=new wv,_v=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eO;es(this,e),Zs(this,"fetchApi",function(){var r=qr(Et().m(function s(o,i){var a,l,c,u,d,f,h,m,y,b,v,w,g,_,S,C,k,$;return Et().w(function(P){for(;;)switch(P.p=P.n){case 0:a={url:o,init:i},l=oa(t.middleware),P.p=1,l.s();case 2:if((c=l.n()).done){P.n=6;break}if(u=c.value,!u.pre){P.n=5;break}return P.n=3,u.pre(yo({fetch:t.fetchApi},a));case 3:if(w=P.v,w){P.n=4;break}w=a;case 4:a=w;case 5:P.n=2;break;case 6:P.n=8;break;case 7:P.p=7,g=P.v,l.e(g);case 8:return P.p=8,l.f(),P.f(8);case 9:return d=void 0,P.p=10,P.n=11,(t.configuration.fetchApi||fetch)(a.url,a.init);case 11:d=P.v,P.n=23;break;case 12:P.p=12,_=P.v,f=oa(t.middleware),P.p=13,f.s();case 14:if((h=f.n()).done){P.n=18;break}if(m=h.value,!m.onError){P.n=17;break}return P.n=15,m.onError({fetch:t.fetchApi,url:a.url,init:a.init,error:_,response:d?d.clone():void 0});case 15:if(S=P.v,S){P.n=16;break}S=d;case 16:d=S;case 17:P.n=14;break;case 18:P.n=20;break;case 19:P.p=19,C=P.v,f.e(C);case 20:return P.p=20,f.f(),P.f(20);case 21:if(d!==void 0){P.n=23;break}if(!(_ instanceof Error)){P.n=22;break}throw new sO(_,"The request failed and the interceptors did not return an alternative response");case 22:throw _;case 23:y=oa(t.middleware),P.p=24,y.s();case 25:if((b=y.n()).done){P.n=29;break}if(v=b.value,!v.post){P.n=28;break}return P.n=26,v.post({fetch:t.fetchApi,url:a.url,init:a.init,response:d.clone()});case 26:if(k=P.v,k){P.n=27;break}k=d;case 27:d=k;case 28:P.n=25;break;case 29:P.n=31;break;case 30:P.p=30,$=P.v,y.e($);case 31:return P.p=31,y.f(),P.f(31);case 32:return P.a(2,d)}},s,null,[[24,30,31,32],[13,19,20,21],[10,12],[1,7,8,9]])}));return function(s,o){return r.apply(this,arguments)}}()),this.configuration=n,this.middleware=n.middleware}return ts(e,[{key:"withMiddleware",value:function(){var n,r=this.clone();return r.middleware=(n=r.middleware).concat.apply(n,arguments),r}},{key:"withPreMiddleware",value:function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];var o=r.map(function(i){return{pre:i}});return this.withMiddleware.apply(this,tp(o))}},{key:"withPostMiddleware",value:function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];var o=r.map(function(i){return{post:i}});return this.withMiddleware.apply(this,tp(o))}},{key:"isJsonMime",value:function(n){return n?e.jsonRegex.test(n):!1}},{key:"request",value:function(){var t=qr(Et().m(function r(s,o){var i,a,l,c;return Et().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this.createFetchParams(s,o);case 1:return i=u.v,a=i.url,l=i.init,u.n=2,this.fetchApi(a,l);case 2:if(c=u.v,!(c&&c.status>=200&&c.status<300)){u.n=3;break}return u.a(2,c);case 3:throw new rO(c,"Response returned an error code");case 4:return u.a(2)}},r,this)}));function n(r,s){return t.apply(this,arguments)}return n}()},{key:"createFetchParams",value:function(){var t=qr(Et().m(function r(s,o){var i,a,l,c,u,d,f,h,m;return Et().w(function(y){for(;;)switch(y.n){case 0:return i=this.configuration.basePath+s.path,s.query!==void 0&&Object.keys(s.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(s.query)),a=Object.assign({}
58,this.configuration.headers,s.headers),Object.keys(a).forEach(function(b){return a[b]===void 0?delete a[b]:{}}),l=typeof o=="function"?o:qr(Et().m(function b(){return Et().w(function(v){for(;;)switch(v.n){case 0:return v.a(2,o)}},b)})),c={method:s.method,headers:a,body:s.body,credentials:this.configuration.credentials},h=yo,m=yo({},c),y.n=1,l({init:c,context:s});case 1:return u=h(m,y.v),nO(u.body)||u.body instanceof URLSearchParams||tO(u.body)?d=u.body:this.isJsonMime(a["Content-Type"])?d=JSON.stringify(u.body):d=u.body,f=yo(yo({},u),{},{body:d}),y.a(2,{url:i,init:f})}},r,this)}));function n(r,s){return t.apply(this,arguments)}return n}()},{key:"clone",value:function(){var n=this.constructor,r=new n(this.configuration);return r.middleware=this.middleware.slice(),r}}])}();Zs(_v,"jsonRegex",new RegExp("^(:?application/json|[^;/ 	]+/[^;/ 	]+[+]json)[ 	]*(:?;.*)?$","i"));function tO(e){return typeof Blob<"u"&&e instanceof Blob}function nO(e){return typeof FormData<"u"&&e instanceof FormData}var rO=function(e){function t(n,r){var s;return es(this,t),s=kd(this,t,[r]),Zs(s,"name","ResponseError"),s.response=n,s}return Ed(t,e),ts(t)}(Yo(Error)),sO=function(e){function t(n,r){var s;return es(this,t),s=kd(this,t,[r]),Zs(s,"name","FetchError"),s.cause=n,s}return Ed(t,e),ts(t)}(Yo(Error)),rn=function(e){function t(n,r){var s;return es(this,t),s=kd(this,t,[r]),Zs(s,"name","RequiredError"),s.field=n,s}return Ed(t,e),ts(t)}(Yo(Error));function Sv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).map(function(n){return kv(n,e[n],t)}).filter(function(n){return n.length>0}).join("&")}function kv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=n+(n.length?"[".concat(e,"]"):e);if(t instanceof Array){var s=t.map(function(i){return encodeURIComponent(String(i))}).join("&".concat(encodeURIComponent(r),"="));return"".concat(encodeURIComponent(r),"=").concat(s)}if(t instanceof Set){var o=Array.from(t);return kv(e,o,n)}return t instanceof Date?"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t.toISOString())):t instanceof Object?Sv(t,r):"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(t)))}function oO(e){var t=oa(e),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.contentType==="multipart/form-data")return!0}}catch(s){t.e(s)}finally{t.f()}return!1}var mt=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(r){return r};es(this,e),this.raw=t,this.transformer=n}return ts(e,[{key:"value",value:function(){var t=qr(Et().m(function r(){var s;return Et().w(function(o){for(;;)switch(o.n){case 0:return s=this,o.n=1,this.raw.json();case 1:return o.a(2,s.transformer.call(s,o.v))}},r,this)}));function n(){return t.apply(this,arguments)}return n}()}])}(),Fn=function(){function e(t){es(this,e),this.raw=t}return ts(e,[{key:"value",value:function(){var t=qr(Et().m(function r(){return Et().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,this.raw.text();case 1:return s.a(2,s.v)}},r,this)}));function n(){return t.apply(this,arguments)}return n}()}])}();function iO(e){return e==null?e:{urls:e.urls,source_file_id:e.source_file_id,ocr_file_id:e.ocr_file_id}}function Pd(e){return aO(e)}function aO(e,t){return e}function Cd(e){return lO(e)}function lO(e,t){return e}function uO(e){return cO(e)}function cO(e,t){return e}function dO(e){return fO(e)}function fO(e,t){return e}function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(n),!0).forEach(function(r){hO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEac
58h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hO(e,t,n){return(t=pO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pO(e){var t=mO(e,"string");return Zo(t)=="symbol"?t:t+""}function mO(e,t){if(Zo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Td(e){return e==null?e:op(op({},e),{},{created_at:e.created_at,created_by:e.created_by,description:e.description,grade:e.grade,id:e.id,name:e.name,subject_id:e.subject_id,updated_at:e.updated_at})}function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(n),!0).forEach(function(r){gO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gO(e,t,n){return(t=yO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yO(e){var t=vO(e,"string");return ei(t)=="symbol"?t:t+""}function vO(e,t){if(ei(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ei(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bO(e){return e==null?e:ap(ap({},e),{},{created_at:e.created_at,created_by:e.created_by,criteria:e.criteria,description:e.description,id:e.id,name:e.name,updated_at:e.updated_at})}function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(r){wO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wO(e,t,n){return(t=_O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _O(e){var t=SO(e,"string");return ti(t)=="symbol"?t:t+""}function SO(e,t){if(ti(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ti(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Od(e){return e==null?e:up(up({},e),{},{class_id:e.class_id,created_at:e.created_at,created_by:e.created_by,data:e.data,description:e.description,due_date:e.due_date,feedback_template:e.feedback_template,id:e.id,status:e.status,title:e.title,updated_at:e.updated_at})}function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function dp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
58t%2?cp(Object(n),!0).forEach(function(r){kO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kO(e,t,n){return(t=EO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EO(e){var t=xO(e,"string");return ni(t)=="symbol"?t:t+""}function xO(e,t){if(ni(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ni(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rd(e){return e==null?e:dp(dp({},e),{},{created_at:e.created_at,created_by:e.created_by,description:e.description,id:e.id,name:e.name,updated_at:e.updated_at})}function PO(e){return e==null?e:{task:Od(e.task),classes:Td(e.classes),subject:Rd(e.subject),clusters:e.clusters.map(bO)}}function CO(e){return TO(e)}function TO(e,t){return e}function OO(e){return RO(e)}function RO(e,t){return e}function AO(e){return $O(e)}function $O(e,t){return e}function IO(e){return DO(e)}function DO(e,t){return e}function NO(e){return jO(e)}function jO(e,t){return e}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fp(Object(n),!0).forEach(function(r){LO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LO(e,t,n){return(t=MO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MO(e){var t=BO(e,"string");return ri(t)=="symbol"?t:t+""}function BO(e,t){if(ri(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FO(e){return UO(e)}function UO(e,t){return e==null?e:Na(Na({},e),{},{created_at:e.created_at==null?void 0:Cd(e.created_at),created_by:e.created_by==null?void 0:Pd(e.created_by),score:e.score==null?void 0:AO(e.score),skillDetail_id:e.skillDetail_id==null?void 0:IO(e.skillDetail_id),skill_id:e.skill_id,value:e.value==null?void 0:NO(e.value),requirements:e.requirements==null?void 0:e.requirements,example:e.example==null?void 0:e.example})}function HO(e){return e==null?e:Na(Na({},e),{},{created_at:e.created_at,created_by:e.created_by,score:e.score,skillDetail_id:e.skillDetail_id,skill_id:e.skill_id,value:e.value,requirements:e.requirements,example:e.example})}function VO(e){return qO(e)}function qO(e,t){return e}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(r){KO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KO(e,t,n){return(t=WO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WO(e){var t=zO(e,"string");return si(t)=="symbol"?t:t+""}function zO(e,t){if(si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GO(e){return JO(e)}function JO(e,t){return e==null?e:ja(ja({},e),{},{created_at:e.created_at==null?void 0:Cd(e.created_at),created_by:e.created_by==null?void 0:Pd(e.created_by),description:e.description,details:e.details==null?void 0:OO(e.details),id:e.id==null?void 0:uO(e.id),maxScore:e.maxScore==null?void 0:CO(e.maxScore),name:e.name,group_id:e.group_id==null?void 0:VO(e.group_id),levels:e.levels==null?void 0:e.levels.map(FO)})}function YO(e){return e==null?e:ja(ja({},e),{},{created_at:e.created_at,created_by:e.created_by,description:e.description,details:e.details,id:e.id,maxScore:e.maxScore,name:e.name,group_id:e.group_id,levels:e.levels==null?void 0:e.levels.map(HO)})}function XO(e){return QO(e)}function QO(e,t){return e}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
58t%2?pp(Object(n),!0).forEach(function(r){ZO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZO(e,t,n){return(t=eR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eR(e){var t=tR(e,"string");return oi(t)=="symbol"?t:t+""}function tR(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ev(e){return nR(e)}function nR(e,t){return e==null?e:mp(mp({},e),{},{created_at:e.created_at==null?void 0:Cd(e.created_at),created_by:e.created_by==null?void 0:Pd(e.created_by),description:e.description==null?void 0:XO(e.description),id:e.id,name:e.name,updated_at:e.updated_at==null?void 0:dO(e.updated_at),skills:e.skills.map(GO)})}function rR(e){return sR(e)}function sR(e,t){return e==null?e:{skill_groups:e.skill_groups.map(Ev)}}function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(n),!0).forEach(function(r){oR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oR(e,t,n){return(t=iR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iR(e){var t=aR(e,"string");return ii(t)=="symbol"?t:t+""}function aR(e,t){if(ii(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ii(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xv(e){return e==null?e:yp(yp({},e),{},{created_at:e.created_at,created_by:e.created_by,description:e.description,id:e.id,name:e.name,updated_at:e.updated_at,skills:e.skills.map(YO)})}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(n),!0).forEach(function(r){lR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lR(e,t,n){return(t=uR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=cR(e,"string");return ai(t)=="symbol"?t:t+""}function cR(e,t){if(ai(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ai(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dR(e){return e==null?e:bp(bp({},e),{},{created_at:e.created_at,created_by:e.created_by,feedback:e.feedback,id:e.id,path:e.path,solution:e.solution,status:e.status,student_id:e.student_id,task_id:e.task_id,updated_at:e.updated_at,uploaded_at:e.uploaded_at})}function wp(e){return e==null?e:{task:Od(e.task),submission:dR(e.submission),subject:Rd(e.subject),classes:Td(e.classes),skill_groups:e.skill_groups.map(xv)}}function fR(e){return e==null?e:{id:e.id,name:e.name,score:e.score}}function hR(e){return pR(e)}function pR(e,t){return e==null?e:{value:e.value,label:e.label}}function mR(e){return gR(e)}function gR(e,t){return e==null?e:{success:e.success,grades:e.grades.map(hR)}}function yR(e){return e==null?e:{latex:e.latex}}function vR(e){return e==null?e:{pl_id:e.pl_id,score:e.score}}function bR(e){return wR(e)}function wR(e,t){return e==null?e:{skill_id:e.skill_id,submission_id:e.submission_id,score:e.score,reason:e.reason==null?void 0:e.reason,proof:e.proof==null?void 0:e.proof,recommendation:e.recommendation==null?void 0:e.recommendation}}function _R(e){return SR(e)}function SR(e,t){return e==null?e:{group_id:e.group_id,submission_id:e.submission_id,feedback:e.feedback}}function kR(e){return e==null?e:{task:Od(e.task),subject:Rd(e.subject),classes:Td(e.classes),skill_groups:e.skill_groups.map(xv)}}function ER(e){return xR(e)}function xR(e,t){return e==null?e:{skill_groups:e.skill_groups.map(Ev)}}function PR(e){return CR(e)}function CR(e,t){return e==null?e:{skill_feedbacks:e.skill_feedbacks.map(bR),skill_group_feedbacks:e.skill_group_feedbacks.map(_R)}}function TR(e){return e==null?e:{student_name:e.student_name,formulations:e.formulations.map(fR),grade:e.grade}}function OR(e){return RR(e)}function RR(e,t){return e==null?e:{success:e.success,student_name:e.student_name,report_text:e.report_text,formulations_count:e.formulations_count,grade:e.grade==null?void 0:e.grade}}
58function AR(e){return e==null?e:{tikz:e.tikz}}function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function o(h,m,y,b){var v=m&&m.prototype instanceof a?m:a,w=Object.create(v.prototype);return Bt(w,"_invoke",function(g,_,S){var C,k,$,P=0,x=S||[],j=!1,O={p:0,n:0,v:e,a:q,f:q.bind(e,4),d:function(V,F){return C=V,k=0,$=e,O.n=F,i}};function q(K,V){for(k=K,$=V,t=0;!j&&P&&!F&&t<x.length;t++){var F,W=x[t],X=O.p,pe=W[2];K>3?(F=pe===V)&&($=W[(k=W[4])?5:(k=3,3)],W[4]=W[5]=e):W[0]<=X&&((F=K<2&&X<W[1])?(k=0,O.v=V,O.n=W[1]):X<pe&&(F=K<3||W[0]>V||V>pe)&&(W[4]=K,W[5]=V,O.n=pe,k=0))}if(F||K>1)return i;throw j=!0,V}return function(K,V,F){if(P>1)throw TypeError("Generator is already running");for(j&&V===1&&q(V,F),k=V,$=F;(t=k<2?e:$)||!j;){C||(k?k<3?(k>1&&(O.n=-1),q(k,$)):O.n=$:O.v=$);try{if(P=2,C){if(k||(K="next"),t=C[K]){if(!(t=t.call(C,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,k<2&&(k=0)}else k===1&&(t=C.return)&&t.call(C),k<2&&($=TypeError("The iterator does not provide a '"+K+"' method"),k=1);C=e}else if((t=(j=O.n<0)?$:g.call(_,O))!==i)break}catch(W){C=e,k=1,$=W}finally{P=1}}return{value:t,done:j}}}(h,y,b),!0),w}var i={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Bt(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function f(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,Bt(h,s,"GeneratorFunction")),h.prototype=Object.create(d),h}return l.prototype=c,Bt(d,"constructor",c),Bt(c,"constructor",l),l.displayName="GeneratorFunction",Bt(c,s,"GeneratorFunction"),Bt(d),Bt(d,s,"Generator"),Bt(d,r,function(){return this}),Bt(d,"toString",function(){return"[object Generator]"}),(ue=function(){return{w:o,m:f}})()}function Bt(e,t,n,r){var s=Object.defineProperty;try{s({},"",{})}catch{s=0}Bt=function(i,a,l,c){function u(d,f){Bt(i,d,function(h){return this._invoke(d,f,h)})}a?s?s(i,a,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[a]=l:(u("next",0),u("throw",1),u("return",2))},Bt(e,t,n,r)}function _p(e,t,n,r,s,o,i){try{var a=e[o](i),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,s)}function Ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var o=e.apply(t,n);function i(l){_p(o,r,s,i,a,"next",l)}function a(l){_p(o,r,s,i,a,"throw",l)}i(void 0)})}}function $R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NR(r.key),r)}}function DR(e,t,n){return t&&IR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NR(e){var t=jR(e,"string");return Vs(t)=="symbol"?t:t+""}function jR(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function LR(e,t,n){return t=La(t),MR(e,Pv()?Reflect.construct(t,n||[],La(e).constructor):t.apply(e,n))}function MR(e,t){if(t&&(Vs(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BR(e)}function BR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pv=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},La(e)}function FR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kc(e,t)}
58function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kc(e,t)}var UR=function(e){function t(){return $R(this,t),LR(this,t,arguments)}return FR(t,e),DR(t,[{key:"analyzeAwsRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.requestBody!=null){u.n=1;break}throw new rn("requestBody",'Required parameter "requestBody" was null or undefined when calling analyzeAws().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/analyze_aws",method:"POST",headers:l,query:a,body:o.requestBody},i);case 2:if(c=u.v,!this.isJsonMime(c.headers.get("content-type"))){u.n=3;break}return u.a(2,new mt(c));case 3:return u.a(2,new Fn(c));case 4:return u.a(2)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"analyzeAws",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.analyzeAwsRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"analyzeAwsSupabaseRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.bodyAnalyseAwsImagesSupabaseAiapyV1AnalyzeAwsSupabasePost!=null){u.n=1;break}throw new rn("bodyAnalyseAwsImagesSupabaseAiapyV1AnalyzeAwsSupabasePost",'Required parameter "bodyAnalyseAwsImagesSupabaseAiapyV1AnalyzeAwsSupabasePost" was null or undefined when calling analyzeAwsSupabase().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/analyze_aws_supabase",method:"POST",headers:l,query:a,body:iO(o.bodyAnalyseAwsImagesSupabaseAiapyV1AnalyzeAwsSupabasePost)},i);case 2:if(c=u.v,!this.isJsonMime(c.headers.get("content-type"))){u.n=3;break}return u.a(2,new mt(c));case 3:return u.a(2,new Fn(c));case 4:return u.a(2)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"analyzeAwsSupabase",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.analyzeAwsSupabaseRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"analyzeComplexRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c,u,d,f,h;return ue().w(function(m){for(;;)switch(m.n){case 0:return a={},l={},c=[{contentType:"multipart/form-data"}],u=oO(c),f=!1,f=u,f?d=new FormData:d=new URLSearchParams,o.files!=null&&o.files.forEach(function(y){d.append("files",y)}),m.n=1,this.request({path:"/analyze_complex",method:"POST",headers:l,query:a,body:d},i);case 1:return h=m.v,m.a(2,new mt(h))}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"analyzeComplex",value:function(){var n=Ae(ue().m(function s(){var o,i,a,l=arguments;return ue().w(function(c){for(;;)switch(c.n){case 0:return o=l.length>0&&l[0]!==void 0?l[0]:{},i=l.length>1?l[1]:void 0,c.n=1,this.analyzeComplexRaw(o,i);case 1:return a=c.v,c.n=2,a.value();case 2:return c.a(2,c.v)}},s,this)}));function r(){return n.apply(this,arguments)}return r}()},{key:"analyzeFormulaRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.body!=null){u.n=1;break}throw new rn("body",'Required parameter "body" was null or undefined when calling analyzeFormula().');case 1:return a={},l={},l["Content-Type"]="application/octet-stream",u.n=2,this.request({path:"/analyze_formula",method:"POST",headers:l,query:a,body:o.body},i);case 2:if(c=u.v,!this.isJsonMime(c.headers.get("content-type"))){u.n=3;break}return u.a(2,new mt(c));case 3:return u.a(2,new Fn(c));case 4:return u.a(2)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"analyzeFormula",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.analyzeFormulaRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"getSkillLevelsRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.skillLevelInput!=null){u.n=1;break}throw new rn("skillLevelInput",'Required parameter "skillLevelInput" was null or undefined when calling getSkillLevels().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/get_skill_levels",method:"POST",headers:l,query:a,body:kR(o.skillLevelInput)},i);case 2:return c=u.v,u.a(2,new mt(c,function(d){return ER(d)}))}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"getSkillLevels",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;
58)switch(l.n){case 0:return l.n=1,this.getSkillLevelsRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"getSkillsRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.criteriaInput!=null){u.n=1;break}throw new rn("criteriaInput",'Required parameter "criteriaInput" was null or undefined when calling getSkills().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/get_skills",method:"POST",headers:l,query:a,body:PO(o.criteriaInput)},i);case 2:return c=u.v,u.a(2,new mt(c,function(d){return rR(d)}))}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"getSkills",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.getSkillsRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"healthcheckRaw",value:function(){var n=Ae(ue().m(function s(o){var i,a,l;return ue().w(function(c){for(;;)switch(c.n){case 0:return i={},a={},c.n=1,this.request({path:"/healthcheck",method:"GET",headers:a,query:i},o);case 1:if(l=c.v,!this.isJsonMime(l.headers.get("content-type"))){c.n=2;break}return c.a(2,new mt(l));case 2:return c.a(2,new Fn(l));case 3:return c.a(2)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"healthcheck",value:function(){var n=Ae(ue().m(function s(o){var i;return ue().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.healthcheckRaw(o);case 1:return i=a.v,a.n=2,i.value();case 2:return a.a(2,a.v)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"metricsRaw",value:function(){var n=Ae(ue().m(function s(o){var i,a,l;return ue().w(function(c){for(;;)switch(c.n){case 0:return i={},a={},c.n=1,this.request({path:"/metrics",method:"GET",headers:a,query:i},o);case 1:if(l=c.v,!this.isJsonMime(l.headers.get("content-type"))){c.n=2;break}return c.a(2,new mt(l));case 2:return c.a(2,new Fn(l));case 3:return c.a(2)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"metrics",value:function(){var n=Ae(ue().m(function s(o){var i;return ue().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.metricsRaw(o);case 1:return i=a.v,a.n=2,i.value();case 2:return a.a(2,a.v)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"renderLatexRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.latexCode!=null){u.n=1;break}throw new rn("latexCode",'Required parameter "latexCode" was null or undefined when calling renderLatex().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/render-latex",method:"POST",headers:l,query:a,body:yR(o.latexCode)},i);case 2:if(c=u.v,!this.isJsonMime(c.headers.get("content-type"))){u.n=3;break}return u.a(2,new mt(c));case 3:return u.a(2,new Fn(c));case 4:return u.a(2)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"renderLatex",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.renderLatexRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"renderTikzRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.tikzCode!=null){u.n=1;break}throw new rn("tikzCode",'Required parameter "tikzCode" was null or undefined when calling renderTikz().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/render-tikz",method:"POST",headers:l,query:a,body:AR(o.tikzCode)},i);case 2:if(c=u.v,!this.isJsonMime(c.headers.get("content-type"))){u.n=3;break}return u.a(2,new mt(c));case 3:return u.a(2,new Fn(c));case 4:return u.a(2)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"renderTikz",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.renderTikzRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"scoreRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.scoreInput!=null){u.n=1;break}throw new rn("scoreInput",'Required parameter "scoreInput" was null or undefined when calling score().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/score",method:"POST",headers:l,query:a,body:vR(o.scoreInput)},i);case 2:return c=u.v,u.a(2,new mt(c))}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"score",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.scoreRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"skillFeedbackRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.feedbackSkillsInput!=null){u.n=1;break}throw new rn("feedbackSkillsInput",'Required parameter "feedbackSkillsInput" was null or undefined when calling skillFeedback().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/skill_feedback",method:"POST",headers:l,query:a,body:wp(o.feedbackSkillsInput)},i);case 2:return c=u.v,u.a(2,new mt(c,function(d){return PR(d)}))}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"skillFeedback",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.skillFeedbackRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"skillFeedbackSupabaseRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.feedbackSkillsInput!=null){u.n=1;break}throw new rn("feedbackSkillsInput",'Required parameter "feedbackSkillsInput" was null or undefined when calling skillFeedbackSupabase().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/skill_feedback_supabase",method:"POST",headers:l,query:a,body:wp(o.feedbackSkillsInput)},i);case 2:if(c=u.v,!this.isJsonMime(c.headers.get("content-type"))){u.n=3;break}return u.a(2,new mt(c));case 3:return u.a(2,new Fn(c));case 4:return u.a(2)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"skillFeedbackSupabase",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.skillFeedbackSupabaseRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"studentReportsGenerateRaw",value:function(){var n=Ae(ue().m(function s(o,i){var a,l,c;return ue().w(function(u){for(;;)switch(u.n){case 0:if(o.studentReportRequest!=null){u.n=1;break}throw new rn("studentReportRequest",'Required parameter "studentReportRequest" was null or undefined when calling studentReportsGenerate().');case 1:return a={},l={},l["Content-Type"]="application/json",u.n=2,this.request({path:"/student_reports/generate",method:"POST",headers:l,query:a,body:TR(o.studentReportRequest)},i);case 2:return c=u.v,u.a(2,new mt(c,function(d){return OR(d)}))}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"studentReportsGenerate",value:function(){var n=Ae(ue().m(function s(o,i){var a;return ue().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,this.studentReportsGenerateRaw(o,i);case 1:return a=l.v,l.n=2,a.value();case 2:return l.a(2,l.v)}},s,this)}));function r(s,o){return n.apply(this,arguments)}return r}()},{key:"studentReportsGradesRaw",value:function(){var n=Ae(ue().m(function s(o){var i,a,l;return ue().w(function(c){for(;;)switch(c.n){case 0:return i={},a={},c.n=1,this.request({path:"/student_reports/grades",method:"GET",headers:a,query:i},o);case 1:return l=c.v,c.a(2,new mt(l,function(u){return mR(u)}))}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"studentReportsGrades",value:function(){var n=Ae(ue().m(function s(o){var i;return ue().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.studentReportsGradesRaw(o);
58case 1:return i=a.v,a.n=2,i.value();case 2:return a.a(2,a.v)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"studentReportsHealthRaw",value:function(){var n=Ae(ue().m(function s(o){var i,a,l;return ue().w(function(c){for(;;)switch(c.n){case 0:return i={},a={},c.n=1,this.request({path:"/student_reports/health",method:"GET",headers:a,query:i},o);case 1:if(l=c.v,!this.isJsonMime(l.headers.get("content-type"))){c.n=2;break}return c.a(2,new mt(l));case 2:return c.a(2,new Fn(l));case 3:return c.a(2)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{key:"studentReportsHealth",value:function(){var n=Ae(ue().m(function s(o){var i;return ue().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.studentReportsHealthRaw(o);case 1:return i=a.v,a.n=2,i.value();case 2:return a.a(2,a.v)}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()}])}(_v);const HR=rt(e=>{const t=or();e.provide("aiapy",new UR(new wv({basePath:`/${t.public.aiapyRoutePrefix}`})))}),VR="".replace(/\/+$/,"");class Cv{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:VR}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Tv}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const qR=new Cv,Va=class Va{constructor(t=qR){Rt(this,"middleware");Rt(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let s;try{s=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(s=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:s?s.clone():void 0})||s);if(s===void 0)throw o instanceof Error?new GR(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(s=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:s.clone()})||s);return s});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?Va.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:s}=await this.createFetchParams(t,n),o=await this.fetchApi(r,s);if(o&&o.status>=200&&o.status<300)return o;throw new zR(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const s=Object.assign({},this.configuration.headers,t.headers);Object.keys(s).forEach(u=>s[u]===void 0?delete s[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:s,body:t.body,credentials:this.configuration.credentials},a={...i,...await o({init:i,context:t})};let l;WR(a.body)||a.body instanceof URLSearchParams||KR(a.body)?l=a.body:this.isJsonMime(s["Content-Type"])?l=JSON.stringify(a.body):l=a.body;const c={...a,body:l};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};Rt(Va,"jsonRegex",new RegExp("^(:?application/json|[^;/ 	]+/[^;/ 	]+[+]json)[ 	]*(:?;.*)?$","i"));let Ec=Va;function KR(e){return typeof Blob<"u"&&e instanceof Blob}function WR(e){return typeof FormData<"u"&&e instanceof FormData}class zR extends Error{constructor(n,r){super(r);Rt(this,"name","ResponseError");this.response=n}}
58class GR extends Error{constructor(n,r){super(r);Rt(this,"name","FetchError");this.cause=n}}class cr extends Error{constructor(n,r){super(r);Rt(this,"name","RequiredError");this.field=n}}function Tv(e,t=""){return Object.keys(e).map(n=>Ov(n,e[n],t)).filter(n=>n.length>0).join("&")}function Ov(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const s=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${s}`}if(t instanceof Set){const s=Array.from(t);return Ov(e,s,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Tv(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}class sn{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class Un{constructor(t){this.raw=t}async value(){}}function JR(e){return YR(e)}function YR(e,t){return e==null?e:{message:e.message==null?void 0:e.message}}function XR(e){return QR(e,!1)}function QR(e,t=!1){return e==null?e:{email:e.email,password:e.password}}function ZR(e){return eA(e)}function eA(e,t){return e==null?e:{id:e.id,aud:e.aud,role:e.role,email:e.email,email_confirmed_at:e.email_confirmed_at,phone:e.phone==null?void 0:e.phone,app_metadata:e.app_metadata==null?void 0:e.app_metadata,user_metadata:e.user_metadata==null?void 0:e.user_metadata,identities:e.identities==null?void 0:e.identities,created_at:e.created_at,updated_at:e.updated_at,is_anonymous:e.is_anonymous}}function tA(e){return nA(e)}function nA(e,t){return e==null?e:{message:e.message==null?void 0:e.message,user:e.user==null?void 0:ZR(e.user)}}function rA(e){return sA(e,!1)}function sA(e,t=!1){return e==null?e:{encryptedText:e.encryptedText}}function oA(e){return iA(e)}function iA(e,t){return e==null?e:{decryptedText:e.decryptedText}}function aA(e){return lA(e,!1)}function lA(e,t=!1){return e==null?e:{text:e.text}}function uA(e){return cA(e)}function cA(e,t){return e==null?e:{encryptedText:e.encryptedText}}function dA(e){return fA(e,!1)}function fA(e,t=!1){return e==null?e:{student_user_id:e.student_user_id,p_token:e.p_token}}function hA(e){return pA(e)}function pA(e,t){return e==null?e:{message:e.message==null?void 0:e.message}}function mA(e){return gA(e,!1)}function gA(e,t=!1){return e==null?e:{type:e.type,details:e.details,title:e.title,link_to:e.link_to,receiver_user_id:e.receiver_user_id}}function yA(e){return vA(e)}function vA(e,t){return e==null?e:{message:e.message==null?void 0:e.message,receiver_user_id:e.receiver_user_id==null?void 0:e.receiver_user_id}}function bA(e){return wA(e)}function wA(e,t){return e==null?e:{coinCount:e.coinCount==null?void 0:e.coinCount}}function _A(e){return SA(e,!1)}function SA(e,t=!1){return e==null?e:{templateName:e.templateName}}function kA(e){return EA(e)}function EA(e,t){return e==null?e:{templates:e.templates==null?void 0:e.templates,templateContent:e.templateContent==null?void 0:e.templateContent}}function xA(e){return PA(e,!1)}function PA(e,t=!1){return e==null?e:{latexCode:e.latexCode}}function CA(e){return TA(e)}function TA(e,t){return e==null?e:{html:e.html==null?void 0:e.html}}function OA(e){return RA(e,!1)}function RA(e,t=!1){return e==null?e:{tikzCode:e.tikzCode}}function AA(e){return $A(e)}function $A(e,t){return e==null?e:{svg:e.svg==null?void 0:e.svg}}function IA(e){return DA(e,!1)}function DA(e,t=!1){return e==null?e:{user_id:e.user_id,new_password:e.new_password}}function NA(e){return jA(e)}function jA(e,t){return e==null?e:{message:e.message==null?void 0:e.message}}class LA extends Ec{async apiAccountDeleteRaw(t){const n={},r={},s=await this.request({path:"/api/account",method:"DELETE",headers:r,query:n},t);return new sn(s,o=>JR(o))}async apiAccountDelete(t){return await(await this.apiAccountDeleteRaw(t)).value()}async apiAdminAddUserRoleGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/addUserRole",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminAddUserRoleGet(t){await this.apiAdminAddUserRoleGetRaw(t)}async apiAdminDeleteUserGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/deleteUser",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminDeleteUserGet(t){await this.apiAdminDeleteUserGetRaw(t)}async apiAdminGetAllGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/getAll",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminGetAllGet(t){await this.apiAdminGetAllGetRaw(t)}async apiAdminGetAllPermissionsGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/getAllPermissions",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminGetAllPermissionsGet(t){await this.apiAdminGetAllPermissionsGetRaw(t)}async apiAdminGetAllRolesGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/getAllRoles",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminGetAllRolesGet(t){await this.apiAdminGetAllRolesGetRaw(t)}async apiAdminGetUserRolesGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/getUserRoles",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminGetUserRolesGet(t){await this.apiAdminGetUserRolesGetRaw(t)}async apiAdminRemoveUserRoleGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/removeUserRole",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminRemoveUserRoleGet(t){await this.apiAdminRemoveUserRoleGetRaw(t)}async apiAdminResetPasswordEmailGetRaw(t){const n={},r={},s=await this.request({path:"/api/admin/resetPasswordEmail",method:"GET",headers:r,query:n},t);return new Un(s)}async apiAdminResetPasswordEmailGet(t){await this.apiAdminResetPasswordEmailGetRaw(t)}async apiCreateStudentPostRaw(t,n){if(t.ApiCreateStudentRequest==null)throw new cr("ApiCreateStudentRequest",'Required parameter "ApiCreateStudentRequest" was null or undefined when calling apiCreateStudentPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/createStudent",method:"POST",headers:s,query:r,body:XR(t.ApiCreateStudentRequest)},n);return new sn(o,i=>tA(i))}async apiCreateStudentPost(t,n){return await(await this.apiCreateStudentPostRaw(t,n)).value(
58)}async apiDecryptPostRaw(t,n){if(t.ApiDecryptRequest==null)throw new cr("ApiDecryptRequest",'Required parameter "ApiDecryptRequest" was null or undefined when calling apiDecryptPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/decrypt",method:"POST",headers:s,query:r,body:rA(t.ApiDecryptRequest)},n);return new sn(o,i=>oA(i))}async apiDecryptPost(t,n){return await(await this.apiDecryptPostRaw(t,n)).value()}async apiEncryptPostRaw(t,n){if(t.ApiEncryptRequest==null)throw new cr("ApiEncryptRequest",'Required parameter "ApiEncryptRequest" was null or undefined when calling apiEncryptPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/encrypt",method:"POST",headers:s,query:r,body:aA(t.ApiEncryptRequest)},n);return new sn(o,i=>uA(i))}async apiEncryptPost(t,n){return await(await this.apiEncryptPostRaw(t,n)).value()}async apiHealthGetRaw(t){const n={},r={},s=await this.request({path:"/api/health",method:"GET",headers:r,query:n},t);return new Un(s)}async apiHealthGet(t){await this.apiHealthGetRaw(t)}async apiJoinClassPostRaw(t,n){if(t.ApiJoinClassPostRequest==null)throw new cr("ApiJoinClassPostRequest",'Required parameter "ApiJoinClassPostRequest" was null or undefined when calling apiJoinClassPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/join_class",method:"POST",headers:s,query:r,body:dA(t.ApiJoinClassPostRequest)},n);return new sn(o,i=>hA(i))}async apiJoinClassPost(t,n){return await(await this.apiJoinClassPostRaw(t,n)).value()}async apiNotificationsGetRaw(t){const n={},r={},s=await this.request({path:"/api/notifications",method:"GET",headers:r,query:n},t);return new sn(s,o=>bA(o))}async apiNotificationsGet(t){return await(await this.apiNotificationsGetRaw(t)).value()}async apiNotificationsPostRaw(t,n){const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/notifications",method:"POST",headers:s,query:r,body:mA(t.ApiNotificationPostRequest)},n);return new sn(o,i=>yA(i))}async apiNotificationsPost(t={},n){return await(await this.apiNotificationsPostRaw(t,n)).value()}async apiPdfTemplatesGetRaw(t,n){if(t.ApiPdfTemplatesRequest==null)throw new cr("ApiPdfTemplatesRequest",'Required parameter "ApiPdfTemplatesRequest" was null or undefined when calling apiPdfTemplatesGet().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/pdf-templates",method:"GET",headers:s,query:r,body:_A(t.ApiPdfTemplatesRequest)},n);return new sn(o,i=>kA(i))}async apiPdfTemplatesGet(t,n){return await(await this.apiPdfTemplatesGetRaw(t,n)).value()}async apiRenderLatexPostRaw(t,n){if(t.ApiRenderLatexPostRequest==null)throw new cr("ApiRenderLatexPostRequest",'Required parameter "ApiRenderLatexPostRequest" was null or undefined when calling apiRenderLatexPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/render-latex",method:"POST",headers:s,query:r,body:xA(t.ApiRenderLatexPostRequest)},n);return new sn(o,i=>CA(i))}async apiRenderLatexPost(t,n){return await(await this.apiRenderLatexPostRaw(t,n)).value()}async apiRenderTikzPostRaw(t,n){if(t.ApiRenderTikzPostRequest==null)throw new cr("ApiRenderTikzPostRequest",'Required parameter "ApiRenderTikzPostRequest" was null or undefined when calling apiRenderTikzPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/render-tikz",method:"POST",headers:s,query:r,body:OA(t.ApiRenderTikzPostRequest)},n);return new sn(o,i=>AA(i))}async apiRenderTikzPost(t,n){return await(await this.apiRenderTikzPostRaw(t,n)).value()}async apiResetStudentPwPostRaw(t,n){if(t.ApiResetStudentPasswordPostRequest==null)throw new cr("ApiResetStudentPasswordPostRequest",'Required parameter "ApiResetStudentPasswordPostRequest" was null or undefined when calling apiResetStudentPwPost().');const r={},s={};s["Content-Type"]="application/json";const o=await this.request({path:"/api/reset_student_pw",method:"POST",headers:s,query:r,body:IA(t.ApiResetStudentPasswordPostRequest)},n);return new sn(o,i=>NA(i))}async apiResetStudentPwPost(t,n){return await(await this.apiResetStudentPwPostRaw(t,n)).value(
58)}}const MA=rt(e=>{const t=or();e.provide("api",new LA(new Cv({basePath:t.public.baseUrl})))});var BA=Object.defineProperty,FA=(e,t,n)=>t in e?BA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t,n)=>FA(e,typeof t!="symbol"?t+"":t,n);function UA(e){if(typeof document>"u")return;function t(){let n=document.head||document.getElementsByTagName("head")[0];if(!n)return;let r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t):t()}UA("
vendor: 13,512 bytes, line 58
58:where([data-sonner-toaster][dir=ltr]),:where(html[dir=ltr]){--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}:where([data-sonner-toaster][dir=rtl]),:where(html[dir=rtl]){--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted=true]){transform:translateY(-10px)}@media (hover:none) and (pointer:coarse){:where([data-sonner-toaster][data-lifted=true]){transform:none}}:where([data-sonner-toaster][data-x-position=right]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=left]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=center]){left:50%;transform:translateX(-50%)}:where([data-sonner-toaster][data-y-position=top]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=bottom]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=true]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast][data-y-position=top]){top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=bottom]){bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=true]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]){background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast]) :where([data-disabled=true]){cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=true])::before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=false][data-removed=true])::before{content:'';position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast])::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=true]){--y:translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=false][data-front=false]){--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true])>*{opacity:0}:where([data-sonner-toast][data-visible=false]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=true][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]){--y:translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]){--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=true][data-front=false])::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
58");let xc=0;class HA{constructor(){_t(this,"subscribers"),_t(this,"toasts"),_t(this,"subscribe",t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)})),_t(this,"publish",t=>
58{this.subscribers.forEach(n=>n(t))}),_t(this,"addToast",t=>{this.publish(t),this.toasts=[...this.toasts,t]}),_t(this,"create",t=>{var n;const{message:r,...s}=t,o=typeof t.id=="number"||t.id&&((n=t.id)==null?void 0:n.length)>0?t.id:xc++,i=this.toasts.find(l=>l.id===o),a=t.dismissible===void 0?!0:t.dismissible;return i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}),{...l,...t,id:o,dismissible:a,title:r}):l):this.addToast({title:r,...s,dismissible:a,id:o}),o}),_t(this,"dismiss",t=>(t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t)),_t(this,"message",(t,n)=>this.create({...n,message:t,type:"default"})),_t(this,"error",(t,n)=>this.create({...n,type:"error",message:t})),_t(this,"success",(t,n)=>this.create({...n,type:"success",message:t})),_t(this,"info",(t,n)=>this.create({...n,type:"info",message:t})),_t(this,"warning",(t,n)=>this.create({...n,type:"warning",message:t})),_t(this,"loading",(t,n)=>this.create({...n,type:"loading",message:t})),_t(this,"promise",(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=t instanceof Promise?t:t();let o=r!==void 0,i;const a=s.then(async c=>{if(i=["resolve",c],qA(c)&&!c.ok){o=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,d=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description;this.create({id:r,type:"error",message:u,description:d})}else if(n.success!==void 0){o=!1;const u=typeof n.success=="function"?await n.success(c):n.success,d=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],n.error!==void 0){o=!1;const u=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;o&&(this.dismiss(r),r=void 0),(c=n.finally)==null||c.call(n)}),l=()=>new Promise((c,u)=>a.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})}),_t(this,"custom",(t,n)=>{const r=(n==null?void 0:n.id)||xc++;return this.publish({component:t,id:r,...n}),r}),this.subscribers=[],this.toasts=[]}}const an=new HA;function VA(e,t){const n=(t==null?void 0:t.id)||xc++;return an.create({message:e,id:n,type:"default",...t}),n}const qA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",KA=VA,WA=()=>an.toasts,be=Object.assign(KA,{success:an.success,info:an.info,warning:an.warning,error:an.error,custom:an.custom,message:an.message,promise:an.promise,dismiss:an.dismiss,loading:an.loading},{getHistory:WA});function zA(e,t){return`https://ui-avatars.com/api/?name=${encodeURIComponent(`${e} ${t}`)}&background=93da49&color=fff&size=200&bold=true&format=svg`}const Rv=dd("Users",{state:()=>({loading:!1,userProfiles:[],classUsers:[],context:{loading:!1,classId:"",userId:""}}),getters:{classUsersByClassId:e=>e.classUsers.filter(t=>t.class_id===e.context.classId),getClassUsersByUserId:e=>e.classUsers.filter(t=>t.user_id===e.context.userId)},actions:{async fetchUserProfiles(){const e=Ze();try{const{data:t}=await e.from("user_profile").select("*");if(!t)throw new Error("User Profiles not found");this.userProfiles=await Promise.all(t.map(async n=>{const r={created_at:n.created_at,created_by:n.created_by,id:n.id,updated_at:n.updated_at,user_id:n.user_id,meta_data:{first_name:"",last_name:"",avatar_url:"",username:"",school:{bundesland:"",city:"",sc
58hule:""}}};if(!n.meta_data)return console.warn("User profile has no meta_data:",n),r;try{const{decryptedText:s}=await $fetch("/api/decrypt",{method:"POST",body:{encryptedText:n.meta_data}});let o;try{o=typeof s=="object"?s:JSON.parse(s)}catch(i){console.error("Parse error:",i),o=s}typeof o=="object"&&o!==null&&(r.meta_data={first_name:o.first_name||"",last_name:o.last_name||"",avatar_url:o.avatar_url||"",username:o.username||o.preferred_username||"",school:o.school||{bundesland:"",city:"",schule:""}})}catch(s){console.error("Error decrypting/parsing user profile meta_data:",{error:s,originalMetaData:n.meta_data})}return r}))}catch(t){console.error("Error fetching user profiles:",t)}finally{this.loading=!1}},async fetchClassUsers(){this.loading=!0;const e=Ze();try{const{data:t,error:n}=await e.from("class_user").select("*");if(n)throw n;this.classUsers=t}catch(t){console.error("Error fetching class users:",t)}finally{this.loading=!1}},async fetch(){await this.fetchUserProfiles(),await this.fetchClassUsers()},async insertClassUser({local_class_id:e,meta_data:t,email:n,password:r}){var s,o,i;this.loading=!0;try{const a=await $fetch("/api/createStudent",{method:"POST",body:{email:n,password:r}});if(a.error){console.error("Class user not found"),console.error(a);return}const l=(s=a.data)==null?void 0:s.user.id,c=Ze(),u=await c.auth.getUser(),{data:d,error:f}=await c.from("class_user").insert({class_id:e,user_id:l,created_by:((o=u.data.user)==null?void 0:o.id)||""}).select().single();if(f)throw f;try{const{encryptedText:h}=await $fetch("/api/encrypt",{method:"POST",body:{text:JSON.stringify(t)}}),{error:m}=await c.from("user_profile").insert({user_id:l,meta_data:h,created_by:((i=u.data.user)==null?void 0:i.id)||""}).select().single();if(m)throw m;await $fetch("/api/submissions/createmissingsubmissions",{method:"POST",body:{student_id:l}})}catch(h){throw console.error("Error encrypting user data or creating submissions:",h),h}this.classUsers.push(d)}catch(a){console.error("Error inserting class user:",a)}finally{this.loading=!1}},async deleteClassUser(e){if(!e){console.error("Class user ID not provided");return}this.loading=!0;const t=Ze();try{const{error:n}=await t.from("class_user").delete().eq("user_id",e);if(n)throw be.error("Fehler beim Löschen des Schülers aus der Klasse"),n;this.classUsers=this.classUsers.filter(r=>r.user_id!==e)}catch(n){console.error("Error deleting class user:",n)}finally{this.loading=!1,be.success("Schüler erfolgreich aus der Klasse gelöscht")}},getUserProfileByUserId(e){let t;return this.userProfiles.forEach(n=>{n.user_id===e&&(t=n)}),t||(console.error("User profile not found"),{user_id:e,created_at:"",created_by:"",updated_at:"",id:"",meta_data:{first_name:"",last_name:"",avatar_url:""}})},async doesUserProfileExist(e){const t=Ze();try{const{data:n,error:r}=await t.from("user_profile").select("id").eq("user_id",e).single();return r?!1:!!n}catch(n){return console.error("Error checking user profile existence:",n),!1}},async createUserProfile(e,t){var s;const n=Ze(),r=Rr();try{if(e!==((s=r.value)==null?void 0:s.id))throw new Error("Unauthorized: Cannot create profile for another user");const{encryptedText:o}=await $fetch("/api/encrypt",{method:"POST",body:{text:JSON.stringify(t)}}),{data:i,error:a}=await n.from("user_profile").insert({user_id:e,meta_data:o,created_by:e}).select().single();if(a)throw console.error("Error creating user profile:",a),a;const l={created_at:i.created_at,created_by:i.created_by,id:i.id,updated_at:i.updated_at,user_id:i.user_id,meta_data:t};return this.userProfiles.push(l),l}catch(o){throw console.error("Error in createUserProfile:",o),o}},async updateUserProfile(e,t){const n=Ze();try{const r=this.getUserProfileByUserId(e);if(!r)return console.error("No profile found to update"),null;const s={...r.meta_data,...t},{encryptedText:o}=await $fetch("/api/encrypt",{method:"POST",body:{text:JSON.stringify(s)}}),{data:i,error:a}=await n.from("user_profile").update({meta_data:o,updated_at:new Date().toISOString()}).eq("user_id",e).select().single();if(a)throw console.error("Error updating user profile:",a),a;const l={...r,updated_at:i.updated_at,meta_data:s},c=this.userProfiles.findIndex(u=>u.user_id===e);return c!==-1&&(this.userProfiles[c]=l),l}catch(r){throw console.error("Error in updateUserProfile:",r),r}}}}),GA=rt(async e=>{if(window.location.pathname.startsWith("/teacher/upload/")||window.location.pathname.startsWith("/tu/"))return;if(Rr().value){const n=Rv();Promise.all([n.fetch()]).then(()=>{})}}),JA=["/login","/register","/forgot-password","/reset-password","/update-password","/email-confirmed","/waitlist","/error"];function Sp(e=""){return e.startsWith("/teacher/upload")||e.startsWith("/tu/")}function kp(e=""){return JA.some(t=>e===t||e.startsWith(`${t}/`))}const YA=rt(()=>{const e=or(),t=e.public.posthogPublicKey,n=e.public.posthogHost,r=ll(),s=Vt();if(Sp(window.location.pathname)){const c=()=>{};return{provide:{posthog:()=>({capture:c,identify:c,reset:c})}}}let o=null,i=null;const a=async()=>o||i||(!t||!n?null:(i=oe(async()=>{const{default:c}=await import("./B2I5dSet.js");return{default:c}},[],import.meta.url).then(({default:c})=>(o=c.init(t,{api_host:n,cross_subdomain_cookie:!1,person_profiles:"identified_only",capture_pageview:!1,loaded:d=>{}}),o)).finally(()=>{o||(i=null)}),i)),l=c=>{Re(async()=>{const u=await a();u&&u.capture("$pageview",{current_url:c})})};if(!kp(r.path)){const c=()=>
58{l(r.fullPath)};"requestIdleCallback"in window?window.requestIdleCallback(c):window.setTimeout(c,0)}return s.afterEach(c=>{kp(c.path)||Sp(c.path)||l(c.fullPath)}),{provide:{posthog:()=>(o||a(),o)}}}),XA=["/login","/register","/forgot-password","/reset-password","/update-password","/email-confirmed","/waitlist","/error"];function Ep(e=""){return e.startsWith("/teacher/upload")||e.startsWith("/tu/")}function QA(e=""){return XA.some(t=>e===t||e.startsWith(`${t}/`))}const ZA=rt(()=>{if(Ep(window.location.pathname)){const o=async()=>null;return{provide:{stripe:{getInstance:()=>null,getStripe:o,createPaymentIntent:o,confirmCardPayment:o}}}}const t=or().public.stripePublishableKey;let n=null,r=null;const s=async()=>n||r||(t?(r=oe(async()=>{const{loadStripe:o}=await import("./B0HAhLET.js");return{loadStripe:o}},[],import.meta.url).then(({loadStripe:o})=>o(t)).then(o=>(n=o,n)).finally(()=>{n||(r=null)}),r):null);if(t&&!QA(window.location.pathname)&&!Ep(window.location.pathname)){const o=()=>{s()};"requestIdleCallback"in window?window.requestIdleCallback(o):window.setTimeout(o,0)}return{provide:{stripe:{getInstance:()=>n,getStripe:s,createPaymentIntent:async(o,i="eur",a={})=>await $fetch("/api/stripe/create-payment-intent",{method:"POST",body:{amount:o,currency:i,metadata:a}}),confirmCardPayment:async(o,i)=>{const a=await s();if(!a)throw new Error("Stripe konnte nicht initialisiert werden.");return await a.confirmCardPayment(o,i)}}}}}),e2="standalone",xp="vite-pwa:hide-install";function t2(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:o,onRegisterError:i}=e;let a,l;const c=async(d=!0)=>{await l};async function u(){if("serviceWorker"in navigator){if(a=await oe(async()=>{const{Workbox:d}=await import("./B9K5rw8f.js");return{Workbox:d}},[],import.meta.url).then(({Workbox:d})=>new d("/sw.js",{scope:"/",type:"classic"})).catch(d=>{i==null||i(d)}),!a)return;a.addEventListener("activated",d=>{(d.isUpdate||d.isExternal)&&window.location.reload()}),a.addEventListener("installed",d=>{d.isUpdate||r==null||r()}),a.register({immediate:t}).then(d=>{o?o("/sw.js",d):s==null||s(d)}).catch(d=>{i==null||i(d)})}}return l=u(),c}function n2(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:o,onRegisterError:i}=e,a=I(!1),l=I(!1);return{updateServiceWorker:t2({immediate:t,onNeedRefresh(){a.value=!0,n==null||n()},onOfflineReady(){l.value=!0,r==null||r()},onRegistered:s,onRegisteredSW:o,onRegisterError:i}),offlineReady:l,needRefresh:a}}const r2=rt({name:"vite-pwa:nuxt:client:plugin",enforce:"post",parallel:!0,setup(e){const t=I(!1),n=I(!1),r=I(!1),s=I(localStorage.getItem(xp)==="true"),o=navigator.userAgent,i=o.match(/iPhone|iPad|iPod/),a=`${e2}`,l=window.matchMedia(`(display-mode: ${a})`).matches,c=I(!!(l||i&&!o.match(/Safari/))),u=I(c.value);window.matchMedia(`(display-mode: ${a})`).addEventListener("change",g=>{!u.value&&g.matches&&(u.value=!0)});let d;const f=()=>d,{offlineReady:h,needRefresh:m,updateServiceWorker:y}=n2({immediate:!0,onRegisterError(g){e.hooks.callHook("service-worker:registration-failed",{error:g}),t.value=!0},onRegisteredSW(g,_){var S;d=_,e.hooks.callHook("service-worker:registered",{url:g,registration:_}),((S=_==null?void 0:_.active)==null?void 0:S.state)==="activated"?(n.value=!0,e.hooks.callHook("service-worker:activated",{url:g,registration:_})):_!=null&&_.installing&&_.installing.addEventListener("statechange",C=>{const k=C.target;n.value=k.state==="activated",n.value&&e.hooks.callHook("service-worker:activated",{url:g,registration:_})})}}),b=async()=>{h.value=!1,m.value=!1};let v=()=>Promise.resolve(void 0),w=()=>{};if(!s.value){let g;const _=S=>{S.preventDefault(),g=S,r.value=!0};window.addEventListener("beforeinstallprompt",_),window.addEventListener("appinstalled",()=>{g=void 0,r.value=!1}),w=()=>{g=void 0,r.value=!1,window.removeEventListener("beforeinstallprompt",_),s.value=!0,localStorage.setItem(xp,"true")},v=async()=>{if(!r.value||!g){r.value=!1;return}return r.value=!1,await Re(),g.prompt(),await g.userChoice}}return{provide:{pwa:Ct({isInstalled:c,isPWAInstalled:u,showInstallPrompt:r,cancelInstall:w,install:v,swActivated:n,registrationError:t,offlineReady:h,needRefresh:m,updateServiceWorker:y,cancelPrompt:b,getSWRegistration:f})}}}}),s2=[bk,_k,kk,Wx,AT,$T,IT,NT,jT,LT,MT,BT,HT,VT,HR,MA,GA,YA,ZA,r2],o2=D({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s],enumerable:!0});return Cn(vi,Xn(r)),()=>ze(e.vnode,{ref:e.vnodeRef})}}),i2=D({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=Xe(),o=I(),i=tt(vi,null);let a;r({pageRef:o});const l=tt(dy,null);let c;const u=s.deferHydration();if(s.isHydrating){const d=s.hooks.hookOnce("app:error",u);Vt().beforeEach(d)}return e.pageKey&&ge(()=>e.pageKey,(d,f)=>{d!==f&&s.callHook("page:loading:start")}),()=>ze(Hy,{name:e.name,route:e.route,...t},{default:d=>{const f=l2(i,d.route,d.Component),h=i&&i.matched.length===d.route.matched.length;if(!d.Component){if(c&&!h)return c;
58u();return}if(c&&l&&!l.isCurrent(d.route))return c;if(f&&i&&(!l||l!=null&&l.isCurrent(i)))return h?c:null;const m=cc(d,e.pageKey);!s.isHydrating&&!u2(i,d.route,d.Component)&&a===m&&s.callHook("page:loading:end"),a=m;const y=!!(e.transition??d.route.meta.pageTransition??Ju),b=y&&a2([e.transition,d.route.meta.pageTransition,Ju,{onAfterLeave:()=>{s.callHook("page:transition:finish",d.Component)}}].filter(Boolean)),v=e.keepalive??d.route.meta.keepalive??J1;return c=qy(Rg,y&&b,RE(v,ze(id,{suspensible:!0,onPending:()=>s.callHook("page:start",d.Component),onResolve:()=>{Re(()=>s.callHook("page:finish",d.Component).then(()=>s.callHook("page:loading:end")).finally(u))}},{default:()=>{const w=ze(o2,{key:m||void 0,vnode:n.default?ze(Oe,void 0,n.default(d)):d.Component,route:d.route,renderKey:m||void 0,trackRootNodes:y,vnodeRef:o});return v&&(w.type.name=d.Component.type.name||d.Component.type.__name||"RouteProvider"),w}}))).default(),c}})}});function a2(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?pd(n.onAfterLeave):void 0}));return uy(...t)}function l2(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var o;return((o=s.components)==null?void 0:o.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,o)=>{var i,a,l;return((i=s.components)==null?void 0:i.default)!==((l=(a=e.matched[o])==null?void 0:a.components)==null?void 0:l.default)})||n&&cc({route:t,Component:n})!==cc({route:e,Component:n})}function u2(e,t,n){return e?t.matched.findIndex(s=>{var o;return((o=s.components)==null?void 0:o.default)===(n==null?void 0:n.type)})<t.matched.length-1:!1}const c2=D({async setup(){return()=>null}}),d2=Symbol.for("nuxt:client-only"),f2=D({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=I(!1);return _e(()=>{r.value=!0}),Cn(d2,!0),s=>{var l;if(r.value)return(l=t.default)==null?void 0:l.call(t);const o=t.fallback||t.placeholder;if(o)return o();const i=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return ke(a,n,i)}}}),h2=D({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await kr[e.name]().then(r=>r.default||r);return()=>ze(n,e.layoutProps,t.slots)}}),p2=D({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=Xe(),r=tt(vi),s=r===ll()?Vy():r,o=B(()=>{let l=p(e.name)??s.meta.layout??"default";return l&&!(l in kr)&&e.fallback&&(l=p(e.fallback)),l}),i=I();t.expose({layoutRef:i});const a=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",a);Vt().beforeEach(l)}return()=>{const l=o.value&&o.value in kr,c=s.meta.layoutTransition??G1;return qy(Rg,l&&c,{default:()=>ze(id,{suspensible:!0,onResolve:()=>{Re(a)}},{default:()=>ze(m2,{layoutProps:ne(t.attrs,{ref:i}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),m2=D({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Cn(dy,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in kr)?(s=(r=t.slots).default)==null?void 0:s.call(r):ze(h2,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),g2=["top","right","bottom","left"],Ar=Math.min,Ut=Math.max,Ma=Math.round,Ki=Math.floor,Tn=e=>({x:e,y:e}),y2={left:"right",right:"left",bottom:"top",top:"bottom"},v2={start:"end",end:"start"};function Pc(e,t,n){return Ut(e,Ar(t,n))}function nr(e,t){return typeof e=="function"?e(t):e}function rr(e){return e.split("-")[0]}function eo(e){return e.split("-")[1]}function Ad(e){return e==="x"?"y":"x"}function $d(e){return e==="y"?"height":"width"}const b2=new Set(["top","bottom"]);function xn(e){return b2.has(rr(e))?"y":"x"}function Id(e){return Ad(xn(e))}function w2(e,t,n){n===void 0&&(n=!1);const r=eo(e),s=Id(e),o=$d(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ba(i)),[i,Ba(i)]}function _2(e){const t=Ba(e);return[Cc(e),t,Cc(t)]}function Cc(e){return e.replace(/start|end/g,t=>v2[t])}const Pp=["left","right"],Cp=["right","left"],S2=["top","bottom"],k2=["bottom","top"];function E2(e,t,n){switch(e){case"top":case"bottom":return n?t?Cp:Pp:t?Pp:Cp;case"left":case"right":return t?S2:k2;default:return[]}}function x2(e,t,n,r){const s=eo(e);let o=E2(rr(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Cc)))),o}function Ba(e){return e.replace(/left|right|bottom|top/g,t=>y2[t])}function P2(e){return{top:0,right:0,bottom:0,left:0,...e}}function Av(e){return typeof e!="number"?P2(e):{top:e,right:e,bottom:e,left:e}}function Fa(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Tp(e,t,n){let{reference:r,floating:s}=e;const o=xn(t),i=Id(t),a=$d(i),l=rr(t),c=o==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-s.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-s.width,y:d};break;default:h={x:r.x,y:r.y}}switch(eo(t)){case"start":h[i]-=f*(n&&c?-1:1);break;case"end":h[i]+=f*(n&&c?-1:1);break}return h}const C2=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}
vendor: 14,936 bytes, line 58
58=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Tp(c,r,l),f=r,h={},m=0;for(let y=0;y<a.length;y++){const{name:b,fn:v}=a[y],{x:w,y:g,data:_,reset:S}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:s,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=w??u,d=g??d,h={...h,[b]:{...h[b],..._}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:u,y:d}=Tp(c,f,l)),y=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:h}};async function li(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=nr(t,e),m=Av(h),b=a[f?d==="floating"?"reference":"floating":d],v=Fa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(g))?await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},S=Fa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:g,strategy:l}):w);return{top:(v.top-S.top+m.top)/_.y,bottom:(S.bottom-v.bottom+m.bottom)/_.y,left:(v.left-S.left+m.left)/_.x,right:(S.right-v.right+m.right)/_.x}}const T2=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=nr(e,t)||{};if(c==null)return{};const d=Av(u),f={x:n,y:r},h=Id(s),m=$d(h),y=await i.getDimensions(c),b=h==="y",v=b?"top":"left",w=b?"bottom":"right",g=b?"clientHeight":"clientWidth",_=o.reference[m]+o.reference[h]-f[h]-o.floating[m],S=f[h]-o.reference[h],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let k=C?C[g]:0;(!k||!await(i.isElement==null?void 0:i.isElement(C)))&&(k=a.floating[g]||o.floating[m]);const $=_/2-S/2,P=k/2-y[m]/2-1,x=Ar(d[v],P),j=Ar(d[w],P),O=x,q=k-y[m]-j,K=k/2-y[m]/2+$,V=Pc(O,K,q),F=!l.arrow&&eo(s)!=null&&K!==V&&o.reference[m]/2-(K<O?x:j)-y[m]/2<0,W=F?K<O?K-O:K-q:0;return{[h]:f[h]+W,data:{[h]:V,centerOffset:K-V-W,...F&&{alignmentOffset:W}},reset:F}}}),O2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=nr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=rr(s),w=xn(a),g=rr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=f||(g||!y?[Ba(a)]:_2(a)),C=m!=="none";!f&&C&&S.push(...x2(a,y,m,_));const k=[a,...S],$=await li(t,b),P=[];let x=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&P.push($[v]),d){const K=w2(s,i,_);P.push($[K[0]],$[K[1]])}if(x=[...x,{placement:s,overflows:P}],!P.every(K=>K<=0)){var j,O;const K=(((j=o.flip)==null?void 0:j.index)||0)+1,V=k[K];if(V&&(!(d==="alignment"?w!==xn(V):!1)||x.every(X=>xn(X.placement)===w?X.overflows[0]>0:!0)))return{data:{index:K,overflows:x},reset:{placement:V}};let F=(O=x.filter(W=>W.overflows[0]<=0).sort((W,X)=>W.overflows[1]-X.overflows[1])[0])==null?void 0:O.placement;if(!F)switch(h){case"bestFit":{var q;const W=(q=x.filter(X=>{if(C){const pe=xn(X.placement);return pe===w||pe==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(pe=>pe>0).reduce((pe,bt)=>pe+bt,0)]).sort((X,pe)=>X[1]-pe[1])[0])==null?void 0:q[0];W&&(F=W);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rp(e){return g2.some(t=>e[t]>=0)}const R2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=nr(e,t);switch(r){case"referenceHidden":{const o=await li(t,{...s,elementContext:"reference"}),i=Op(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Rp(i)}}}case"escaped":{const o=await li(t,{...s,altBoundary:!0}),i=Op(o,n.floating);return{data:{escapedOffsets:i,escaped:Rp(i)}}}default:return{}}}}},$v=new Set(["left","top"]);async function A2(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=rr(n),a=eo(n),l=xn(n)==="y",c=$v.has(i)?-1:1,u=o&&l?-1:1,d=nr(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const $2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await A2(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},I2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:v,y:w}=b;return{x:v,y:w}}},...l}=nr(e,t),c={x:n,y:r},u=await li(t,l),d=xn(rr(s)),f=Ad(d);let h=c[f],m=c[d];if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=h+u[b],g=h-u[v];h=Pc(w,h,g)}if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=m+u[b],g=m-u[v];m=Pc(w,m,g)}const y=a.fn({...t,[f]:h,[d]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:o,[d]:i}}}}}},D2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=nr(e,t),u={x:n,y:r},d=xn(s),f=Ad(d);let h=u[f],m=u[d];const y=nr(a,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const g=f==="y"?"height":"width",_=o.reference[f]-o.floating[g]+b.mainAxis,S=o.reference[f]+o.reference[g]-b.mainAxis;h<_?h=_:h>S&&(h=S)}if(c){var v,w;const g=f==="y"?"width":"height",_=$v.has(rr(s)),S=o.reference[d]-o.floating[g]+(_&&((v=i.offset)==null?void 0:v[d])||0)+(_?0:b.crossAxis),C=o.reference[d]+o.reference[g]+(_?0:((w=i.offset)==null?void 0:w[d])||0)-(_?b.crossAxis:0);m<S?m=S:m>C&&(m=C)}return{[f]:h,[d]:m}}}},N2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=nr(e,t),u=await li(t,c),d=rr(s),f=eo(s),h=xn(s)==="y",{width:m,height:y}=o.floating;let b,v;d==="top"||d==="bottom"?(b=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,b=f==="end"?"top":"bottom");const w=y-u.top-u.bottom,g=m-u.left-u.right,_=Ar(y-u[b],w),S=Ar(m-u[v],g),C=!t.middlewareData.shift;let k=_,$=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),C&&!f){const x=Ut(u.left,0),j=Ut(u.right,0),O=Ut(u.top,0),q=Ut(u.bottom,0);h?$=m-2*(x!==0||j!==0?x+j:Ut(u.left,u.right)):k=y-2*(O!==0||q!==0?O+q:Ut(u.top,u.bottom))}await l({...t,availableWidth:$,availableHeight:k});const P=await i.getDimensions(a.floating);return m!==P.width||y!==P.height?{reset:{rects:!0}}:{}}}};function bl(){return typeof window<"u"}function ns(e){return Dd(e)?(e.nodeName||"").toLowerCase():"#document"}function Ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function In(e){var t;return(t=(Dd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dd(e){return bl()?e instanceof Node||e instanceof Ht(e).Node:!1}function yn(e){return bl()?e instanceof Element||e instanceof Ht(e).Element:!1}function $n(e){return bl()?e instanceof HTMLElement||e instanceof Ht(e).HTMLElement:!1}function Ap(e){return!bl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ht(e).ShadowRoot}const j2=new Set(["inline","contents"]);function Si(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!j2.has(s)}const L2=new Set(["table","td","th"]);function M2(e){return L2.has(ns(e))}const B2=[":popover-open",":modal"];function wl(e){return B2.some(t=>{try{return e.matches(t)}catch{return!1}})}const F2=["transform","translate","scale","rotate","perspective"],U2=["transform","translate","scale","rotate","perspective","filter"],H2=["paint","layout","strict","content"];function Nd(e){const t=jd(),n=yn(e)?vn(e):e;return F2.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||U2.some(r=>(n.willChange||"").includes(r))||H2.some(r=>(n.contain||"").includes(r))}function V2(e){let t=$r(e);for(;$n(t)&&!qs(t);){if(Nd(t))return t;if(wl(t))return null;t=$r(t)}return null}function jd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const q2=new Set(["html","body","#document"]);function qs(e){return q2.has(ns(e))}function vn(e){return Ht(e).getComputedStyle(e)}function _l(e){return yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ap(e)&&e.host||In(e);return Ap(t)?t.host:t}function Iv(e){const t=$r(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:$n(t)&&Si(t)?t:Iv(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Iv(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=Ht(s);if(o){const a=Tc(i);return t.concat(i,i.visualViewport||[],Si(s)?s:[],a&&n?ui(a):[])}return t.concat(s,ui(s,[],n))}function Tc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dv(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=$n(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=Ma(n)!==o||Ma(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Ld(e){return yn(e)?e:e.contextElement}function $s(e){const t=Ld(e);if(!$n(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=Dv(t);let i=(o?Ma(n.width):n.width)/r,a=(o?Ma(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const K2=Tn(0);function Nv(e){const t=Ht(e);return!jd()||!t.visualViewport?K2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function W2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ht(e)?!1:t}function Yr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Ld(e);let i=Tn(1);t&&(r?yn(r)&&(i=$s(r)):i=$s(e));const a=W2(o,n,r)?Nv(o):Tn(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,u=s.width/i.x,d=s.height/i.y;if(o){const f=Ht(o),h=r&&yn(r)?Ht(r):r;let m=f,y=Tc(m);for(;y&&r&&h!==m;){const b=$s(y),v=y.getBoundingClientRect(),w=vn(y),g=v.left+(y.clientLeft+parseFloat(w.paddingLeft))*b.x,_=v.top+(y.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=g,c+=_,m=Ht(y),y=Tc(m)}}return Fa({width:u,height:d,x:l,y:c})}function Sl(e,t){const n=_l(e).scrollLeft;return t?t.left+n:Yr(In(e)).left+n}function jv(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sl(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function z2(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=In(r),a=t?wl(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Tn(1);const u=Tn(0),d=$n(r);if((d||!d&&!o)&&((ns(r)!=="body"||Si(i))&&(l=_l(r)),$n(r))){const h=Yr(r);c=$s(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=i&&!d&&!o?jv(i,l):Tn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function G2(e){return Array.from(e.getClientRects())}function J2(e){const t=In(e),n=_l(e),r=e.ownerDocument.body,s=Ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Sl(e);const a=-n.scrollTop;return vn(r).direction==="rtl"&&(i+=Ut(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}const $p=25;function Y2(e,t){const n=Ht(e),r=In(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=jd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=Sl(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-h);m<=$p&&(o-=m)}else c<=$p&&(o+=c);return{width:o,height:i,x:a,y:l}}const X2=new Set(["absolute","fixed"]);function Q2(e,t){const n=Yr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=$n(e)?$s(e):Tn(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=r*o.y;return{width:i,height:a,x:l,y:c}}function Ip(e,t,n){let r;if(t==="viewport")r=Y2(e,n);else if(t==="document")r=J2(In(e));else if(yn(t))r=Q2(t,n);else{const s=Nv(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Fa(r)}function Lv(e,t){const n=$r(e);return n===t||!yn(n)||qs(n)?!1:vn(n).position==="fixed"||Lv(n,t)}function Z2(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>yn(a)&&ns(a)!=="body"),s=null;const o=vn(e).position==="fixed";let i=o?$r(e):e;for(;yn(i)&&!qs(i);){const a=vn(i),l=Nd(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&X2.has(s.position)||Si(i)&&!l&&Lv(e,i))?r=r.filter(u=>u!==i):s=a,i=$r(i)}return t.set(e,r),r}function e$(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?wl(t)?[]:Z2(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const d=Ip(t,u,s);return c.top=Ut(d.top,c.top),c.right=Ar(d.right,c.right),c.bottom=Ar(d.bottom,c.bottom),c.left=Ut(d.left,c.left),c},Ip(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function t$(e){const{width:t,height:n}=Dv(e);return{width:t,height:n}}function n$(e,t,n){const r=$n(t),s=In(t),o=n==="fixed",i=Yr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Tn(0);function c(){l.x=Sl(s)}if(r||!r&&!o)if((ns(t)!=="body"||Si(s))&&(a=_l(t)),r){const h=Yr(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else s&&c();o&&!r&&s&&c();const u=s&&!r&&!o?jv(s,a):Tn(0),d=i.left+a.scrollLeft-l.x-u.x,f=i.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function mu(e){return vn(e).position==="static"}function Dp(e,t){if(!$n(e)||vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return In(e)===n&&(n=n.ownerDocument.body),n}function Mv(e,t){const n=Ht(e);
58if(wl(e))return n;if(!$n(e)){let s=$r(e);for(;s&&!qs(s);){if(yn(s)&&!mu(s))return s;s=$r(s)}return n}let r=Dp(e,t);for(;r&&M2(r)&&mu(r);)r=Dp(r,t);return r&&qs(r)&&mu(r)&&!Nd(r)?n:r||V2(e)||n}const r$=async function(e){const t=this.getOffsetParent||Mv,n=this.getDimensions,r=await n(e.floating);return{reference:n$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function s$(e){return vn(e).direction==="rtl"}const o$={convertOffsetParentRelativeRectToViewportRelativeRect:z2,getDocumentElement:In,getClippingRect:e$,getOffsetParent:Mv,getElementRects:r$,getClientRects:G2,getDimensions:t$,getScale:$s,isElement:yn,isRTL:s$};function Bv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function i$(e,t){let n=null,r;const s=In(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(a||t(),!f||!h)return;const m=Ki(d),y=Ki(s.clientWidth-(u+f)),b=Ki(s.clientHeight-(d+h)),v=Ki(u),g={rootMargin:-m+"px "+-y+"px "+-b+"px "+-v+"px",threshold:Ut(0,Ar(1,l))||1};let _=!0;function S(C){const k=C[0].intersectionRatio;if(k!==l){if(!_)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Bv(c,e.getBoundingClientRect())&&i(),_=!1}try{n=new IntersectionObserver(S,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return i(!0),o}function a$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ld(e),u=s||o?[...c?ui(c):[],...ui(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=c&&a?i$(c,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m,y=l?Yr(e):null;l&&b();function b(){const v=Yr(e);y&&!Bv(y,v)&&n(),y=v,m=requestAnimationFrame(b)}return n(),()=>{var v;u.forEach(w=>{s&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),d==null||d(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const l$=$2,u$=I2,Np=O2,c$=N2,d$=R2,f$=T2,h$=D2,p$=(e,t,n)=>{const r=new Map,s={platform:o$,...n},o={...s.platform,_c:r};return C2(e,t,{...s,platform:o})};function m$(e){return e!=null&&typeof e=="object"&&"$el"in e}function Oc(e){if(m$(e)){const t=e.$el;return Dd(t)&&ns(t)==="#comment"?null:t}return e}function _s(e){return typeof e=="function"?e():p(e)}function g$(e){return{name:"arrow",options:e,fn(t){const n=Oc(_s(e.element));return n==null?{}:f$({element:n,padding:e.padding}).fn(t)}}}function Fv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jp(e,t){const n=Fv(e);return Math.round(t*n)/n}function y$(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,s=B(()=>{var k;return(k=_s(n.open))!=null?k:!0}),o=B(()=>_s(n.middleware)),i=B(()=>{var k;return(k=_s(n.placement))!=null?k:"bottom"}),a=B(()=>{var k;return(k=_s(n.strategy))!=null?k:"absolute"}),l=B(()=>{var k;return(k=_s(n.transform))!=null?k:!0}),c=B(()=>Oc(e.value)),u=B(()=>Oc(t.value)),d=I(0),f=I(0),h=I(a.value),m=I(i.value),y=Pr({}),b=I(!1),v=B(()=>{const k={position:h.value,left:"0",top:"0"};if(!u.value)return k;const $=jp(u.value,d.value),P=jp(u.value,f.value);return l.value?{...k,transform:"translate("+$+"px, "+P+"px)",...Fv(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:$+"px",top:P+"px"}});let w;function g(){if(c.value==null||u.value==null)return;const k=s.value;p$(c.value,u.value,{middleware:o.value,placement:i.value,strategy:a.value}).then($=>{d.value=$.x,f.value=$.y,h.value=$.strategy,m.value=$.placement,y.value=$.middlewareData,b.value=k!==!1})}function _(){typeof w=="function"&&(w(),w=void 0)}function S(){if(_(),r===void 0){g();return}if(c.value!=null&&u.value!=null){w=r(c.value,u.value,g);return}}function C(){s.value||(b.value=!1)}return ge([o,i,a,s],g,{flush:"sync"}),ge([c,u],S,{flush:"sync"}),ge(s,C,{flush:"sync"}),hi()&&Hc(_),{x:is(d),y:is(f),strategy:is(h),placement:is(m),middlewareData:is(y),isPositioned:is(b),floatingStyles:v,update:g}}let gu=new Map,Rc=!1;try{Rc=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ua=!1;try{Ua=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Uv={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hv{format(t){let n="";if(!Rc&&this.options.signDisplay!=null?n=b$(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ua){var r;let{unit:s,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!s)return n;let a=(r=Uv[s])===null||r===void 0?void 0:r[o];n+=a[i]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Rc&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ua&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=v$(t,n),this.options=n}}function v$(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ua){var r;let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Uv[i])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(gu.has(s))return gu.get(s);let o=new Intl.NumberFormat(e,t);return gu.set(s,o),o}function b$(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),o=e.format(n),i=s.replace(o,"").replace(/\u200e|\u061C/,"");
vendor: 4,147 bytes, line 58
58return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(o,"!!!").replace(i,"+").replace("!!!",o)}else return e.format(n)}}const w$=new RegExp("^.*\\(.*\\).*$"),_$=["latn","arab","hanidec","deva","beng","fullwide"];class Vv{parse(t){return yu(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return yu(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return yu(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Lp=new Map;function yu(e,t,n){let r=Mp(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let s of _$)if(s!==r.options.numberingSystem){let o=Mp(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(o.isValidPartialNumber(n))return o}}return r}function Mp(e,t){let n=e+(t?Object.entries(t).sort((s,o)=>s[0]<o[0]?-1:1).join():""),r=Lp.get(n);return r||(r=new S$(e,t),Lp.set(n,r)),r}class S${parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=ps(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let i=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,i>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var s,o;let i={...this.options,style:"decimal",minimumFractionDigits:Math.min(((s=this.options.minimumFractionDigits)!==null&&s!==void 0?s:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new Vv(this.locale,i).parse(new Hv(this.locale,i).format(r))}return this.options.currencySign==="accounting"&&w$.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=ps(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=ps(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=ps(t," ",this.symbols.group),t=ps(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=ps(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=E$(t,this.formatter,this.options,n);var r,s;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Bp=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),k$=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function E$(e,t,n,r){var s,o,i,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roun
58dingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=k$.map(x=>l.formatToParts(x));var f;let h=(f=(s=c.find(x=>x.type==="minusSign"))===null||s===void 0?void 0:s.value)!==null&&f!==void 0?f:"-",m=(o=u.find(x=>x.type==="plusSign"))===null||o===void 0?void 0:o.value;!m&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(m="+");let b=(i=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(x=>x.type==="decimal"))===null||i===void 0?void 0:i.value,v=(a=c.find(x=>x.type==="group"))===null||a===void 0?void 0:a.value,w=c.filter(x=>!Bp.has(x.type)).map(x=>Fp(x.value)),g=d.flatMap(x=>x.filter(j=>!Bp.has(j.type)).map(j=>Fp(j.value))),_=[...new Set([...w,...g])].sort((x,j)=>j.length-x.length),S=_.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${_.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(C.map((x,j)=>[x,j])),$=new RegExp(`[${C.join("")}]`,"g");return{minusSign:h,plusSign:m,decimal:b,group:v,literals:S,numeral:$,index:x=>String(k.get(x))}}function ps(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Fp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xe(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[s=>{const o=tt(r,s);if(o||o===null)return o;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(Cn(r,s),s)]}function qv(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function Ks(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function Wi(e,t){let n=e;const r=t.toString(),s=r.indexOf("."),o=s>=0?r.length-s:0;
58if(o>0){const i=10**o;n=Math.round(n*i)/i}return n}function x$(e,t,n,r){t=Number(t),n=Number(n);const s=(e-(Number.isNaN(t)?0:t))%r;let o=Wi(Math.abs(s)*2>=r?e+Math.sign(s)*(r-Math.abs(s)):e-s,r);return Number.isNaN(t)?!Number.isNaN(n)&&o>n&&(o=Math.floor(Wi(n/r,r))*r):o<t?o=t:!Number.isNaN(n)&&o>n&&(o=t+Math.floor(Wi((n-t)/r,r))*r),o=Wi(o,r),o}function Is(e){return e==null}function P$(e,t){var n;const r=Pr();return at(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Za(r)}function to(e){return hi()?(Hc(e),!0):!1}function Kv(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const r=()=>t(n);return to(r),{off:r}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(r=>r(...n)))}}function C$(e){let t=!1,n;const r=fi(!0);return(...s)=>(t||(n=r.run(()=>e(...s)),t=!0),n)}function Wv(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...o)=>(t+=1,n||(r=fi(!0),n=r.run(()=>e(...o))),to(s),n)}function On(e){return typeof e=="function"?e():p(e)}function T$(e){if(!Ne(e))return Ct(e);const t=new Proxy({},{get(n,r,s){return p(Reflect.get(e.value,r,s))},set(n,r,s){return Ne(e.value[r])&&!Ne(s)?e.value[r].value=s:e.value[r]=s,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Ct(t)}function zv(e){return T$(B(e))}const Dn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const O$=e=>typeof e<"u",R$=Object.prototype.toString,A$=e=>R$.call(e)==="[object Object]",Ac=()=>{},Up=$$();function $$(){var e,t;return Dn&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function I$(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}function D$(e,t={}){let n,r,s=Ac;const o=i=>{clearTimeout(i),s(),s=Ac};return i=>{const a=On(e),l=On(t.maxWait);return n&&o(n),a<=0||l!==void 0&&l<=0?(r&&(o(r),r=null),Promise.resolve(i())):new Promise((c,u)=>{s=t.rejectOnCancel?u:c,l&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(i())},l)),n=setTimeout(()=>{r&&o(r),r=null,c(i())},a)})}}function N$(e){return et()}function Gv(e,t=1e4){return Tm((n,r)=>{let s=On(e),o;const i=()=>setTimeout(()=>{s=On(e),r()},On(t));return to(()=>{clearTimeout(o)}),{get(){return n(),s},set(a){s=a,r(),clearTimeout(o),o=i()}}})}function Jv(e,t=200,n={}){return I$(D$(t,n),e)}function j$(e,t){N$()&&Qr(e,t)}function Yv(e,t,n={}){const{immediate:r=!0}=n,s=I(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function a(){s.value=!1,i()}function l(...c){i(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...c)},On(t))}return r&&(s.value=!0,Dn&&l()),to(a),{isPending:Za(s),start:l,stop:a}}function L$(e,t,n){const r=ge(e,(...s)=>(Re(()=>r()),t(...s)),n);return r}function en(e){var t;const n=On(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kl=Dn?window:void 0;function hn(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=kl):[t,n,r,s]=e,!t)return Ac;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),l=ge(()=>[en(t),On(s)],([u,d])=>{if(i(),!u)return;const f=A$(d)?{...d}:d;o.push(...n.flatMap(h=>r.map(m=>a(u,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return to(c),c}function M$(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function B$(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=kl,eventName:o="keydown",passive:i=!1,dedupe:a=!1}=r,l=M$(t);return hn(s,o,c=>{c.repeat&&On(a)||l(c)&&n(c)},i)}function Md(){const e=I(!1),t=et();return t&&_e(()=>{e.value=!0},t),e}function F$(e){const t=Md();return B(()=>
58(t.value,!!e()))}function U$(e){return JSON.parse(JSON.stringify(e))}function Ws(e,t,n={}){const{window:r=kl,...s}=n;let o;const i=F$(()=>r&&"ResizeObserver"in r),a=()=>{o&&(o.disconnect(),o=void 0)},l=B(()=>Array.isArray(e)?e.map(d=>en(d)):[en(e)]),c=ge(l,d=>{if(a(),i.value&&r){o=new ResizeObserver(t);for(const f of d)f&&o.observe(f,s)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return to(u),{isSupported:i,stop:u}}function nt(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:f}=r,h=et(),m=n||(h==null?void 0:h.emit)||((s=h==null?void 0:h.$emit)==null?void 0:s.bind(h))||((i=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h==null?void 0:h.proxy));let y=c;t||(t="modelValue"),y=y||`update:${t.toString()}`;const b=g=>a?typeof a=="function"?a(g):U$(g):g,v=()=>O$(e[t])?b(e[t]):d,w=g=>{f?f(g)&&m(y,g):m(y,g)};if(l){const g=v(),_=I(g);let S=!1;return ge(()=>e[t],C=>{S||(S=!0,_.value=b(C),Re(()=>S=!1))}),ge(_,C=>{!S&&(C!==e[t]||u)&&w(C)},{deep:u}),_}else return B({get(){return v()},set(g){w(g)}})}function El(e){return e?e.flatMap(t=>t.type===Oe?El(t.children):[t]):[]}function ft(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}const H$=["INPUT","TEXTAREA"];function Xv(e,t,n,r={}){if(!t||r.enableIgnoredElement&&H$.includes(t.nodeName))return null;const{arrowKeyOptions:s="both",attributeName:o="[data-radix-vue-collection-item]",itemsArray:i=[],loop:a=!0,dir:l="ltr",preventScroll:c=!0,focus:u=!1}=r,[d,f,h,m,y,b]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],v=h||m,w=d||f;if(!y&&!b&&(!v&&!w||s==="vertical"&&w||s==="horizontal"&&v))return null;const g=n?Array.from(n.querySelectorAll(o)):i;if(!g.length)return null;c&&e.preventDefault();let _=null;return w||v?_=Qv(g,t,{goForward:v?m:l==="ltr"?d:f,loop:a}):y?_=g.at(0)||null:b&&(_=g.at(-1)||null),u&&(_==null||_.focus()),_}function Qv(e,t,n,r=e.length){if(--r===0)return null;const s=e.indexOf(t),o=n.goForward?s+1:s-1;if(!n.loop&&(o<0||o>=e.length))return null;const i=(o+e.length)%e.length,a=e[i];return a?a.hasAttribute("disabled")&&a.getAttribute("disabled")!=="false"?Qv(e,a,n,r):a:null}function vu(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function $c(e,t,n=".",r){if(!vu(t))return $c(e,{},n);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:vu(i)&&vu(s[o])?s[o]=$c(i,s[o],(n?`${n}.`:"")+o.toString()):s[o]=i)}return s}function V$(e){return(...t)=>t.reduce((n,r)=>$c(n,r,""),{})}const q$=V$(),[xl,MN]=xe("ConfigProvider");let K$="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",W$=(e=21)=>{let t="",n=e;for(;n--;)t+=K$[Math.random()*64|0];return t};const z$=Wv(()=>{const e=I(new Map),t=I(),n=B(()=>{for(const i of e.value.values())if(i)return!0;return!1}),r=xl({scrollBody:I(!0)});let s=null;const o=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Up&&(s==null||s()),t.value=void 0};return ge(n,(i,a)=>{var l;if(!Dn)return;if(!i){a&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);const c=window.innerWidth-document.documentElement.clientWidth,u={padding:c,margin:0},d=(l=r.scrollBody)!=null&&l.value?typeof r.scrollBody.value=="object"?q$({padding:r.scrollBody.value.padding===!0?c:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?c:r.scrollBody.value.margin},u):u:{padding:0,margin:0};c>0&&(document.body.style.paddingRight=typeof d.padding=="number"?`${d.padding}px`:String(d.padding),document.body.style.marginRight=typeof d.margin=="number"?`${d.margin}px`:String(d.margin),document.body.style.setProperty("--scrollbar-width",`${c}px`),document.body.style.overflow="hidden"),Up&&(s=hn(document,"touchmove",f=>G$(f),{passive:!1})),Re(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Pl(e){const t=W$(6),n=z$();n.value.set(t,e??!1);const r=B({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return j$(()=>{n.value.delete(t)}),r}function Zv(e){const t=window.getComputedStyle(e);
58if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:Zv(n)}}function G$(e){const t=e||window.event,n=t.target;return n instanceof Element&&Zv(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}const J$="data-radix-vue-collection-item";function ki(e,t=J$){const n=Symbol();return{createCollection:r=>{const s=I([]);function o(){const i=en(r);return i?s.value=Array.from(i.querySelectorAll(`[${t}]:not([data-disabled])`)):s.value=[]}return Xc(()=>{s.value=[]}),_e(o),ol(o),ge(()=>r==null?void 0:r.value,o,{immediate:!0}),Cn(n,s),s},injectCollection:()=>tt(n,I([]))}}function ir(e){const t=xl({dir:I("ltr")});return B(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function no(e){const t=et(),n=t==null?void 0:t.type.emits,r={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(s=>{r[Eo(lt(s))]=(...o)=>e(s,...o)}),r}let bu=0;function Bd(){at(e=>{if(!Dn)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Hp()),document.body.insertAdjacentElement("beforeend",t[1]??Hp()),bu++,e(()=>{bu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),bu--})})}function Hp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function ro(e){return B(()=>{var t;return On(e)?!!((t=en(e))!=null&&t.closest("form")):!0})}function Ei(e){const t=et(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((s,o)=>{const i=(t==null?void 0:t.type.props[o]).default;return i!==void 0&&(s[o]=i),s},{}),r=nl(e);return B(()=>{const s={},o=(t==null?void 0:t.vnode.props)??{};return Object.keys(o).forEach(i=>{s[lt(i)]=o[i]}),Object.keys({...n,...s}).reduce((i,a)=>(r.value[a]!==void 0&&(i[a]=r.value[a]),i),{})})}function Wt(e,t){const n=Ei(e),r=t?no(t):{};return B(()=>({...n.value,...r}))}function J(){const e=et(),t=I(),n=B(()=>{var i,a;return["#text","#comment"].includes((i=t.value)==null?void 0:i.$el.nodeName)?(a=t.value)==null?void 0:a.$el.nextElementSibling:en(t)}),r=Object.assign({},e.exposed),s={};for(const i in e.props)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function o(i){t.value=i,i&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),e.exposed=s)}return{forwardRef:o,currentRef:t,currentElement:n}}function Y$(e,t){const n=Gv(!1,300),r=I(null),s=Kv();function o(){r.value=null,n.value=!1}function i(a,l){const c=a.currentTarget,u={x:a.clientX,y:a.clientY},d=X$(u,c.getBoundingClientRect()),f=Q$(u,d),h=Z$(l.getBoundingClientRect()),m=t3([...f,...h]);r.value=m,n.value=!0}return at(a=>{if(e.value&&t.value){const l=u=>i(u,t.value),c=u=>i(u,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",c),a(()=>{var u,d;(u=e.value)==null||u.removeEventListener("pointerleave",l),(d=t.value)==null||d.removeEventListener("pointerleave",c)})}}),at(a=>{var l;if(r.value){const c=u=>{var d,f;if(!r.value)return;const h=u.target,m={x:u.clientX,y:u.clientY},y=((d=e.value)==null?void 0:d.contains(h))||((f=t.value)==null?void 0:f.contains(h)),b=!e3(m,r.value),v=!!h.closest("[data-grace-area-trigger]");y?o():(b||v)&&(o(),s.trigger())};(l=e.value)==null||l.ownerDocument.addEventListener("pointermove",c),a(()=>{var u;return(u=e.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",c)})}}),{isPointerInTransit:n,onPointerExit:s.on}}function X$(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Q$(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Z$(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function e3(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,l=t[o].y,c=t[i].x,u=t[i].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(s=!s)}return s}function t3(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),n3(t)}function n3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var r3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ms=new WeakMap,zi=new WeakMap,Gi={},wu=0,eb=function(e){return e&&(e.host||eb(e.parentNode))},s3=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=eb(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},o3=function(e,t,n,r){var s=s3(t,Array.isArray(e)?e:[e]);Gi[n]||(Gi[n]=new WeakMap);var o=Gi[n],i=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};
58s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var h=f.getAttribute(r),m=h!==null&&h!=="false",y=(ms.get(f)||0)+1,b=(o.get(f)||0)+1;ms.set(f,y),o.set(f,b),i.push(f),y===1&&m&&zi.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),wu++,function(){i.forEach(function(d){var f=ms.get(d)-1,h=o.get(d)-1;ms.set(d,f),o.set(d,h),f||(zi.has(d)||d.removeAttribute(r),zi.delete(d)),h||d.removeAttribute(n)}),wu--,wu||(ms=new WeakMap,ms=new WeakMap,zi=new WeakMap,Gi={})}},i3=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=r3(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),o3(r,s,n,"aria-hidden")):function(){return null}};function Cl(e){let t;ge(()=>en(e),n=>{n?t=i3(n):t&&t()}),Nt(()=>{t&&t()})}let a3=0;function qt(e,t="radix"){const n=xl({useId:void 0});return gf?`${t}-${gf()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++a3}`}function tb(e){const t=I(),n=B(()=>{var s;return((s=t.value)==null?void 0:s.width)??0}),r=B(()=>{var s;return((s=t.value)==null?void 0:s.height)??0});return _e(()=>{const s=en(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else l=s.offsetWidth,c=s.offsetHeight;t.value={width:l,height:c}});return o.observe(s,{box:"border-box"}),()=>o.unobserve(s)}else t.value=void 0}),{width:n,height:r}}function nb(e,t){const n=I(e);function r(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=r(s)}}}const l3="data-item-text";function Fd(e){const t=Gv("",1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(!(e!=null&&e.value)&&!r)return;t.value=t.value+n;const s=(e==null?void 0:e.value)??r,o=ft(),i=s.map(d=>{var f;return{ref:d,textValue:((f=(d.querySelector(`[${l3}
58]`)??d).textContent)==null?void 0:f.trim())??""}}),a=i.find(d=>d.ref===o),l=i.map(d=>d.textValue),c=c3(l,t.value,a==null?void 0:a.textValue),u=i.find(d=>d.textValue===c);return u&&u.ref.focus(),u==null?void 0:u.ref},resetTypeahead:()=>{t.value=""}}}function u3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function c3(e,t,n){const r=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let o=u3(e,Math.max(s,0));r.length===1&&(o=o.filter(a=>a!==n));const i=o.find(a=>a.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}const Ud=D({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var r,s;if(!n.default)return null;const o=El(n.default()),i=o.findIndex(u=>u.type!==Ye);if(i===-1)return o;const a=o[i];(r=a.props)==null||delete r.ref;const l=a.props?ne(t,a.props):t;t.class&&(s=a.props)!=null&&s.class&&delete a.props.class;const c=Rn(a,l);for(const u in l)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=l[u]);return o.length===1?c:(o[i]=c,o)}}}),ae=D({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&["area","img","input"].includes(r)?()=>ze(r,t):r!=="template"?()=>ze(e.as,t,{default:n.default}):()=>ze(Ud,t,{default:n.default})}});function so(){const e=I(),t=B(()=>{var n,r;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(r=e.value)==null?void 0:r.$el.nextElementSibling:en(e)});return{primitiveElement:e,currentElement:t}}const[rb,d3]=xe("CollapsibleRoot"),f3=D({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{expose:t,emit:n}){const r=e,s=nt(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),o=nt(r,"disabled");return d3({contentId:"",disabled:o,open:s,onOpenToggle:()=>{s.value=!s.value}}),t({open:s}),J(),(i,a)=>(A(),N(p(ae),{as:i.as,"as-child":r.asChild,"data-state":p(s)?"open":"closed","data-disabled":p(o)?"":void 0},{default:R(()=>[L(i.$slots,"default",{open:p(s)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),h3=D({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;J();const n=rb();return(r,s)=>{var o,i;return A(),N(p(ae),{type:r.as==="button"?"button":void 0,as:r.as,"as-child":t.asChild,"aria-controls":p(n).contentId,"aria-expanded":p(n).open.value,"data-state":p(n).open.value?"open":"closed","data-disabled":(o=p(n).disabled)!=null&&o.value?"":void 0,disabled:(i=p(n).disabled)==null?void 0:i.value,onClick:p(n).onOpenToggle},{default:R(()=>[L(r.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}});function p3(e,t){var n;const r=I({}),s=I("none"),o=I(e),i=e.value?"mounted":"unmounted";let a;const l=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??kl,{state:c,dispatch:u}=nb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=b=>{var v;if(Dn){const w=new CustomEvent(b,{bubbles:!1,cancelable:!1});(v=t.value)==null||v.dispatchEvent(w)}};ge(e,async(b,v)=>{var w;const g=v!==b;if(await Re(),g){const _=s.value,S=Ji(t.value);b?(u("MOUNT"),d("enter"),S==="none"&&d("after-enter")):S==="none"||((w=r.value)==null?void 0:w.display)==="none"?(u("UNMOUNT"),d("leave"),d("after-leave")):v&&_!==S?(u("ANIMATION_OUT"),d("leave")):(u("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=b=>{const v=Ji(t.value),w=v.includes(b.animationName),g=c.value==="mounted"?"enter":"leave";if(b.target===t.value&&w&&(d(`after-${g}`),u("ANIMATION_END"),!o.value)){const _=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=l==null?void 0:l.setTimeout(()=>{var S;((S=t.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=_)})}b.target===t.value&&v==="none"&&u("ANIMATION_END")},h=b=>{b.target===t.value&&(s.value=Ji(t.value))},m=ge(t,(b,v)=>{b?(r.value=getComputedStyle(b),b.addEventListener("animationstart",h),b.addEventListener("animationcancel",f),b.addEventListener("animationend",f)):(u("ANIMATION_END"),a!==void 0&&(l==null||l.clearTimeout(a)),v==null||v.removeEventListener("animationstart",h),v==null||v.removeEventListener("animationcancel",f),v==null||v.removeEventListener("animationend",f))},{immediate:!0}),y=ge(c,()=>{const b=Ji(t.value);s.value=c.value==="mounted"?b:"none"});return Nt(()=>{m(),y()}),{isPresent:B(()=>["mounted","unmountSuspended"].includes(c.value))}}function Ji(e){return e&&getComputedStyle(e).animationName||"none"}const zt=D({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var r;const{present:s,forceMount:o}=Me(e),i=I(),{isPresent:a}=p3(s,i);n({present:a});let l=t.default({present:a});l=El(l||[]);const c=et();if(l&&(l==null?void 0:l.length)>
581){const u=(r=c==null?void 0:c.parent)!=null&&r.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(d=>`  - ${d}`).join(`
59`)].join(`
60`))}return()=>o.value||s.value||a.value?ze(t.default({present:a})[0],{ref:u=>{const d=en(u);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-radix-popper-content-wrapper")?i.value=d.firstElementChild:i.value=d),d}}):null}}),m3=D({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=rb();n.contentId||(n.contentId=qt(void 0,"radix-vue-collapsible-content"));const r=I(),{forwardRef:s,currentElement:o}=J(),i=I(0),a=I(0),l=B(()=>n.open.value),c=I(l.value),u=I();return ge(()=>{var d;return[l.value,(d=r.value)==null?void 0:d.present]},async()=>{await Re();const d=o.value;if(!d)return;u.value=u.value||{transitionDuration:d.style.transitionDuration,animationName:d.style.animationName},d.style.transitionDuration="0s",d.style.animationName="none";const f=d.getBoundingClientRect();a.value=f.height,i.value=f.width,c.value||(d.style.transitionDuration=u.value.transitionDuration,d.style.animationName=u.value.animationName)},{immediate:!0}),_e(()=>{requestAnimationFrame(()=>{c.value=!1})}),(d,f)=>(A(),N(p(zt),{ref_key:"presentRef",ref:r,present:d.forceMount||p(n).open.value,"force-mount":!0},{default:R(()=>{var h,m;return[Q(p(ae),ne(d.$attrs,{id:p(n).contentId,ref:p(s),"as-child":t.asChild,as:d.as,"data-state":p(n).open.value?"open":"closed","data-disabled":(h=p(n).disabled)!=null&&h.value?"":void 0,hidden:!((m=r.value)!=null&&m.present),style:{"--radix-collapsible-content-height":`${a.value}px`,"--radix-collapsible-content-width":`${i.value}px`}}),{default:R(()=>{var y;return[(y=r.value)!=null&&y.present?L(d.$slots,"default",{key:0}):Ge("",!0)]}),_:3},16,["id","as-child","as","data-state","data-disabled","hidden","style"])]}),_:3},8,["present"]))}});function sb({type:e,defaultValue:t,modelValue:n}){const r=n||t;if(Is(e)&&Is(n)&&Is(t))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(n!==void 0&&t!==void 0&&typeof n!=typeof t)throw new Error(`Invalid prop \`value\` of value \`${n}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${t}\`. The \`value\` prop must be:
61  ${e==="single"?"- a string":e==="multiple"?"- an array of strings":`- a string
62- an array of strings`}
63  - \`undefined\``);const s=n!==void 0||t!==void 0;if(e&&s){const o=Array.isArray(n)||Array.isArray(t),i=n!==void 0?"modelValue":"defaultValue",a=i==="modelValue"?typeof n:typeof t;if(e==="single"&&o)return console.error(`Invalid prop \`${i}\` of type ${a} supplied with type \`single\`. The \`modelValue\` prop must be a string or \`undefined\`.
64    You can remove the \`type\` prop to let the component infer the type from the ${i} prop.`),"multiple";if(e==="multiple"&&!o)return console.error(`Invalid prop \`${i}\` of type ${a} supplied with type \`multiple\`. The \`modelValue\` prop must be an array of strings or \`undefined\`.
65    You can remove the \`type\` prop to let the component infer the type from the ${i} prop.`),"single"}return s?Array.isArray(r)?"multiple":"single":e}function g3({type:e,defaultValue:t,modelValue:n}){return e||sb({type:e,defaultValue:t,modelValue:n})}function y3({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function v3(e,t){const n=I(g3(e)),r=nt(e,"modelValue",t,{defaultValue:y3(e),passive:e.modelValue===void 0,deep:!0});ge(()=>[e.type,e.modelValue,e.defaultValue],()=>{const i=sb(e);n.value!==i&&(n.value=i)},{immediate:!0});function s(i){if(n.value==="single")r.value=i===r.value?void 0:i;else{const a=[...r.value||[]];if(a.includes(i)){const l=a.findIndex(c=>c===i);a.splice(l,1)}else a.push(i);r.value=a}}const o=B(()=>n.value==="single");return{modelValue:r,type:n,changeModelValue:s,isSingle:o}}
65const[Tl,b3]=xe("AccordionRoot"),BN=D({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{dir:s,disabled:o}=Me(n),i=ir(s),{modelValue:a,changeModelValue:l,isSingle:c}=v3(n,r),{forwardRef:u,currentElement:d}=J();return b3({disabled:o,direction:i,orientation:n.orientation,parentElement:d,isSingle:c,collapsible:n.collapsible,modelValue:a,changeModelValue:l}),(f,h)=>(A(),N(p(ae),{ref:p(u),"as-child":f.asChild,as:f.as},{default:R(()=>[L(f.$slots,"default",{modelValue:p(a)})]),_:3},8,["as-child","as"]))}}),[Hd,w3]=xe("AccordionItem"),FN=D({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,r=Tl(),s=B(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),o=B(()=>r.disabled.value||n.disabled),i=B(()=>o.value?"":void 0),a=B(()=>s.value?"open":"closed");t({open:s,dataDisabled:i});const{currentRef:l,currentElement:c}=J();w3({open:s,dataState:a,disabled:o,dataDisabled:i,triggerId:"",currentRef:l,currentElement:c,value:B(()=>n.value)});function u(d){var f;const h=d.target;if(Array.from(((f=r.parentElement.value)==null?void 0:f.querySelectorAll("[data-radix-vue-collection-item]"))??[]).findIndex(m=>m===h)===-1)return null;Xv(d,c.value,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(d,f)=>(A(),N(p(f3),{"data-orientation":p(r).orientation,"data-disabled":i.value,"data-state":a.value,disabled:o.value,open:s.value,as:n.as,"as-child":n.asChild,onKeydown:Ft(u,["up","down","left","right","home","end"])},{default:R(()=>[L(d.$slots,"default",{open:s.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child"]))}}),UN=D({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=Tl(),r=Hd();return J(),(s,o)=>(A(),N(p(m3),{role:"region",hidden:!p(r).open.value,"as-child":t.asChild,"force-mount":t.forceMount,"aria-labelledby":p(r).triggerId,"data-state":p(r).dataState.value,"data-disabled":p(r).dataDisabled.value,"data-orientation":p(n).orientation,style:{"--radix-accordion-content-width":"var(--radix-collapsible-content-width)","--radix-accordion-content-height":"var(--radix-collapsible-content-height)"}},{default:R(()=>[L(s.$slots,"default")]),_:3},8,["hidden","as-child","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),HN=D({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(e){const t=e,n=Tl(),r=Hd();return J(),(s,o)=>(A(),N(p(ae),{as:t.as,"as-child":t.asChild,"data-orientation":p(n).orientation,"data-state":p(r).dataState.value,"data-disabled":p(r).dataDisabled.value},{default:R(()=>[L(s.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),VN=D({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=Tl(),r=Hd();r.triggerId||(r.triggerId=qt(void 0,"radix-vue-accordion-trigger"));function s(){const o=n.isSingle.value&&r.open.value&&!n.collapsible;r.disabled.value||o||n.changeModelValue(r.value.value)}return(o,i)=>(A(),N(p(h3),{id:p(r).triggerId,ref:p(r).currentRef,"data-radix-vue-collection-item":"",as:t.as,"as-child":t.asChild,"aria-disabled":p(r).disabled.value||void 0,"aria-expanded":p(r).open.value||!1,"data-disabled":p(r).dataDisabled.value,"data-orientation":p(n).orientation,"data-state":p(r).dataState.value,disabled:p(r).disabled.value,onClick:s},{default:R(()=>[L(o.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[Nn,_3]=xe("DialogRoot"),ob=D({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=nt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=I(),o=I(),{modal:i}=Me(n);return _3({open:r,modal:i,openModal:()=>{r.value=!0},onOpenChange:a=>{r.value=a},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:o}),(a,l)=>L(a.$slots,"default",{open:p(r)})}}),S3=D({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Nn(),{forwardRef:r,currentElement:s}=J();return n.contentId||(n.contentId=qt(void 0,"radix-vue-dialog-content")),_e(()=>{n.triggerElement.value=s.value}),(o,i)=>(A(),N(p(ae),ne(t,{ref:p(r),type:o.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":p(n).open.value||!1,"aria-controls":p(n).open.value?p(n).contentId:void 0,"data-state":p(n).open.value?"open":"closed",onClick:p(n).onOpenToggle}),{default:R(()=>[L(o.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),oo=D({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Md();return(n,r)=>p(t)||n.forceMount?(A(),N(Gc,{key:0,to:n.to,disabled:n.disabled},[L(n.$slots,"default")],8,["to","disabled"])):Ge("",!0)}}),k3=D({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(oo),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),E3="dismissableLayer.pointerDownOutside",x3="dismissableLayer.focusOutside";function ib(e,t){const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&r===n||s.indexOf(r)<s.indexOf(n))}function P3(e,t){var n;const r=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=I(!1),o=I(()=>{});return at(i=>{if(!Dn)return;const a=async c=>{const u=c.target;if(t!=null&&t.value){if(ib(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let d=function(){qv(E3,e,f)};const f={originalEvent:c};c.pointerType==="touch"?(r.removeEventListener("click",o.value),o.value=d,r.addEventListener("click",o.value,{once:!0})):d()}else r.removeEventListener("click",o.value);s.value=!1}},l=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);i(()=>{window.clearTimeout(l),r.removeEventListener("pointerdown",a),r.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>s.value=!0}}function C3(e,t){var n;const r=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=I(!1);return at(o=>{if(!Dn)return;const i=async a=>
65{t!=null&&t.value&&(await Re(),!(!t.value||ib(t.value,a.target))&&a.target&&!s.value&&qv(x3,e,{originalEvent:a}))};r.addEventListener("focusin",i),o(()=>r.removeEventListener("focusin",i))}),{onFocusCapture:()=>s.value=!0,onBlurCapture:()=>s.value=!1}}const Hn=Ct({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xi=D({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=J(),i=B(()=>{var m;return((m=o.value)==null?void 0:m.ownerDocument)??globalThis.document}),a=B(()=>Hn.layersRoot),l=B(()=>o.value?Array.from(a.value).indexOf(o.value):-1),c=B(()=>Hn.layersWithOutsidePointerEventsDisabled.size>0),u=B(()=>{const m=Array.from(a.value),[y]=[...Hn.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(y);return l.value>=b}),d=P3(async m=>{const y=[...Hn.branches].some(b=>b==null?void 0:b.contains(m.target));!u.value||y||(r("pointerDownOutside",m),r("interactOutside",m),await Re(),m.defaultPrevented||r("dismiss"))},o),f=C3(m=>{[...Hn.branches].some(y=>y==null?void 0:y.contains(m.target))||(r("focusOutside",m),r("interactOutside",m),m.defaultPrevented||r("dismiss"))},o);B$("Escape",m=>{l.value===a.value.size-1&&(r("escapeKeyDown",m),m.defaultPrevented||r("dismiss"))});let h;return at(m=>{o.value&&(n.disableOutsidePointerEvents&&(Hn.layersWithOutsidePointerEventsDisabled.size===0&&(h=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),Hn.layersWithOutsidePointerEventsDisabled.add(o.value)),a.value.add(o.value),m(()=>{n.disableOutsidePointerEvents&&Hn.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=h)}))}),at(m=>{m(()=>{o.value&&(a.value.delete(o.value),Hn.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(m,y)=>(A(),N(p(ae),{ref:p(s),"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:Kt({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:p(f).onFocusCapture,onBlurCapture:p(f).onBlurCapture,onPointerdownCapture:p(d).onPointerDownCapture},{default:R(()=>[L(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),_u="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Vp={bubbles:!1,cancelable:!0};function T3(e,{select:t=!1}={}){const n=ft();for(const r of e)if(gr(r,{select:t}),ft()!==n)return!0}function O3(e){const t=ab(e),n=qp(t,e),r=qp(t.reverse(),e);return[n,r]}function ab(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qp(e,t){for(const n of e)if(!R3(n,{upTo:t}))return n}function R3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function A3(e){return e instanceof HTMLInputElement&&"select"in e}function gr(e,{select:t=!1}={}){if(e&&e.focus){const n=ft();e.focus({preventScroll:!0}),e!==n&&A3(e)&&t&&e.select()}}const $3=C$(()=>I([]));function I3(){const e=$3();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=Kp(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=Kp(e.value,t),(n=e.value[0])==null||n.resume()}}}function Kp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function D3(e){return e.filter(t=>t.tagName!=="A")}const Ol=D({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:s,currentElement:o}=J(),i=I(null),a=I3(),l=Ct({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});at(u=>{if(!Dn)return;const d=o.value;if(!n.trapped)return;function f(b){if(l.paused||!d)return;const v=b.target;d.contains(v)?i.value=v:gr(i.value,{select:!0})}function h(b){if(l.paused||!d)return;const v=b.relatedTarget;v!==null&&(d.contains(v)||gr(i.value,{select:!0}))}function m(b){d.contains(i.value)||gr(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(m);d&&y.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()})}),at(async u=>{const d=o.value;if(await Re(),!d)return;a.add(l);const f=ft();if(!d.contains(f)){const h=new CustomEvent(_u,Vp);d.addEventListener(_u,m=>r("mountAutoFocus",m)),d.dispatchEvent(h),h.defaultPrevented||(T3(D3(ab(d)),{select:!0}),ft()===f&&gr(d))}u(()=>{d.removeEventListener(_u,y=>r("mountAutoFocus",y));const h=new CustomEvent(Su,Vp),m=y=>{r("unmountAutoFocus",y)};d.addEventListener(Su,m),d.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||gr(f??document.body,{select:!0}),d.removeEventListener(Su,m),a.remove(l)},0)})});function c(u){if(!n.loop&&!n.trapped||l.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,f=ft();if(d&&f){const h=u.currentTarget,[m,y]=O3(h);m&&y?!u.shiftKey&&f===y?(u.preventDefault(),n.loop&&gr(m,{select:!0})):u.shiftKey&&f===m&&(u.preventDefault(),n.loop&&gr(y,{select:!0})):f===h&&u.preventDefault()}}return(u,d)=>(A(),N(p(ae),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:R(()=>[L(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),N3="menu.itemSelect",Ic=["Enter"," "],j3=["ArrowDown","PageUp","Home"],lb=["ArrowUp","PageDown","End"],L3=[...j3,...lb];[...Ic],[...Ic];function ub(e){return e?"open":"closed"}function Dc(e){const t=ft();for(const n of e)if(n===t||(n.focus(),ft()!==t))return}function M3(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,l=t[o].y,c=t[i].x,u=t[i].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(s=!s)}return s}function B3(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return M3(n,t)}function Nc(e){return e.pointerType==="mouse"}const cb=D({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Nn(),{forwardRef:o,currentElement:i}=J();return s.titleId||(s.titleId=qt(void 0,"radix-vue-dialog-title")),s.descriptionId||(s.descriptionId=qt(void 0,"radix-vue-dialog-description")),_e(()=>{s.contentElement=i,ft()!==document.body&&(s.triggerElement.value=ft())}),(a,l)=>(A(),N(p(Ol),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>r("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>r("closeAutoFocus",c))},{default:R(()=>[Q(p(xi),ne({id:p(s).contentId,ref:p(o),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":p(s).descriptionId,"aria-labelledby":p(s).titleId,"data-state":p(ub)(p(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>p(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>r("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>r("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>r("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>r("pointerDownOutside",c))}),{default:R(()=>[L(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),F3=D({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Nn(),o=no(r),{forwardRef:i,currentElement:a}=J();return Cl(a),(l,c)=>(A(),N(cb,ne({...n,...p(o)},{ref:p(i),"trap-focus":p(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=u=>{var d;u.defaultPrevented||(u.preventDefault(),(d=p(s).triggerElement.value)==null||d.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:R(()=>[L(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),U3=D({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=no(t);J();const s=Nn(),o=I(!1),i=I(!1);return(a,l)=>(A(),N(cb,ne({...n,...p(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=c=>{var u;c.defaultPrevented||(o.value||(u=p(s).triggerElement.value)==null||u.focus(),c.preventDefault()),o.value=!1,i.value=!1}),onInteractOutside:l[1]||(l[1]=c=>{var u;c.defaultPrevented||(o.value=!0,c.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const d=c.target;(u=p(s).triggerElement.value)!=null&&u.contains(d)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&i.value&&c.preventDefault()})}),{default:R(()=>[L(a.$slots,"default")]),_:3},16))}}),db=D({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Nn(),o=no(r),{forwardRef:i}=J();return(a,l)=>(A(),N(p(zt),{present:a.forceMount||p(s).open.value},{default:R(()=>[p(s).modal.value?(A(),N(F3,ne({key:0,ref:p(i)},{...n,...p(o),...a.$attrs}),{default:R(()=>[L(a.$slots,"default")]),_:3},16)):(A(),N(U3,ne({key:1,ref:p(i)},{...n,...p(o),...a.$attrs}),{default:R(()=>[L(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),H3=D({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Nn();return Pl(!0),J(),(n,r)=>(A(),N(p(ae),{as:n.as,"as-child":n.asChild,"data-state":p(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:R(()=>[L(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),fb=D({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=Nn(),{forwardRef:n}=J();return(r,s)=>{var o;return(o=p(t))!=null&&o.modal.value?(A(),N(p(zt),{key:0,present:r.forceMount||p(t).open.value},{default:R(()=>[Q(H3,ne(r.$attrs,{ref:p(n),as:r.as,"as-child":r.asChild}),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Ge("",!0)}}}),Vd=D({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;J();const n=Nn();return(r,s)=>(A(),N(p(ae),ne(t,{type:r.as==="button"?"button":void 0,onClick:s[0]||(s[0]=o=>p(n).onOpenChange(!1))}),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["type"]))}}),V3=D({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=Nn();return J(),(r,s)=>(A(),N(p(ae),ne(t,{id:p(n).titleId}),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["id"]))}}),q3=D({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;J();const n=Nn();return(r,s)=>(A(),N(p(ae),ne(t,{id:p(n).descriptionId}),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["id"]))}}),qN=D({__name:"AlertDialogRoot",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const n=Wt(e,t);return J(),(r,s)=>(A(),N(p(ob),ne(p(n),{modal:!0}),{default:R(()=>[L(r.$slots,"default")]),_:3},16))}}),KN=D({__name:"AlertDialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(S3),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),WN=D({__name:"AlertDialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(oo),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),[K3,W3]=xe("AlertDialogContent"),zN=D({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=no(t);J();const s=I();return W3({onCancelElementChange:o=>{s.value=o}}),(o,i)=>(A(),N(p(db),ne({...n,...p(r)},{role:"alertdialog",onPointerDownOutside:i[0]||(i[0]=We(()=>{},["prevent"])),onInteractOutside:i[1]||(i[1]=We(()=>{},["prevent"])),onOpenAutoFocus:i[2]||(i[2]=()=>{Re(()=>{var a;(a=s.value)==null||a.focus({preventScroll:!0})})})}),{default:R(()=>[L(o.$slots,"default")]),_:3},16))}}),GN=D({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(fb),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),JN=D({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=K3(),{forwardRef:r,currentElement:s}=J();return _e(()=>{n.onCancelElementChange(s.value)}),(o,i)=>(A(),N(p(Vd),ne(t,{ref:p(r)}),{default:R(()=>[L(o.$slots,"default")]),_:3},16))}}),YN=D({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(V3),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),XN=D({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(q3),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),QN=D({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(Vd),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),[hb,z3]=xe("AvatarRoot"),ZN=D({__name:"AvatarRoot",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return J(),z3({imageLoadingStatus:I("loading")}),(t,n)=>(A(),N(p(ae),{"as-child":t.asChild,as:t.as},{default:R(()=>[L(t.$slots,"default")]),_:3},8,["as-child","as"]))}});function G3(e,t){const n=I("idle"),r=I(!1),s=o=>()=>{r.value&&(n.value=o)};return _e(()=>{r.value=!0,ge([()=>e.value,()=>t==null?void 0:t.value],([o,i])=>{if(!o)n.value="error";else{const a=new window.Image;n.value="loading",a.onload=s("loaded"),a.onerror=s("error"),a.src=o,i&&(a.referrerPolicy=i)}},{immediate:!0})}),Nt(()=>{r.value=!1}),n}const ej=D({__name:"AvatarImage",props:{src:{},referrerPolicy:{},asChild:{type:Boolean},as:{default:"img"}},emits:["loadingStatusChange"],setup(e,{emit:t}){const n=e,r=t,{src:s,referrerPolicy:o}=Me(n);J();const i=hb(),a=G3(s,o);return ge(a,l=>{r("loadingStatusChange",l),l!=="idle"&&(i.imageLoadingStatus.value=l)},{immediate:!0}),(l,c)=>Nm((A(),N(p(ae),{role:"img","as-child":l.asChild,as:l.as,src:p(s),"referrer-policy":p(o)},{default:R(()=>[L(l.$slots,"default")]),_:3},8,["as-child","as","src","referrer-policy"])),[[Dg,p(a)==="loaded"]])}}),tj=D({__name:"AvatarFallback",props:{delayMs:{default:0},asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=hb();J();const r=I(!1);let s;return ge(n.imageLoadingStatus,o=>{o==="loading"&&(r.value=!1,t.delayMs?s=setTimeout(()=>{r.value=!0,clearTimeout(s)},t.delayMs):r.value=!0)},{immediate:!0}),(o,i)=>r.value&&p(n).imageLoadingStatus.value!=="loaded"?(A(),N(p(ae),{key:0,"as-child":o.asChild,as:o.as},{default:R(()=>[L(o.$slots,"default")]),_:3},8,["as-child","as"])):Ge("",!0)}});function Ha(e){return e==="indeterminate"}function pb(e){return Ha(e)?"indeterminate":e?"checked":"unchecked"}const J3=["value","checked","name","disabled","required"],[Y3,X3]=xe("CheckboxRoot"),Q3=D({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=t,{disabled:s}=Me(n),o=nt
65(n,"checked",r,{defaultValue:n.defaultChecked,passive:n.checked===void 0}),{forwardRef:i,currentElement:a}=J(),l=ro(a),c=B(()=>{var u;return n.id&&a.value?(u=document.querySelector(`[for="${n.id}"]`))==null?void 0:u.innerText:void 0});return X3({disabled:s,state:o}),(u,d)=>(A(),ke(Oe,null,[Q(p(ae),ne(u.$attrs,{id:u.id,ref:p(i),role:"checkbox","as-child":n.asChild,as:u.as,type:u.as==="button"?"button":void 0,"aria-checked":p(Ha)(p(o))?"mixed":p(o),"aria-required":n.required,"aria-label":u.$attrs["aria-label"]||c.value,"data-state":p(pb)(p(o)),"data-disabled":p(s)?"":void 0,disabled:p(s),onKeydown:Ft(We(()=>{},["prevent"]),["enter"]),onClick:d[0]||(d[0]=f=>o.value=p(Ha)(p(o))?!0:!p(o))}),{default:R(()=>[L(u.$slots,"default",{checked:p(o)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","onKeydown"]),p(l)?(A(),ke("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:u.value,checked:!!p(o),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,J3)):Ge("",!0)],64))}}),Z3=D({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t}=J(),n=Y3();return(r,s)=>(A(),N(p(zt),{present:r.forceMount||p(Ha)(p(n).state.value)||p(n).state.value===!0},{default:R(()=>[Q(p(ae),ne({ref:p(t),"data-state":p(pb)(p(n).state.value),"data-disabled":p(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":r.asChild,as:r.as},r.$attrs),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[mb,eI]=xe("PopperRoot"),Rl=D({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=I();return eI({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>L(n.$slots,"default")}}),Al=D({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:r}=J(),s=mb();return at(()=>{s.onAnchorChange(t.element??r.value)}),(o,i)=>(A(),N(p(ae),{ref:p(n),as:o.as,"as-child":o.asChild},{default:R(()=>[L(o.$slots,"default")]),_:3},8,["as","as-child"]))}});function tI(e){return e!==null}function nI(e){return{name:"transformOrigin",options:e,fn(t){var n,r,s;const{placement:o,rects:i,middlewareData:a}=t,l=((n=a.arrow)==null?void 0:n.centerOffset)!==0,c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,f]=jc(o),h={start:"0%",center:"50%",end:"100%"}[f],m=(((r=a.arrow)==null?void 0:r.x)??0)+c/2,y=(((s=a.arrow)==null?void 0:s.y)??0)+u/2;let b="",v="";return d==="bottom"?(b=l?h:`${m}px`,v=`${-u}px`):d==="top"?(b=l?h:`${m}px`,v=`${i.floating.height+u}px`):d==="right"?(b=`${-u}px`,v=l?h:`${y}px`):d==="left"&&(b=`${i.floating.width+u}px`,v=l?h:`${y}px`),{data:{x:b,y:v}}}}}function jc(e){const[t,n="center"]=e.split("-");return[t,n]}const gb={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[nj,rI]=xe("PopperContent"),$l=D({inheritAttrs:!1,__name:"PopperContent",props:Zm({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...gb}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,s=mb(),{forwardRef:o,currentElement:i}=J(),a=I(),l=I(),{width:c,height:u}=tb(l),d=B(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=B(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),h=B(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=B(()=>({padding:f.value,boundary:h.value.filter(tI),altBoundary:h.value.length>0})),y=P$(()=>[l$({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Np({...m.value}),n.avoidCollisions&&u$({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?h$():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&Np({...m.value}),c$({...m.value,apply:({elements:x,rects:j,availableWidth:O,availableHeight:q})=>{const{width:K,height:V}=j.reference,F=x.floating.style;F.setProperty("--radix-popper-available-width",`${O}px`),F.setProperty("--radix-popper-available-height",`${q}px`),F.setProperty("--radix-popper-anchor-width",`${K}px`),F.setProperty("--radix-popper-anchor-height",`${V}px`)}}),l.value&&g$({element:l.value,padding:n.arrowPadding}),nI({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&d$({strategy:"referenceHidden",...m.value})]),{floatingStyles:b,placement:v,isPositioned:w,middlewareData:g}=y$(s.anchor,a,{strategy:"fixed",placement:d,whileElementsMounted:(...x)=>a$(...x,{animationFrame:n.updatePositionStrategy==="always"}),middleware:y}),_=B(()=>jc(v.value)[0]),S=B(()=>jc(v.value)[1]);L_(()=>{w.value&&r("placed")});const C=B(()=>{var x;return((x=g.value.arrow)==null?void 0:x.centerOffset)!==0}),k=I("");at(()=>{i.value&&(k.value=window.getComputedStyle(i.value).zIndex)});const $=B(()=>{var x;return((x=g.value.arrow)==null?void 0:x.x)??0}),P=B(()=>{var x;return((x=g.value.arrow)==null?void 0:x.y)??0});return rI({placedSide:_,onArrowChange:x=>l.value=x,arrowX:$,arrowY:P,shouldHideArrow:C}),(x,j)=>{var O,q,K;
65return A(),ke("div",{ref_key:"floatingRef",ref:a,"data-radix-popper-content-wrapper":"",style:Kt({...p(b),transform:p(w)?p(b).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:k.value,"--radix-popper-transform-origin":[(O=p(g).transformOrigin)==null?void 0:O.x,(q=p(g).transformOrigin)==null?void 0:q.y].join(" "),...((K=p(g).hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[Q(p(ae),ne({ref:p(o)},x.$attrs,{"as-child":n.asChild,as:x.as,"data-side":_.value,"data-align":S.value,style:{animation:p(w)?void 0:"none"}}),{default:R(()=>[L(x.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),yb=D({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return J(),(t,n)=>(A(),N(p(ae),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:R(()=>[L(t.$slots,"default")]),_:3},8,["as","as-child"]))}}),sI="data-radix-vue-collection-item",[qd,oI]=xe("CollectionProvider");function vb(e=sI){const t=I(new Map),n=I(),r=oI({collectionRef:n,itemMap:t,attrName:e}),{getItems:s}=Wd(r),o=B(()=>
65Array.from(r.itemMap.value.values())),i=B(()=>r.itemMap.value.size);return{getItems:s,reactiveItems:o,itemMapSize:i}}const bb=D({name:"CollectionSlot",setup(e,{slots:t}){const n=qd(),{primitiveElement:r,currentElement:s}=so();return ge(s,()=>{n.collectionRef.value=s.value}),()=>ze(Ud,{ref:r},t)}}),Kd=D({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const r=qd(),{primitiveElement:s,currentElement:o}=so();return at(i=>{if(o.value){const a=tl(o.value);r.itemMap.value.set(a,{ref:o.value,value:e.value}),i(()=>r.itemMap.value.delete(a))}}),()=>ze(Ud,{...n,[r.attrName]:"",ref:s},t)}});function Wd(e){const t=e??qd();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const r=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((s,o)=>r.indexOf(s.ref)-r.indexOf(o.ref))}}}function wb(e){const t=xl({nonce:I()});return B(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const iI=D({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(A(),N(p(Al),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}});function aI(){const e=I(!1);return _e(()=>{hn("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),hn(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const lI=Wv(aI),[Il,uI]=xe(["MenuRoot","MenuSub"],"MenuContext"),[zd,cI]=xe("MenuRoot"),dI=D({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:s,dir:o}=Me(n),i=ir(o),a=nt(n,"open",r),l=I(),c=lI();return uI({open:a,onOpenChange:u=>{a.value=u},content:l,onContentChange:u=>{l.value=u}}),cI({onClose:()=>{a.value=!1},isUsingKeyboardRef:c,dir:i,modal:s}),(u,d)=>(A(),N(p(Rl),null,{default:R(()=>[L(u.$slots,"default")]),_:3}))}}),fI="rovingFocusGroup.onEntryFocus",hI={bubbles:!1,cancelable:!0},pI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gI(e,t,n){const r=mI(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pI[r]}function _b(e,t=!1){const n=ft();for(const r of e)if(r===n||(r.focus({preventScroll:t}),ft()!==n))return}function yI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const[vI,bI]=xe("RovingFocusGroup"),Gd=D({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,s=n,{loop:o,orientation:i,dir:a}=Me(r),l=ir(a),c=nt(r,"currentTabStopId",s,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=I(!1),d=I(!1),f=I(0),{getItems:h}=vb();function m(b){const v=!d.value;if(b.currentTarget&&b.target===b.currentTarget&&v&&!u.value){const w=new CustomEvent(fI,hI);if(b.currentTarget.dispatchEvent(w),s("entryFocus",w),!w.defaultPrevented){const g=h().map(k=>k.ref).filter(k=>k.dataset.disabled!==""),_=g.find(k=>k.getAttribute("data-active")==="true"),S=g.find(k=>k.id===c.value),C=[_,S,...g].filter(Boolean);_b(C,r.preventScrollOnEntryFocus)}}d.value=!1}function y(){setTimeout(()=>{d.value=!1},1)}return t({getItems:h}),bI({loop:o,dir:l,orientation:i,currentTabStopId:c,onItemFocus:b=>{c.value=b},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(b,v)=>(A(),N(p(bb),null,{default:R(()=>[Q(p(ae),{tabindex:u.value||f.value===0?-1:0,"data-orientation":p(i),as:b.as,"as-child":b.asChild,dir:p(l),style:{outline:"none"},onMousedown:v[0]||(v[0]=w=>d.value=!0),onMouseup:y,onFocus:m,onBlur:v[1]||(v[1]=w=>u.value=!1)},{default:R(()=>[L(b.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Sb=D({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=vI(),r=B(()=>t.tabStopId||qt()),s=B(()=>n.currentTabStopId.value===r.value),{getItems:o}=Wd();_e(()=>{t.focusable&&n.onFocusableItemAdd()}),Nt(()=>{t.focusable&&n.onFocusableItemRemove()});function i(a){if(a.key==="Tab"&&a.shiftKey){n.onItemShiftTab();return}if(a.target!==a.currentTarget)return;
65const l=gI(a,n.orientation.value,n.dir.value);if(l!==void 0){if(a.metaKey||a.ctrlKey||a.altKey||!t.allowShiftKey&&a.shiftKey)return;a.preventDefault();let c=[...o().map(u=>u.ref).filter(u=>u.dataset.disabled!=="")];if(l==="last")c.reverse();else if(l==="prev"||l==="next"){l==="prev"&&c.reverse();const u=c.indexOf(a.currentTarget);c=n.loop.value?yI(c,u+1):c.slice(u+1)}Re(()=>_b(c))}}return(a,l)=>(A(),N(p(Kd),null,{default:R(()=>[Q(p(ae),{tabindex:s.value?0:-1,"data-orientation":p(n).orientation.value,"data-active":a.active,"data-disabled":a.focusable?void 0:"",as:a.as,"as-child":a.asChild,onMousedown:l[0]||(l[0]=c=>{a.focusable?p(n).onItemFocus(r.value):c.preventDefault()}),onFocus:l[1]||(l[1]=c=>p(n).onItemFocus(r.value)),onKeydown:i},{default:R(()=>[L(a.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[kb,wI]=xe("MenuContent"),Eb=D({__name:"MenuContentImpl",props:Zm({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...gb}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,r=t,s=Il(),o=zd(),{trapFocus:i,disableOutsidePointerEvents:a,loop:l}=Me(n);Bd(),Pl(a.value);const c=I(""),u=I(0),d=I(0),f=I(null),h=I("right"),m=I(0),y=I(null),{createCollection:b}=ki(),{forwardRef:v,currentElement:w}=J(),g=b(w);ge(w,x=>{s.onContentChange(x)});const{handleTypeaheadSearch:_}=Fd(g);Nt(()=>{window.clearTimeout(u.value)});function S(x){var j,O;return h.value===((j=f.value)==null?void 0:j.side)&&B3(x,(O=f.value)==null?void 0:O.area)}async function C(x){var j;r("openAutoFocus",x),!x.defaultPrevented&&(x.preventDefault(),(j=w.value)==null||j.focus({preventScroll:!0}))}function k(x){if(x.defaultPrevented)return;const j=x.target.closest("[data-radix-menu-content]")===x.currentTarget,O=x.ctrlKey||x.altKey||x.metaKey,q=x.key.length===1,K=Xv(x,ft(),w.value,{loop:l.value,arrowKeyOptions:"vertical",dir:o==null?void 0:o.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(K)return K==null?void 0:K.focus();if(x.code==="Space"||(j&&(x.key==="Tab"&&x.preventDefault(),!O&&q&&_(x.key)),x.target!==w.value)||!L3.includes(x.key))return;x.preventDefault();const V=g.value;lb.includes(x.key)&&V.reverse(),Dc(V)}function $(x){var j,O;(O=(j=x==null?void 0:x.currentTarget)==null?void 0:j.contains)!=null&&O.call(j,x.target)||(window.clearTimeout(u.value),c.value="")}function P(x){var j;if(!Nc(x))return;const O=x.target,q=m.value!==x.clientX;if((j=x==null?void 0:x.currentTarget)!=null&&j.contains(O)&&q){const K=x.clientX>m.value?"right":"left";h.value=K,m.value=x.clientX}}return wI({onItemEnter:x=>!!S(x),onItemLeave:x=>{var j;S(x)||((j=w.value)==null||j.focus(),y.value=null)},onTriggerLeave:x=>!!S(x),searchRef:c,pointerGraceTimerRef:d,onPointerGraceIntentChange:x=>{f.value=x}}),(x,j)=>(A(),N(p(Ol),{"as-child":"",trapped:p(i),onMountAutoFocus:C,onUnmountAutoFocus:j[7]||(j[7]=O=>r("closeAutoFocus",O))},{default:R(()=>[Q(p(xi),{"as-child":"","disable-outside-pointer-events":p(a),onEscapeKeyDown:j[2]||(j[2]=O=>r("escapeKeyDown",O)),onPointerDownOutside:j[3]||(j[3]=O=>r("pointerDownOutside",O)),onFocusOutside:j[4]||(j[4]=O=>r("focusOutside",O)),onInteractOutside:j[5]||(j[5]=O=>r("interactOutside",O)),onDismiss:j[6]||(j[6]=O=>r("dismiss"))},{default:R(()=>[Q(p(Gd),{"current-tab-stop-id":y.value,"onUpdate:currentTabStopId":j[0]||(j[0]=O=>y.value=O),"as-child":"",orientation:"vertical",dir:p(o).dir.value,loop:p(l),onEntryFocus:j[1]||(j[1]=O=>{r("entryFocus",O),p(o).isUsingKeyboardRef.value||O.preventDefault()})},{default:R(()=>[Q(p($l),{ref:p(v),role:"menu",as:x.as,"as-child":x.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":p(ub)(p(s).open.value),dir:p(o).dir.value,side:x.side,"side-offset":x.sideOffset,align:x.align,"align-offset":x.alignOffset,"avoid-collisions":x.avoidCollisions,"collision-boundary":x.collisionBoundary,"collision-padding":x.collisionPadding,"arrow-padding":x.arrowPadding,"prioritize-position":x.prioritizePosition,sticky:x.sticky,"hide-when-detached":x.hideWhenDetached,onKeydown:k,onBlur:$,onPointermove:P},{default:R(()=>[L(x.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),_I=D({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=kb(),{forwardRef:r}=J(),s=I(!1);async function o(a){if(!a.defaultPrevented&&Nc(a)){if(t.disabled)n.onItemLeave(a);else if(!n.onItemEnter(a)){const l=a.currentTarget;l==null||l.focus({preventScroll:!0})}}}async function i(a){await Re(),!a.defaultPrevented&&Nc(a)&&n.onItemLeave(a)}return(a,l)=>(A(),N(p(Kd),{value:{textValue:a.textValue}},{default:R(()=>[Q(p(ae),ne({ref:p(r),role:"menuitem",tabindex:"-1"},a.$attrs,{as:a.as,"as-child":a.asChild,"data-radix-vue-collection-item":"","aria-disabled":a.disabled||void 0,"data-disabled":a.disabled?"":void 0,"data-highlighted":s.value?"":void 0,onPointermove:o,onPointerleave:i,onFocus:l[0]||(l[0]=async c=>{await Re(),!(c.defaultPrevented||a.disabled)&&(s.value=!0)}),onBlur:l[1]||(l[1]=async c=>{await Re(),!c.defaultPrevented&&(s.value=!1)})}),{default:R(()=>[L(a.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),SI=D({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=J(),i=zd(),a=kb(),l=I(!1);async function c(){const u=o.value;if(!n.disabled&&u){const d=new CustomEvent(N3,{bubbles:!0,cancelable:!0});r("select",d),await Re(),d.defaultPrevented?l.value=!1:i.onClose()}}return(u,d)=>(A(),N(_I,ne(n,{ref:p(s),onClick:c,onPointerdown:d[0]||(d[0]=()=>{l.value=!0}),onPointerup:d[1]||(d[1]=async f=>{var h;await Re(),!f.defaultPrevented&&(l.value||(h=f.currentTarget)==null||h.click())}),onKeydown:d[2]||(d[2]=async f=>{const h=p(a).searchRef.value!=="";u.disabled||h&&f.key===" "||p(Ic).includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}),{default:R(()=>[L(u.$slots,"default")]),_:3},16))}}),kI=D({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Wt(n,r),o=Il(),{forwardRef:i,currentElement:a}=J();return Cl(a),(l,c)=>(A(),N(Eb,ne(p(s),{ref:p(i),"trap-focus":p(o).open.value,"disable-outside-pointer-events":p(o).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=u=>p(o).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=We(u=>r("focusOutside",u),["prevent"]))}),{default:R(()=>[L(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),EI=D({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Wt(e,t),r=Il();return(s,o)=>(A(),N(Eb,ne(p(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:o[0]||(o[0]=i=>p(r).onOpenChange(!1))}),{default:R(()=>[L(s.$slots,"default")]),_:3},16))}}),xI=D({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Wt(e,t),r=Il(),s=zd();return(o,i)=>(A(),N(p(zt),{present:o.forceMount||p(r).open.value},{default:R(()=>[p(s).modal.value?(A(),N(kI,Je(ne({key:0},{...o.$attrs,...p(n)})),{default:R(()=>[L(o.$slots,"default")]),_:3},16)):(A(),N(EI,Je(ne({key:1},{...o.$attrs,...p(n)})),{default:R(()=>[L(o.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),PI=D({__name:"MenuLabel",props:{asChild:{type:Boolean},as:{default:"div"}},setup(e){const t=e;return(n,r)=>(A(),N(p(ae),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),CI=D({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(oo),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),TI=D({__name:"MenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(A(),N(p(ae),ne(t,{role:"separator","aria-orientation":"horizontal"}),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),[xb,OI]=xe("DropdownMenuRoot"),rj=D({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;J();const s=nt(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=I(),{modal:i,dir:a}=Me(n),l=ir(a);return OI({open:s,onOpenChange:c=>{s.value=c},onOpenToggle:()=>{s.value=!s.value},triggerId:"",triggerElement:o,contentId:"",modal:i,dir:l}),(c,u)=>(A(),N(p(dI),{open:p(s),"onUpdate:open":u[0]||(u[0]=d=>Ne(s)?s.value=d:null),dir:p(l),modal:p(i)},{default:R(()=>[L(c.$slots,"default",{open:p(s)})]),_:3},8,["open","dir","modal"]))}}),sj=D({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=xb(),{forwardRef:r,currentElement:s}=J();return _e(()=>{n.triggerElement=s}),n.triggerId||(n.triggerId=qt(void 0,"radix-vue-dropdown-menu-trigger")),(o,i)=>(A(),N(p(iI),{"as-child":""},{default:R(()=>[Q(p(ae),{id:p(n).triggerId,ref:p(r),type:o.as==="button"?"button":void 0,"as-child":t.asChild,as:o.as,"aria-haspopup":"menu","aria-expanded":p(n).open.value,"aria-controls":p(n).open.value?p(n).contentId:void 0,"data-disabled":o.disabled?"":void 0,disabled:o.disabled,"data-state":p(n).open.value?"open":"closed",onClick:i[0]||(i[0]=async a=>{var l;!o.disabled&&a.button===0&&a.ctrlKey===!1&&((l=p(n))==null||l.onOpenToggle(),await Re(),p(n).open.value&&a.preventDefault())}),onKeydown:i[1]||(i[1]=Ft(a=>{o.disabled||(["Enter"," "].includes(a.key)&&p(n).onOpenToggle(),a.key==="ArrowDown"&&p(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())},["enter","space","arrow-down"]))},{default:R(()=>[L(o.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),oj=D({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(CI),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),ij=D({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=Wt(e,t);J();const r=xb(),s=I(!1);function o(i){i.defaultPrevented||(s.value||setTimeout(()=>{var a;(a=r.triggerElement.value)==null||a.focus()},0),s.value=!1,i.preventDefault())}return r.contentId||(r.contentId=qt(void 0,"radix-vue-dropdown-menu-content")),(i,a)=>{var l;return A(),N(p(xI),ne(p(n),{id:p(r).contentId,"aria-labelledby":(l=p(r))==null?void 0:l.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:o,onInteractOutside:a[0]||(a[0]=c=>{var u;if(c.defaultPrevented)return;const d=c.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,h=d.button===2||f;(!p(r).modal.value||h)&&(s.value=!0),(u=p(r).triggerElement.value)!=null&&u.contains(c.target)&&c.preventDefault()})}),{default:R(()=>[L(i.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),aj=D({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=no(t);return J(),(s,o)=>(A(),N(p(SI),Je(Qe({...n,...p(r)})),{default:R(()=>[L(s.$slots,"default")]),_:3},16))}}),lj=D({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(TI),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),uj=D({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(PI),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),RI=D({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(e){const t=e;return J(),(n,r)=>(A(),N(p(ae),ne(t,{onMousedown:r[0]||(r[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}});function Pb(e){const{disabled:t}=e,n=I(),r=Kv(),s=()=>window.clearTimeout(n.value),o=f=>{s(),!t.value&&(r.trigger(),n.value=window.setTimeout(()=>{o(60)},f))},i=()=>{o(400)},a=()=>{s()},l=I(!1),c=B(()=>en(e.target)),u=f=>{f.button!==0||l.value||(f.preventDefault(),l.value=!0,i())},d=()=>{l.value=!1,a()};return Dn&&(hn(c||window,"pointerdown",u),hn(window,"pointerup",d),hn(window,"pointercancel",d)),{isPressed:l,onTrigger:r.on}}function Wp(e,t=I({})){return zv(()=>new Hv(e.value,t.value))}function AI(e,t=I({})){return zv(()=>new Vv(e.value,t.value))}function zp(e,t,n){let r=e==="+"?t+n:t-n;
65if(t%1!==0||n%1!==0){const s=t.toString().split("."),o=n.toString().split("."),i=s[1]&&s[1].length||0,a=o[1]&&o[1].length||0,l=10**Math.max(i,a);t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const $I=["value","name","disabled","required"],[Jd,II]=xe("NumberFieldRoot"),cj=D({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{disabled:s,min:o,max:i,step:a,locale:l,formatOptions:c,id:u}=Me(n),d=nt(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{primitiveElement:f,currentElement:h}=so(),m=ro(h),y=I(),b=B(()=>q(d.value)===o.value||(o.value&&!isNaN(d.value)?zp("-",d.value,a.value)<o.value:!1)),v=B(()=>q(d.value)===i.value||(i.value&&!isNaN(d.value)?zp("+",d.value,a.value)>i.value:!1));function w(V,F=1){var W;const X=k.parse(((W=y.value)==null?void 0:W.value)??"");n.disabled||(isNaN(X)?d.value=o.value??0:V==="increase"?d.value=q(X+(a.value??1)*F):d.value=q(X-(a.value??1)*F))}function g(V=1){w("increase",V)}function _(V=1){w("decrease",V)}function S(V){V==="min"&&o.value!==void 0?d.value=q(o.value):V==="max"&&i.value!==void 0&&(d.value=q(i.value))}const C=Wp(l,c),k=AI(l,c),$=B(()=>C.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),P=Wp(l,c),x=B(()=>isNaN(d.value)?"":P.format(d.value));function j(V){return k.isValidPartialNumber(V,o.value,i.value)}function O(V){y.value&&(y.value.value=V)}function q(V){let F;return a.value===void 0||isNaN(a.value)?F=Ks(V,o.value,i.value):F=x$(V,o.value,i.value,a.value),F=k.parse(C.format(F)),F}function K(V){const F=k.parse(V);return d.value=q(F),V.length?O(x.value):O(V)}return II({modelValue:d,handleDecrease:_,handleIncrease:g,handleMinMaxValue:S,inputMode:$,inputEl:y,onInputElement:V=>y.value=V,textValue:x,validate:j,applyInputValue:K,disabled:s,max:i,min:o,isDecreaseDisabled:b,isIncreaseDisabled:v,id:u}),(V,F)=>(A(),ke(Oe,null,[Q(p(ae),ne(V.$attrs,{ref_key:"primitiveElement",ref:f,role:"group",as:V.as,"as-child":V.asChild,"data-disabled":p(s)?"":void 0}),{default:R(()=>[L(V.$slots,"default",{modelValue:p(d),textValue:x.value})]),_:3},16,["as","as-child","data-disabled"]),p(m)?(A(),ke("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:p(d),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,$I)):Ge("",!0)],64))}}),dj=D({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(e){const t=e,{primitiveElement:n,currentElement:r}=so(),s=Jd();function o(l){l.target===ft()&&(Math.abs(l.deltaY)<=Math.abs(l.deltaX)||(l.preventDefault(),l.deltaY>0?s.handleIncrease():l.deltaY<0&&s.handleDecrease()))}_e(()=>{s.onInputElement(r.value)});const i=I(s.textValue.value);ge(()=>s.textValue.value,()=>{i.value=s.textValue.value},{immediate:!0,deep:!0});function a(){requestAnimationFrame(()=>{i.value=s.textValue.value})}return(l,c)=>(A(),N(p(ae),ne(t,{id:p(s).id.value,ref_key:"primitiveElement",ref:n,value:i.value,role:"spinbutton",type:"text",tabindex:"0",inputmode:p(s).inputMode.value,disabled:p(s).disabled.value?"":void 0,"data-disabled":p(s).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":p(s).modelValue.value,"aria-valuemin":p(s).min.value,"aria-valuemax":p(s).max.value,onKeydown:[c[0]||(c[0]=Ft(We(u=>p(s).handleIncrease(),["prevent"]),["up"])),c[1]||(c[1]=Ft(We(u=>p(s).handleDecrease(),["prevent"]),["down"])),c[2]||(c[2]=Ft(We(u=>p(s).handleIncrease(10),["prevent"]),["page-up"])),c[3]||(c[3]=Ft(We(u=>p(s).handleDecrease(10),["prevent"]),["page-down"])),c[4]||(c[4]=Ft(We(u=>p(s).handleMinMaxValue("min"),["prevent"]),["home"])),c[5]||(c[5]=Ft(We(u=>p(s).handleMinMaxValue("max"),["prevent"]),["end"])),c[8]||(c[8]=Ft(u=>{var d;return p(s).applyInputValue((d=u.target)==null?void 0:d.value)}
65,["enter"]))],onWheel:o,onBeforeinput:c[6]||(c[6]=u=>{const d=u.target;let f=d.value.slice(0,d.selectionStart??void 0)+(u.data??"")+d.value.slice(d.selectionEnd??void 0);p(s).validate(f)||u.preventDefault()}),onInput:c[7]||(c[7]=u=>{const d=u.target;i.value=d.value}),onChange:a,onBlur:c[9]||(c[9]=u=>{var d;return p(s).applyInputValue((d=u.target)==null?void 0:d.value)})}),{default:R(()=>[L(l.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}}),fj=D({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Jd(),r=B(()=>{var l;return((l=n.disabled)==null?void 0:l.value)||t.disabled||n.isIncreaseDisabled.value}),{primitiveElement:s,currentElement:o}=so(),{isPressed:i,onTrigger:a}=Pb({target:o,disabled:r});return a(()=>{n.handleIncrease()}),(l,c)=>(A(),N(p(ae),ne(t,{ref_key:"primitiveElement",ref:s,tabindex:"-1","aria-label":"Increase",type:l.as==="button"?"button":void 0,style:{userSelect:p(i)?"none":void 0},disabled:r.value?"":void 0,"data-disabled":r.value?"":void 0,"data-pressed":p(i)?"true":void 0,onContextmenu:c[0]||(c[0]=We(()=>{},["prevent"]))}),{default:R(()=>[L(l.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),hj=D({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Jd(),r=B(()=>{var l;return((l=n.disabled)==null?void 0:l.value)||t.disabled||n.isDecreaseDisabled.value}),{primitiveElement:s,currentElement:o}=so(),{isPressed:i,onTrigger:a}=Pb({target:o,disabled:r});return a(()=>{n.handleDecrease()}),(l,c)=>(A(),N(p(ae),ne(t,{ref_key:"primitiveElement",ref:s,tabindex:"-1","aria-label":"Decrease",type:l.as==="button"?"button":void 0,style:{userSelect:p(i)?"none":void 0},disabled:r.value?"":void 0,"data-disabled":r.value?"":void 0,"data-pressed":p(i)?"true":void 0,onContextmenu:c[0]||(c[0]=We(()=>{},["prevent"]))}),{default:R(()=>[L(l.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),[Pi,DI]=xe("PopoverRoot"),pj=D({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:s}=Me(n),o=nt(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=I(),a=I(!1);return DI({contentId:"",modal:s,open:o,onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},triggerElement:i,hasCustomAnchor:a}),(l,c)=>(A(),N(p(Rl),null,{default:R(()=>[L(l.$slots,"default",{open:p(o)})]),_:3}))}}),mj=D({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Pi(),{forwardRef:r,currentElement:s}=J();return _e(()=>{n.triggerElement.value=s.value}),(o,i)=>(A(),N(Js(p(n).hasCustomAnchor.value?p(ae):p(Al)),{"as-child":""},{default:R(()=>[Q(p(ae),{ref:p(r),type:o.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":p(n).open.value,"aria-controls":p(n).contentId,"data-state":p(n).open.value?"open":"closed",as:o.as,"as-child":t.asChild,onClick:p(n).onOpenToggle},{default:R(()=>[L(o.$slots,"default")]),_:3},8,["type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),gj=D({__name:"PopoverPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(oo),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),Cb=D({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Ei(n),{forwardRef:o}=J(),i=Pi();return Bd(),(a,l)=>(A(),N(p(Ol),{"as-child":"",loop:"",trapped:a.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>r("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>r("closeAutoFocus",c))},{default:R(()=>[Q(p(xi),{"as-child":"","disable-outside-pointer-events":a.disableOutsidePointerEvents,onPointerDownOutside:l[0]||(l[0]=c=>r("pointerDownOutside",c)),onInteractOutside:l[1]||(l[1]=c=>r("interactOutside",c)),onEscapeKeyDown:l[2]||(l[2]=c=>r("escapeKeyDown",c)),onFocusOutside:l[3]||(l[3]=c=>r("focusOutside",c)),onDismiss:l[4]||(l[4]=c=>p(i).onOpenChange(!1))},{default:R(()=>[Q(p($l),ne(p(s),{id:p(i).contentId,ref:p(o),"data-state":p(i).open.value?"open":"closed",role:"dialog",style:{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:R(()=>[L(a.$slots,"default")]),_:3},16,["id","data-state"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),NI=D({__name:"PopoverContentModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Pi(),o=I(!1);Pl(!0);const i=Wt(n,r),{forwardRef:a,currentElement:l}=J();return Cl(l),(c,u)=>(A(),N(Cb,ne(p(i),{ref:p(a),"trap-focus":p(s).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:u[0]||(u[0]=We(d=>{var f;r("closeAutoFocus",d),o.value||(f=p(s).triggerElement.value)==null||f.focu
65s()},["prevent"])),onPointerDownOutside:u[1]||(u[1]=d=>{r("pointerDownOutside",d);const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,m=f.button===2||h;o.value=m}),onFocusOutside:u[2]||(u[2]=We(()=>{},["prevent"]))}),{default:R(()=>[L(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),jI=D({__name:"PopoverContentNonModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Pi(),o=I(!1),i=I(!1),a=Wt(n,r);return(l,c)=>(A(),N(Cb,ne(p(a),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{var d;r("closeAutoFocus",u),u.defaultPrevented||(o.value||(d=p(s).triggerElement.value)==null||d.focus(),u.preventDefault()),o.value=!1,i.value=!1}),onInteractOutside:c[1]||(c[1]=async u=>{var d;r("interactOutside",u),u.defaultPrevented||(o.value=!0,u.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const f=u.target;(d=p(s).triggerElement.value)!=null&&d.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&i.value&&u.preventDefault()})}),{default:R(()=>[L(l.$slots,"default")]),_:3},16))}}),yj=D({__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Pi(),o=Wt(n,r),{forwardRef:i}=J();return s.contentId||(s.contentId=qt(void 0,"radix-vue-popover-content")),(a,l)=>(A(),N(p(zt),{present:a.forceMount||p(s).open.value},{default:R(()=>[p(s).modal.value?(A(),N(NI,ne({key:0},p(o),{ref:p(i)}),{default:R(()=>[L(a.$slots,"default")]),_:3},16)):(A(),N(jI,ne({key:1},p(o),{ref:p(i)}),{default:R(()=>[L(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),ci=100,[LI,MI]=xe("ProgressRoot"),Yd=e=>typeof e=="number";function BI(e,t){return Is(e)||Yd(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
66  - a positive number
67  - less than the value passed to \`max\` (or ${ci} if no \`max\` prop is set)
68  - \`null\`  or \`undefined\` if the progress is indeterminate.
69
70Defaulting to \`null\`.`),null)}function FI(e){return Yd(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ci}\`.`),ci)}const vj=D({__name:"ProgressRoot",props:{modelValue:{},max:{default:ci},getValueLabel:{type:Function,default:(e,t)=>`${Math.round(e/t*ci)}%`},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,r=t;J();const s=nt(n,"modelValue",r,{passive:n.modelValue===void 0}),o=nt(n,"max",r,{passive:n.max===void 0});ge(()=>s.value,async a=>{const l=BI(a,n.max);l!==a&&(await Re(),s.value=l)},{immediate:!0}),ge(()=>n.max,a=>{const l=FI(n.max);l!==a&&(o.value=l)},{immediate:!0});const i=B(()=>Is(s.value)?"indeterminate":s.value===o.value?"complete":"loading");return MI({modelValue:s,max:o,progressState:i}),(a,l)=>(A(),N(p(ae),{"as-child":a.asChild,as:a.as,"aria-valuemax":p(o),"aria-valuemin":0,"aria-valuenow":Yd(p(s))?p(s):void 0,"aria-valuetext":a.getValueLabel(p(s),p(o)),"aria-label":a.getValueLabel(p(s),p(o)),role:"progressbar","data-state":i.value,"data-value":p(s)??void 0,"data-max":p(o)},{default:R(()=>[L(a.$slots,"default",{modelValue:p(s)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),bj=D({__name:"ProgressIndicator",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=LI();return J(),(r,s)=>{var o;return A(),N(p(ae),ne(t,{"data-state":p(n).progressState.value,"data-value":((o=p(n).modelValue)==null?void 0:o.value)??void 0,"data-max":p(n).max.value}),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["data-state","data-value","data-max"])}}}),[UI,HI]=xe("RadioGroupRoot"),wj=D({__name:"RadioGroupRoot",props:{modelValue:{},defaultValue:{},disabled:{type:Boolean,default:!1},name:{},required:{type:Boolean,default:!1},orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s}=J(),o=nt(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:i,loop:a,orientation:l,name:c,required:u,dir:d}=Me(n),f=ir(d);return HI({modelValue:o,changeModelValue:h=>{o.value=h},disabled:i,loop:a,orientation:l,name:c==null?void 0:c.value,required:u}),(h,m)=>(A(),N(p(Gd),{"as-child":"",orientation:p(l),dir:p(f),loop:p(a)},{default:R(()=>[Q(p(ae),{ref:p(s),role:"radiogroup","data-disabled":p(i)?"":void 0,"as-child":h.asChild,as:h.as,required:p(u),"aria-orientation":p(l),"aria-required":p(u),dir:p(f),name:p(c)},{default:R(()=>[L(h.$slots,"default",{modelValue:p(o)})]),_:3},8,["data-disabled","as-child","as","required","aria-orientation","aria-required","dir","name"])]),_:3},8,["orientation","dir","loop"]))}}),VI=["value","checked","name","disabled","required"],qI=D({__name:"Radio",props:{id:{},value:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},checked:{type:Boolean,default:void 0},name:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=nt(n,"checked",t,{passive:n.checked===void 0}),{value:s}=Me(n),{forwardRef:o,currentElement:i}=J(),a=ro(i),l=B(()=>{var u;return n.id&&i.value?((u=document.querySelector(`[for="${n.id}"]`))==null?void 0:u.innerText)??n.value:void 0});function c(u){r.value=!0,a.value&&u.stopPropagation()}return(u,d)=>(A(),N(p(ae),ne(u.$attrs,{id:u.id,ref:p(o),role:"radio",type:u.as==="button"?"button":void 0,as:u.as,"aria-checked":p(r),"aria-label":l.value,"as-child":u.asChild,disabled:u.disabled?"":void 0,"data-state":p(r)?"checked":"unchecked","data-disabled":u.disabled?"":void 0,value:p(s),required:u.required,name:u.name,onClick:We(c,["stop"])}),{default:R(()=>[L(u.$slots,"default",{checked:p(r)}
70),p(a)?(A(),ke("input",{key:0,type:"radio",tabindex:"-1","aria-hidden":"true",value:p(s),checked:!!p(r),name:u.name,disabled:u.disabled,required:u.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,VI)):Ge("",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),[KI,WI]=xe("RadioGroupItem"),_j=D({inheritAttrs:!1,__name:"RadioGroupItem",props:{id:{},value:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},name:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n,currentElement:r}=J(),s=UI(),o=B(()=>s.disabled.value||t.disabled),i=B(()=>s.required.value||t.required),a=B(()=>{var d;return((d=s.modelValue)==null?void 0:d.value)===t.value});WI({disabled:o,checked:a});const l=I(!1),c=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];hn("keydown",d=>{c.includes(d.key)&&(l.value=!0)}),hn("keyup",()=>{l.value=!1});function u(){setTimeout(()=>{var d;l.value&&((d=r.value)==null||d.click())},0)}return(d,f)=>(A(),N(p(Sb),{checked:a.value,disabled:o.value,"as-child":"",focusable:!o.value,active:a.value},{default:R(()=>[Q(qI,ne({...d.$attrs,...t},{ref:p(n),checked:a.value,required:i.value,disabled:o.value,"onUpdate:checked":f[0]||(f[0]=h=>p(s).changeModelValue(d.value)),onKeydown:f[1]||(f[1]=Ft(We(()=>{},["prevent"]),["enter"])),onFocus:u}),{default:R(()=>[L(d.$slots,"default")]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),Sj=D({__name:"RadioGroupIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t}=J(),n=KI();return(r,s)=>(A(),N(p(zt),{present:r.forceMount||p(n).checked.value},{default:R(()=>[Q(p(ae),ne({ref:p(t),"data-state":p(n).checked.value?"checked":"unchecked","data-disabled":p(n).disabled.value?"":void 0,"as-child":r.asChild,as:r.as},r.$attrs),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[tn,zI]=xe("ScrollAreaRoot"),kj=D({__name:"ScrollAreaRoot",props:{type:{default:"hover"},dir:{},scrollHideDelay:{default:600},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,r=I(0),s=I(0),o=I(),i=I(),a=I(),l=I(),c=I(!1),u=I(!1),{type:d,dir:f,scrollHideDelay:h}=Me(n),m=ir(f);function y(){var g;(g=o.value)==null||g.scrollTo({top:0})}function b(){var g;(g=o.value)==null||g.scrollTo({top:0,left:0})}t({viewport:o,scrollTop:y,scrollTopLeft:b});const{forwardRef:v,currentElement:w}=J();return zI({type:d,dir:m,scrollHideDelay:h,scrollArea:w,viewport:o,onViewportChange:g=>{o.value=g||void 0},content:i,onContentChange:g=>{i.value=g},scrollbarX:a,scrollbarXEnabled:c,scrollbarY:l,scrollbarYEnabled:u,onScrollbarXChange:g=>{a.value=g||void 0},onScrollbarYChange:g=>{l.value=g||void 0},onScrollbarXEnabledChange:g=>{c.value=g},onScrollbarYEnabledChange:g=>{u.value=g},onCornerWidthChange:g=>{r.value=g},onCornerHeightChange:g=>{s.value=g}}),(g,_)=>(A(),N(p(ae),{ref:p(v),"as-child":n.asChild,as:g.as,dir:p(m),style:Kt({position:"relative","--radix-scroll-area-corner-width":`${r.value}px`,"--radix-scroll-area-corner-height":`${s.value}px`})},{default:R(()=>[L(g.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),Ej=D({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,{nonce:r}=Me(n),s=wb(r),o=tn(),i=I();_e(()=>{o.onViewportChange(i.value),o.onContentChange(l.value)}),t({viewportElement:i});const{forwardRef:a,currentElement:l}=J();return(c,u)=>(A(),ke(Oe,null,[Te("div",ne({ref_key:"viewportElement",ref:i,"data-radix-scroll-area-viewport":"",style:{overflowX:p(o).scrollbarXEnabled.value?"scroll":"hidden",overflowY:p(o).scrollbarYEnabled.value?"scroll":"hidden"}},c.$attrs,{tabindex:0}),[Q(p(ae),{ref:p(a),style:Kt({minWidth:p(o).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":n.asChild,as:c.as},{default:R(()=>[L(c.$slots,"default")]),_:3},8,["style","as-child","as"])],16),Q(p(ae),{as:"style",nonce:p(s)},{default:R(()=>[An(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-radix-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")]),_:1},8,["nonce"])],64))}});function Tb(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Dl(e){const t=Ob(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Ob(e,t){const n=e/t;return Number.isNaN(n)?0:n}function GI(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function s(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,a=n.top!==o.top;(i||a)&&t(),n=o,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)}function Gp(e,t,n="ltr"){const r=Dl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-s,i=t.content-t.viewport,a=o-r,l=n==="ltr"?[0,i]:[i*-1,0],c=Ks(e,l[0],l[1]);return Tb([0,i],[0,a])(c)}function Yi(e){return e?Number.parseInt(e,10):0}function JI(e,t,n,r="ltr"){const s=Dl(n),o=s/2,i=t||o,a=s-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return Tb([l,c],d)(e)}function Jp(e,t){return e>0&&e<t}const Rb=D({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const n=e,r=t,s=tn(),o=Nl(),i=jl(),{forwardRef:a,currentElement:l}=J(),c=I(""),u=I();function d(v){var w,g;if(u.value){const _=v.clientX-((w=u.value)==null?void 0:w.left),S=v.clientY-((g=u.value)==null?void 0:g.to
70p);r("onDragScroll",{x:_,y:S})}}function f(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),u.value=l.value.getBoundingClientRect(),c.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),d(v))}function h(v){d(v)}function m(v){const w=v.target;w.hasPointerCapture(v.pointerId)&&w.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=c.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),u.value=void 0}function y(v){var w;const g=v.target,_=(w=l.value)==null?void 0:w.contains(g),S=o.sizes.value.content-o.sizes.value.viewport;_&&o.handleWheelScroll(v,S)}_e(()=>{document.addEventListener("wheel",y,{passive:!1})}),Nt(()=>{document.removeEventListener("wheel",y)});function b(){var v,w,g,_,S;l.value&&(n.isHorizontal?o.handleSizeChange({content:((v=s.viewport.value)==null?void 0:v.scrollWidth)??0,viewport:((w=s.viewport.value)==null?void 0:w.offsetWidth)??0,scrollbar:{size:l.value.clientWidth??0,paddingStart:Yi(getComputedStyle(l.value).paddingLeft),paddingEnd:Yi(getComputedStyle(l.value).paddingRight)}}):o.handleSizeChange({content:((g=s.viewport.value)==null?void 0:g.scrollHeight)??0,viewport:((_=s.viewport.value)==null?void 0:_.offsetHeight)??0,scrollbar:{size:((S=l.value)==null?void 0:S.clientHeight)??0,paddingStart:Yi(getComputedStyle(l.value).paddingLeft),paddingEnd:Yi(getComputedStyle(l.value).paddingRight)}}))}return Ws(l,b),Ws(s.content,b),(v,w)=>(A(),N(p(ae),{ref:p(a),style:{position:"absolute"},"data-scrollbarimpl":"",as:p(i).as.value,"as-child":p(i).asChild.value,onPointerdown:f,onPointermove:h,onPointerup:m},{default:R(()=>[L(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),YI=D({__name:"ScrollAreaScrollbarX",setup(e){const t=tn(),n=Nl(),{forwardRef:r,currentElement:s}=J();_e(()=>{s.value&&t.onScrollbarXChange(s.value)});const o=B(()=>n.sizes.value);return(i,a)=>(A(),N(Rb,{ref:p(r),"is-horizontal":!0,"data-orientation":"horizontal",style:Kt({bottom:0,left:p(t).dir.value==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:p(t).dir.value==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":o.value?`${p(Dl)(o.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>p(n).onDragScroll(l.x))},{default:R(()=>[L(i.$slots,"default")]),_:3},8,["style"]))}}),XI=D({__name:"ScrollAreaScrollbarY",setup(e){const t=tn(),n=Nl(),{forwardRef:r,currentElement:s}=J();_e(()=>{s.value&&t.onScrollbarYChange(s.value)});const o=B(()=>n.sizes.value);return(i,a)=>(A(),N(Rb,{ref:p(r),"is-horizontal":!1,"data-orientation":"vertical",style:Kt({top:0,right:p(t).dir.value==="ltr"?0:void 0,left:p(t).dir.value==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":o.value?`${p(Dl)(o.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>p(n).onDragScroll(l.y))},{default:R(()=>[L(i.$slots,"default")]),_:3},8,["style"]))}}),[Nl,QI]=xe("ScrollAreaScrollbarVisible"),Xd=D({__name:"ScrollAreaScrollbarVisible",setup(e){const t=tn(),n=jl(),{forwardRef:r}=J(),s=I({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),o=B(()=>{const v=Ob(s.value.viewport,s.value.content);return v>0&&v<1}),i=I(),a=I(0);function l(v,w){if(h.value){const g=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=g,Jp(g,w)&&v.preventDefault()}else{const g=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=g,Jp(g,w)&&v.preventDefault()}}function c(v,w){h.value?a.value=w.x:a.value=w.y}function u(v){a.value=0}function d(v){s.value=v}function f(v,w){return JI(v,a.value,s.value,w)}const h=B(()=>n.isHorizontal.value);function m(v){h.value?t.viewport.value.scrollLeft=f(v,t.dir.value):t.viewport.value.scrollTop=f(v)}function y(){if(h.value){if(t.viewport.value&&i.value){const v=t.viewport.value.scrollLeft,w=Gp(v,s.value,t.dir.value);i.value.style.transform=`translate3d(${w}px, 0, 0)`}}else if(t.viewport.value&&i.value){const v=t.viewport.value.scrollTop,w=Gp(v,s.value);i.value.style.transform=`translate3d(0, ${w}px, 0)`}}function b(v){i.value=v}return QI({sizes:s,hasThumb:o,handleWheelScroll:l,handleThumbDown:c,handleThumbUp:u,handleSizeChange:d,onThumbPositionChange:y,onThumbChange:b,onDragScroll:m}),(v,w)=>h.value?(A(),N(YI,ne({key:0},v.$attrs,{ref:p(r)}),{default:R(()=>[L(v.$slots,"default")]),_:3},16)):(A(),N(XI,ne({key:1},v.$attrs,{ref:p(r)}),{default:R(()=>[L(v.$slots,"default")]),_:3},16))}}),Ab=D({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean}},setup(e){const t=tn(),n=jl(),{forwardRef:r}=J(),s=I(!1),o=Jv(()=>{if(t.viewport.value){const i=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,a=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=n.isHorizontal.value?i:a}},10);return _e(()=>o()),Ws(t.viewport,o),Ws(t.content,o),(i,a)=>(A(),N(p(zt),{present:i.forceMount||s.value},{default:R(()=>[Q(Xd,ne(i.$attrs,{ref:p(r),"data-state":s.value?"visible":"hidden"}),{default:R(()=>[L(i.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),ZI=D({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean}},setup(e){const t=tn(),{forwardRef:n}=J();let r;const s=I(!1);function o(){window.clearTimeout(r),s.value=!0}function i(){r=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return _e(()=>{const a=t.scrollArea.value;a&&(a.addEventListener("pointerenter",o),a.addEventListener("pointerleave",i))}),Nt(()=>{const a=t.scrollArea.value;a&&(window.clearTimeout(r),a.removeEventListener("pointerenter",o),a.removeEventListener("pointerleave",i))}),(a,l)=>(A(),N(p(zt),{present:a.forceMount||s.value},{default:R(()=>[Q(Ab,ne(a.$attrs,{ref:p(n),"data-state":s.value?"visible":"hidden"}),{default:R(()=>[L(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),e4=D({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean}},setup(e){const t=tn(),n=jl(),{forwardRef:r}=J(),{state:s,dispatch:o}=nb("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});at(a=>{if(s.value==="idle"){const l=window.setTimeout(()=>
70o("HIDE"),t.scrollHideDelay.value);a(()=>{window.clearTimeout(l)})}});const i=Jv(()=>o("SCROLL_END"),100);return at(a=>{const l=t.viewport.value,c=n.isHorizontal.value?"scrollLeft":"scrollTop";if(l){let u=l[c];const d=()=>{const f=l[c];u!==f&&(o("SCROLL"),i()),u=f};l.addEventListener("scroll",d),a(()=>{l.removeEventListener("scroll",d)})}}),(a,l)=>(A(),N(p(zt),{present:a.forceMount||p(s)!=="hidden"},{default:R(()=>[Q(Xd,ne(a.$attrs,{ref:p(r)}),{default:R(()=>[L(a.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),[jl,t4]=xe("ScrollAreaScrollbar"),xj=D({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"div"}},setup(e){const t=e,{forwardRef:n}=J(),r=tn(),s=B(()=>t.orientation==="horizontal");ge(s,()=>{s.value?r.onScrollbarXEnabledChange(!0):r.onScrollbarYEnabledChange(!0)},{immediate:!0}),Nt(()=>{r.onScrollbarXEnabledChange(!1),r.onScrollbarYEnabledChange(!1)});const{orientation:o,forceMount:i,asChild:a,as:l}=Me(t);return t4({orientation:o,forceMount:i,isHorizontal:s,as:l,asChild:a}),(c,u)=>p(r).type.value==="hover"?(A(),N(ZI,ne({key:0},c.$attrs,{ref:p(n),"force-mount":p(i)}),{default:R(()=>[L(c.$slots,"default")]),_:3},16,["force-mount"])):p(r).type.value==="scroll"?(A(),N(e4,ne({key:1},c.$attrs,{ref:p(n),"force-mount":p(i)}),{default:R(()=>[L(c.$slots,"default")]),_:3},16,["force-mount"])):p(r).type.value==="auto"?(A(),N(Ab,ne({key:2},c.$attrs,{ref:p(n),"force-mount":p(i)}),{default:R(()=>[L(c.$slots,"default")]),_:3},16,["force-mount"])):p(r).type.value==="always"?(A(),N(Xd,ne({key:3},c.$attrs,{ref:p(n),"data-state":"visible"}),{default:R(()=>[L(c.$slots,"default")]),_:3},16)):Ge("",!0)}}),Pj=D({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=tn(),r=Nl();function s(f){const h=f.target.getBoundingClientRect(),m=f.clientX-h.left,y=f.clientY-h.top;r.handleThumbDown(f,{x:m,y})}function o(f){r.handleThumbUp(f)}const{forwardRef:i,currentElement:a}=J(),l=I(),c=B(()=>n.viewport.value);function u(){if(!l.value){const f=GI(c.value,r.onThumbPositionChange);l.value=f,r.onThumbPositionChange()}}const d=B(()=>r.sizes.value);return L$(d,()=>{r.onThumbChange(a.value),c.value&&(r.onThumbPositionChange(),c.value.addEventListener("scroll",u))}),Nt(()=>{var f;c.value.removeEventListener("scroll",u),(f=n.viewport.value)==null||f.removeEventListener("scroll",u)}),(f,h)=>(A(),N(p(ae),{ref:p(i),"data-state":p(r).hasThumb?"visible":"hidden",style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},"as-child":t.asChild,as:f.as,onPointerdown:s,onPointerup:o},{default:R(()=>[L(f.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),n4=D({__name:"ScrollAreaCornerImpl",setup(e){const t=tn(),n=I(0),r=I(0),s=B(()=>!!n.value&&!!r.value);function o(){var a;const l=((a=t.scrollbarX.value)==null?void 0:a.offsetHeight)||0;t.onCornerHeightChange(l),r.value=l}function i(){var a;const l=((a=t.scrollbarY.value)==null?void 0:a.offsetWidth)||0;t.onCornerWidthChange(l),n.value=l}return Ws(t.scrollbarX.value,o),Ws(t.scrollbarY.value,i),ge(()=>t.scrollbarX.value,o),ge(()=>t.scrollbarY.value,i),(a,l)=>{var c;return s.value?(A(),N(p(ae),ne({key:0,style:{width:`${n.value}px`,height:`${r.value}px`,position:"absolute",right:p(t).dir.value==="ltr"?0:void 0,left:p(t).dir.value==="rtl"?0:void 0,bottom:0}},(c=a.$parent)==null?void 0:c.$props),{default:R(()=>[L(a.$slots,"default")]),_:3},16,["style"])):Ge("",!0)}}}),Cj=D({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=J(),r=tn(),s=B(()=>!!r.scrollbarX.value&&!!r.scrollbarY.value),o=B(()=>r.type.value!=="scroll"&&s.value);return(i,a)=>o.value?(A(),N(n4,ne({key:0},t,{ref:p(n)}),{default:R(()=>[L(i.$slots,"default")]),_:3},16)):Ge("",!0)}}),r4=["default-value"],s4=D({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(e){const t=e,{value:n}=Me(t),r=I();return(s,o)=>(A(),N(p(yb),{"as-child":""},{default:R(()=>[Nm(Te("select",ne({ref_key:"selectElement",ref:r},t,{"onUpdate:modelValue":o[0]||(o[0]=i=>Ne(n)?n.value=i:null),"default-value":p(n)}),[L(s.$slots,"default")],16,r4),[[Fg,p(n)]])]),_:3}))}}),o4={key:0,value:""},[rs,$b]=xe("SelectRoot"),[i4,a4]=xe("SelectRoot"),Tj=D({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,r=t,s=nt(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),o=nt(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=I(),a=I(),l=I({x:0,y:0}),c=I(!1),{required:u,disabled:d,dir:f}=Me(n),h=ir(f);$b({triggerElement:i,onTriggerChange:v=>{i.value=v},valueElement:a,onValueElementChange:v=>{a.value=v},valueElementHasChildren:c,onValueElementHasChildrenChange:v=>{c.value=v},contentId:"",modelValue:s,onValueChange:v=>{s.value=v},open:o,required:u,onOpenChange:v=>{o.value=v},dir:h,triggerPointerDownPosRef:l,disabled:d});const m=ro(i),y=I(new Set),b=B(()=>
70Array.from(y.value).map(v=>{var w;return(w=v.props)==null?void 0:w.value}).join(";"));return a4({onNativeOptionAdd:v=>{y.value.add(v)},onNativeOptionRemove:v=>{y.value.delete(v)}}),(v,w)=>(A(),N(p(Rl),null,{default:R(()=>[L(v.$slots,"default",{modelValue:p(s),open:p(o)}),p(m)?(A(),N(s4,ne({key:b.value},v.$attrs,{"aria-hidden":"true",tabindex:"-1",required:p(u),name:v.name,autocomplete:v.autocomplete,disabled:p(d),value:p(s),onChange:w[0]||(w[0]=g=>s.value=g.target.value)}),{default:R(()=>[p(s)===void 0?(A(),ke("option",o4)):Ge("",!0),(A(!0),ke(Oe,null,ma(Array.from(y.value),g=>(A(),N(Js(g),ne({ref_for:!0},g.props,{key:g.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):Ge("",!0)]),_:3}))}}),l4=[" ","Enter","ArrowUp","ArrowDown"],u4=[" ","Enter"],ln=10;function Ib(e){return e===""||Is(e)}const Oj=D({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=rs(),r=B(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled}),{forwardRef:s,currentElement:o}=J();n.contentId||(n.contentId=qt(void 0,"radix-vue-select-content")),_e(()=>{n.triggerElement=o});const{injectCollection:i}=ki(),a=i(),{search:l,handleTypeaheadSearch:c,resetTypeahead:u}=Fd(a);function d(){r.value||(n.onOpenChange(!0),u())}function f(h){d(),n.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}return(h,m)=>(A(),N(p(Al),{"as-child":""},{default:R(()=>{var y,b,v,w;return[Q(p(ae),{ref:p(s),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":p(n).contentId,"aria-expanded":p(n).open.value||!1,"aria-required":(y=p(n).required)==null?void 0:y.value,"aria-autocomplete":"none",disabled:r.value,dir:(b=p(n))==null?void 0:b.dir.value,"data-state":(v=p(n))!=null&&v.open.value?"open":"closed","data-disabled":r.value?"":void 0,"data-placeholder":p(Ib)((w=p(n).modelValue)==null?void 0:w.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:m[0]||(m[0]=g=>{var _;(_=g==null?void 0:g.currentTarget)==null||_.focus()}),onPointerdown:m[1]||(m[1]=g=>{if(g.pointerType==="touch")return g.preventDefault();const _=g.target;_.hasPointerCapture(g.pointerId)&&_.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(f(g),g.preventDefault())}),onPointerup:m[2]||(m[2]=We(g=>{g.pointerType==="touch"&&f(g)},["prevent"])),onKeydown:m[3]||(m[3]=g=>{const _=p(l)!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&_&&g.key===" "||(p(c)(g.key),p(l4).includes(g.key)&&(d(),g.preventDefault()))})},{default:R(()=>[L(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),Rj=D({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(oo),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),[Qd,c4]=xe("SelectItemAlignedPosition"),d4=D({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(e,{emit:t}){const n=e,r=t,{injectCollection:s}=ki(),o=rs(),i=ss(),a=s(),l=I(!1),c=I(!0),u=I(),{forwardRef:d,currentElement:f}=J(),{viewport:h,selectedItem:m,selectedItemText:y,focusSelectedItem:b}=i;function v(){if(o.triggerElement.value&&o.valueElement.value&&u.value&&f.value&&h!=null&&h.value&&m!=null&&m.value&&y!=null&&y.value){const _=o.triggerElement.value.getBoundingClientRect(),S=f.value.getBoundingClientRect(),C=o.valueElement.value.getBoundingClientRect(),k=y.value.getBoundingClientRect();if(o.dir.value!=="rtl"){const U=k.left-S.left,re=C.left-U,ee=_.left-re,le=_.width+ee,Pe=Math.max(le,S.width),je=window.innerWidth-ln,E=Ks(re,ln,Math.max(ln,je-Pe));u.value.style.minWidth=`${le}px`,u.value.style.left=`${E}px`}else{const U=S.right-k.right,re=window.innerWidth-C.right-U,ee=window.innerWidth-_.right-re,le=_.width+ee,Pe=Math.max(le,S.width),je=window.innerWidth-ln,E=Ks(re,ln,Math.max(ln,je-Pe));u.value.style.minWidth=`${le}px`,u.value.style.right=`${E}px`}const $=a.value,P=window.innerHeight-ln*2,x=h.value.scrollHeight,j=window.getComputedStyle(f.value),O=Number.parseInt(j.borderTopWidth,10),q=Number.parseInt(j.paddingTop,10),K=Number.parseInt(j.borderBottomWidth,10),V=Number.parseInt(j.paddingBottom,10),F=O+q+x+V+K,W=Math.min(m.value.offsetHeight*5,F),X=window.getComputedStyle(h.value),pe=Number.parseInt(X.paddingTop,10),bt=Number.parseInt(X.paddingBottom,10),qe=_.top+_.height/2-ln,ht=P-qe,bn=m.value.offsetHeight/2,ar=m.value.offsetTop+bn,jn=O+q+ar,Tt=F-jn;if(jn<=qe){const U=m.value===$[$.length-1];u.value.style.bottom="0px";const re=f.value.clientHeight-h.value.offsetTop-h.value.offsetHeight,ee=Math.max(ht,bn+(U?bt:0)+re+K),le=jn+ee;u.value.style.height=`${le}px`}else{const U=m.value===$[0];u.value.style.top="0px";const re=Math.max(qe,O+h.value.offsetTop+(U?pe:0)+bn)+Tt;u.value.style.height=`${re}px`,h.value.scrollTop=jn-qe+h.value.offsetTop}u.value.style.margin=`${ln}px 0`,u.value.style.minHeight=`${W}px`,u.value.style.maxHeight=`${P}px`,r("placed"),requestAnimationFrame(()=>l.value=!0)}}const w=I("");_e(async()=>{await Re(),v(),f.value&&(w.value=window.getComputedStyle(f.value).zIndex)});function g(_){_&&c.value===!0&&(v(),b==null||b(),c.value=!1)}return c4({contentWrapper:u,shouldExpandOnScrollRef:l,onScrollButtonChange:g}),(_,S)=>(A(),ke("div",{ref_key:"contentWrapperElement",ref:u,style:Kt({display:"flex",flexDirection:"column",position:"fixed",zIndex:w.value})},[Q(p(ae),ne({ref:p(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{..._.$attrs,...n}),{default:R(()=>
70[L(_.$slots,"default")]),_:3},16)],4))}}),f4=D({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:ln},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=Ei(e);return(n,r)=>(A(),N(p($l),ne(p(t),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),io={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[ss,h4]=xe("SelectContent"),p4=D({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=rs();Bd(),Pl(n.bodyLock);const{createCollection:o}=ki(),i=I();Cl(i);const a=o(i),{search:l,handleTypeaheadSearch:c}=Fd(a),u=I(),d=I(),f=I(),h=I(!1),m=I(!1);function y(){d.value&&i.value&&Dc([d.value,i.value])}ge(h,()=>{y()});const{onOpenChange:b,triggerPointerDownPosRef:v}=s;at(S=>{if(!i.value)return;let C={x:0,y:0};const k=P=>{var x,j;C={x:Math.abs(Math.round(P.pageX)-(((x=v.value)==null?void 0:x.x)??0)),y:Math.abs(Math.round(P.pageY)-(((j=v.value)==null?void 0:j.y)??0))}},$=P=>{var x;P.pointerType!=="touch"&&(C.x<=10&&C.y<=10?P.preventDefault():(x=i.value)!=null&&x.contains(P.target)||b(!1),document.removeEventListener("pointermove",k),v.value=null)};v.value!==null&&(document.addEventListener("pointermove",k),document.addEventListener("pointerup",$,{capture:!0,once:!0})),S(()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",$,{capture:!0})})});function w(S){const C=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!C&&S.key.length===1&&c(S.key),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let k=a.value;if(["ArrowUp","End"].includes(S.key)&&(k=k.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const $=S.target,P=k.indexOf($);k=k.slice(P+1)}setTimeout(()=>Dc(k)),S.preventDefault()}}const g=B(()=>n.position==="popper"?n:{}),_=Ei(g.value);return h4({content:i,viewport:u,onViewportChange:S=>{u.value=S},itemRefCallback:(S,C,k)=>{var $,P;const x=!m.value&&!k;((($=s.modelValue)==null?void 0:$.value)!==void 0&&((P=s.modelValue)==null?void 0:P.value)===C||x)&&(d.value=S,x&&(m.value=!0))},selectedItem:d,selectedItemText:f,onItemLeave:()=>{var S;(S=i.value)==null||S.focus()},itemTextRefCallback:(S,C,k)=>{var $,P;const x=!m.value&&!k;((($=s.modelValue)==null?void 0:$.value)!==void 0&&((P=s.modelValue)==null?void 0:P.value)===C||x)&&(f.value=S)},focusSelectedItem:y,position:n.position,isPositioned:h,searchRef:l}),(S,C)=>(A(),N(p(Ol),{"as-child":"",onMountAutoFocus:C[6]||(C[6]=We(()=>{},["prevent"])),onUnmountAutoFocus:C[7]||(C[7]=k=>{var $;r("closeAutoFocus",k),!k.defaultPrevented&&(($=p(s).triggerElement.value)==null||$.focus({preventScroll:!0}),k.preventDefault())})},{default:R(()=>[Q(p(xi),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:C[2]||(C[2]=We(()=>{},["prevent"])),onDismiss:C[3]||(C[3]=k=>p(s).onOpenChange(!1)),onEscapeKeyDown:C[4]||(C[4]=k=>r("escapeKeyDown",k)),onPointerDownOutside:C[5]||(C[5]=k=>r("pointerDownOutside",k))},{default:R(()=>[(A(),N(Js(S.position==="popper"?f4:d4),ne({...S.$attrs,...p(_)},{id:p(s).contentId,ref:k=>{i.value=p(en)(k)},role:"listbox","data-state":p(s).open.value?"open":"closed",dir:p(s).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:C[0]||(C[0]=We(()=>{},["prevent"])),onPlaced:C[1]||(C[1]=k=>h.value=!0),onKeydown:w}),{default:R(()=>[L(S.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),m4=D({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(e){return $b(e.context),(t,n)=>L(t.$slots,"default")}}),g4={key:1},Aj=D({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=Wt(n,t),s=rs(),o=I();_e(()=>{o.value=new DocumentFragment});const i=I(),a=B(()=>n.forceMount||s.open.value);return(l,c)=>{var u;return a.value?(A(),N(p(zt),{key:0,ref_key:"presenceRef",ref:i,present:!0},{default:R(()=>[Q(p4,Je(Qe({...p(r),...l.$attrs})),{default:R(()=>[L(l.$slots,"default")]),_:3},16)]),_:3},512)):!((u=i.value)!=null&&u.present)&&o.value?(A(),ke("div",g4,[(A(),N(Gc,{to:o.value},[Q(m4,{context:p(s)},{default:R(()=>[L(l.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):Ge("",!0)}}}),[Db,y4]=xe("SelectItem"),$j=D({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{disabled:n}=Me(t),r=rs(),s=ss(io),{forwardRef:o,currentElement:i}=J(),a=B(()=>{var y;return((y=r.modelValue)==null?void 0:y.value)===t.value}),l=I(!1),c=I(t.textValue??""),u=qt(void 0,"radix-vue-select-item-text");async function d(y){await Re(),!(y!=null&&y.defaultPrevented)&&(n.value||(r.onValueChange(t.value),r.onOpenChange(!1)))}async function f(y){var b;await Re(),!y.defaultPrevented&&(n.value?(b=s.onItemLeave)==null||b.call(s):y.currentTarget.focu
70s({preventScroll:!0}))}async function h(y){var b;await Re(),!y.defaultPrevented&&y.currentTarget===ft()&&((b=s.onItemLeave)==null||b.call(s))}async function m(y){var b;await Re(),!(y.defaultPrevented||((b=s.searchRef)==null?void 0:b.value)!==""&&y.key===" ")&&(u4.includes(y.key)&&d(),y.key===" "&&y.preventDefault())}if(t.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _e(()=>{i.value&&s.itemRefCallback(i.value,t.value,t.disabled)}),y4({value:t.value,disabled:n,textId:u,isSelected:a,onItemTextChange:y=>{c.value=((c.value||(y==null?void 0:y.textContent))??"").trim()}}),(y,b)=>(A(),N(p(ae),{ref:p(o),role:"option","data-radix-vue-collection-item":"","aria-labelledby":p(u),"data-highlighted":l.value?"":void 0,"aria-selected":a.value,"data-state":a.value?"checked":"unchecked","aria-disabled":p(n)||void 0,"data-disabled":p(n)?"":void 0,tabindex:p(n)?void 0:-1,as:y.as,"as-child":y.asChild,onFocus:b[0]||(b[0]=v=>l.value=!0),onBlur:b[1]||(b[1]=v=>l.value=!1),onPointerup:d,onPointerdown:b[2]||(b[2]=v=>{v.currentTarget.focus({preventScroll:!0})}),onTouchend:b[3]||(b[3]=We(()=>{},["prevent","stop"])),onPointermove:f,onPointerleave:h,onKeydown:m},{default:R(()=>[L(y.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),Ij=D({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=Db();return(r,s)=>p(n).isSelected.value?(A(),N(p(ae),ne({key:0,"aria-hidden":"true"},t),{default:R(()=>[L(r.$slots,"default")]),_:3},16)):Ge("",!0)}}),Dj=D({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=rs(),r=ss(io),s=i4(),o=Db(),{forwardRef:i,currentElement:a}=J(),l=B(()=>{var c;return ze("option",{key:o.value,value:o.value,disabled:o.disabled.value,textContent:(c=a.value)==null?void 0:c.textContent})});return _e(()=>{a.value&&(o.onItemTextChange(a.value),r.itemTextRefCallback(a.value,o.value,o.disabled.value),s.onNativeOptionAdd(l.value))}),Qr(()=>{s.onNativeOptionRemove(l.value)}),(c,u)=>(A(),ke(Oe,null,[Q(p(ae),ne({id:p(o).textId,ref:p(i)},{...t,...c.$attrs},{"data-item-text":""}),{default:R(()=>[L(c.$slots,"default")]),_:3},16,["id"]),p(o).isSelected.value&&p(n).valueElement.value&&!p(n).valueElementHasChildren.value?(A(),N(Gc,{key:0,to:p(n).valueElement.value},[L(c.$slots,"default")],8,["to"])):Ge("",!0)],64))}}),Nj=D({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{nonce:n}=Me(t),r=wb(n),s=ss(io),o=s.position==="item-aligned"?Qd():void 0,{forwardRef:i,currentElement:a}=J();_e(()=>{s==null||s.onViewportChange(a.value)});const l=I(0);function c(u){const d=u.currentTarget,{shouldExpandOnScrollRef:f,contentWrapper:h}=o??{};if(f!=null&&f.value&&h!=null&&h.value){const m=Math.abs(l.value-d.scrollTop);if(m>0){const y=window.innerHeight-ln*2,b=Number.parseFloat(h.value.style.minHeight),v=Number.parseFloat(h.value.style.height),w=Math.max(b,v);if(w<y){const g=w+m,_=Math.min(y,g),S=g-_;h.value.style.height=`${_}px`,h.value.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,h.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(u,d)=>(A(),ke(Oe,null,[Q(p(ae),ne({ref:p(i),"data-radix-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:R(()=>[L(u.$slots,"default")]),_:3},16),Q(p(ae),{as:"style",nonce:p(r)},{default:R(()=>[An(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),Nb=D({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const n=t,{injectCollection:r}=ki(),s=r(),o=ss(io),i=I(null);function a(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}at(()=>{const u=s.value.find(d=>d===ft());u==null||u.scrollIntoView({block:"nearest"})});function l(){i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}function c(){var u;(u=o.onItemLeave)==null||u.call(o),i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}return Qr(()=>a()),(u,d)=>{var f;return A(),N(p(ae),ne({"aria-hidden":"true",style:{flexShrink:0}},(f=u.$parent)==null?void 0:f.$props,{onPointerdown:l,onPointermove:c,onPointerleave:d[0]||(d[0]=()=>{a()})}),{default:R(()=>[L(u.$slots,"default")]),_:3},16)}}}),jj=D({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(e){const t=ss(io),n=t.position==="item-aligned"?Qd():void 0,{forwardRef:r,currentElement:s}=J(),o=I(!1);return at(i=>{var a,l;if((a=t.viewport)!=null&&a.value&&(l=t.isPositioned)!=null&&l.value){let c=function(){o.value=u.scrollTop>0};const u=t.viewport.value;c(),u.addEventListener("scroll",c),i(()=>u.removeEventListener("scroll",c))}}),ge(s,()=>{s.value&&(n==null||n.onScrollButtonChange(s.value))}),(i,a)=>o.value?(A(),N(Nb,{key:0,ref:p(r),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=p(t);
70l!=null&&l.value&&c!=null&&c.value&&(l.value.scrollTop=l.value.scrollTop-c.value.offsetHeight)})},{default:R(()=>[L(i.$slots,"default")]),_:3},512)):Ge("",!0)}}),Lj=D({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(e){const t=ss(io),n=t.position==="item-aligned"?Qd():void 0,{forwardRef:r,currentElement:s}=J(),o=I(!1);return at(i=>{var a,l;if((a=t.viewport)!=null&&a.value&&(l=t.isPositioned)!=null&&l.value){let c=function(){const d=u.scrollHeight-u.clientHeight;o.value=Math.ceil(u.scrollTop)<d};const u=t.viewport.value;c(),u.addEventListener("scroll",c),i(()=>u.removeEventListener("scroll",c))}}),ge(s,()=>{s.value&&(n==null||n.onScrollButtonChange(s.value))}),(i,a)=>o.value?(A(),N(Nb,{key:0,ref:p(r),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=p(t);l!=null&&l.value&&c!=null&&c.value&&(l.value.scrollTop=l.value.scrollTop+c.value.offsetHeight)})},{default:R(()=>[L(i.$slots,"default")]),_:3},512)):Ge("",!0)}}),Mj=D({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t,currentElement:n}=J(),r=rs(),s=Xm();return Gm(()=>{var o;const i=!!El((o=s==null?void 0:s.default)==null?void 0:o.call(s)).length;r.onValueElementHasChildrenChange(i)}),_e(()=>{r.valueElement=n}),(o,i)=>(A(),N(p(ae),{ref:p(t),as:o.as,"as-child":o.asChild,style:{pointerEvents:"none"}},{default:R(()=>{var a;return[p(Ib)((a=p(r).modelValue)==null?void 0:a.value)?(A(),ke(Oe,{key:0},[An(Ns(o.placeholder),1)],64)):L(o.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),Bj=D({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return(t,n)=>(A(),N(p(ae),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:R(()=>[L(t.$slots,"default",{},()=>[An("▼")])]),_:3},8,["as","as-child"]))}}),v4=D({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=["horizontal","vertical"];function r(a){return n.includes(a)}const s=B(()=>r(t.orientation)?t.orientation:"horizontal"),o=B(()=>s.value==="vertical"?t.orientation:void 0),i=B(()=>t.decorative?{role:"none"}:{"aria-orientation":o.value,role:"separator"});return(a,l)=>(A(),N(p(ae),ne({as:a.as,"as-child":a.asChild,"data-orientation":s.value},i.value),{default:R(()=>[L(a.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),Fj=D({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(A(),N(v4,Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}});function b4(e=[],t,n){const r=[...e];return r[n]=t,r.sort((s,o)=>s-o)}function jb(e,t,n){const r=100/(n-t)*(e-t);return Ks(r,0,100)}function w4(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function _4(e,t){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-t)),r=Math.min(...n);return n.indexOf(r)}function S4(e,t,n){const r=e/2,s=Zd([0,50],[0,r]);return(r-s(t)*n)*n}function k4(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function E4(e,t){if(t>0){const n=k4(e);return Math.min(...n)>=t}return!0}function Zd(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function x4(e){return(String(e).split(".")[1]||"").length}function P4(e,t){const n=10**t;return Math.round(e*n)/n}const Lb=["PageUp","PageDown"],Mb=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bb={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},[Fb,Ub]=xe(["SliderVertical","SliderHorizontal"]),Hb=D({__name:"SliderImpl",props:{asChild:{type:Boolean},as:{default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,s=Ll();return(o,i)=>(A(),N(p(ae),ne({"data-slider-impl":""},n,{onKeydown:i[0]||(i[0]=a=>{a.key==="Home"?(r("homeKeyDown",a),a.preventDefault()):a.key==="End"?(r("endKeyDown",a),a.preventDefault()):p(Lb).concat(p(Mb)).includes(a.key)&&(r("stepKeyDown",a),a.preventDefault())}),onPointerdown:i[1]||(i[1]=a=>{const l=a.target;l.setPointerCapture(a.pointerId),a.preventDefault(),p(s).thumbElements.value.includes(l)?l.focus():r("slideStart",a)}),onPointermove:i[2]||(i[2]=a=>{a.target.hasPointerCapture(a.pointerId)&&r("slideMove",a)}),onPointerup:i[3]||(i[3]=a=>{const l=a.target;l.hasPointerCapture(a.pointerId)&&(l.releasePointerCapture(a.pointerId),r("slideEnd",a))})}),{default:R(()=>[L(o.$slots,"default")]),_:3},16))}}),C4=D({__name:"SliderHorizontal",props:{dir:{},min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,{max:s,min:o,dir:i,inverted:a}=Me(n),{forwardRef:l,currentElement:c}=J(),u=I(),d=B(()=>(i==null?void 0:i.value)==="ltr"&&!a.value||(i==null?void 0:i.value)!=="ltr"&&a.value);function f(h){const m=u.value||c.value.getBoundingClientRect(),y=[0,m.width],b=d.value?[o.value,s.value]:[s.value,o.value],v=Zd(y,b);return u.value=m,v(h-m.left)}return Ub({startEdge:d.value?"left":"right",endEdge:d.value?"right":"left",direction:d.value?1:-1,size:"width"}),(h,m)=>(A(),N(Hb,{ref:p(l),dir:p(i),"data-orientation":"horizontal",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:m[0]||(m[0]=y=>{const b=f(y.clientX);r("slideStart",b)}),onSlideMove:m[1]||(m[1]=y=>{const b=f(y.clientX);r("slideMove",b)}),onSlideEnd:m[2]||(m[2]=()=>{u.value=void 0,r("slideEnd")}),onStepKeyDown:m[3]||(m[3]=y=>{const b=d.value?"from-left":"from-right",v=p(Bb)[b].includes(y.key);r("stepKeyDown",y,v?-1:1)}),onEndKeyDown:m[4]||(m[4]=y=>r("endKeyDown",y)),onHomeKeyDown:m[5]||(m[5]=y=>r("homeKeyDown",y))},{default:R(()=>[L(h.$slots,"default")]),_:3},8,["dir"]))}}),T4=D({__name:"SliderVertical",props:{min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,{max:s,min:o,inverted:i}=Me(n),{forwardRef:a,currentElement:l}=J(),c=I(),u=B(()=>!i.value);function d(f){const h=c.value||l.value.getBoundingClientRect(),m=[0,h.height],y=u.value?[s.value,o.value]:[o.value,s.value],b=Zd(m,y);return c.value=h,b(f-h.top)}return Ub({startEdge:u.value?"bottom":"top",endEdge:u.value?"top":"bottom",size:"height",direction:u.value?1:-1}),(f,h)=>(A(),N(Hb,{ref:p(a),"data-orientation":"vertical",style:{"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h[0]||(h[0]=m=>{const y=d(m.clientY);r("slideStart",y)}),onSlideMove:h[1]||(h[1]=m=>{const y=d(m.clientY);r("slideMove",y)}),onSlideEnd:h[2]||(h[2]=()=>{c.value=void 0,r("slideEnd")}),onStepKeyDown:h[3]||(h[3]=m=>{const y=u.value?"from-bottom":"from-top",b=p(Bb)[y].includes(m.key);r("stepKeyDown",m,b?-1:1)}),onEndKeyDown:h[4]||(h[4]=m=>r("endKeyDown",m)),onHomeKeyDown:h[5]||(h[5]=m=>r("homeKeyDown",m))},{default:R(()=>[L(f.$slots,"default")]),_:3},512))}}),O4=["value","name","disabled","step"],[Ll,R4]=xe("SliderRoot"),Uj=D({inheritAttrs:!1,__name:"SliderRoot",props:{name:{},defaultValue:{default:()=>[0]},modelValue:{},disabled:{type:Boolean,default:!1},orientation:{default:"horizontal"},dir:{},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const n=e,r=t,{min:s,max:o,step:i,minStepsBetweenThumbs:a,orientation:l,disabled:c,dir:u}=Me(n),d=ir(u),{forwardRef:f,currentElement:h}
70=J(),m=ro(h);vb();const y=nt(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),b=I(0),v=I(y.value);function w(k){const $=_4(y.value,k);S(k,$)}function g(k){S(k,b.value)}function _(){const k=v.value[b.value];y.value[b.value]!==k&&r("valueCommit",Se(y.value))}function S(k,$,{commit:P}={commit:!1}){var x;const j=x4(i.value),O=P4(Math.round((k-s.value)/i.value)*i.value+s.value,j),q=Ks(O,s.value,o.value),K=b4(y.value,q,$);if(E4(K,a.value*i.value)){b.value=K.indexOf(q);const V=String(K)!==String(y.value);V&&P&&r("valueCommit",K),V&&((x=C.value[b.value])==null||x.focus(),y.value=K)}}const C=I([]);return R4({modelValue:y,valueIndexToChangeRef:b,thumbElements:C,orientation:l,min:s,max:o,disabled:c}),(k,$)=>(A(),ke(Oe,null,[Q(p(bb),null,{default:R(()=>[(A(),N(Js(p(l)==="horizontal"?C4:T4),ne(k.$attrs,{ref:p(f),"as-child":k.asChild,as:k.as,min:p(s),max:p(o),dir:p(d),inverted:k.inverted,"aria-disabled":p(c),"data-disabled":p(c)?"":void 0,onPointerdown:$[0]||($[0]=()=>{p(c)||(v.value=p(y))}),onSlideStart:$[1]||($[1]=P=>!p(c)&&w(P)),onSlideMove:$[2]||($[2]=P=>!p(c)&&g(P)),onSlideEnd:$[3]||($[3]=P=>!p(c)&&_()),onHomeKeyDown:$[4]||($[4]=P=>!p(c)&&S(p(s),0,{commit:!0})),onEndKeyDown:$[5]||($[5]=P=>!p(c)&&S(p(o),p(y).length-1,{commit:!0})),onStepKeyDown:$[6]||($[6]=(P,x)=>{if(!p(c)){const j=p(Lb).includes(P.key)||P.shiftKey&&p(Mb).includes(P.key)?10:1,O=b.value,q=p(y)[O],K=p(i)*j*x;S(q+K,O,{commit:!0})}})}),{default:R(()=>[L(k.$slots,"default",{modelValue:p(y)})]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}),p(m)?(A(!0),ke(Oe,{key:0},ma(p(y),(P,x)=>(A(),ke("input",{key:x,value:P,type:"number",style:{display:"none"},name:k.name?k.name+(p(y).length>1?"[]":""):void 0,disabled:p(c),step:p(i)},null,8,O4))),128)):Ge("",!0)],64))}}),A4=D({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=Ll(),r=Fb(),{forwardRef:s,currentElement:o}=J(),i=B(()=>{var h,m;return(m=(h=n.modelValue)==null?void 0:h.value)==null?void 0:m[t.index]}),a=B(()=>i.value===void 0?0:jb(i.value,n.min.value??0,n.max.value??100)),l=B(()=>{var h,m;
70return w4(t.index,((m=(h=n.modelValue)==null?void 0:h.value)==null?void 0:m.length)??0)}),c=tb(o),u=B(()=>c[r.size].value),d=B(()=>u.value?S4(u.value,a.value,r.direction):0),f=Md();return _e(()=>{n.thumbElements.value.push(o.value)}),Nt(()=>{const h=n.thumbElements.value.findIndex(m=>m===o.value)??-1;n.thumbElements.value.splice(h,1)}),(h,m)=>(A(),N(p(Kd),null,{default:R(()=>[Q(p(ae),ne(h.$attrs,{ref:p(s),role:"slider","data-radix-vue-collection-item":"",tabindex:p(n).disabled.value?void 0:0,"aria-label":h.$attrs["aria-label"]||l.value,"data-disabled":p(n).disabled.value?"":void 0,"data-orientation":p(n).orientation.value,"aria-valuenow":i.value,"aria-valuemin":p(n).min.value,"aria-valuemax":p(n).max.value,"aria-orientation":p(n).orientation.value,"as-child":h.asChild,as:h.as,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p(r).startEdge]:`calc(${a.value}% + ${d.value}px)`,display:!p(f)&&i.value===void 0?"none":void 0},onFocus:m[0]||(m[0]=()=>{p(n).valueIndexToChangeRef.value=h.index})}),{default:R(()=>[L(h.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),Hj=D({__name:"SliderThumb",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{getItems:n}=Wd(),{forwardRef:r,currentElement:s}=J(),o=B(()=>s.value?n().findIndex(i=>i.ref===s.value):-1);return(i,a)=>(A(),N(A4,ne({ref:p(r)},t,{index:o.value}),{default:R(()=>[L(i.$slots,"default")]),_:3},16,["index"]))}}),Vj=D({__name:"SliderTrack",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=Ll();return J(),(n,r)=>(A(),N(p(ae),{"as-child":n.asChild,as:n.as,"data-disabled":p(t).disabled.value?"":void 0,"data-orientation":p(t).orientation.value},{default:R(()=>[L(n.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),qj=D({__name:"SliderRange",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=Ll(),n=Fb();J();const r=B(()=>{var i,a;return(a=(i=t.modelValue)==null?void 0:i.value)==null?void 0:a.map(l=>jb(l,t.min.value,t.max.value))}),s=B(()=>t.modelValue.value.length>1?Math.min(...r.value):0),o=B(()=>100-Math.max(...r.value));return(i,a)=>(A(),N(p(ae),{"data-disabled":p(t).disabled.value?"":void 0,"data-orientation":p(t).orientation.value,"as-child":i.asChild,as:i.as,style:Kt({[p(n).startEdge]:`${s.value}%`,[p(n).endEdge]:`${o.value}%`})},{default:R(()=>[L(i.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}});function $4(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}$4();const I4=["name","disabled","required","value","checked","data-state","data-disabled"],[D4,N4]=xe("SwitchRoot"),Kj=D({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=t,{disabled:s}=Me(n),o=nt(n,"checked",r,{defaultValue:n.defaultChecked,passive:n.checked===void 0});function i(){s.value||(o.value=!o.value)}const{forwardRef:a,currentElement:l}=J(),c=ro(l),u=B(()=>{var d;return n.id&&l.value?(d=document.querySelector(`[for="${n.id}"]`))==null?void 0:d.innerText:void 0});return N4({checked:o,toggleCheck:i,disabled:s}),(d,f)=>(A(),ke(Oe,null,[Q(p(ae),ne(d.$attrs,{id:d.id,ref:p(a),role:"switch",type:d.as==="button"?"button":void 0,value:d.value,"aria-label":d.$attrs["aria-label"]||u.value,"aria-checked":p(o),"aria-required":d.required,"data-state":p(o)?"checked":"unchecked","data-disabled":p(s)?"":void 0,"as-child":d.asChild,as:d.as,disabled:p(s),onClick:i,onKeydown:Ft(We(i,["prevent"]),["enter"])}),{default:R(()=>[L(d.$slots,"default",{checked:p(o)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),p(c)?(A(),ke("input",{key:0,type:"checkbox",name:d.name,tabindex:"-1","aria-hidden":"true",disabled:p(s),required:d.required,value:d.value,checked:!!p(o),"data-state":p(o)?"checked":"unchecked","data-disabled":p(s)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,I4)):Ge("",!0)],64))}}),Wj=D({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=D4();return J(),(n,r)=>{var s;return A(),N(p(ae),{"data-state":(s=p(t).checked)!=null&&s.value?"checked":"unchecked","data-disabled":p(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:R(()=>[L(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[ef,j4]=xe("TabsRoot"),zj=D({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{orientation:s,dir:o}=Me(n),i=ir(o);J();const a=nt(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=I();return j4({modelValue:a,changeModelValue:c=>{a.value=c},orientation:s,dir:i,activationMode:n.activationMode,baseId:qt(void 0,"radix-vue-tabs"),tabsList:l}),(c,u)=>(A(),N(p(ae),{dir:p(i),"data-orientation":p(s),"as-child":c.asChild,as:c.as},{default:R(()=>[L(c.$slots,"default",{modelValue:p(a)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Gj=D({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(e){const t=e,{loop:n}=Me(t),{forwardRef:r,currentElement:s}=J(),o=ef();return o.tabsList=s,(i,a)=>(A(),N(p(Gd),{"as-child":"",orientation:p(o).orientation.value,dir:p(o).dir.value,loop:p(n)},{default:R(()=>[Q(p(ae),{ref:p(r),role:"tablist","as-child":i.asChild,as:i.as,"aria-orientation":p(o).orientation.value},{default:R(()=>[L(i.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function Vb(e,t){return`${e}-trigger-${t}`}function qb(e,t){return`${e}-content-${t}`}const Jj=D({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=J(),r=ef(),s=B(()=>Vb(r.baseId,t.value)),o=B(()=>qb(r.baseId,t.value)),i=B(()=>t.value===r.modelValue.value),a=I(i.value);return _e(()=>{requestAnimationFrame(()=>{a.value=!1})}),(l,c)=>(A(),N(p(zt),{present:i.value,"force-mount":""},{default:R(({present:u})=>[Q(p(ae),{id:o.value,ref:p(n),"as-child":l.asChild,as:l.as,role:"tabpanel","data-state":i.value?"active":"inactive","data-orientation":p(r).orientation.value,"aria-labelledby":s.value,hidden:!u.value,tabindex:"0",style:Kt({animationDuration:a.value?"0s":void 0})},{default:R(()=>
70[l.forceMount||i.value?L(l.$slots,"default",{key:0}):Ge("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Yj=D({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n}=J(),r=ef(),s=B(()=>Vb(r.baseId,t.value)),o=B(()=>qb(r.baseId,t.value)),i=B(()=>t.value===r.modelValue.value);return(a,l)=>(A(),N(p(Sb),{"as-child":"",focusable:!a.disabled,active:i.value},{default:R(()=>[Q(p(ae),{id:s.value,ref:p(n),role:"tab",type:a.as==="button"?"button":void 0,as:a.as,"as-child":a.asChild,"aria-selected":i.value?"true":"false","aria-controls":o.value,"data-state":i.value?"active":"inactive",disabled:a.disabled,"data-disabled":a.disabled?"":void 0,"data-orientation":p(r).orientation.value,onMousedown:l[0]||(l[0]=We(c=>{!a.disabled&&c.ctrlKey===!1?p(r).changeModelValue(a.value):c.preventDefault()},["left"])),onKeydown:l[1]||(l[1]=Ft(c=>p(r).changeModelValue(a.value),["enter","space"])),onFocus:l[2]||(l[2]=()=>{const c=p(r).activationMode!=="manual";!i.value&&!a.disabled&&c&&p(r).changeModelValue(a.value)})},{default:R(()=>[L(a.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Kb="tooltip.open",[tf,L4]=xe("TooltipProvider"),Xj=D({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:s,disableClosingTrigger:o,ignoreNonKeyboardFocus:i,disabled:a}=Me(t);J();const l=I(!0),c=I(!1),{start:u,stop:d}=Yv(()=>{l.value=!0},r,{immediate:!1});return L4({isOpenDelayed:l,delayDuration:n,onOpen(){d(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:s,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:i}),(f,h)=>L(f.$slots,"default")}}),[Ml,M4]=xe("TooltipRoot"),Qj=D({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;J();const s=tf(),o=B(()=>n.disableHoverableContent??s.disableHoverableContent.value),i=B(()=>n.disableClosingTrigger??s.disableClosingTrigger.value),a=B(()=>n.disabled??s.disabled.value),l=B(()=>n.delayDuration??s.delayDuration.value),c=B(()=>n.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=nt(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});ge(u,g=>{s.onClose&&(g?(s.onOpen(),document.dispatchEvent(new CustomEvent(Kb))):s.onClose())});const d=I(!1),f=I(),h=B(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:m,stop:y}=Yv(()=>{d.value=!0,u.value=!0},l,{immediate:!1});function b(){y(),d.value=!1,u.value=!0}function v(){y(),u.value=!1}function w(){m()}return M4({contentId:"",open:u,stateAttribute:h,trigger:f,onTriggerChange(g){f.value=g},onTriggerEnter(){s.isOpenDelayed.value?w():b()},onTriggerLeave(){o.value?v():y()},onOpen:b,onClose:v,disableHoverableContent:o,disableClosingTrigger:i,disabled:a,ignoreNonKeyboardFocus:c}),(g,_)=>(A(),N(p(Rl),null,{default:R(()=>[L(g.$slots,"default",{open:p(u)})]),_:3}))}}),Zj=D({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ml(),r=tf();n.contentId||(n.contentId=qt(void 0,"radix-vue-tooltip-content"));const{forwardRef:s,currentElement:o}=J(),i=I(!1),a=I(!1),l=B(()=>n.disabled.value?{}:{click:y,focus:h,pointermove:d,pointerleave:f,pointerdown:u,blur:m});_e(()=>{n.onTriggerChange(o.value)});function c(){setTimeout(()=>{i.value=!1},1)}function u(){i.value=!0,document.addEventListener("pointerup",c,{once:!0})}
70function d(b){b.pointerType!=="touch"&&!a.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),a.value=!0)}function f(){n.onTriggerLeave(),a.value=!1}function h(b){var v,w;i.value||n.ignoreNonKeyboardFocus.value&&!((w=(v=b.target).matches)!=null&&w.call(v,":focus-visible"))||n.onOpen()}function m(){n.onClose()}function y(){n.disableClosingTrigger.value||n.onClose()}return(b,v)=>(A(),N(p(Al),{"as-child":""},{default:R(()=>[Q(p(ae),ne({ref:p(s),"aria-describedby":p(n).open.value?p(n).contentId:void 0,"data-state":p(n).stateAttribute.value,as:b.as,"as-child":t.asChild,"data-grace-area-trigger":""},y_(l.value)),{default:R(()=>[L(b.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),Wb=D({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=Ml(),{forwardRef:o}=J(),i=Xm(),a=B(()=>{var u;return(u=i.default)==null?void 0:u.call(i)}),l=B(()=>{var u;if(n.ariaLabel)return n.ariaLabel;let d="";function f(h){typeof h.children=="string"&&h.type!==Ye?d+=h.children:Array.isArray(h.children)&&h.children.forEach(m=>f(m))}return(u=a.value)==null||u.forEach(h=>f(h)),d}),c=B(()=>{const{ariaLabel:u,...d}=n;return d});return _e(()=>{hn(window,"scroll",u=>{const d=u.target;d!=null&&d.contains(s.trigger.value)&&s.onClose()}),hn(window,Kb,s.onClose)}),(u,d)=>(A(),N(p(xi),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=f=>r("escapeKeyDown",f)),onPointerDownOutside:d[1]||(d[1]=f=>{var h;p(s).disableClosingTrigger.value&&(h=p(s).trigger.value)!=null&&h.contains(f.target)&&f.preventDefault(),r("pointerDownOutside",f)}),onFocusOutside:d[2]||(d[2]=We(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=f=>p(s).onClose())},{default:R(()=>[Q(p($l),ne({ref:p(o),"data-state":p(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:R(()=>[L(u.$slots,"default"),Q(p(yb),{id:p(s).contentId,role:"tooltip"},{default:R(()=>[An(Ns(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),B4=D({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=Ei(e),{forwardRef:n,currentElement:r}=J(),{trigger:s,onClose:o}=Ml(),i=tf(),{isPointerInTransit:a,onPointerExit:l}=Y$(s,r);return i.isPointerInTransitRef=a,l(()=>{o()}),(c,u)=>(A(),N(Wb,ne({ref:p(n)},p(t)),{default:R(()=>[L(c.$slots,"default")]),_:3},16))}}),eL=D({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=Ml(),o=Wt(n,r),{forwardRef:i}=J();return(a,l)=>(A(),N(p(zt),{present:a.forceMount||p(s).open.value},{default:R(()=>[(A(),N(Js(p(s).disableHoverableContent.value?Wb:B4),ne({ref:p(i)},p(o)),{default:R(()=>[L(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),tL=D({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(A(),N(p(oo),Je(Qe(t)),{default:R(()=>[L(n.$slots,"default")]),_:3},16))}}),F4=D({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const s=Wt(e,t);return(o,i)=>(A(),N(p(ob),Je(Qe(p(s))),{default:R(()=>[L(o.$slots,"default")]),_:3},16))}});function zb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=zb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gb(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=zb(e))&&(r&&(r+=" "),r+=t);return r}const nf="-",U4=e=>{const t=V4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(nf);return a[0]===""&&a.length!==1&&a.shift(),Jb(a,t)||H4(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Jb=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Jb(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(nf);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},Yp=/^\[(.+)\]$/,H4=e=>{if(Yp.test(e)){const t=Yp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},V4=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,124 bytes, line 70
70return K4(Object.entries(e.classGroups),n).forEach(([o,i])=>{Lc(i,r,o,t)}),r},Lc=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Xp(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(q4(s)){Lc(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{Lc(i,Xp(t,o),n,r)})})},Xp=(e,t)=>{let n=e;return t.split(nf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},q4=e=>e.isThemeGetter,K4=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,W4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},Yb="!",z4=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let c=0,u=0,d;for(let b=0;b<a.length;b++){let v=a[b];if(c===0){if(v===s&&(r||a.slice(b,b+o)===t)){l.push(a.slice(u,b)),u=b+o;continue}if(v==="/"){d=b;continue}}v==="["?c++:v==="]"&&c--}const f=l.length===0?a:a.substring(u),h=f.startsWith(Yb),m=h?f.substring(1):f,y=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:i}):i},G4=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},J4=e=>({cache:W4(e.cacheSize),parseClassName:z4(e),...U4(e)}),Y4=/\s+/,X4=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(Y4);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(c);let m=!!h,y=r(m?f.substring(0,h):f);if(!y){if(!m){a=c+(a.length>0?" "+a:a);continue}if(y=r(f),!y){a=c+(a.length>0?" "+a:a);continue}m=!1}const b=G4(u).join(":"),v=d?b+Yb:b,w=v+y;if(o.includes(w))continue;o.push(w);const g=s(y,m);for(let _=0;_<g.length;++_){const S=g[_];o.push(v+S)}a=c+(a.length>0?" "+a:a)}return a};function Q4(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xb(t))&&(r&&(r+=" "),r+=n);return r}const Xb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xb(e[r]))&&(n&&(n+=" "),n+=t);return n};function Z4(e,...t){let n,r,s,o=i;function i(l){const c=t.reduce((u,d)=>d(u),e());return n=J4(c),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=X4(l,n);return s(l,u),u}return function(){return o(Q4.apply(null,arguments))}}const Ke=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Qb=/^\[(?:([a-z-]+):)?(.+)\]$/i,eD=/^\d+\/\d+$/,tD=new Set(["px","full","screen"]),nD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vn=e=>Ds(e)||tD.has(e)||eD.test(e),dr=e=>ao(e,"length",pD),Ds=e=>!!e&&!Number.isNaN(Number(e)),ku=e=>ao(e,"number",Ds),vo=e=>!!e&&Number.isInteger(Number(e)),aD=e=>e.endsWith("%")&&Ds(e.slice(0,-1)),ve=e=>Qb.test(e),fr=e=>nD.test(e),lD=new Set(["length","size","percentage"]),uD=e=>ao(e,lD,Zb),cD=e=>ao(e,"position",Zb),dD=new Set(["image","url"]),fD=e=>ao(e,dD,gD),hD=e=>ao(e,"",mD),bo=()=>!0,ao=(e,t,n)=>{const r=Qb.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},pD=e=>rD.test(e)&&!sD.test(e),Zb=()=>!1,mD=e=>oD.test(e),gD=e=>iD.test(e),yD=()=>{const e=Ke("colors"),t=Ke("spacing"),n=Ke("blur"),r=Ke("brightness"),s=Ke("borderColor"),o=Ke("borderRadius"),i=Ke("borderSpacing"),a=Ke("borderWidth"),l=Ke("contrast"),c=Ke("grayscale"),u=Ke("hueRotate"),d=Ke("invert"),f=Ke("gap"),h=Ke("gradientColorStops"),m=Ke("gradientColorStopPositions"),y=Ke("inset"),b=Ke("margin"),v=Ke("opacity"),w=Ke("padding"),g=Ke("saturate"),_=Ke("scale"),S=Ke("sepia"),C=Ke("skew"),k=Ke("space"),$=Ke("translate"),P=()=>["auto","contain","none"],x=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",ve,t],O=()=>[ve,t],q=()=>["",Vn,dr],K=()=>["auto",Ds,ve],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",ve],bt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],qe=()=>[Ds,ve];return{cacheSize:500,separator:":",theme:{colors:[bo],spacing:[Vn,dr],blur:["none","",fr,ve],brightness:qe(),borderColor:[e],borderRadius:["n
70one","","full",fr,ve],borderSpacing:O(),borderWidth:q(),contrast:qe(),grayscale:pe(),hueRotate:qe(),invert:pe(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[aD,dr],inset:j(),margin:j(),opacity:qe(),padding:O(),saturate:qe(),scale:qe(),sepia:pe(),skew:qe(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[fr]}],"break-after":[{"break-after":bt()}],"break-before":[{"break-before":bt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),ve]}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vo,ve]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",vo,ve]}],"grid-cols":[{"grid-cols":[bo]}],"col-start-end":[{col:["auto",{span:["full",vo,ve]},ve]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[bo]}],"row-start-end":[{row:["auto",{span:[vo,ve]},ve]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ve,t]}],"min-w":[{"min-w":[ve,t,"min","max","fit"]}],"max-w":[{"max-w":[ve,t,"none","full","min","max","fit","prose",{screen:[fr]},fr]}],h:[{h:[ve,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ve,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ve,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ve,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fr,dr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ku]}],"font-family":[{font:[bo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",Ds,ku]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vn,ve]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vn,dr]}],"underline-offset":[{"underline-offset":["auto",Vn,ve]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),cD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",uD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}
vendor: 4,887 bytes, line 70
70],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:F()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Vn,ve]}],"outline-w":[{outline:[Vn,dr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Vn,dr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fr,hD]}],"shadow-color":[{shadow:[bo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",fr,ve]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:qe()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:qe()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[vo,ve]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
70],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vn,dr,ku]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vD=Z4(yD);function lo(...e){return vD(Gb(e))}/**
71 * @license lucide-vue-next v0.454.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const bD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
76 * @license lucide-vue-next v0.454.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */var Xi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
81 * @license lucide-vue-next v0.454.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const wD=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:s,name:o,class:i,...a},{slots:l})=>ze("svg",{...Xi,width:e||Xi.width,height:e||Xi.height,stroke:r||Xi.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${bD(o??"icon")}`],...a},[...s.map(c=>ze(...c)),...l.default?[l.default()]:[]]);/**
86 * @license lucide-vue-next v0.454.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const uo=(e,t)=>(n,{slots:r})=>ze(wD,{...n,iconNode:t,name:e},r);/**
91 * @license lucide-vue-next v0.454.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const _D=uo("BookOpenIcon",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
96 * @license lucide-vue-next v0.454.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const SD=uo("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
101 * @license lucide-vue-next v0.454.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const kD=uo("MonitorIcon",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
106 * @license lucide-vue-next v0.454.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const ED=uo("RotateCcwIcon",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
111 * @license lucide-vue-next v0.454.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const xD=uo("TabletIcon",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
116 * @license lucide-vue-next v0.454.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const PD=uo("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),CD=D({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{},showClose:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=B(()=>{const{class:i,showClose:a,...l}=n;return l}),o=Wt(s,r);return(i,a)=>(A(),N(p(k3),null,{default:R(()=>[Q(p(fb),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),Q(p(db),ne(p(o),{class:p(lo)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:R(()=>[L(i.$slots,"default"),i.showClose?(A(),N(p(Vd),{key:0,class:"absolute right-4 top-4 roun
120ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:R(()=>[Q(p(PD),{class:"w-4 h-4"}),a[0]||(a[0]=Te("span",{class:"sr-only"},"Close",-1))]),_:1})):Ge("",!0)]),_:3},16,["class"])]),_:3}))}}),Qp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zp=Gb,TD=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Zp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=o==null?void 0:o[c];if(u===null)return null;const f=Qp(u)||Qp(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(m=>{let[y,b]=m;return Array.isArray(b)?b.includes({...o,...a}[y]):{...o,...a}[y]===b})?[...c,d,f]:c},[]);return Zp(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},em=D({__name:"Button",props:{variant:{},size:{},class:{},width:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,r)=>(A(),N(p(ae),{as:n.as,"as-child":n.asChild,class:Ir(p(lo)(p(OD)({variant:n.variant,size:n.size,width:n.width}),t.class))},{default:R(()=>[L(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),OD=TD("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",positive:"bg-green-500 text-white hover:bg-green-600"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"},width:{default:"w-full",sm:"w-auto",md:"w-72",lg:"w-96"}},defaultVariants:{variant:"default",size:"default"}}),RD=D({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,r)=>(A(),ke("div",{class:Ir(p(lo)("rounded-lg border bg-card text-card-foreground shadow-sm",t.class))},[L(n.$slots,"default")],2))}}),AD=D({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,r)=>(A(),ke("div",{class:Ir(p(lo)("p-6 pt-0",t.class))},[L(n.$slots,"default")],2))}}),$D=D({__name:"Checkbox",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String]},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=t,s=B(()=>{const{class:i,...a}=n;return a}),o=Wt(s,r);return(i,a)=>(A(),N(p(Q3),ne(p(o),{class:p(lo)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n.class)}),{default:R(()=>[Q(p(Z3),{class:"flex h-full w-full items-center justify-center text-current"},{default:R(()=>[L(i.$slots,"default",{},()=>[Q(p(SD),{class:"h-4 w-4"})])]),_:3})]),_:3},16,["class"]))}}),ID=D({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=B(()=>{const{class:r,...s}=t;return s});return(r,s)=>(A(),N(p(RI),ne(n.value,{class:p(lo)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class)}),{default:R(()=>[L(r.$slots,"default")]),_:3},16,["class"]))}}),DD=["Deutsch","Englisch","Informatik","Geschichte","Gemeinschaftskunde","Mathematik","Physik","Chemie","Biologie","Religion","Geographie","Musik","Sport","Kunst"],ND={class:"space-y-4"},jD={class:"text-center space-y-2"},LD={class:"flex items-center justify-center gap-3"},MD={class:"min-h-[40px] flex items-center rounded-lg bg-muted px-4 py-2"},BD={key:0,class:"text-sm text-muted-foreground"},FD={key:1,class:"flex flex-wrap gap-2"},UD={class:"grid grid-cols-1 gap-2 md:grid-cols-2"},HD=["onClick"],VD={class:"mt-1 h-5 flex items-center"},qD={class:"flex-1"},KD=D({__name:"SubjectSelectionStep",emits:["update:progress","update:data"],setup(e,{emit:t}){const n=t,r=DD.map(a=>({name:a,selected:!1})),s=I(r);function o(a){a.selected=!a.selected}const i=B(()=>s.value.filter(a=>a.selected).map(a=>a.name));return ge(s,a=>{const l=a.filter(u=>u.selected).map(({name:u})=>({name:u}));n("update:data",{selectedSubjects:l});const c=l.length>0?100:0;n("update:progress",c)},{deep:!0}),(a,l)=>(A(),ke("div",ND,[Te("div",jD,[Te("div",LD,[Q(p(_D),{class:"h-6 w-6 text-primary"}),l[0]||(l[0]=Te("h2",{class:"text-2xl text-primary font-semibold"}," Deine Fächer ",-1))]),l[1]||(l[1]=Te("p",{class:"mx-auto max-w-md text-sm text-muted-foreground"}," Wähle die Fächer aus, die du unterrichtest. Du kannst später weitere Fäc
120her hinzufügen. ",-1))]),Te("div",MD,[i.value.length===0?(A(),ke("div",BD," Keine Fächer ausgewählt ")):(A(),ke("div",FD,[(A(!0),ke(Oe,null,ma(i.value,c=>(A(),ke("div",{key:c,class:"inline-flex items-center rounded-full bg-primary px-2 py-0.5 text-sm text-primary-foreground font-medium"},Ns(c),1))),128))]))]),Q(p(RD),{class:"border border-primary/10"},{default:R(()=>[Q(p(AD),{class:"custom-scrollbar-container p-3"},{default:R(()=>[Te("div",UD,[(A(!0),ke(Oe,null,ma(s.value,c=>(A(),ke("div",{key:c.name,class:Ir(["flex cursor-pointer items-start rounded-lg p-2 transition-colors space-x-3 hover:bg-accent",{"bg-accent":c.selected}]),onClick:u=>o(c)},[Te("div",VD,[Q(p($D),{id:c.name,checked:c.selected},null,8,["id","checked"])]),Te("div",qD,[Q(p(ID),{for:c.name,class:"cursor-pointer text-base font-medium"},{default:R(()=>[An(Ns(c.name),1)]),_:2},1032,["for"])])],10,HD))),128))])]),_:1})]),_:1})]))}}),ew=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},WD=ew(KD,[["__scopeId","data-v-b6047145"]]),zD="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let tm=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=zD[n[e]&63];return t};const tw=dd("AcademicEntity",{state:()=>({loading:!1,subjects:[],classes:[]}),getters:{getAllClasses:e=>e.classes,allSubjects:e=>e.subjects,allSubjectsIds:e=>e.subjects.map(t=>t.id),subjectCount:e=>e.subjects.length,classesCount:e=>e.classes.length,getClassInfo:e=>t=>{var r;const n=e.classes.find(s=>s.id===t);if(n)return{...n,subjectName:((r=e.subjects.find(s=>s.id===n.subject_id))==null?void 0:r.name)||""}}},actions:{getSubjects(){return this.subjects},getSubjectById(e){return this.subjects.find(t=>t.id===e)},getClassById(e){return this.classes.find(t=>t.id===e)},getClassesSortedByUpdatedAt(){return[...this.classes].sort((e,t)=>{const n=new Date(e.updated_at).getTime();return new Date(t.updated_at).getTime()-n})},async fetchSubjects(){this.loading=!0;const e=Ze();try{const{data:t,error:n}=await e.from("subjects").select("*").order("updated_at",{ascending:!1});if(n){console.error("Fehler beim laden der Fächer");return}this.subjects=t}finally{this.loading=!1}},async fetchClasses(){this.loading=!0;const e=Ze(),{data:t}=await e.from("classes").select("*").order("updated_at",{ascending:!1});if(!t){be.error("Fehler beim Laden der Klassen");return}this.classes=t,this.loading=!1},async fetch(){await Promise.all([this.fetchSubjects(),this.fetchClasses()])},async updateClass(e,t){if(!e){be.error("Klassen ID nicht gefunden");return}const n=this.classes.findIndex(r=>
120r.id===e);if(n===-1){be.error("Klasse nicht gefunden");return}console.log("Class Id:",e),console.log("Class Data:",t),this.classes[n]={...this.classes[n],...t};try{Ze().from("classes").update({...t,updated_at:new Date().toISOString()}).eq("id",e).then(({data:s,error:o})=>{if(o)throw be.error("Fehler beim Ändern der Klasse"),o;s&&(this.fetchClasses(),be.success("Die Klassse wurde erfolgreich aktualisiert"))})}catch(r){be.error("Fehler, beim Ändern der Klasse"),console.error("Error updating class:",r)}},async updateClassTimestamp(e){if(!e){be.error("Klassen ID nicht gefunden");return}try{const t=Ze(),n=new Date().toISOString(),r=this.classes.findIndex(o=>o.id===e);r!==-1&&(this.classes[r]={...this.classes[r],updated_at:n});const{error:s}=await t.from("classes").update({updated_at:n}).eq("id",e);if(s)throw be.error("Fehler beim Aktualisieren des Zeitstempels"),s;be.success("Zeitstempel wurde aktualisiert")}catch(t){be.error("Fehler beim Aktualisieren des Zeitstempels"),console.error("Update timestamp error:",t)}},async insertClass(e){var i;const t=Rr(),n=tm(),r=(i=t.value)==null?void 0:i.id;if(!r)throw be.error("Nutzer nicht eingeloggt oder nicht gefunden"),new Error("User not logged in");if(e.grade===void 0||e.name===void 0||e.subject_id===void 0)throw be.error("Fehlende Informationen für die Klasse"),new Error("Missing required class data");const s=e.description??"",o={grade:e.grade,created_at:e.created_at??new Date().toISOString(),subject_id:e.subject_id,updated_at:e.updated_at??new Date().toISOString(),name:e.name,description:s,created_by:r,id:n};try{this.loading=!0;const a=Ze(),{data:l,error:c}=await a.from("classes").insert(o).select().single();if(c)throw console.error("Database error:",c),be.error("Fehler beim Einfügen der Klasse"),c;if(l){this.classes.unshift(l),be.success("Die Klasse wurde erfolgreich erstellt");return}throw be.error("Fehler beim Einfügen der Klasse: Keine Daten zurückgegeben"),new Error("No data returned from insert operation")}catch(a){throw console.error("Insert class error:",a),be.error("Fehler beim Einfügen der Klasse"),a}finally{this.loading=!1}},async deleteClass(e){try{Ze().from("classes").delete().eq("id",e).select().then(({data:n,error:r})=>{if(r)throw be.error("Fehler beim Loeschen der Klasse"),r;n&&be.success("Die Klasse wurde erfolgreich gelöscht")}),this.classes=this.classes.filter(n=>n.id!==e),be.success("Die Klasse wurde erfolgreich gelöscht")}catch(t){be.error("Fehler beim Löschen der Klasse"),console.error("Error deleting class:",t)}},async updateSubjects(e,t){this.loading=!0;try{const n=Ze();console.log("Updating subject:",e,t);const{data:r,error:s}=await n.from("subjects").update({name:t.name,description:t.description,updated_at:new Date().toISOString()}).eq("id",e).select().single();if(console.log("Updated subject:",r),s)throw be.error("Fehler beim Aktualisieren des Fachs"),s;if(r){const o=this.subjects.findIndex(i=>i.id===e);o!==-1&&(this.subjects[o]=r),await this.fetchSubjects(),be.success("Fach wurde erfolgreich aktualisiert")}}catch(n){console.error("Error updating subject:",n),be.error("Fehler beim Aktualisieren des Fachs")}finally{this.loading=!1}},async createSubject(e,t){var o;if(this.loading=!0,!e){be.error("Subject name is required");return}const n=tm(),r=Rr(),s={id:n,name:e,description:t,created_at:new Date().toISOString(),created_by:((o=r.value)==null?void 0:o.id)||"unknown",updated_at:new Date().toISOString()};try{const i=Ze(),{error:a}=await i.from("subjects").insert(s);if(a)throw be.error("Fehler beim Erstellen des Fachs"),a;await this.fetchSubjects(),be.success("Das Fach wurde erfolgreich erstellt")}catch(i){console.error("Error creating subject:",i),be.error("Fehler beim Erstellen des Fachs")}finally{this.loading=!1}},async deleteSubject(e){this.loading=!0;try{if(this.subjects.findIndex(o=>o.id===e)===-1){be.error("Fach nicht gefunden");return}if(this.classes.filter(o=>o.subject_id===e).length>0){be.error("Fach kann nicht gelöscht werden, da es noch in Klassen verwendet wird");return}const r=Ze(),{error:s}=await r.from("subjects").delete().eq("id",e).select().single();if(s)throw be.error("Fehler beim Löschen des Fachs"),s;this.subjects=this.subjects.filter(o=>o.id!==e),be.success("Fach wurde erfolgreich gelöscht")}catch(t){console.error("Error deleting subject:",t),be.error("Fehler beim Löschen des Fachs")}finally{this.loading=!1}},async fetchStudentsForClass(e){try{const t=Ze(),{data:n,error:r}=await t.from("class_student").select(`
121            student_profile_id,
122            student_profile:student_profile_id (
123              id,
124              meta_data
125            )
126          `).eq("class_id",e);if(!r&&n){const a=this.classes.findIndex(l=>l.id===e);a!==-1&&(this.classes[a]={...this.classes[a],students:n.map(l=>({id:l.student_profile_id}))});return}const{data:s,error:o}=await t.from("class_user").select("user_id").eq("class_id",e);if(o){console.error("Error fetching students:",o);return}const i=this.classes.findIndex(a=>a.id===e);i!==-1&&(this.classes[i]={...this.classes[i],students:s.map(a=>({id:a.user_id}))})}catch(t){console.error("Error fetching students:",t),be.error("Fehler beim Laden der Schüler")}},async getClassWithStudents(e){const t=this.getClassById(e);return t?(t.students||await this.fetchStudentsForClass(e),this.getClassById(e)||null):null}}}),GD={class:"px-1 py-2"},JD={class:"mt-auto pt-6 flex justify-between border-t"},YD=D({__name:"SubjectsPopup",props:{show:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=t,r=Ze(),s=Rr(),o=tw(),i=I([]),a=I(0),l=I(!1);function c(b){i.value=b.selectedSubjects}function u(b){a.value=b}async function d(){var S;if(!((S=s.value)!=null&&S.id))throw new Error("Kein Nutzer gefunden");const b=new Date().toISOString(),v={onboarding_step:6,onboarding_completed_at:b,updated_at:b},{data:w,error:g}=await r.from("user_profile").update(v).eq("user_id",s.value.id).select("id");if(g)throw g;if((w||[]).length>0)return;const{error:_}=await r.from("user_profile").insert({user_id:s.value.id,created_by:s.value.id,...v});if(_)throw _}async function f(){const b=new Set(o.subjects.map(w=>
126String(w.name??"").trim().toLowerCase()).filter(Boolean)),v=Array.from(new Set(i.value.map(w=>String(w.name??"").trim()).filter(Boolean)));for(const w of v){const g=w.toLowerCase();b.has(g)||(await o.createSubject(w,""),b.add(g))}}async function h(){var b;if(!l.value){if(!((b=s.value)!=null&&b.id)){be.error("Du bist nicht angemeldet.");return}l.value=!0;try{await d(),be.success("Alles klar – du kannst deine Fächer später jederzeit hinzufügen."),n("close")}catch(v){console.error("Error skipping subjects setup:",v),be.error("Konnte deine Registrierung nicht abschließen. Bitte versuche es erneut.")}finally{l.value=!1}}}async function m(){var b;if(!l.value){if(!((b=s.value)!=null&&b.id)){be.error("Du bist nicht angemeldet.");return}l.value=!0;try{await f(),await d(),be.success("Deine Fächer wurden gespeichert."),n("close")}catch(v){console.error("Error saving subjects setup:",v),be.error("Konnte deine Fächer nicht speichern. Bitte versuche es erneut.")}finally{l.value=!1}}}const y=B(()=>l.value);return(b,v)=>(A(),N(p(F4),{open:b.show,modal:!0},{default:R(()=>[Q(p(CD),{class:"w-[95vw] sm:max-w-[700px] max-h-[90vh] overflow-y-auto flex flex-col",showClose:!1},{default:R(()=>[Te("div",GD,[Q(WD,{"onUpdate:progress":u,"onUpdate:data":c})]),Te("div",JD,[Q(p(em),{variant:"ghost",onClick:h,disabled:l.value},{default:R(()=>[...v[0]||(v[0]=[An(" Später ",-1)])]),_:1},8,["disabled"]),Q(p(em),{variant:"default",onClick:m,disabled:y.value},{default:R(()=>[An(Ns(l.value?"Speichere…":a.value===100?"Speichern":"Weiter ohne Fächer"),1)]),_:1},8,["disabled"])])]),_:1})]),_:1},8,["open"]))}}),XD={},QD={id:"Ebene_2","data-name":"Ebene 2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 123.88 56.05"};function ZD(e,t){return A(),ke("svg",QD,[...t[0]||(t[0]=[Q_('<g id="Ebene_1-2" data-name="Ebene 1"><g><path d="M105.88,48.16c-.05-.51-.95-2.46-1.17-2.87-.3-.56-1.07-2.04-2.8-1.88-1.53.15-2.19,1.5-2.31,1.82-.35.71-.33,2.44-.61,2.5-.08-.01-.34-.03-.47-1.45s-1.01-2.17-1.89-2.14c-.52,0-1.25.27-1.78.56-.2.11-.94.62-1.43,2.2-.14.49-.33,1.09-.61,1.11s-.36-.89-.44-1.23c-.05-.22-.35-2.43-2.34-2.31-.22-.01-2.72.07-3.39,1.78-.26.62-.25,1.03-.37,1.56-.04.17-.32.98-.82,1.02-.19-.02-.4-.25-.42-.98-.03-.51-.06-1.12-.08-1.21-.02-1.56-1.41-1.64-1.68-1.65-1.41-.01-1.78.47-2.26.92s-1.28,2.01-1.56,3.08c-.12.42-.34.89-.72.89s-.54-1.16-.58-1.6c-.01-.15-.11-1.89-1.58-2.12-1.46-.22-2.37,1.53-2.76,2.12-.25.39-.65,1.24-.82,1.2s-.19-.6-.22-1.14c0-.03-.01-2.23-1.91-2.24-1.54.08-2.32,1.32-2.59,2.99-.06.33-.12,1.54-.36,1.58-.11-.02-.19-.17-.26-.74-.14-2.48-1.07-2.97-2.22-2.93-.9,0-2.9.78-3.29,2.36-.14.27-.23,1.34-.46,1.33s-.33-.73-.41-1.07c-.05-.22-.42-1.89-1.8-2.2-.39-.13-2.33.31-3.28,1.13-.19.16-.38.34-.52.54-.31.46-.41,1-.53,1.53-.04.17,0,.95-.63,1-.57.03-.57-.74-.59-.91-.03-.26-.28-2.86-2.05-2.8-1.32-.02-2.01.88-2.3,1.29s-.4.82-.62,1.3c-.29.64-.18,2.08-1.21,2.2-.28-.05-.45-.18-.44-.57s-.
12608-1.11-.11-1.46c-.02-.41-.41-2-1.77-1.95-.47,0-1.62.06-2.46,1.58s-.48,1.85-.96,1.89c-.16,0-.18-.32-.2-.46-.03-.25-.24-1.53-.28-1.77s-.17-1.29-1.78-1.13c-1.56.07-2.19,1.64-2.32,1.97-.34.97-.49,2.41-.47,2.3s-.02.3-.12.3-.19-.22-.22-.31c-.11-.37-.36-1.87-.47-2.17-.08-.23-.36-1.38-1.8-1.19-.59.13-1.16.33-1.7.62-.2.11-.37.27-.53.43-.43.47-1.03,2.08-1.14,2.36-.03.09-.1.44-.33.43s-.24-.29-.25-.34c-.07-.29-.28-2.01-.82-2.5-.44-.39-1.18-1.03-2.83-.49-.73.32-1.69.8-2.16,1.58-.31.46-.41,1-.53,1.53-.04.17-.08.35-.15.51-.12.32-.3.56-.58.55s-.37-.41-.39-.58c-.02-.28-.1-.97-.2-1.57-.06-.34-.18-1.74-1.98-1.74-.73.02-1.58.76-1.73.94-.61.76-1.61,2.37-1.62,3.11-.03.3.05.85.49.9.82.09.94-.15,1.03-.41.46-1.8,1.46-2.64,1.59-2.73.08-.05.16-.03.18.07.08.28.26,1.28.39,1.97.4,1.66,1.93,1.65,2,1.66.9.08,1.6-.42,1.75-.56.61-.58.64-1.89,1.32-2.79.32-.55.81-.81,1.19-.9.6-.16.72.17.76.33.07.27.13.53.19.79.5,2.54,2,2.48,2.1,2.5,1.36.07,1.65-.76,1.89-1.22s.75-1.72.93-1.98c.2-.3.31-.4.63-.54.47-.19.55.28.59.43.11.43.2.87.32,1.3.11.39.41,1.91,2.14,1.79,1-.04,1.36-.54,1.51-.92.08-.21.22-1.49.41-2.34.11-.47.25-.9.71-1.08.33-.12.31.46.33.63.05.38.1.77.2,1.14.45,1.83,1.81,1.89,2.22,1.85s1.08-.46,1.27-.9c.17-.39.26-.81.37-1.22.11-.42.6-1.45,1.13-1.45.39-.02.25,1.29.33,1.66.09,1.23.94,1.72,1.17,1.79s.64.17,1.14.21c.95-.11,1.46-.69,1.9-1.35.55-.83.73-1.58.85-2.1.14-.54.54-1.04.68-1.2.18-.22.67-.45.73.31.16,1.1.37,1.77.47,2.09.43,1.1,1.58,1.05,1.94,1.04s1.29-.23,1.71-.65c.31-.3.59-.64.78-1.04.17-.35.29-1.07.31-1.12.23-1.08.98-1.24,1.37-1.37.72-.18.87.71.94,1.03.16.72.3
1266,1.89,1.01,2.34.44.33,1.55.21,1.76.18.78-.1,1.16-1.09,1.22-1.25.39-1.83,1.3-2.64,1.8-2.64s.54,1.41.66,1.84c.49,1.73,1.67,1.8,2.12,1.8.98-.05,1.38-.55,1.53-.92.29-.68.31-1.7.36-2s.23-.86.43-1.14.43-.49.6-.48c.41.08.18,1.9.6,2.7.61,1.08,1.14,1.18,1.75,1.12.38-.04.86-.59,1.2-1.16.16-.27.74-1.37,1.1-1.99.26-.5.58-.44.65-.03.05.38.22,1.43.47,2.09.11.36.77,1.09,1.97,1.04.85.01,1.53-.51,1.68-.66.78-.71.91-1.65,1-1.97.18-.58.43-1.17.7-1.61.3-.48.61-.74.78-.75s.18.72.21,1-.14,2.76,2.43,2.79c1.69-.12,2.24-1.29,2.43-1.69.17-.35.22-.71.25-1.09s.15-.93.54-1.21.92-.49,1.31-.44c.53.08.56,1.15.6,1.35.12.84.67,2.24,2.09,2.49,1.03.12,1.63-.45,1.75-.79.09-.25.52-1.36.82-2.04.28-.61.82-1.2,1.1-1.19.51.06.55,1.64.63,1.93.22,1.28,1.55,1.72,2.01,1.7,1.34-.08,1.78-1.1,1.92-1.82,0-.3.21-1.51.29-1.76.05-.14.34-.85.97-.9.47-.02,1,.99,1.13,1.2.62,1.26.84,2.21,1,2.56s.67.36,1.12.15.53-.44.5-.79Z" style="fill:#93da49;stroke-width:0px;"></path><path d="M7.26,14.67c.84-.75,1.26-1.09,2.28-1.91.24-.18,2.02-1.59,2.64-2.02.55-.36,2.11-1.46,2.55-1.65.8-.46,1.57.14,1.66.23.64.64.36,1.68.15,2.09-.62,1.21-1.54,2.14-2.64,2.92-.38.27-1.91,1.41-2.31,1.68-.37.25-.38.3-.14.65.42.62.76,1.29,1.09,1.97.34.71.64,1.44.81,2.21.11.51.16,1.03.21,1.54.04.4.08.81.07,1.21-.02.68,0,2.21-.53,3.72-.13.34-.72,1.13-1.55.07-.48-.61-.9-1.04-2.04-3.77-.2-.47-1.03-2.59-1.61-4.96-.02-.08-.09-.22-.24-.09-.18.11-1.15.96-1.45,1.21-.21.15-.34.41-.38.56-.15.55-.92,3.44-1.34,4.4-.18.4-1.08,2.32-1.85,2.98C2.23,28.07-.03,30.01,0,26.86c0-1.14.91-4.99,1.01-5.74.1-.71.96-4.9,1.11-5.74.04-.24.26-2.06.4-2.89.1-.59.54-2.79.64-3.38.41-2.47,2.35-2.43,2.7-2.3,1.09.01,1.39,1,1.43,1.4.06.67.01,2.79.01,3.34s-.29,2.57-.31,3.02c-.02.23.2.16.27.09Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M101.27,8.9c-.7,2.84-.79,4.23-.8,4.47-.01.34.06.92.79,1.04s1.19-.1,1.68-.8,1.04-2.47,1.44-3.73c.38-1.17,1.26-5.11,1.47-6.04.16-.69.47-1.29.83-1.87.17-.27.66-.99,1.37-1.06,2.07,0,2.06,2.42,1.53,5.12-.24.98-1.41,5.28-2.56,7.54-.32.63-1.45,2.91-2.35,4-.64.71-1.24,1.55-4.17,1.59-.95-.02-3.13-.13-3.76-1.54-.94-1.65-.82-3.32-.55-4.95.16-.81,1.04-4.66,1.31-5.77.19-.76.85-3.48.99-4.03s.83-1.42,1.59-1.41c2.04-.18,1.95,1.04,2,1.52.04.41-.56,4.63-.82,5.93Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M34.49,16.65c-.08.11-.14.29-.19.42-.16.43-.29.87-.44,1.3-.27.79-.52,1.58-.81,2.36-.13.36-.89,2.3-2.41,3.62-.36.31-.78.45-1.28.41-.73-.07-1.38-.63-.87-2.62.32-1.44.55-2.55.9-3.66.28-1.05.7-2.91.93-3.73.04-.18,1.27-5.18,1.5-5.86.13-.33.27-.79.93-1.05,2.33-1.04,3.62-1.42,4.24-1.56s1.65-.37,2.25-.39c1.29-.03,1.94.53,2.33.98.85,1.15.52,3.04.34,3.73-.21.81-.67,2.24-2.27,3.76-.21.2-.33.3-.74.56-.05.03-.04.05-.01.08.56.5,1.24,1.42,1.5,1.94,1.34,2.45,1.13,3.79.8,4.46-.35.76-.79,1.45-1.46,1.92-.54.25-1.05.19-1.72-.41-.79-.76-1.48-2.45-1.83-3.16-.23-.46-1.02-2.19-1.25-2.61-.09-.16-.2-.4-.29-.49-.04-.06-.1-.05-.15.01ZM35.27,13.93c.6-.09,1.29-.06,1.8-.47.54-.44.71-1.14.94-1.72.16-.5.05-1.26-1.07-1.08-.16.02-.76.21-.99.29-.05.02-.09.01-.12.13-.12.4-.22.89-.27,1.16-.07.39-.29,1.07-.38,1.52-.01.07-.06.19.08.18Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M52.41,14.23c.34.42.65.8.97,1.18.55.66,1.89,2.88,1.82,3.83-.07,1.05-.24,2.37-1.27,2.74-.44.16-1.41-.09-2.3-1.26-.49-.59-1.96-2.71-2.39-3.46-.21-.35-.7-1.08-.91-1.35-.04-.07-.09-.09-.13.03-.11.26-.31.84-.39,1.09-.23.73-.47,1.47-.71,2.19-.23.7-.45,1.4-.73,2.08-.22.54-.49,1.06-.8,1.55-.48.74-1.58.97-2.34.58-.53-.27-.61-.74-.5-1.21.16-.7,1.53-7.65,1.61-8.02.24-1.03,1.38-5.91,1.65-7.14.08-.5.32-.79.72-.97.8-.41,2.49-1.03,2.95-1.07,3.7-.8,4.63.15,5.48,1.16.82.98,1,2.1.68,3.32-.26,1.02-.81,1.88-1.51,2.65-.55.61-1.14,1.2-1.81,1.69-.21.15-.21.24-.09.38ZM50.75,12.26c.48-.35.78-1.49.81-1.64.07-.45.17-1.42-.93-1.17-.44.07-.87.24-1.07.31-.12.04-.15.11-.18.26-.02.04-.13.69-.29,1.4-.09.37-.21.7-.29,1.07-.02.11-.12.27.2.24.9-.11,1.43-.23,1.76-.48Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M119.71,9.15c.5.31,1.93,1.18,2.42,1.76,1.03,1.16,1.19,2.26,1.24,2.84.1,1.17-.25,1.94-.48,2.24-.12.16-.47.58-.87.6-.85.02-1.41-.37-2-1.29-.6-.78-1.33-1.74-1.68-2.2-.65-.86-1.43-1.84-1.99-2.31-.12-.1-.3-.12-.39.05-.19.29-.34.65-.55,1.17-.19.45-2.25,4.78-2.3,4.83-.32.32-.84,1.47-2.75,1.31-1.38-.11-1.05-1.78-.86-2.3.21-.6,1.08-3.4,1.3-4.19.18-.65,1.19-4.62,1.51-5.96.19-.8.82-3.63,1.05-4.05.1-.48.66-.64,1.25-.79.05-.03,1.42-.43,2.82-.67,1.33-.22,2.08-.25,3.1-.2,1.76.05,2.22.53,2.62,1.02.77,1.15.8,2.39.67,3.13s-.69,3.32-2.25,4.07c-.42.21-1.45.63-1.81.72-.19.04-.19.11-.04.19ZM117.74,6.94c.82-.55.89-.8,1.12-1.43s.18-.86.02-1.16-.78-.55-1.35-.43c-.11.01-.15.1-.18.22-.13.48-.46,2.16-.6,2.81-.02.11-.07.24.03.24.27.02.68-.06.97-.25Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M72.6,3.21c.56-.11,1.06.09,1.47.59s.5,1.89.53,2.45c.03.51-.16,2.2-.25,3.04-.02.17-.02.53.49.11.98-.64,3.87-3.71,3.39-3.22s1.14-1.32,1.9-1.93c1.15-1.03,1.68.2,1.61.56-.24,1.99-.57,3.51-2.76,5.58-.07.07-.74.65-1.07.94-.14.1-.19.16-.09.24.47.38,2.69,1.86,3.21,3.67.36,1.53.08,3.13-.28,3.72-.35.61-.87,1.71-2.09,1.68-.37.02-1.04-.13-1.58-1.61-.3-.89-.33-2.2-2.67-5.94-.1-.17-.21-.18-.38-.15-.16.03-.25.1-.26.27-.08,1.04-.38,2.04-.65,3.04-.08.3-.2.6-.32.89-.28.7-.55,1.41-.88,2.1-.21.45-.49.88-.8,1.27-.39.49-1.14.72-1.57.68s-.72-.3-.83-.6c-.31-.77.13-2.14.26-2.72.26-1.14.52-2.27.75-3.42.24-1.14.75-4.33.96-5.62.03-.24.38-2.49.54-3.44,0-.12.11-.62.3-1.06.16-.54.5-.99,1.05-1.09Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M62.37,9.58c.19-.04.43-.09.62-.13.48-.1.95-.24,1.44-.28.76-.07,1.52-.02,2.2.4.51.31.64.72.39,1.27-.32.62-.72,1.58-3.43,2.19-.54.11-1.52.19-1.76.21-.06,0-.13.02-.13.16-.1.39-.18,1.68-.2,2.19,0,.06,0,.14.08.13.2-.02.38-.04.55-.06,2.64-.38,4.12-.3,4.98.16.47.26.69.74.58,1.26-.19.98-1.05,2.25-2.15,2.64-.29.12-1.55.4-1.9.46-.51.08-2.68.41-3.29.51-.47.07-1.97.26-2.22.34-.39.12-.65,0-.81-.38-.18-.41-.15-.71-.09-1.14.06-.44.21-.86.28-1.29.25-1.16.93-6.41.99-6.85.04-.3.23-1.99.3-2.53.1-.82.29-3.26.4-3.59.14-.78.6-.94,1.15-1.07.34-.04,4.62-.64,6.15-.57,2.65-.02,2.6,1.4,2.38,1.81-.23.43-.27.74-1.22,1.43s-4.23,1.09-4.79,1.22c-.14.04-.31.04-.36.25-.1.38-.16.59-.21,1.09-.01.11-.03.21.07.18Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M16.33,18.34c.13-.46.9-4.41,2.96-7.27.28-.33.57-.65.86-.97.53-.58,1.92-1.59,3.91-1.57,2.95.29,3.52,2.14,3.66,3.07.44,2.55-.29,4.96-.51,5.55-.5,1.36-1.19,2.58-1.79,3.58s-2.58,3.34-5.48,3.65c-1.07.05-2.74-.14-3.54-2.33-.15-.75-.44-2.21-.06-3.72ZM21.12,20.31c.24-.31.52-.72.68-1,.52-.92,1.27-2.31,1.55-3.02.37-.95.84-1.81.72-2.83-.04-.4-.12-.76-.63-.97-.56-.17-.96-.19-1.51.81-.49.93-.82,1.72-1.
12618,2.71-.27.77-.52,1.57-.74,2.36-.15.55-.23.88-.35,1.44-.16,1.05,1.01,1.11,1.45.52Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M86.67,7.23c-.53.06-.97.12-1.47.16-1.32.2-2.06.05-2.23-.71s-.18-2.31.16-3.04c.17-.35.42-.64.93-.79,1.85-.49,4.47-.68,5.03-.72.92-.06,1.95-.06,2.26-.07,2.16-.03,3.41.16,4.19.42,1.14.43,1.48,1.06,1.47,1.34s-.1.57-.26.74c-.35.4-1.45,1.63-4.89,2.11-.52.07-.51.09-.52.63,0,.24-.28,5.38-1.74,10.1-.27.69-.78,1.67-1.16,2.24-.29.42-.93.77-1.3.75-.39-.02-.74-.11-.93-.5-.47-1.01-.3-2.67-.31-3.49-.02-1.36.09-2.7.34-4.04.23-1.24.75-4.38.79-4.79,0-.05.09-.41-.34-.34Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M84.62,24.41c.07-.22.1-.67.78-.75,1.86-.41,3.21-.8,4.64-.95.84-.09,1.67-.19,2.52-.14,1.59.11,2.14,1.02,1.99,1.66-.13.57-.46.97-.91,1.31-.48.37-1,.56-1.55.8-1.09.47-3.65.63-3.71.64-.03,0-.07-.01-.1.09-.07.16-.33,1.16-.4,1.44-.02.07-.05.16.06.15.3-.05,2.72-.55,3.88-.46,1.76.12,1.56,1.36,1.46,1.66-.1.31-.78,1.6-4.45,2.14-.5.08-1.23.1-1.74.12-.12,0-.11.02-.14.12-.23.72-.59,2.27-.82,3-.03.09-.03.18-.05.31-.01.06.01.07.11.06.84-.12,1.62-.3,2.69-.32,2.57-.19,3.15.66,3.58,1.64s-.3,2.71-2.25,2.79c-.84.09-2.33.4-2.83.48-.64.11-2.17.29-4.05.7-.34.08-.68.17-1.03.23-.2.04-1.19.09-1.51-.2s-.6-.82-.59-1.55c0-.75.9-3.53,1.13-4.23.41-1.25.84-2.5,1.27-3.74.16-.47.73-2.32.74-2.35.15-.56,1.17-4.32,1.3-4.67Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M99.98,33.81c.25-.05,1.97-.16,3.1.02,1.09.2,1.7.43,2.26.71.96.48,1.42,1.09,1.56,1.64.18,1.16-.09,2.24-1.67,2.18-1.19-.02-4.58.3-6.39.61-.6.1-2.95.81-3.47.88s-1.33-.16-1.4-1.37c-.04-.93.59-2.91.81-3.46.5-1.21,2.73-9.36,3.19-10.73.19-.74.66-1.91,2.59-1.94.83-.01,1.19.58,1.33,1.28.23,2-1.29,8.55-1.89,9.95-.02.05-.03.1-.05.18-.02.05-.01.07.03.07Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M80.76,30.44c-.09.24-.76,2.35-2.3,3.89-1.01,1.02-2.94,2.36-5.63,1.13-.1-.06-.22-.15-.29-.19s-.09-.03-.11.03c-.22.83-1.19,3.16-1.33,3.52-.14.37-1.13,2.48-1.57,3.12-.28.41-.87,1.28-1.86,1.24-1.73-.37-1.46-1.49-1.43-1.64.07-.44.5-3.26,2.26-9.37.7-2.54,1-5.27,1.16-5.95.14-.63.26-.99,1.11-1.22.62-.19,2.04-.85,4.16-1.08s3.34,0,3.87.15c1.69.5,1.93,1.51,2.18,2.36.26.86.07,3.26-.22,4ZM76.94,29.71c.06-.45.36-1.47-.97-1.3-.78.15-1.35.22-1.82.47-.08.05-.14.15-.17.25-.23.87-.55,1.9-.77,2.77-.05.21.02.31.32.28.67-.09,1.34-.24,1.89-.49,1-.51,1.38-1.4,1.52-1.97Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M57.19,30.31c.17-.13,3.69-3.6,4.53-4.09,1.08-.75,1.65-.75,2.08-.72,4.17.16,2.74,3.34,2.53,4.42s-.76,3.33-.79,3.45c-.25.97-.47,1.95-.75,2.91-.27.93-1.05,4.26-1.82,5.57-.18.34-.94,1.11-1.85,1.11s-1.72-.64-1.67-2.37c0-.46,0-.92.02-1.37.03-.6.13-1.21.25-1.8.22-1.09.77-3.24,1.14-4.76.03-.11.04-.22.06-.38,0-.03,0-.05-.06-.01-.07.04-2.37,2.05-2.74,2.37-.42.35-.7.71-1.55.75-1.07.02-1.53-1.05-1.9-1.57-.43-.73-1.24-2.09-1.28-2.13-.04-.09-.09-.06-.11.02-.05.1-1.43,4.2-1.71,4.78-.39.87-1.59,3.84-2.37,5.14-.41.69-1.43.78-1.78.72s-1.33-.29-1.47-1.78c-.08-.58,0-1.14.12-1.7.15-.77.29-1.54.48-2.3.29-1.18.6-2.35.95-3.51.35-1.19,1.75-6.1,1.76-6.13.23-1.12.99-1.88,2.42-1.98,1.16-.05,1.88.57,2.39,1.17.64.84,2.4,3.37,2.9,4.13.07.12.13.14.22.06Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M31.37,35.87c.27-1.12,1.17-4.99,1.38-5.79.3-1.01.92-2.07,1.5-2.4.28-.26,1.27-.68,2.18-.5,1.16.17,1.18,1.37,1.09,2.43-.09.63-.34,1.79-.46,2.53-.28,1.33-1.18,4.86-1.07,5.76.14.83.75,1.29,1.37,1.33,1.02,0,1.58-.41,1.91-1.08s.62-1.99.93-3.11c.29-.96.61-2.96.79-3.8s.17-1.7.41-2.43c.29-1.08.93-1.16,1.64-1.12,1.06.04,1.62.64,1.85,1.54.36,1.49.34,2.69.22,3.55-.47,4.3-1.77,6.98-2.48,8.35-.73,1.2-2.18,3.16-5.29,3.05-4.38-.22-5.32-1.64-5.94-3.99-.13-.82-.5-1.7-.01-4.34Z" fill="currentColor" style="stroke-width:0px;"></path><path d="M21.77,33.21c.71-.65,1.4-1.33,2.13-1.96.69-.6,1.43-1.14,2.2-1.63,2.38-1.54,3.28-1.47,3.8-1.49.78,0,1.12.61.87,1.24-.41.99-1.59,2.33-2.6,3.25-.12.1-.96.97-1.47,1.42-.1.09-.1.11-.07.21.32.7,2.45,4.63,2.73,5.68.76,2.34.91,3.92.88,4.39-.02.64.09,1.69-1.2,2.03-.45.02-.8.07-1.42-.99-.89-1.44-2.52-4.43-2.93-5.18-.52-.94-2.11-3.76-2.17-3.87-.03-.05-.06-.08-.12-.07-.1.01-1.32.43-1.48.48s-.22.21-.28.32c-.1.19-2.13,6.57-2.34,7.08-.14.31-.51,1.05-1.52,1.01-.61,0-1-.78-.98-1.23.02-.6.06-1.2.09-1.8.07-1.35.28-3.67.87-8.6.1-.67.25-1.33.37-2,.4-2.07,1.05-3.54,1.39-3.93.58-.66,1.57-.82,2.46-.71,1.7.13,1.16,2.16,1.04,2.96-.16,1.03-.37,2.11-.55,3.14-.01.
12606-.06.35,0,.38.12.04.23-.07.3-.14Z" fill="currentColor" style="stroke-width:0px;"></path></g></g>',1)])])}const e6=ew(XD,[["render",ZD]]),t6={key:0,class:"mobile-overlay-container hidden"},n6={class:"fixed inset-0 w-full h-full bg-white dark:bg-neutral-900 z-[9999] flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},r6={class:"w-[90%] text-center p-8 rounded-lg bg-green-50 dark:bg-green-950 border-2 border-green-400 dark:border-green-700 shadow-lg dark:shadow-green-900/30 transition-colors duration-300"},s6={class:"flex justify-center mb-6"},o6={class:"flex justify-center"},i6={class:"flex flex-col items-center gap-2"},a6={class:"flex justify-center gap-8"},l6={class:"flex flex-col items-center gap-2"},u6={class:"flex flex-col items-center gap-2"},c6=D({__name:"MobileOverlay",props:{disabled:{type:Boolean}},setup(e){const t=e,n=Vy(),r=["/login","/register","/onboarding","/auth/callback","/email-confirmed","/confirm","/forgot-password","/reset-password","/update-password","/waitlist","/error","/submit","/submission","/teacher/upload","/tu"],s=I(!1),o=B(()=>r.some(l=>n.path===l||n.path.startsWith(l))),i=B(()=>t.disabled?!1:!o.value),a=()=>{const l=window.innerWidth,c=window.innerHeight;s.value=l>480&&l<=1024&&c>l};return _e(()=>{a(),window.addEventListener("resize",a)}),Qr(()=>{window.removeEventListener("resize",a)}),(l,c)=>i.value?(A(),ke("div",t6,[Te("div",n6,[Te("div",r6,[Te("div",s6,[Q(e6,{class:"w-32 h-auto"})]),s.value?(A(),ke(Oe,{key:0},[c[1]||(c[1]=Te("h2",{class:"text-2xl mb-4 text-green-800 dark:text-green-200 font-medium transition-colors duration-300"},"Bildschirm bitte drehen",-1)),c[2]||(c[2]=Te("p",{class:"text-green-800 dark:text-green-100 mb-6 transition-colors duration-300"},"Diese Anwendung ist für Querformat optimiert. Bitte drehe Dein Tablet für die beste Darstellung.",-1)),Te("div",o6,[Te("div",i6,[Q(p(ED),{size:48,class:"text-green-600 dark:text-green-300 animate-pulse transition-colors duration-300"}),c[0]||(c[0]=Te("span",{class:"text-sm text-green-800 dark:text-green-100 transition-colors duration-300"},"Zum Querformat drehen",-1))])])],64)):(A(),ke(Oe,{key:1},[c[5]||(c[5]=Te("h2",{class:"text-2xl mb-4 text-green-800 dark:text-green-200 font-medium transition-colors duration-300"},"Am besten auf Tablet oder Desktop ansehen",-1)),c[6]||(c[6]=Te("p",{class:"text-green-800 dark:text-green-100 mb-6 transition-colors duration-300"},"Diese Anwendung ist für größere Bildschirme optimiert. Bitte wechsle zu einem Tablet oder Desktop-Gerät für die beste Erfahrung.",-1)),Te("div",a6,[Te("div",l6,[Q(p(xD),{size:32,class:"text-green-600 dark:text-green-300 transition-colors duration-300"}),c[3]||(c[3]=Te("span",{class:"text-sm text-green-800 dark:text-green-100 transition-colors duration-300"},"Tablet",-1))]),Te("div",u6,[Q(p(kD),{size:32,class:"text-green-600 dark:text-green-300 transition-colors duration-300"}),c[4]||(c[4]=Te("span",{class:"text-sm text-green-800 dark:text-green-100 transition-colors duration-300"},"Desktop",-1))])])],64))])])])):Ge("",!0)}}),d6=dd("stripe",{state:()=>({success:!1,clientSecret:null,entitlements:null,subscription:null,checkoutUrl:null,schoolLicense:null}),getters:{isSuccess:e=>e.success,isSubscribed:e=>e.subscription!==null,isPremium:e=>{var r;const t=(r=e.subscription)==null?void 0:r.status;return!!(t==="active"||t==="trialing"||e.schoolLicense)},isSchoolPremium:e=>e.schoolLicense!==null,getCheckoutUrl:e=>e.checkoutUrl},actions:{setClientSecret(e){this.clientSecret=e},async retrieveSubscription(){try{const e=await $fetch("/api/stripe/subscriptions",{method:"GET"});e?(this.entitlements=e.entitlements,this.subscription=e.subscription):console.error("No subscription data found")}catch(e){console.error("Error retrieving subscription:",e)}},async fetchSchoolAccess(){try{const e=await $fetch("/api/stripe/check-school-access",{method:"GET"});this.schoolLicense=e!=null&&e.hasSchoolAccess?e.school:null}catch(e){console.error("Error retrieving school access:",e),this.schoolLicense=null}},async createHostedCheckout(e){try{const t=await $fetch("/api/stripe/checkout",{method:"GET",params:e});if(t&&t.url)return this.checkoutUrl=t.url,t}catch(t){return console.error("Error creating hosted checkout:",t),null}},async redirectToCheckout(e){const t=await this.createHostedCheckout(e);return t&&t.url?(window.location.href=t.url,!0):!1},async createPortalSession(){try{console.log("Creating portal session...");const e=await $fetch("/api/stripe/create-portal-session",{method:"POST"});if(console.log("Portal session data:",e),e&&e.url)return e}catch(e){console.error("Error creating portal session:",e)}},async getProducts(){try{return await $fetch("/api/stripe/products")}catch(e){return console.error("Error fetching products:",e),[]}},async fetch(){await Promise.all([this.retrieveSubscription(),this.fetchSchoolAccess()])},async logSubscription(){console.log("Subscription:",this.subscription),console.log("Entitlements:",this.entitlements)}}}),f6={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm"},h6={class:"app-page-slot min-h-0 min-w-0 flex-1"}
126,p6=D({__name:"app",setup(e){const t=Rr(),n=Rv(),r=tw(),s=d6(),o=or(),i=ll(),a=B(()=>i.path.startsWith("/teacher/upload/")||i.path.startsWith("/tu/")),l=I(!1),c=I(!1),u=I(null);async function d(){if(!a.value)try{await Promise.all([n.fetch(),r.fetch(),s.fetch()])}catch(v){console.error("Error loading stores:",v)}}const f=()=>{var v,w,g;return((g=(w=(v=t.value)==null?void 0:v.email)==null?void 0:w.split("@"))==null?void 0:g[0])??""};async function h(){var g;if(!((g=t.value)!=null&&g.id)||await n.doesUserProfileExist(t.value.id))return;const w=f();w&&await n.createUserProfile(t.value.id,{first_name:w,last_name:"",avatar_url:zA(w,""),username:w})}function m(){return!1}async function y(){var v;if(!(a.value||!((v=t.value)!=null&&v.id))){l.value=!0;try{await d(),await h(),m()}catch(w){console.error("Error loading initial data:",w)}finally{l.value=!1}}}ge(t,async(v,w)=>{if(a.value)return;const g=(v==null?void 0:v.id)??null,_=(w==null?void 0:w.id)??null;if(g&&g!==_){await y();return}g||(c.value=!1,u.value=null)}),ge(()=>i.path,async()=>{var v;a.value||(v=t.value)!=null&&v.id}),_e(()=>{a.value||y()});function b(){c.value=!1}return(v,w)=>{const g=i2,_=c2,S=f2,C=g_("Toaster"),k=p2;return p(a)?(A(),N(g,{key:0})):(A(),ke(Oe,{key:1},[Q(S,null,{default:R(()=>[p(o).public.NODE_ENV==="production"?(A(),N(_,{key:0})):Ge("",!0)]),_:1}),Q(C,{position:"top-center",duration:6e3}),Q(YD,{show:p(c),onClose:b},null,8,["show"]),Q(c6,{disabled:p(c)},null,8,["disabled"]),Q(k,null,{default:R(()=>[p(l)&&!p(i).path.startsWith("/onboarding")?(A(),ke("div",f6,[...w[0]||(w[0]=[Te("div",{class:"flex flex-col items-center gap-2"},[Te("div",{class:"h-8 w-8 animate-spin border-b-2 border-primary rounded-full"}),Te("p",{class:"text-sm text-muted-foreground"}," Lade… ")],-1)])])):Ge("",!0),Te("div",h6,[Q(g)])]),_:1})],64))}}}),m6={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
127`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`<span class="stack${d.internal?" internal":""}">${d.text}</span>`).join(`
128`);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,u=s?bf(()=>oe(()=>import("./C5VnxPQc.js"),__vite__mapDeps([212,33,117,213]),import.meta.url)):bf(()=>oe(()=>import("./DFfIKWda.js"),__vite__mapDeps([214,117,215]),import.meta.url));return(d,f)=>(A(),N(p(u),Je(Qe({statusCode:p(r),statusMessage:p(o),description:p(i),stack:p(a)})),null,16))}},g6={key:0},nm={__name:"nuxt-root",setup(e){const t=()=>null,n=Xe(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Vt().beforeEach(l)}const s=!1;Cn(vi,ll()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=ul(),i=!1;Jm((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),mS(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>ks(l)),!1});const a=!1;return(l,c)=>(A(),N(id,{onResolve:p(r)},{default:R(()=>[p(i)?(A(),ke("div",g6)):p(o)?(A(),N(p(m6),{key:1,error:p(o)},null,8,["error"])):p(a)?(A(),N(p(t),{key:2,context:p(a)},null,8,["context"])):p(s)?(A(),N(Js(p(s)),{key:3})):(A(),N(p(p6),{key:4}))]),_:1},8,["onResolve"]))}};let rm;{let e;rm=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Wg(nm):Vu(nm),s=eS({vueApp:r});async function o(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||cl(l)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await rS(s,s2)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(X1),await s.hooks.callHook("app:mounted",r),await Re()}catch(l){o(l)}return r},e=rm().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{bj as $,Rr as A,ne as B,Jj as C,TD as D,d6 as E,Oe as F,bN as G,at as H,sc as I,ge as J,be as K,Wm as L,Km as M,et as N,z6 as O,Nm as P,Hu as Q,Ne as R,Ei as S,q3 as T,vN as U,Nt as V,_D as W,CD as X,F4 as Y,vj as Z,em as _,tw as a,Q_ as a$,Kt as a0,ew as a1,Wt as a2,Wj as a3,Kj as a4,Re as a5,hl as a6,ny as a7,Fj as a8,id as a9,Qg as aA,Wu as aB,Jg as aC,gN as aD,xe as aE,hi as aF,Hc as aG,Ct as aH,Za as aI,Me as aJ,Pr as aK,e6 as aL,Bg as aM,Mg as aN,Vy as aO,_N as aP,zj as aQ,Yj as aR,Gj as aS,V3 as aT,f3 as aU,h3 as aV,m3 as aW,pj as aX,mj as aY,gj as aZ,yj as a_,Lr as aa,AD as ab,ll as ac,yN as ad,Qn as ae,Ux as af,Rx as ag,md as ah,EN as ai,gd as aj,SN as ak,xN as al,Nx as am,Je as an,Qe as ao,
128kN as ap,g_ as aq,Fg as ar,Xe as as,yv as at,ep as au,LN as av,ze as aw,s1 as ax,hS as ay,Ys as az,Qr as b,qj as b$,We as b0,xj as b1,Pj as b2,Ej as b3,Cj as b4,kj as b5,Qj as b6,tL as b7,eL as b8,Zj as b9,Nj as bA,$j as bB,Ij as bC,Dj as bD,jj as bE,Lj as bF,qN as bG,KN as bH,GN as bI,zN as bJ,WN as bK,YN as bL,XN as bM,OD as bN,QN as bO,JN as bP,Ft as bQ,K6 as bR,G6 as bS,rj as bT,sj as bU,oj as bV,ij as bW,aj as bX,oe as bY,Uj as bZ,Vj as b_,Xj as ba,ob as bb,k3 as bc,fb as bd,db as be,Vd as bf,PD as bg,ID as bh,SD as bi,wN as bj,Zt as bk,PN as bl,_6 as bm,nl as bn,Js as bo,tt as bp,Cn as bq,qt as br,Ud as bs,ED as bt,Tj as bu,Mj as bv,Oj as bw,Bj as bx,Rj as by,Aj as bz,B as c,U6 as c$,Hj as c0,Dg as c1,Rg as c2,$D as c3,Rv as c4,zA as c5,DD as c6,tl as c7,Tm as c8,U0 as c9,As as cA,Gc as cB,zr as cC,S6 as cD,k6 as cE,ld as cF,x6 as cG,mn as cH,pi as cI,lt as cJ,za as cK,Rn as cL,iN as cM,Vu as cN,I_ as cO,W6 as cP,$_ as cQ,Wg as cR,j6 as cS,bf as cT,P0 as cU,M6 as cV,B6 as cW,H6 as cX,F6 as cY,L6 as cZ,uN as c_,Ea as ca,Se as cb,ae as cc,ZN as cd,ej as ce,tj as cf,Xm as cg,cj as ch,dj as ci,fj as cj,hj as ck,BN as cl,UN as cm,FN as cn,HN as co,VN as cp,fN as cq,c_ as cr,e_ as cs,Um as ct,Ye as cu,aN as cv,cm as cw,P6 as cx,tN as cy,la as cz,ke as d,L_ as d$,nN as d0,v6 as d1,fi as d2,E6 as d3,Jc as d4,Gs as d5,nd as d6,hN as d7,A6 as d8,D6 as d9,N6 as dA,oN as dB,qo as dC,Cf as dD,rN as dE,Cr as dF,Xn as dG,is as dH,N_ as dI,sN as dJ,b6 as dK,Eo as dL,y_ as dM,J6 as dN,w6 as dO,q6 as dP,dN as dQ,lN as dR,T0 as dS,gf as dT,j_ as dU,cN as dV,R6 as dW,Fm as dX,j0 as dY,Pg as dZ,eN as d_,I6 as da,$6 as db,Q6 as dc,pN as dd,s0 as de,Wc as df,Pn as dg,tr as dh,X6 as di,Xt as dj,Tr as dk,Zm as dl,Gm as dm,Xc as dn,Jm as dp,p_ as dq,h_ as dr,f_ as ds,ol as dt,Kw as du,T6 as dv,Cm as dw,C6 as dx,ha as dy,Y6 as dz,Q as e,M_ as e0,V6 as e1,Z6 as e2,O6 as e3,lj as e4,uj as e5,Xx as e6,wj as e7,_j as e8,Sj as e9,f2 as ea,p as f,A as g,Te as h,Ge as i,An as j,ma as k,N as l,RD as m,Ir as n,_e as o,uo as p,D as q,I as r,lo as s,Ns as t,Vt as u,L as v,R as w,dd as x,or as y,Ze as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.