From b9a67a00ac07a0d35ab1ea7c53e47f9af02d4fc7 Mon Sep 17 00:00:00 2001 From: Allen Francis Date: Wed, 27 Dec 2023 17:41:24 +0530 Subject: [PATCH] deploy --- docs/assets/{AppDivider-d3b10cf8.js => AppDivider-0549cd27.js} | 2 +- ... BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js} | 2 +- .../{ChooseNamePage-33882997.js => ChooseNamePage-5d126b5e.js} | 2 +- .../{ListSpacesPage-0d2f642a.js => ListSpacesPage-b8d4a584.js} | 2 +- docs/assets/{PlusIcon-61e9a251.js => PlusIcon-c11a82f6.js} | 2 +- docs/assets/{SpacePage-4fcf13f6.js => SpacePage-90a4dbc1.js} | 2 +- docs/assets/SpacePage-d4b2dcaf.css | 1 - docs/assets/SpacePage-d968c969.css | 1 + docs/assets/{index-bc0f2b7e.js => index-be8bbb8c.js} | 2 +- docs/index.html | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) rename docs/assets/{AppDivider-d3b10cf8.js => AppDivider-0549cd27.js} (99%) rename docs/assets/{BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js => BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js} (94%) rename docs/assets/{ChooseNamePage-33882997.js => ChooseNamePage-5d126b5e.js} (80%) rename docs/assets/{ListSpacesPage-0d2f642a.js => ListSpacesPage-b8d4a584.js} (70%) rename docs/assets/{PlusIcon-61e9a251.js => PlusIcon-c11a82f6.js} (96%) rename docs/assets/{SpacePage-4fcf13f6.js => SpacePage-90a4dbc1.js} (86%) delete mode 100644 docs/assets/SpacePage-d4b2dcaf.css create mode 100644 docs/assets/SpacePage-d968c969.css rename docs/assets/{index-bc0f2b7e.js => index-be8bbb8c.js} (99%) diff --git a/docs/assets/AppDivider-d3b10cf8.js b/docs/assets/AppDivider-0549cd27.js similarity index 99% rename from docs/assets/AppDivider-d3b10cf8.js rename to docs/assets/AppDivider-0549cd27.js index b11ccf3..3ad7fcf 100644 --- a/docs/assets/AppDivider-d3b10cf8.js +++ b/docs/assets/AppDivider-0549cd27.js @@ -1,3 +1,3 @@ -import{d as R,o as D,f as Be,a as tn,i as k,n as rt,t as nn,h as Oe,k as F,u as h,j as A,v as gt,x as L,y as ue,z as ht,A as wt,B as bt,C as xt,D as q,b as de,w as T,E as K,s as Ot,G as Ae,H as Me,c as $,I as on,J as rn,K as sn,L as Ee,p as Ce,M as At,N as Et,O as an,P as ve,Q as ln,R as un,S as Ke,T as Ct,U as cn,V as dn,W as fn,X as pn,Y as mn,F as vn,_ as yn}from"./index-bc0f2b7e.js";const gn=["type"],hn={key:0,class:"mt-x2 text-paragraph-x-small capitalize text-primary"},Ei=R({__name:"AppButton",props:{type:{},fullWidth:{type:Boolean,default:!1},variant:{default:"normal"},label:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,i)=>(D(),Be("div",{class:rt(["inline-flex flex-col items-center justify-center",{"w-full":o.fullWidth}])},[tn("button",{type:o.type,class:rt(["bg-surface-brand p-4 font-space-grotesk font-medium capitalize text-white hover:bg-[#633CFF] active:bg-[#5024FF]",[[o.variant==="rounded"?"rounded-full":"rounded-lg"],{"w-full":o.fullWidth}]]),onClick:i[0]||(i[0]=r=>n("click"))},[k(o.$slots,"default")],10,gn),o.label?(D(),Be("p",hn,nn(o.label),1)):Oe("",!0)],2))}}),wn=["top","right","bottom","left"],ie=Math.min,H=Math.max,De=Math.round,Pe=Math.floor,re=e=>({x:e,y:e}),bn={left:"right",right:"left",bottom:"top",top:"bottom"},xn={start:"end",end:"start"};function Ue(e,t,n){return H(e,ie(t,n))}function J(e,t){return typeof e=="function"?e(t):e}function Z(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function Je(e){return e==="x"?"y":"x"}function Ze(e){return e==="y"?"height":"width"}function ge(e){return["top","bottom"].includes(Z(e))?"y":"x"}function Qe(e){return Je(ge(e))}function On(e,t,n){n===void 0&&(n=!1);const o=ye(e),i=Qe(e),r=Ze(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Re(s)),[s,Re(s)]}function An(e){const t=Re(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>xn[t])}function En(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function Cn(e,t,n,o){const i=ye(e);let r=En(Z(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(qe)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>bn[t])}function Sn(e){return{top:0,right:0,bottom:0,left:0,...e}}function St(e){return typeof e!="number"?Sn(e):{top:e,right:e,bottom:e,left:e}}function ke(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function st(e,t,n){let{reference:o,floating:i}=e;const r=ge(t),s=Qe(t),a=Ze(s),l=Z(t),c=r==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[a]/2-i[a]/2;let f;switch(l){case"top":f={x:d,y:o.y-i.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-i.width,y:u};break;default:f={x:o.x,y:o.y}}switch(ye(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1);break}return f}const Pn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=st(c,o,l),p=o,f={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=J(e,t)||{};if(c==null)return{};const u=St(d),p={x:n,y:o},f=Qe(i),m=Ze(f),y=await s.getDimensions(c),w=f==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",O=r.reference[m]+r.reference[f]-p[f]-r.floating[m],C=p[f]-r.reference[f],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let P=_?_[b]:0;(!P||!await(s.isElement==null?void 0:s.isElement(_)))&&(P=a.floating[b]||r.floating[m]);const M=O/2-C/2,I=P/2-y[m]/2-1,v=ie(u[g],I),S=ie(u[x],I),E=v,W=P-y[m]-S,B=P/2-y[m]/2+M,N=Ue(E,B,W),j=!l.arrow&&ye(i)!=null&&B!=N&&r.reference[m]/2-(BE<=0)){var I,v;const E=(((I=r.flip)==null?void 0:I.index)||0)+1,W=C[E];if(W)return{data:{index:E,overflows:M},reset:{placement:W}};let B=(v=M.filter(N=>N.overflows[0]<=0).sort((N,j)=>N.overflows[1]-j.overflows[1])[0])==null?void 0:v.placement;if(!B)switch(f){case"bestFit":{var S;const N=(S=M.map(j=>[j.placement,j.overflows.filter(G=>G>0).reduce((G,en)=>G+en,0)]).sort((j,G)=>j[1]-G[1])[0])==null?void 0:S[0];N&&(B=N);break}case"initialPlacement":B=a;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function at(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lt(e){return wn.some(t=>e[t]>=0)}const Tn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=J(e,t);switch(o){case"referenceHidden":{const r=await be(t,{...i,elementContext:"reference"}),s=at(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lt(s)}}}case"escaped":{const r=await be(t,{...i,altBoundary:!0}),s=at(r,n.floating);return{data:{escapedOffsets:s,escaped:lt(s)}}}default:return{}}}}};async function Bn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Z(n),a=ye(n),l=ge(n)==="y",c=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=J(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const Dn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await Bn(t,e);return{x:n+i.x,y:o+i.y,data:i}}}},Rn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=J(e,t),c={x:n,y:o},d=await be(t,l),u=ge(Z(i)),p=Je(u);let f=c[p],m=c[u];if(r){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",x=f+d[w],b=f-d[g];f=Ue(x,f,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=m+d[w],b=m-d[g];m=Ue(x,m,b)}const y=a.fn({...t,[p]:f,[u]:m});return{...y,data:{x:y.x-n,y:y.y-o}}}}},kn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=J(e,t),d={x:n,y:o},u=ge(i),p=Je(u);let f=d[p],m=d[u];const y=J(a,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const b=p==="y"?"height":"width",O=r.reference[p]-r.floating[b]+w.mainAxis,C=r.reference[p]+r.reference[b]-w.mainAxis;fC&&(f=C)}if(c){var g,x;const b=p==="y"?"width":"height",O=["top","left"].includes(Z(i)),C=r.reference[u]-r.floating[b]+(O&&((g=s.offset)==null?void 0:g[u])||0)+(O?0:w.crossAxis),_=r.reference[u]+r.reference[b]+(O?0:((x=s.offset)==null?void 0:x[u])||0)-(O?w.crossAxis:0);m_&&(m=_)}return{[p]:f,[u]:m}}}},Mn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=J(e,t),l=await be(t,a),c=Z(n),d=ye(n),u=ge(n)==="y",{width:p,height:f}=o.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(y=c,m=d==="end"?"top":"bottom");const w=f-l[m],g=p-l[y],x=!t.middlewareData.shift;let b=w,O=g;if(u){const _=p-l.left-l.right;O=d||x?ie(g,_):_}else{const _=f-l.top-l.bottom;b=d||x?ie(w,_):_}if(x&&!d){const _=H(l.left,0),P=H(l.right,0),M=H(l.top,0),I=H(l.bottom,0);u?O=p-2*(_!==0||P!==0?_+P:H(l.left,l.right)):b=f-2*(M!==0||I!==0?M+I:H(l.top,l.bottom))}await s({...t,availableWidth:O,availableHeight:b});const C=await i.getDimensions(r.floating);return p!==C.width||f!==C.height?{reset:{rects:!0}}:{}}}};function se(e){return Pt(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Pt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pt(e){return e instanceof Node||e instanceof z(e).Node}function Q(e){return e instanceof Element||e instanceof z(e).Element}function X(e){return e instanceof HTMLElement||e instanceof z(e).HTMLElement}function ut(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Se(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function $n(e){return["table","td","th"].includes(se(e))}function et(e){const t=tt(),n=V(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Nn(e){let t=me(e);for(;X(t)&&!$e(t);){if(et(t))return t;t=me(t)}return null}function tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $e(e){return["html","body","#document"].includes(se(e))}function V(e){return z(e).getComputedStyle(e)}function Ne(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||ee(e);return ut(t)?t.host:t}function _t(e){const t=me(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&Se(t)?t:_t(t)}function xe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_t(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=z(i);return r?t.concat(s,s.visualViewport||[],Se(i)?i:[],s.frameElement&&n?xe(s.frameElement):[]):t.concat(i,xe(i,[],n))}function Ft(e){const t=V(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=X(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=De(n)!==r||De(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function nt(e){return Q(e)?e:e.contextElement}function fe(e){const t=nt(e);if(!X(t))return re(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Ft(t);let s=(r?De(n.width):n.width)/o,a=(r?De(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ln=re(0);function Tt(e){const t=z(e);return!tt()||!t.visualViewport?Ln:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function In(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function ae(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=nt(e);let s=re(1);t&&(o?Q(o)&&(s=fe(o)):s=fe(e));const a=In(r,n,o)?Tt(r):re(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const p=z(r),f=o&&Q(o)?z(o):o;let m=p.frameElement;for(;m&&o&&f!==p;){const y=fe(m),w=m.getBoundingClientRect(),g=V(m),x=w.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,b=w.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,u*=y.y,l+=x,c+=b,m=z(m).frameElement}}return ke({width:d,height:u,x:l,y:c})}function Wn(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=X(n),r=ee(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},a=re(1);const l=re(0);if((i||!i&&o!=="fixed")&&((se(n)!=="body"||Se(r))&&(s=Ne(n)),X(n))){const c=ae(n);a=fe(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function jn(e){return Array.from(e.getClientRects())}function Bt(e){return ae(ee(e)).left+Ne(e).scrollLeft}function Hn(e){const t=ee(e),n=Ne(e),o=e.ownerDocument.body,i=H(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=H(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Bt(e);const a=-n.scrollTop;return V(o).direction==="rtl"&&(s+=H(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function zn(e,t){const n=z(e),o=ee(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;const c=tt();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:a,y:l}}function Vn(e,t){const n=ae(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=X(e)?fe(e):re(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,l=i*r.x,c=o*r.y;return{width:s,height:a,x:l,y:c}}function ct(e,t,n){let o;if(t==="viewport")o=zn(e,n);else if(t==="document")o=Hn(ee(e));else if(Q(t))o=Vn(t,n);else{const i=Tt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return ke(o)}function Dt(e,t){const n=me(e);return n===t||!Q(n)||$e(n)?!1:V(n).position==="fixed"||Dt(n,t)}function Kn(e,t){const n=t.get(e);if(n)return n;let o=xe(e,[],!1).filter(a=>Q(a)&&se(a)!=="body"),i=null;const r=V(e).position==="fixed";let s=r?me(e):e;for(;Q(s)&&!$e(s);){const a=V(s),l=et(s);!l&&a.position==="fixed"&&(i=null),(r?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Se(s)&&!l&&Dt(e,s))?o=o.filter(d=>d!==s):i=a,s=me(s)}return t.set(e,o),o}function Un(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Kn(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,d)=>{const u=ct(t,d,i);return c.top=H(u.top,c.top),c.right=ie(u.right,c.right),c.bottom=ie(u.bottom,c.bottom),c.left=H(u.left,c.left),c},ct(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qn(e){return Ft(e)}function Xn(e,t,n){const o=X(t),i=ee(t),r=n==="fixed",s=ae(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=re(0);if(o||!o&&!r)if((se(t)!=="body"||Se(i))&&(a=Ne(t)),o){const c=ae(t,!0,r,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=Bt(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function dt(e,t){return!X(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Rt(e,t){const n=z(e);if(!X(e))return n;let o=dt(e,t);for(;o&&$n(o)&&V(o).position==="static";)o=dt(o,t);return o&&(se(o)==="html"||se(o)==="body"&&V(o).position==="static"&&!et(o))?n:o||Nn(e)||n}const Gn=async function(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||Rt,r=this.getDimensions;return{reference:Xn(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function Yn(e){return V(e).direction==="rtl"}const Jn={convertOffsetParentRelativeRectToViewportRelativeRect:Wn,getDocumentElement:ee,getClippingRect:Un,getOffsetParent:Rt,getElementRects:Gn,getClientRects:jn,getDimensions:qn,getScale:fe,isElement:Q,isRTL:Yn};function Zn(e,t){let n=null,o;const i=ee(e);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(a||t(),!u||!p)return;const f=Pe(d),m=Pe(i.clientWidth-(c+u)),y=Pe(i.clientHeight-(d+p)),w=Pe(c),x={rootMargin:-f+"px "+-m+"px "+-y+"px "+-w+"px",threshold:H(0,ie(1,l))||1};let b=!0;function O(C){const _=C[0].intersectionRatio;if(_!==l){if(!b)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(O,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,x)}n.observe(e)}return s(!0),r}function Qn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=nt(e),d=i||r?[...c?xe(c):[],...xe(t)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=c&&a?Zn(c,n):null;let p=-1,f=null;s&&(f=new ResizeObserver(g=>{let[x]=g;x&&x.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let m,y=l?ae(e):null;l&&w();function w(){const g=ae(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(g=>{i&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),u&&u(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const eo=(e,t,n)=>{const o=new Map,i={platform:Jn,...n},r={...i.platform,_c:o};return Pn(e,t,{...i,platform:r})};function Xe(e){var t;return(t=e==null?void 0:e.$el)!=null?t:e}function to(e){return{name:"arrow",options:e,fn(t){const n=Xe(h(e.element));return n==null?{}:_n({element:n,padding:e.padding}).fn(t)}}}function kt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=kt(e);return Math.round(t*n)/n}function no(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=F(()=>{var P;return(P=h(n.open))!=null?P:!0}),r=F(()=>h(n.middleware)),s=F(()=>{var P;return(P=h(n.placement))!=null?P:"bottom"}),a=F(()=>{var P;return(P=h(n.strategy))!=null?P:"absolute"}),l=F(()=>{var P;return(P=h(n.transform))!=null?P:!0}),c=F(()=>Xe(e.value)),d=F(()=>Xe(t.value)),u=A(0),p=A(0),f=A(a.value),m=A(s.value),y=gt({}),w=A(!1),g=F(()=>{const P={position:f.value,left:"0",top:"0"};if(!d.value)return P;const M=ft(d.value,u.value),I=ft(d.value,p.value);return l.value?{...P,transform:"translate("+M+"px, "+I+"px)",...kt(d.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:M+"px",top:I+"px"}});let x;function b(){c.value==null||d.value==null||eo(c.value,d.value,{middleware:r.value,placement:s.value,strategy:a.value}).then(P=>{u.value=P.x,p.value=P.y,f.value=P.strategy,m.value=P.placement,y.value=P.middlewareData,w.value=!0})}function O(){typeof x=="function"&&(x(),x=void 0)}function C(){if(O(),o===void 0){b();return}if(c.value!=null&&d.value!=null){x=o(c.value,d.value,b);return}}function _(){i.value||(w.value=!1)}return L([r,s,a],b,{flush:"sync"}),L([c,d],C,{flush:"sync"}),L(i,_,{flush:"sync"}),ht()&&wt(O),{x:ue(u),y:ue(p),strategy:ue(f),placement:ue(m),middlewareData:ue(y),isPositioned:ue(w),floatingStyles:g,update:b}}function te(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const r=At(o,i);if(r||r===null)return r;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Et(o,i),i)]}function Mt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}function oo(e,t){var n;const o=gt();return q(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),on(o)}function $t(e){return ht()?(wt(e),!0):!1}function Le(e){let t=!1,n;const o=rn(!0);return(...i)=>(t||(n=o.run(()=>e(...i)),t=!0),n)}function pe(e){return typeof e=="function"?e():h(e)}const he=typeof window<"u"&&typeof document<"u",io=e=>typeof e<"u",ro=Object.prototype.toString,so=e=>ro.call(e)==="[object Object]",ao=()=>{};function lo(e,t=1e4){return an((n,o)=>{let i=pe(e),r;const s=()=>setTimeout(()=>{i=pe(e),o()},pe(t));return $t(()=>{clearTimeout(r)}),{get(){return n(),i},set(a){i=a,o(),clearTimeout(r),r=s()}}})}function we(e){var t;const n=pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Nt=he?window:void 0;function uo(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Nt):[t,n,o,i]=e,!t)return ao;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},a=(d,u,p,f)=>(d.addEventListener(u,p,f),()=>d.removeEventListener(u,p,f)),l=L(()=>[we(t),pe(i)],([d,u])=>{if(s(),!d)return;const p=so(u)?{...u}:u;r.push(...n.flatMap(f=>o.map(m=>a(d,f,m,p))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return $t(c),c}function co(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function fo(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Nt,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=co(t);return uo(i,r,c=>{c.repeat&&pe(a)||l(c)&&n(c)},s)}function po(){const e=A(!1);return Ee()&&Ce(()=>{e.value=!0}),e}function mo(e){return JSON.parse(JSON.stringify(e))}function Lt(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:d=!1,defaultValue:u,shouldEmit:p}=o,f=Ee(),m=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((s=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(f==null?void 0:f.proxy));let y=c;t||(t="modelValue"),y=y||`update:${t.toString()}`;const w=b=>a?typeof a=="function"?a(b):mo(b):b,g=()=>io(e[t])?w(e[t]):u,x=b=>{p?p(b)&&m(y,b):m(y,b)};if(l){const b=g(),O=A(b);let C=!1;return L(()=>e[t],_=>{C||(C=!0,O.value=w(_),ve(()=>C=!1))}),L(O,_=>{!C&&(_!==e[t]||d)&&x(_)},{deep:d}),O}else return F({get(){return g()},set(b){x(b)}})}function ot(e){return e?e.flatMap(t=>t.type===vn?ot(t.children):[t]):[]}function vo(e,t,n,o={}){if(!t)return null;const{arrowKeyOptions:i="both",attributeName:r="data-radix-vue-collection-item",itemsArray:s=[],loop:a=!0,dir:l="ltr",preventScroll:c=!0,focus:d=!1}=o,[u,p,f,m,y,w]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],g=f||m,x=u||p;if(!y&&!w&&(!g&&!x||i==="vertical"&&x||i==="horizontal"&&g))return null;const b=n?Array.from(n.querySelectorAll(`[${r}]`)):s;if(!b.length)return null;c&&e.preventDefault();let O=null;return x||g?O=It(b,t,{goForward:g?m:l==="ltr"?u:p,loop:a}):y?O=b.at(0)||null:w&&(O=b.at(-1)||null),d&&(O==null||O.focus()),O}function It(e,t,{goForward:n,loop:o},i=e.length){if(--i===0)return null;const r=e.indexOf(t),s=n?r+1:r-1;if(!o&&(s<0||s>=e.length))return null;const a=(s+e.length)%e.length,l=e[a];return l?l.hasAttribute("disabled")&&l.getAttribute("disabled")!=="false"?It(e,l,{goForward:n,loop:o},i):l:null}function Ie(e){return e!==null&&typeof e=="object"}function Ge(e,t,n=".",o){if(!Ie(t))return Ge(e,{},n,o);const i=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const s=e[r];s!=null&&(o&&o(i,r,s,n)||(Array.isArray(s)&&Array.isArray(i[r])?i[r]=[...s,...i[r]]:Ie(s)&&Ie(i[r])?i[r]=Ge(s,i[r],(n?`${n}.`:"")+r.toString(),o):i[r]=s))}return i}function yo(e){return(...t)=>t.reduce((n,o)=>Ge(n,o,"",e),{})}const go=yo(),[Wt,Ci]=te("ConfigProvider"),ho=Le(()=>A()),wo=Le(()=>A(0));function jt(e){const t=Wt({scrollBody:A(!0)}),n=wo(),o=ho(),i=A(e),r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=o.value??"",o.value=void 0};return e&&n.value++,L(i,s=>{var a;if(he&&s){o.value===void 0&&(o.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,c={padding:l,margin:0},d=(a=t.scrollBody)!=null&&a.value?typeof t.scrollBody.value=="object"?go({padding:t.scrollBody.value.padding===!0?l:t.scrollBody.value.padding,margin:t.scrollBody.value.margin===!0?l:t.scrollBody.value.margin},c):c:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),ve(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}},{immediate:!0}),sn(()=>{e&&n.value--,n.value===0&&r()}),i}const bo="data-radix-vue-collection-item";function Ht(e,t=bo){const n=e??Symbol();return{createCollection:o=>{const i=A([]);function r(){const s=we(o);return s?i.value=Array.from(s.querySelectorAll(`[${t}]:not([data-disabled=true])`)):i.value=[]}return ln(()=>{i.value=[]}),Ce(r),un(r),L(()=>o==null?void 0:o.value,r,{immediate:!0}),Et(n,i),i},injectCollection:()=>At(n,A([]))}}function xo(e){const t=Wt({dir:A("ltr")});return F(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function it(e){const t=Ee(),n=t==null?void 0:t.type.emits,o={};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(i=>{o[dn(fn(i))]=(...r)=>e(i,...r)}),o}let We=0;function Oo(){q(e=>{if(!he)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??pt()),document.body.insertAdjacentElement("beforeend",t[1]??pt()),We++,e(()=>{We===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),We--})})}function pt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Ao(){const e=Ee();function t(n){typeof n=="object"&&(e.exposed=n,e.exposeProxy=n)}return t}var Eo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ce=new WeakMap,_e=new WeakMap,Fe={},je=0,zt=function(e){return e&&(e.host||zt(e.parentNode))},Co=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=zt(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},So=function(e,t,n,o){var i=Co(t,Array.isArray(e)?e:[e]);Fe[n]||(Fe[n]=new WeakMap);var r=Fe[n],s=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(p){if(a.has(p))d(p);else{var f=p.getAttribute(o),m=f!==null&&f!=="false",y=(ce.get(p)||0)+1,w=(r.get(p)||0)+1;ce.set(p,y),r.set(p,w),s.push(p),y===1&&m&&_e.set(p,!0),w===1&&p.setAttribute(n,"true"),m||p.setAttribute(o,"true")}})};return d(t),a.clear(),je++,function(){s.forEach(function(u){var p=ce.get(u)-1,f=r.get(u)-1;ce.set(u,p),r.set(u,f),p||(_e.has(u)||u.removeAttribute(o),_e.delete(u)),f||u.removeAttribute(n)}),je--,je||(ce=new WeakMap,ce=new WeakMap,_e=new WeakMap,Fe={})}},Po=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||Eo(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),So(o,i,n,"aria-hidden")):function(){return null}};function _o(e){let t;L(()=>we(e),n=>{n?t=Po(n):t&&t()}),Me(()=>{t&&t()})}const Fo=Le(()=>({count:A(0)}));function He(e){const{count:t}=Fo();return e||t.value++,e||`radix-${t.value}`}function To(e){const t=A(),n=F(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=F(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return Ce(()=>{const i=we(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;l=u.inlineSize,c=u.blockSize}else l=i.offsetWidth,c=i.offsetHeight;t.value={width:l,height:c}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function Bo(e,t){const n=A(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}function Do(e){const t=lo("",1e3);return{search:t,handleTypeaheadSearch:n=>{var o,i;t.value=t.value+n;const r=e.value,s=document.activeElement,a=((i=(o=r.find(u=>u===s))==null?void 0:o.textContent)==null?void 0:i.trim())??"",l=r.map(u=>{var p;return((p=u.textContent)==null?void 0:p.trim())??""}),c=ko(l,t.value,a),d=r.find(u=>{var p;return((p=u.textContent)==null?void 0:p.trim())===c});d&&d.focus()},resetTypeahead:()=>{t.value=""}}}function Ro(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function ko(e,t,n){const o=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let r=Ro(e,Math.max(i,0));o.length===1&&(r=r.filter(a=>a!==n));const s=r.find(a=>a.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}const Mo=R({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,i;if(!n.default)return null;const r=ot(n.default()),[s,...a]=r;if(Object.keys(t).length>0){(o=s.props)==null||delete o.ref;const l=K(t,s.props??{});t.class&&(i=s.props)!=null&&i.class&&delete s.props.class;const c=pn(s,l);for(const d in l)d.startsWith("on")&&(c.props||(c.props={}),c.props[d]=l[d]);return r.length===1?c:[c,...a]}return r}}}),U=R({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){return(e.asChild?"template":e.as)!=="template"?()=>Ke(e.as,t,{default:n.default}):()=>Ke(Mo,t,{default:n.default})}});function le(){const e=A(),t=F(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:we(e)});return{primitiveElement:e,currentElement:t}}function $o(e,t){const n=A({}),o=A("none"),i=e.value?"mounted":"unmounted",{state:r,dispatch:s}=Bo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});L(e,async(u,p)=>{var f;const m=p!==u;if(await ve(),m){const y=o.value,w=Te(t.value);u?s("MOUNT"):w==="none"||((f=n.value)==null?void 0:f.display)==="none"?s("UNMOUNT"):s(p&&y!==w?"ANIMATION_OUT":"UNMOUNT")}},{immediate:!0});const a=u=>{const p=Te(t.value),f=p.includes(u.animationName);u.target===t.value&&f&&s("ANIMATION_END"),u.target===t.value&&p==="none"&&s("ANIMATION_END")},l=u=>{u.target===t.value&&(o.value=Te(t.value))},c=L(t,(u,p)=>{u?(n.value=getComputedStyle(u),u.addEventListener("animationstart",l),u.addEventListener("animationcancel",a),u.addEventListener("animationend",a)):(s("ANIMATION_END"),p==null||p.removeEventListener("animationstart",l),p==null||p.removeEventListener("animationcancel",a),p==null||p.removeEventListener("animationend",a))},{immediate:!0}),d=L(r,()=>{const u=Te(t.value);o.value=r.value==="mounted"?u:"none"});return Me(()=>{c(),d()}),{isPresent:F(()=>["mounted","unmountSuspended"].includes(r.value))}}function Te(e){return e&&getComputedStyle(e).animationName||"none"}const Vt=R({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:i,forceMount:r}=Ae(e),s=A(),{isPresent:a}=$o(i,s);n({present:a});let l=t.default({present:a});l=ot(l||[]);const c=Ee();if(l&&(l==null?void 0:l.length)>1){const d=(o=c==null?void 0:c.parent)!=null&&o.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` 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(u=>` - ${u}`).join(` +import{d as R,o as D,f as Be,a as tn,i as k,n as rt,t as nn,h as Oe,k as F,u as h,j as A,v as gt,x as L,y as ue,z as ht,A as wt,B as bt,C as xt,D as q,b as de,w as T,E as K,s as Ot,G as Ae,H as Me,c as $,I as on,J as rn,K as sn,L as Ee,p as Ce,M as At,N as Et,O as an,P as ve,Q as ln,R as un,S as Ke,T as Ct,U as cn,V as dn,W as fn,X as pn,Y as mn,F as vn,_ as yn}from"./index-be8bbb8c.js";const gn=["type"],hn={key:0,class:"mt-x2 text-paragraph-x-small capitalize text-primary"},Ei=R({__name:"AppButton",props:{type:{},fullWidth:{type:Boolean,default:!1},variant:{default:"normal"},label:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,i)=>(D(),Be("div",{class:rt(["inline-flex flex-col items-center justify-center",{"w-full":o.fullWidth}])},[tn("button",{type:o.type,class:rt(["bg-surface-brand p-4 font-space-grotesk font-medium capitalize text-white hover:bg-[#633CFF] active:bg-[#5024FF]",[[o.variant==="rounded"?"rounded-full":"rounded-lg"],{"w-full":o.fullWidth}]]),onClick:i[0]||(i[0]=r=>n("click"))},[k(o.$slots,"default")],10,gn),o.label?(D(),Be("p",hn,nn(o.label),1)):Oe("",!0)],2))}}),wn=["top","right","bottom","left"],ie=Math.min,H=Math.max,De=Math.round,Pe=Math.floor,re=e=>({x:e,y:e}),bn={left:"right",right:"left",bottom:"top",top:"bottom"},xn={start:"end",end:"start"};function Ue(e,t,n){return H(e,ie(t,n))}function J(e,t){return typeof e=="function"?e(t):e}function Z(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function Je(e){return e==="x"?"y":"x"}function Ze(e){return e==="y"?"height":"width"}function ge(e){return["top","bottom"].includes(Z(e))?"y":"x"}function Qe(e){return Je(ge(e))}function On(e,t,n){n===void 0&&(n=!1);const o=ye(e),i=Qe(e),r=Ze(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Re(s)),[s,Re(s)]}function An(e){const t=Re(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>xn[t])}function En(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function Cn(e,t,n,o){const i=ye(e);let r=En(Z(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(qe)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>bn[t])}function Sn(e){return{top:0,right:0,bottom:0,left:0,...e}}function St(e){return typeof e!="number"?Sn(e):{top:e,right:e,bottom:e,left:e}}function ke(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function st(e,t,n){let{reference:o,floating:i}=e;const r=ge(t),s=Qe(t),a=Ze(s),l=Z(t),c=r==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[a]/2-i[a]/2;let f;switch(l){case"top":f={x:d,y:o.y-i.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-i.width,y:u};break;default:f={x:o.x,y:o.y}}switch(ye(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1);break}return f}const Pn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=st(c,o,l),p=o,f={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=J(e,t)||{};if(c==null)return{};const u=St(d),p={x:n,y:o},f=Qe(i),m=Ze(f),y=await s.getDimensions(c),w=f==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",O=r.reference[m]+r.reference[f]-p[f]-r.floating[m],C=p[f]-r.reference[f],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let P=_?_[b]:0;(!P||!await(s.isElement==null?void 0:s.isElement(_)))&&(P=a.floating[b]||r.floating[m]);const M=O/2-C/2,I=P/2-y[m]/2-1,v=ie(u[g],I),S=ie(u[x],I),E=v,W=P-y[m]-S,B=P/2-y[m]/2+M,N=Ue(E,B,W),j=!l.arrow&&ye(i)!=null&&B!=N&&r.reference[m]/2-(BE<=0)){var I,v;const E=(((I=r.flip)==null?void 0:I.index)||0)+1,W=C[E];if(W)return{data:{index:E,overflows:M},reset:{placement:W}};let B=(v=M.filter(N=>N.overflows[0]<=0).sort((N,j)=>N.overflows[1]-j.overflows[1])[0])==null?void 0:v.placement;if(!B)switch(f){case"bestFit":{var S;const N=(S=M.map(j=>[j.placement,j.overflows.filter(G=>G>0).reduce((G,en)=>G+en,0)]).sort((j,G)=>j[1]-G[1])[0])==null?void 0:S[0];N&&(B=N);break}case"initialPlacement":B=a;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function at(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lt(e){return wn.some(t=>e[t]>=0)}const Tn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=J(e,t);switch(o){case"referenceHidden":{const r=await be(t,{...i,elementContext:"reference"}),s=at(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lt(s)}}}case"escaped":{const r=await be(t,{...i,altBoundary:!0}),s=at(r,n.floating);return{data:{escapedOffsets:s,escaped:lt(s)}}}default:return{}}}}};async function Bn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Z(n),a=ye(n),l=ge(n)==="y",c=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=J(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const Dn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await Bn(t,e);return{x:n+i.x,y:o+i.y,data:i}}}},Rn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=J(e,t),c={x:n,y:o},d=await be(t,l),u=ge(Z(i)),p=Je(u);let f=c[p],m=c[u];if(r){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",x=f+d[w],b=f-d[g];f=Ue(x,f,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=m+d[w],b=m-d[g];m=Ue(x,m,b)}const y=a.fn({...t,[p]:f,[u]:m});return{...y,data:{x:y.x-n,y:y.y-o}}}}},kn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=J(e,t),d={x:n,y:o},u=ge(i),p=Je(u);let f=d[p],m=d[u];const y=J(a,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const b=p==="y"?"height":"width",O=r.reference[p]-r.floating[b]+w.mainAxis,C=r.reference[p]+r.reference[b]-w.mainAxis;fC&&(f=C)}if(c){var g,x;const b=p==="y"?"width":"height",O=["top","left"].includes(Z(i)),C=r.reference[u]-r.floating[b]+(O&&((g=s.offset)==null?void 0:g[u])||0)+(O?0:w.crossAxis),_=r.reference[u]+r.reference[b]+(O?0:((x=s.offset)==null?void 0:x[u])||0)-(O?w.crossAxis:0);m_&&(m=_)}return{[p]:f,[u]:m}}}},Mn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=J(e,t),l=await be(t,a),c=Z(n),d=ye(n),u=ge(n)==="y",{width:p,height:f}=o.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(y=c,m=d==="end"?"top":"bottom");const w=f-l[m],g=p-l[y],x=!t.middlewareData.shift;let b=w,O=g;if(u){const _=p-l.left-l.right;O=d||x?ie(g,_):_}else{const _=f-l.top-l.bottom;b=d||x?ie(w,_):_}if(x&&!d){const _=H(l.left,0),P=H(l.right,0),M=H(l.top,0),I=H(l.bottom,0);u?O=p-2*(_!==0||P!==0?_+P:H(l.left,l.right)):b=f-2*(M!==0||I!==0?M+I:H(l.top,l.bottom))}await s({...t,availableWidth:O,availableHeight:b});const C=await i.getDimensions(r.floating);return p!==C.width||f!==C.height?{reset:{rects:!0}}:{}}}};function se(e){return Pt(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Pt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pt(e){return e instanceof Node||e instanceof z(e).Node}function Q(e){return e instanceof Element||e instanceof z(e).Element}function X(e){return e instanceof HTMLElement||e instanceof z(e).HTMLElement}function ut(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Se(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function $n(e){return["table","td","th"].includes(se(e))}function et(e){const t=tt(),n=V(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Nn(e){let t=me(e);for(;X(t)&&!$e(t);){if(et(t))return t;t=me(t)}return null}function tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $e(e){return["html","body","#document"].includes(se(e))}function V(e){return z(e).getComputedStyle(e)}function Ne(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||ee(e);return ut(t)?t.host:t}function _t(e){const t=me(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&Se(t)?t:_t(t)}function xe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_t(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=z(i);return r?t.concat(s,s.visualViewport||[],Se(i)?i:[],s.frameElement&&n?xe(s.frameElement):[]):t.concat(i,xe(i,[],n))}function Ft(e){const t=V(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=X(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=De(n)!==r||De(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function nt(e){return Q(e)?e:e.contextElement}function fe(e){const t=nt(e);if(!X(t))return re(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Ft(t);let s=(r?De(n.width):n.width)/o,a=(r?De(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ln=re(0);function Tt(e){const t=z(e);return!tt()||!t.visualViewport?Ln:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function In(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function ae(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=nt(e);let s=re(1);t&&(o?Q(o)&&(s=fe(o)):s=fe(e));const a=In(r,n,o)?Tt(r):re(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const p=z(r),f=o&&Q(o)?z(o):o;let m=p.frameElement;for(;m&&o&&f!==p;){const y=fe(m),w=m.getBoundingClientRect(),g=V(m),x=w.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,b=w.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,u*=y.y,l+=x,c+=b,m=z(m).frameElement}}return ke({width:d,height:u,x:l,y:c})}function Wn(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=X(n),r=ee(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},a=re(1);const l=re(0);if((i||!i&&o!=="fixed")&&((se(n)!=="body"||Se(r))&&(s=Ne(n)),X(n))){const c=ae(n);a=fe(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function jn(e){return Array.from(e.getClientRects())}function Bt(e){return ae(ee(e)).left+Ne(e).scrollLeft}function Hn(e){const t=ee(e),n=Ne(e),o=e.ownerDocument.body,i=H(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=H(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Bt(e);const a=-n.scrollTop;return V(o).direction==="rtl"&&(s+=H(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function zn(e,t){const n=z(e),o=ee(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;const c=tt();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:a,y:l}}function Vn(e,t){const n=ae(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=X(e)?fe(e):re(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,l=i*r.x,c=o*r.y;return{width:s,height:a,x:l,y:c}}function ct(e,t,n){let o;if(t==="viewport")o=zn(e,n);else if(t==="document")o=Hn(ee(e));else if(Q(t))o=Vn(t,n);else{const i=Tt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return ke(o)}function Dt(e,t){const n=me(e);return n===t||!Q(n)||$e(n)?!1:V(n).position==="fixed"||Dt(n,t)}function Kn(e,t){const n=t.get(e);if(n)return n;let o=xe(e,[],!1).filter(a=>Q(a)&&se(a)!=="body"),i=null;const r=V(e).position==="fixed";let s=r?me(e):e;for(;Q(s)&&!$e(s);){const a=V(s),l=et(s);!l&&a.position==="fixed"&&(i=null),(r?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Se(s)&&!l&&Dt(e,s))?o=o.filter(d=>d!==s):i=a,s=me(s)}return t.set(e,o),o}function Un(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Kn(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,d)=>{const u=ct(t,d,i);return c.top=H(u.top,c.top),c.right=ie(u.right,c.right),c.bottom=ie(u.bottom,c.bottom),c.left=H(u.left,c.left),c},ct(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qn(e){return Ft(e)}function Xn(e,t,n){const o=X(t),i=ee(t),r=n==="fixed",s=ae(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=re(0);if(o||!o&&!r)if((se(t)!=="body"||Se(i))&&(a=Ne(t)),o){const c=ae(t,!0,r,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=Bt(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function dt(e,t){return!X(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Rt(e,t){const n=z(e);if(!X(e))return n;let o=dt(e,t);for(;o&&$n(o)&&V(o).position==="static";)o=dt(o,t);return o&&(se(o)==="html"||se(o)==="body"&&V(o).position==="static"&&!et(o))?n:o||Nn(e)||n}const Gn=async function(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||Rt,r=this.getDimensions;return{reference:Xn(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function Yn(e){return V(e).direction==="rtl"}const Jn={convertOffsetParentRelativeRectToViewportRelativeRect:Wn,getDocumentElement:ee,getClippingRect:Un,getOffsetParent:Rt,getElementRects:Gn,getClientRects:jn,getDimensions:qn,getScale:fe,isElement:Q,isRTL:Yn};function Zn(e,t){let n=null,o;const i=ee(e);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(a||t(),!u||!p)return;const f=Pe(d),m=Pe(i.clientWidth-(c+u)),y=Pe(i.clientHeight-(d+p)),w=Pe(c),x={rootMargin:-f+"px "+-m+"px "+-y+"px "+-w+"px",threshold:H(0,ie(1,l))||1};let b=!0;function O(C){const _=C[0].intersectionRatio;if(_!==l){if(!b)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(O,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,x)}n.observe(e)}return s(!0),r}function Qn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=nt(e),d=i||r?[...c?xe(c):[],...xe(t)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=c&&a?Zn(c,n):null;let p=-1,f=null;s&&(f=new ResizeObserver(g=>{let[x]=g;x&&x.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let m,y=l?ae(e):null;l&&w();function w(){const g=ae(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(g=>{i&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),u&&u(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const eo=(e,t,n)=>{const o=new Map,i={platform:Jn,...n},r={...i.platform,_c:o};return Pn(e,t,{...i,platform:r})};function Xe(e){var t;return(t=e==null?void 0:e.$el)!=null?t:e}function to(e){return{name:"arrow",options:e,fn(t){const n=Xe(h(e.element));return n==null?{}:_n({element:n,padding:e.padding}).fn(t)}}}function kt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=kt(e);return Math.round(t*n)/n}function no(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=F(()=>{var P;return(P=h(n.open))!=null?P:!0}),r=F(()=>h(n.middleware)),s=F(()=>{var P;return(P=h(n.placement))!=null?P:"bottom"}),a=F(()=>{var P;return(P=h(n.strategy))!=null?P:"absolute"}),l=F(()=>{var P;return(P=h(n.transform))!=null?P:!0}),c=F(()=>Xe(e.value)),d=F(()=>Xe(t.value)),u=A(0),p=A(0),f=A(a.value),m=A(s.value),y=gt({}),w=A(!1),g=F(()=>{const P={position:f.value,left:"0",top:"0"};if(!d.value)return P;const M=ft(d.value,u.value),I=ft(d.value,p.value);return l.value?{...P,transform:"translate("+M+"px, "+I+"px)",...kt(d.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:M+"px",top:I+"px"}});let x;function b(){c.value==null||d.value==null||eo(c.value,d.value,{middleware:r.value,placement:s.value,strategy:a.value}).then(P=>{u.value=P.x,p.value=P.y,f.value=P.strategy,m.value=P.placement,y.value=P.middlewareData,w.value=!0})}function O(){typeof x=="function"&&(x(),x=void 0)}function C(){if(O(),o===void 0){b();return}if(c.value!=null&&d.value!=null){x=o(c.value,d.value,b);return}}function _(){i.value||(w.value=!1)}return L([r,s,a],b,{flush:"sync"}),L([c,d],C,{flush:"sync"}),L(i,_,{flush:"sync"}),ht()&&wt(O),{x:ue(u),y:ue(p),strategy:ue(f),placement:ue(m),middlewareData:ue(y),isPositioned:ue(w),floatingStyles:g,update:b}}function te(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const r=At(o,i);if(r||r===null)return r;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Et(o,i),i)]}function Mt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}function oo(e,t){var n;const o=gt();return q(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),on(o)}function $t(e){return ht()?(wt(e),!0):!1}function Le(e){let t=!1,n;const o=rn(!0);return(...i)=>(t||(n=o.run(()=>e(...i)),t=!0),n)}function pe(e){return typeof e=="function"?e():h(e)}const he=typeof window<"u"&&typeof document<"u",io=e=>typeof e<"u",ro=Object.prototype.toString,so=e=>ro.call(e)==="[object Object]",ao=()=>{};function lo(e,t=1e4){return an((n,o)=>{let i=pe(e),r;const s=()=>setTimeout(()=>{i=pe(e),o()},pe(t));return $t(()=>{clearTimeout(r)}),{get(){return n(),i},set(a){i=a,o(),clearTimeout(r),r=s()}}})}function we(e){var t;const n=pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Nt=he?window:void 0;function uo(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Nt):[t,n,o,i]=e,!t)return ao;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},a=(d,u,p,f)=>(d.addEventListener(u,p,f),()=>d.removeEventListener(u,p,f)),l=L(()=>[we(t),pe(i)],([d,u])=>{if(s(),!d)return;const p=so(u)?{...u}:u;r.push(...n.flatMap(f=>o.map(m=>a(d,f,m,p))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return $t(c),c}function co(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function fo(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Nt,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=co(t);return uo(i,r,c=>{c.repeat&&pe(a)||l(c)&&n(c)},s)}function po(){const e=A(!1);return Ee()&&Ce(()=>{e.value=!0}),e}function mo(e){return JSON.parse(JSON.stringify(e))}function Lt(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:d=!1,defaultValue:u,shouldEmit:p}=o,f=Ee(),m=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((s=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(f==null?void 0:f.proxy));let y=c;t||(t="modelValue"),y=y||`update:${t.toString()}`;const w=b=>a?typeof a=="function"?a(b):mo(b):b,g=()=>io(e[t])?w(e[t]):u,x=b=>{p?p(b)&&m(y,b):m(y,b)};if(l){const b=g(),O=A(b);let C=!1;return L(()=>e[t],_=>{C||(C=!0,O.value=w(_),ve(()=>C=!1))}),L(O,_=>{!C&&(_!==e[t]||d)&&x(_)},{deep:d}),O}else return F({get(){return g()},set(b){x(b)}})}function ot(e){return e?e.flatMap(t=>t.type===vn?ot(t.children):[t]):[]}function vo(e,t,n,o={}){if(!t)return null;const{arrowKeyOptions:i="both",attributeName:r="data-radix-vue-collection-item",itemsArray:s=[],loop:a=!0,dir:l="ltr",preventScroll:c=!0,focus:d=!1}=o,[u,p,f,m,y,w]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],g=f||m,x=u||p;if(!y&&!w&&(!g&&!x||i==="vertical"&&x||i==="horizontal"&&g))return null;const b=n?Array.from(n.querySelectorAll(`[${r}]`)):s;if(!b.length)return null;c&&e.preventDefault();let O=null;return x||g?O=It(b,t,{goForward:g?m:l==="ltr"?u:p,loop:a}):y?O=b.at(0)||null:w&&(O=b.at(-1)||null),d&&(O==null||O.focus()),O}function It(e,t,{goForward:n,loop:o},i=e.length){if(--i===0)return null;const r=e.indexOf(t),s=n?r+1:r-1;if(!o&&(s<0||s>=e.length))return null;const a=(s+e.length)%e.length,l=e[a];return l?l.hasAttribute("disabled")&&l.getAttribute("disabled")!=="false"?It(e,l,{goForward:n,loop:o},i):l:null}function Ie(e){return e!==null&&typeof e=="object"}function Ge(e,t,n=".",o){if(!Ie(t))return Ge(e,{},n,o);const i=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const s=e[r];s!=null&&(o&&o(i,r,s,n)||(Array.isArray(s)&&Array.isArray(i[r])?i[r]=[...s,...i[r]]:Ie(s)&&Ie(i[r])?i[r]=Ge(s,i[r],(n?`${n}.`:"")+r.toString(),o):i[r]=s))}return i}function yo(e){return(...t)=>t.reduce((n,o)=>Ge(n,o,"",e),{})}const go=yo(),[Wt,Ci]=te("ConfigProvider"),ho=Le(()=>A()),wo=Le(()=>A(0));function jt(e){const t=Wt({scrollBody:A(!0)}),n=wo(),o=ho(),i=A(e),r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=o.value??"",o.value=void 0};return e&&n.value++,L(i,s=>{var a;if(he&&s){o.value===void 0&&(o.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,c={padding:l,margin:0},d=(a=t.scrollBody)!=null&&a.value?typeof t.scrollBody.value=="object"?go({padding:t.scrollBody.value.padding===!0?l:t.scrollBody.value.padding,margin:t.scrollBody.value.margin===!0?l:t.scrollBody.value.margin},c):c:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),ve(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}},{immediate:!0}),sn(()=>{e&&n.value--,n.value===0&&r()}),i}const bo="data-radix-vue-collection-item";function Ht(e,t=bo){const n=e??Symbol();return{createCollection:o=>{const i=A([]);function r(){const s=we(o);return s?i.value=Array.from(s.querySelectorAll(`[${t}]:not([data-disabled=true])`)):i.value=[]}return ln(()=>{i.value=[]}),Ce(r),un(r),L(()=>o==null?void 0:o.value,r,{immediate:!0}),Et(n,i),i},injectCollection:()=>At(n,A([]))}}function xo(e){const t=Wt({dir:A("ltr")});return F(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function it(e){const t=Ee(),n=t==null?void 0:t.type.emits,o={};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(i=>{o[dn(fn(i))]=(...r)=>e(i,...r)}),o}let We=0;function Oo(){q(e=>{if(!he)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??pt()),document.body.insertAdjacentElement("beforeend",t[1]??pt()),We++,e(()=>{We===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),We--})})}function pt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Ao(){const e=Ee();function t(n){typeof n=="object"&&(e.exposed=n,e.exposeProxy=n)}return t}var Eo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ce=new WeakMap,_e=new WeakMap,Fe={},je=0,zt=function(e){return e&&(e.host||zt(e.parentNode))},Co=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=zt(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},So=function(e,t,n,o){var i=Co(t,Array.isArray(e)?e:[e]);Fe[n]||(Fe[n]=new WeakMap);var r=Fe[n],s=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(p){if(a.has(p))d(p);else{var f=p.getAttribute(o),m=f!==null&&f!=="false",y=(ce.get(p)||0)+1,w=(r.get(p)||0)+1;ce.set(p,y),r.set(p,w),s.push(p),y===1&&m&&_e.set(p,!0),w===1&&p.setAttribute(n,"true"),m||p.setAttribute(o,"true")}})};return d(t),a.clear(),je++,function(){s.forEach(function(u){var p=ce.get(u)-1,f=r.get(u)-1;ce.set(u,p),r.set(u,f),p||(_e.has(u)||u.removeAttribute(o),_e.delete(u)),f||u.removeAttribute(n)}),je--,je||(ce=new WeakMap,ce=new WeakMap,_e=new WeakMap,Fe={})}},Po=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||Eo(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),So(o,i,n,"aria-hidden")):function(){return null}};function _o(e){let t;L(()=>we(e),n=>{n?t=Po(n):t&&t()}),Me(()=>{t&&t()})}const Fo=Le(()=>({count:A(0)}));function He(e){const{count:t}=Fo();return e||t.value++,e||`radix-${t.value}`}function To(e){const t=A(),n=F(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=F(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return Ce(()=>{const i=we(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;l=u.inlineSize,c=u.blockSize}else l=i.offsetWidth,c=i.offsetHeight;t.value={width:l,height:c}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function Bo(e,t){const n=A(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}function Do(e){const t=lo("",1e3);return{search:t,handleTypeaheadSearch:n=>{var o,i;t.value=t.value+n;const r=e.value,s=document.activeElement,a=((i=(o=r.find(u=>u===s))==null?void 0:o.textContent)==null?void 0:i.trim())??"",l=r.map(u=>{var p;return((p=u.textContent)==null?void 0:p.trim())??""}),c=ko(l,t.value,a),d=r.find(u=>{var p;return((p=u.textContent)==null?void 0:p.trim())===c});d&&d.focus()},resetTypeahead:()=>{t.value=""}}}function Ro(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function ko(e,t,n){const o=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let r=Ro(e,Math.max(i,0));o.length===1&&(r=r.filter(a=>a!==n));const s=r.find(a=>a.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}const Mo=R({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,i;if(!n.default)return null;const r=ot(n.default()),[s,...a]=r;if(Object.keys(t).length>0){(o=s.props)==null||delete o.ref;const l=K(t,s.props??{});t.class&&(i=s.props)!=null&&i.class&&delete s.props.class;const c=pn(s,l);for(const d in l)d.startsWith("on")&&(c.props||(c.props={}),c.props[d]=l[d]);return r.length===1?c:[c,...a]}return r}}}),U=R({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){return(e.asChild?"template":e.as)!=="template"?()=>Ke(e.as,t,{default:n.default}):()=>Ke(Mo,t,{default:n.default})}});function le(){const e=A(),t=F(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:we(e)});return{primitiveElement:e,currentElement:t}}function $o(e,t){const n=A({}),o=A("none"),i=e.value?"mounted":"unmounted",{state:r,dispatch:s}=Bo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});L(e,async(u,p)=>{var f;const m=p!==u;if(await ve(),m){const y=o.value,w=Te(t.value);u?s("MOUNT"):w==="none"||((f=n.value)==null?void 0:f.display)==="none"?s("UNMOUNT"):s(p&&y!==w?"ANIMATION_OUT":"UNMOUNT")}},{immediate:!0});const a=u=>{const p=Te(t.value),f=p.includes(u.animationName);u.target===t.value&&f&&s("ANIMATION_END"),u.target===t.value&&p==="none"&&s("ANIMATION_END")},l=u=>{u.target===t.value&&(o.value=Te(t.value))},c=L(t,(u,p)=>{u?(n.value=getComputedStyle(u),u.addEventListener("animationstart",l),u.addEventListener("animationcancel",a),u.addEventListener("animationend",a)):(s("ANIMATION_END"),p==null||p.removeEventListener("animationstart",l),p==null||p.removeEventListener("animationcancel",a),p==null||p.removeEventListener("animationend",a))},{immediate:!0}),d=L(r,()=>{const u=Te(t.value);o.value=r.value==="mounted"?u:"none"});return Me(()=>{c(),d()}),{isPresent:F(()=>["mounted","unmountSuspended"].includes(r.value))}}function Te(e){return e&&getComputedStyle(e).animationName||"none"}const Vt=R({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:i,forceMount:r}=Ae(e),s=A(),{isPresent:a}=$o(i,s);n({present:a});let l=t.default({present:a});l=ot(l||[]);const c=Ee();if(l&&(l==null?void 0:l.length)>1){const d=(o=c==null?void 0:c.parent)!=null&&o.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` 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(u=>` - ${u}`).join(` `)].join(` `))}return()=>r.value||i.value||a.value?Ke(t.default({present:a})[0],{ref:d=>{const u=we(d);return typeof(u==null?void 0:u.hasAttribute)>"u"||(u!=null&&u.hasAttribute("data-radix-popper-content-wrapper")?s.value=u.firstChild:s.value=u),u}}):null}}),[ne,No]=te("DialogRoot"),Si=R({__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,o=Lt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=A(),r=A(),{modal:s}=Ae(n);return No({open:o,modal:s,openModal:()=>{o.value=!0},onOpenChange:a=>{o.value=a},onOpenToggle:()=>{o.value=!o.value},contentId:He(),titleId:He(),descriptionId:He(),triggerElement:i,contentElement:r}),(a,l)=>k(a.$slots,"default")}}),Lo=R({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=po();return(n,o)=>h(t)||n.forceMount?(D(),$(mn,{key:0,to:n.to,disabled:n.disabled},[k(n.$slots,"default")],8,["to","disabled"])):Oe("",!0)}}),Pi=R({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(D(),$(h(Lo),Ct(cn(t)),{default:T(()=>[k(n.$slots,"default")]),_:3},16))}}),Io="dismissableLayer.pointerDownOutside",Wo="dismissableLayer.focusOutside";function Kt(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||i.indexOf(o){});return q(s=>{if(!he)return;const a=async c=>{if(t!=null&&t.value){if(Kt(t.value,c.target)){i.value=!1;return}if(c.target&&!i.value){let d=function(){Mt(Io,e,u)};const u={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=d,o.addEventListener("click",r.value,{once:!0})):d()}else o.removeEventListener("click",r.value);i.value=!1}},l=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);s(()=>{window.clearTimeout(l),o.removeEventListener("pointerdown",a),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>i.value=!0}}function Ho(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=A(!1);return q(r=>{if(!he)return;const s=async a=>{t!=null&&t.value&&(await ve(),!Kt(t.value,a.target)&&a.target&&!i.value&&Mt(Wo,e,{originalEvent:a}))};o.addEventListener("focusin",s),r(()=>o.removeEventListener("focusin",s))}),{onFocusCapture:()=>i.value=!0,onBlurCapture:()=>i.value=!1}}const Y=bt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ut=R({__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,o=t,{primitiveElement:i,currentElement:r}=le(),s=F(()=>{var m;return((m=r.value)==null?void 0:m.ownerDocument)??globalThis.document}),a=F(()=>Y.layersRoot),l=F(()=>r.value?Array.from(a.value).indexOf(r.value):-1),c=F(()=>Y.layersWithOutsidePointerEventsDisabled.size>0),d=F(()=>{const m=Array.from(a.value),[y]=[...Y.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(y);return l.value>=w}),u=jo(async m=>{const y=[...Y.branches].some(w=>w.contains(m.target));!d.value||y||(o("pointerDownOutside",m),o("interactOutside",m),await ve(),m.defaultPrevented||o("dismiss"))},r),p=Ho(m=>{[...Y.branches].some(y=>y.contains(m.target))||(o("focusOutside",m),o("interactOutside",m),m.defaultPrevented||o("dismiss"))},r);fo("Escape",m=>{l.value===a.value.size-1&&(o("escapeKeyDown",m),m.defaultPrevented||o("dismiss"))});let f;return q(m=>{r.value&&(n.disableOutsidePointerEvents&&(Y.layersWithOutsidePointerEventsDisabled.size===0&&(f=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),Y.layersWithOutsidePointerEventsDisabled.add(r.value)),a.value.add(r.value),m(()=>{n.disableOutsidePointerEvents&&Y.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=f)}))}),q(m=>{m(()=>{r.value&&(a.value.delete(r.value),Y.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(m,y)=>(D(),$(h(U),{ref_key:"primitiveElement",ref:i,"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:Ot({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:h(p).onFocusCapture,onBlurCapture:h(p).onBlurCapture,onPointerdownCapture:h(u).onPointerDownCapture},{default:T(()=>[k(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),ze="focusScope.autoFocusOnMount",Ve="focusScope.autoFocusOnUnmount",mt={bubbles:!1,cancelable:!0};function zo(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(oe(o,{select:t}),document.activeElement!==n)return!0}function Vo(e){const t=qt(e),n=vt(t,e),o=vt(t.reverse(),e);return[n,o]}function qt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vt(e,t){for(const n of e)if(!Ko(n,{upTo:t}))return n}function Ko(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 Uo(e){return e instanceof HTMLInputElement&&"select"in e}function oe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Uo(e)&&t&&e.select()}}const qo=Le(()=>A([]));function Xo(){const e=qo();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=yt(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=yt(e.value,t),(n=e.value[0])==null||n.resume()}}}function yt(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Go(e){return e.filter(t=>t.tagName!=="A")}const Xt=R({__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,o=t,{primitiveElement:i,currentElement:r}=le(),s=A(null),a=Xo(),l=bt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});q(d=>{if(!he)return;const u=r.value;if(!n.trapped)return;function p(w){if(l.paused||!u)return;const g=w.target;u.contains(g)?s.value=g:oe(s.value,{select:!0})}function f(w){if(l.paused||!u)return;const g=w.relatedTarget;g!==null&&(u.contains(g)||oe(s.value,{select:!0}))}function m(w){u.contains(s.value)||oe(u)}document.addEventListener("focusin",p),document.addEventListener("focusout",f);const y=new MutationObserver(m);u&&y.observe(u,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",f),y.disconnect()})}),q(async d=>{const u=r.value;if(await ve(),!u)return;a.add(l);const p=document.activeElement;if(!u.contains(p)){const f=new CustomEvent(ze,mt);u.addEventListener(ze,m=>o("mountAutoFocus",m)),u.dispatchEvent(f),f.defaultPrevented||(zo(Go(qt(u)),{select:!0}),document.activeElement===p&&oe(u))}d(()=>{u.removeEventListener(ze,y=>o("mountAutoFocus",y));const f=new CustomEvent(Ve,mt),m=y=>{o("unmountAutoFocus",y)};u.addEventListener(Ve,m),u.dispatchEvent(f),setTimeout(()=>{f.defaultPrevented||oe(p??document.body,{select:!0}),u.removeEventListener(Ve,m),a.remove(l)},0)})});function c(d){if(!n.loop&&!n.trapped||l.paused)return;const u=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,p=document.activeElement;if(u&&p){const f=d.currentTarget,[m,y]=Vo(f);m&&y?!d.shiftKey&&p===y?(d.preventDefault(),n.loop&&oe(m,{select:!0})):d.shiftKey&&p===m&&(d.preventDefault(),n.loop&&oe(y,{select:!0})):p===f&&d.preventDefault()}}return(d,u)=>(D(),$(h(U),{ref_key:"primitiveElement",ref:i,tabindex:"-1","as-child":n.asChild,as:n.as,onKeydown:c},{default:T(()=>[k(d.$slots,"default")]),_:3},8,["as-child","as"]))}}),Yo=["ArrowDown","PageUp","Home"],Gt=["ArrowUp","PageDown","End"],Jo=[...Yo,...Gt];function Yt(e){return e?"open":"closed"}function Zo(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qo(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;ro!=d>o&&n<(c-a)*(o-l)/(d-l)+a&&(i=!i)}return i}function ei(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Qo(n,t)}function ti(e){return e.pointerType==="mouse"}const Jt=R({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,i=ne(),{primitiveElement:r,currentElement:s}=le();return Ce(()=>{i.contentElement=s}),(a,l)=>(D(),$(h(Xt),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>o("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>o("closeAutoFocus",c))},{default:T(()=>[de(h(Ut),K({id:h(i).contentId,ref_key:"primitiveElement",ref:r,as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":h(i).descriptionId,"aria-labelledby":h(i).titleId,"data-state":h(Yt)(h(i).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>h(i).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>o("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>o("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>o("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>o("pointerDownOutside",c))}),{default:T(()=>[k(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),ni=R({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,i=ne(),r=it(o),{primitiveElement:s,currentElement:a}=le();return _o(a),(l,c)=>(D(),$(Jt,K({ref_key:"primitiveElement",ref:s},{...n,...h(r)},{"trap-focus":h(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=d=>{var u;o("closeAutoFocus",d),d.defaultPrevented||(d.preventDefault(),(u=h(i).triggerElement.value)==null||u.focus())}),onPointerDownOutside:c[1]||(c[1]=d=>{const u=d.detail.originalEvent,p=u.button===0&&u.ctrlKey===!0;(u.button===2||p)&&d.preventDefault()}),onFocusOutside:c[2]||(c[2]=d=>{d.preventDefault()}),onOpenAutoFocus:c[3]||(c[3]=d=>o("openAutoFocus",d))}),{default:T(()=>[k(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),oi=R({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,i=it(o),r=ne(),s=A(!1),a=A(!1);return(l,c)=>(D(),$(Jt,K({...n,...h(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{var u;o("closeAutoFocus",d),d.defaultPrevented||(s.value||(u=h(r).triggerElement.value)==null||u.focus(),d.preventDefault()),s.value=!1,a.value=!1}),onInteractOutside:c[1]||(c[1]=d=>{var u;d.defaultPrevented||(s.value=!0,d.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const p=d.target;(u=h(r).triggerElement.value)!=null&&u.contains(p)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&a.value&&d.preventDefault()})}),{default:T(()=>[k(l.$slots,"default")]),_:3},16))}}),_i=R({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,i=ne(),r=it(o);return(s,a)=>(D(),$(h(Vt),{present:s.forceMount||h(i).open.value},{default:T(()=>[h(i).modal.value?(D(),$(ni,K({key:0},{...n,...h(r),...s.$attrs},{onOpenAutoFocus:a[0]||(a[0]=l=>o("openAutoFocus",l))}),{default:T(()=>[k(s.$slots,"default")]),_:3},16)):(D(),$(oi,Ct(K({key:1},{...n,...h(r),...s.$attrs})),{default:T(()=>[k(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),ii=R({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{type:[String,Object,Function]}},setup(e){const t=ne();return jt(!0),(n,o)=>(D(),$(h(U),{as:n.as,"as-child":n.asChild,"data-state":h(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:T(()=>[k(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Fi=R({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]}},setup(e){const t=ne();return(n,o)=>{var i;return(i=h(t))!=null&&i.modal.value?(D(),$(h(Vt),{key:0,present:n.forceMount||h(t).open.value},{default:T(()=>[de(ii,K({as:n.as,"as-child":n.asChild},n.$attrs),{default:T(()=>[k(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Oe("",!0)}}}),Ti=R({__name:"DialogClose",props:{asChild:{type:Boolean},as:{type:[String,Object,Function],default:"button"}},setup(e){const t=e,n=ne();return(o,i)=>(D(),$(h(U),K(t,{type:o.as==="button"?"button":void 0,onClick:i[0]||(i[0]=r=>h(n).onOpenChange(!1))}),{default:T(()=>[k(o.$slots,"default")]),_:3},16,["type"]))}}),Bi=R({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{type:[String,Object,Function],default:"h2"}},setup(e){const t=e,n=ne();return(o,i)=>(D(),$(h(U),K(t,{id:h(n).titleId}),{default:T(()=>[k(o.$slots,"default")]),_:3},16,["id"]))}}),Di=R({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{type:[String,Object,Function],default:"p"}},setup(e){const t=e,n=ne();return(o,i)=>(D(),$(h(U),K(t,{id:h(n).descriptionId}),{default:T(()=>[k(o.$slots,"default")]),_:3},16,["id"]))}}),[Zt,ri]=te("AvatarRoot"),Ri=R({__name:"AvatarRoot",props:{asChild:{type:Boolean},as:{type:[String,Object,Function],default:"span"}},setup(e){const t=e;return ri({imageLoadingStatus:A("loading")}),(n,o)=>(D(),$(h(U),{as:n.as,"as-child":t.asChild},{default:T(()=>[k(n.$slots,"default")]),_:3},8,["as","as-child"]))}});function si(e){const t=A("idle"),n=A(!1),o=i=>()=>{n.value&&(t.value=i)};return Ce(()=>{n.value=!0,L(e,i=>{if(!i)t.value="error";else{const r=new window.Image;t.value="loading",r.onload=o("loaded"),r.onerror=o("error"),r.src=i}},{immediate:!0})}),Me(()=>{n.value=!1}),t}const ki=R({__name:"AvatarImage",props:{src:{},asChild:{type:Boolean},as:{type:[String,Object,Function],default:"img"}},emits:["loadingStatusChange"],setup(e,{emit:t}){const n=e,o=t,{src:i}=Ae(n),r=Zt(),s=si(i);return L(s,a=>{o("loadingStatusChange",a),a!=="idle"&&(r.imageLoadingStatus.value=a)},{immediate:!0}),(a,l)=>h(s)==="loaded"?(D(),$(h(U),{key:0,role:"img","as-child":a.asChild,as:a.as,src:h(i)},{default:T(()=>[k(a.$slots,"default")]),_:3},8,["as-child","as","src"])):Oe("",!0)}}),Mi=R({__name:"AvatarFallback",props:{delayMs:{default:0},asChild:{type:Boolean},as:{type:[String,Object,Function],default:"span"}},setup(e){const t=e,n=Zt(),o=A(!1);let i;return L(n.imageLoadingStatus,r=>{r==="loading"&&(o.value=!1,t.delayMs?i=setTimeout(()=>{o.value=!0,clearTimeout(i)},t.delayMs):o.value=!0)},{immediate:!0}),(r,s)=>o.value&&h(n).imageLoadingStatus.value!=="loaded"?(D(),$(h(U),{key:0,"as-child":t.asChild,as:r.as},{default:T(()=>[k(r.$slots,"default")]),_:3},8,["as-child","as"])):Oe("",!0)}}),[ai,$i]=te("PopperRoot");function li(e){return e!==null}function ui(e){return{name:"transformOrigin",options:e,fn(t){var n,o,i;const{placement:r,rects:s,middlewareData:a}=t,l=((n=a.arrow)==null?void 0:n.centerOffset)!==0,c=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[u,p]=Ye(r),f={start:"0%",center:"50%",end:"100%"}[p],m=(((o=a.arrow)==null?void 0:o.x)??0)+c/2,y=(((i=a.arrow)==null?void 0:i.y)??0)+d/2;let w="",g="";return u==="bottom"?(w=l?f:`${m}px`,g=`${-d}px`):u==="top"?(w=l?f:`${m}px`,g=`${s.floating.height+d}px`):u==="right"?(w=`${-d}px`,g=l?f:`${y}px`):u==="left"&&(w=`${s.floating.width+d}px`,g=l?f:`${y}px`),{data:{x:w,y:g}}}}}function Ye(e){const[t,n="center"]=e.split("-");return[t,n]}const Qt={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[Ni,ci]=te("PopperContent"),di=R({inheritAttrs:!1,__name:"PopperContent",props:xt({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},onPlaced:{type:Function},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]}},{...Qt}),setup(e,{expose:t}){const n=e,o=ai(),i=Ao(),{primitiveElement:r,currentElement:s}=le(),a=A(),l=A(),{width:c,height:d}=To(l),u=F(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=F(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=F(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=F(()=>({padding:p.value,boundary:f.value.filter(li),altBoundary:f.value.length>0})),y=oo(()=>[Dn({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.avoidCollisions&&Rn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?kn():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&Fn({...m.value}),Mn({...m.value,apply:({elements:v,rects:S,availableWidth:E,availableHeight:W})=>{const{width:B,height:N}=S.reference,j=v.floating.style;Object.assign(v.floating.style,{maxWidth:`${E}px`,maxHeight:`${W}px`}),j.setProperty("--radix-popper-available-width",`${E}px`),j.setProperty("--radix-popper-available-height",`${W}px`),j.setProperty("--radix-popper-anchor-width",`${B}px`),j.setProperty("--radix-popper-anchor-height",`${N}px`)}}),l.value&&to({element:l.value,padding:n.arrowPadding}),ui({arrowWidth:c.value,arrowHeight:d.value}),n.hideWhenDetached&&Tn({strategy:"referenceHidden",...m.value})]),{floatingStyles:w,placement:g,isPositioned:x,middlewareData:b}=no(o.anchor,a,{strategy:"fixed",placement:u,whileElementsMounted:(...v)=>Qn(...v,{animationFrame:n.updatePositionStrategy==="always"}),middleware:y}),O=F(()=>Ye(g.value)[0]),C=F(()=>Ye(g.value)[1]);q(()=>{var v;x.value&&((v=n.onPlaced)==null||v.call(n))});const _=F(()=>{var v;return((v=b.value.arrow)==null?void 0:v.centerOffset)!==0}),P=A("");q(()=>{s.value&&(P.value=window.getComputedStyle(s.value).zIndex)});const M=F(()=>{var v;return((v=b.value.arrow)==null?void 0:v.x)??0}),I=F(()=>{var v;return((v=b.value.arrow)==null?void 0:v.y)??0});return ci({placedSide:O,onArrowChange:v=>l.value=v,arrowX:M,arrowY:I,shouldHideArrow:_}),t({$el:s}),(v,S)=>{var E,W,B;return D(),Be("div",{ref_key:"floatingRef",ref:a,"data-radix-popper-content-wrapper":"",style:Ot({...h(w),transform:h(x)?h(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:P.value,"--radix-popper-transform-origin":[(E=h(b).transformOrigin)==null?void 0:E.x,(W=h(b).transformOrigin)==null?void 0:W.y].join(" ")})},[de(h(U),K({ref:N=>{h(i)(N),r.value=N}},v.$attrs,{"as-child":n.asChild,as:v.as,"data-side":O.value,"data-align":C.value,style:{animation:h(x)?void 0:"none",opacity:(B=h(b).hide)!=null&&B.referenceHidden?0:void 0}}),{default:T(()=>[k(v.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),[fi,Li]=te(["MenuRoot","MenuSub"],"MenuContext"),[pi,Ii]=te("MenuRoot"),mi="rovingFocusGroup.onEntryFocus",vi={bubbles:!1,cancelable:!0};function yi(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}const[Wi,gi]=te("RovingFocusGroup"),hi=R({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(e,{emit:t}){const n=e,o=t,{loop:i,orientation:r,dir:s}=Ae(n),a=xo(s),l=Lt(n,"currentTabStopId",o,{defaultValue:n.defaultCurrentTabStopId,passive:n.currentTabStopId===void 0}),c=A(!1),d=A(!1),u=A(0),{primitiveElement:p,currentElement:f}=le(),{createCollection:m}=Ht("rovingFocus"),y=m(f);function w(g){const x=!d.value;if(g.currentTarget&&g.target===g.currentTarget&&x&&!c.value){const b=new CustomEvent(mi,vi);if(g.currentTarget.dispatchEvent(b),o("entryFocus",b),!b.defaultPrevented){const O=y.value,C=O.find(M=>M.getAttribute("data-active")==="true"),_=O.find(M=>M.id===l.value),P=[C,_,...O].filter(Boolean);yi(P)}}d.value=!1}return gi({loop:i,dir:a,orientation:r,currentTabStopId:l,onItemFocus:g=>{l.value=g},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{u.value++},onFocusableItemRemove:()=>{u.value--}}),(g,x)=>(D(),$(h(U),{ref_key:"primitiveElement",ref:p,tabindex:c.value||u.value===0?-1:0,"data-orientation":h(r),as:g.as,"as-child":g.asChild,dir:h(a),style:{outline:"none"},onMousedown:x[0]||(x[0]=b=>d.value=!0),onFocus:w,onBlur:x[1]||(x[1]=b=>c.value=!1)},{default:T(()=>[k(g.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"]))}}),[ji,wi]=te("MenuContent");xt({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:{type:[String,Object,Function]}},{...Qt});const bi={},xi={class:"divider"};function Oi(e,t){return D(),Be("hr",xi)}const Hi=yn(bi,[["render",Oi],["__scopeId","data-v-bf9c9191"]]);export{Hi as A,Ti as D,Si as P,_i as Z,Ei as _,Pi as a,He as b,Ri as c,Fi as e,Mi as f,Di as o,ki as p,Bi as t}; diff --git a/docs/assets/BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js b/docs/assets/BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js similarity index 94% rename from docs/assets/BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js rename to docs/assets/BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js index 1bf2609..163d210 100644 --- a/docs/assets/BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js +++ b/docs/assets/BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js @@ -1 +1 @@ -import{_ as u,o as l,f as s,a as t,d as _,t as i,h as c,n as p,b as h,i as a}from"./index-bc0f2b7e.js";import{b as m,A as x}from"./AppDivider-d3b10cf8.js";const b={},y={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C=t("path",{d:"M11.9998 9.50414V13.5041M11.9998 17.5041H12.0098M10.6151 4.39586L2.39019 18.6025C1.93398 19.3905 1.70588 19.7845 1.73959 20.1078C1.769 20.3899 1.91677 20.6462 2.14613 20.8129C2.40908 21.0041 2.86435 21.0041 3.77487 21.0041H20.2246C21.1352 21.0041 21.5904 21.0041 21.8534 20.8129C22.0827 20.6462 22.2305 20.3899 22.2599 20.1078C22.2936 19.7845 22.0655 19.3905 21.6093 18.6025L13.3844 4.39586C12.9299 3.61069 12.7026 3.21811 12.4061 3.08626C12.1474 2.97125 11.8521 2.97125 11.5935 3.08626C11.2969 3.21811 11.0696 3.6107 10.6151 4.39586Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),w=[C];function g(r,o){return l(),s("svg",y,w)}const v=u(b,[["render",g]]),$=["for"],k=["id","type","placeholder"],B={key:1,class:"mt-2 flex items-center"},V={class:"text-xs text-[#F26060]"},I=_({__name:"TextInput",props:{id:{default:()=>m()},label:{},placeholder:{},type:{default:"text"},error:{},hideLabel:{type:Boolean},fullWidth:{type:Boolean},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:o}){const n=o;function f(e){const d=e.target;n("update:modelValue",d.value)}return(e,d)=>(l(),s("div",{class:p(["inline-block",{"w-full":e.fullWidth}])},[e.label&&!e.hideLabel?(l(),s("label",{key:0,for:e.id,class:"mb-2 block w-full capitalize text-white"},i(e.label),9,$)):c("",!0),t("input",{id:e.id,class:p(["text-input w-full rounded-lg border border-[#334155] bg-[#0F172A] p-4 text-[#CBD5E1] placeholder:capitalize placeholder:text-[#64748B]",{error:e.error}]),type:e.type,placeholder:e.placeholder,onInput:f},null,42,k),e.error?(l(),s("div",B,[h(v,{class:"mr-1 h-4 w-auto text-[#F26060]"}),t("p",V,i(e.error),1)])):c("",!0)],2))}});const D=u(I,[["__scopeId","data-v-a23fe67e"]]),A={class:"h-screen-d bg-[#0F172A]"},L={class:"px-x4 py-x3 flex flex-col h-full max-w-3xl mx-auto"},F={class:"flex flex-col flex-grow"},M=_({__name:"BaseLayout",setup(r){return(o,n)=>(l(),s("article",A,[t("div",L,[t("header",null,[a(o.$slots,"header")]),h(x,{class:"my-3"}),t("main",F,[a(o.$slots,"body")]),t("footer",null,[a(o.$slots,"footer")])])]))}});export{D as T,M as _}; +import{_ as u,o as l,f as s,a as t,d as _,t as i,h as c,n as p,b as h,i as a}from"./index-be8bbb8c.js";import{b as m,A as x}from"./AppDivider-0549cd27.js";const b={},y={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C=t("path",{d:"M11.9998 9.50414V13.5041M11.9998 17.5041H12.0098M10.6151 4.39586L2.39019 18.6025C1.93398 19.3905 1.70588 19.7845 1.73959 20.1078C1.769 20.3899 1.91677 20.6462 2.14613 20.8129C2.40908 21.0041 2.86435 21.0041 3.77487 21.0041H20.2246C21.1352 21.0041 21.5904 21.0041 21.8534 20.8129C22.0827 20.6462 22.2305 20.3899 22.2599 20.1078C22.2936 19.7845 22.0655 19.3905 21.6093 18.6025L13.3844 4.39586C12.9299 3.61069 12.7026 3.21811 12.4061 3.08626C12.1474 2.97125 11.8521 2.97125 11.5935 3.08626C11.2969 3.21811 11.0696 3.6107 10.6151 4.39586Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),w=[C];function g(r,o){return l(),s("svg",y,w)}const v=u(b,[["render",g]]),$=["for"],k=["id","type","placeholder"],B={key:1,class:"mt-2 flex items-center"},V={class:"text-xs text-[#F26060]"},I=_({__name:"TextInput",props:{id:{default:()=>m()},label:{},placeholder:{},type:{default:"text"},error:{},hideLabel:{type:Boolean},fullWidth:{type:Boolean},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:o}){const n=o;function f(e){const d=e.target;n("update:modelValue",d.value)}return(e,d)=>(l(),s("div",{class:p(["inline-block",{"w-full":e.fullWidth}])},[e.label&&!e.hideLabel?(l(),s("label",{key:0,for:e.id,class:"mb-2 block w-full capitalize text-white"},i(e.label),9,$)):c("",!0),t("input",{id:e.id,class:p(["text-input w-full rounded-lg border border-[#334155] bg-[#0F172A] p-4 text-[#CBD5E1] placeholder:capitalize placeholder:text-[#64748B]",{error:e.error}]),type:e.type,placeholder:e.placeholder,onInput:f},null,42,k),e.error?(l(),s("div",B,[h(v,{class:"mr-1 h-4 w-auto text-[#F26060]"}),t("p",V,i(e.error),1)])):c("",!0)],2))}});const D=u(I,[["__scopeId","data-v-a23fe67e"]]),A={class:"h-screen-d bg-[#0F172A]"},L={class:"px-x4 py-x3 flex flex-col h-full max-w-3xl mx-auto"},F={class:"flex flex-col flex-grow"},M=_({__name:"BaseLayout",setup(r){return(o,n)=>(l(),s("article",A,[t("div",L,[t("header",null,[a(o.$slots,"header")]),h(x,{class:"my-3"}),t("main",F,[a(o.$slots,"body")]),t("footer",null,[a(o.$slots,"footer")])])]))}});export{D as T,M as _}; diff --git a/docs/assets/ChooseNamePage-33882997.js b/docs/assets/ChooseNamePage-5d126b5e.js similarity index 80% rename from docs/assets/ChooseNamePage-33882997.js rename to docs/assets/ChooseNamePage-5d126b5e.js index bd8628f..4f81408 100644 --- a/docs/assets/ChooseNamePage-33882997.js +++ b/docs/assets/ChooseNamePage-5d126b5e.js @@ -1 +1 @@ -import{_ as o}from"./AppDivider-d3b10cf8.js";import{T as n,_ as l}from"./BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js";import{d as c,r,o as i,c as m,w as e,a as t,b as a,e as _}from"./index-bc0f2b7e.js";const d=t("section",{class:"py-3"},[t("h1",{class:"font-space-grotesk text-2xl font-bold text-[#F1F5F9]"}," Give yourself a nickname "),t("p",{class:"mt-2 text-sm leading-5 text-[#CBD5E1]"}," Nicknames are like secret agent codenames for devices within a shared file-sharing room. ")],-1),f={class:"flex flex-grow flex-col justify-between pt-3"},g=c({__name:"ChooseNamePage",setup(p){return(u,h)=>{const s=r("RouterLink");return i(),m(l,null,{header:e(()=>[d]),body:e(()=>[t("div",f,[a(n,{class:"w-full",label:"Enter your nickname",placeholder:"Enter your nickname","hide-label":"","full-width":""}),a(s,{to:{name:"listSpaces"}},{default:e(()=>[a(o,{"full-width":""},{default:e(()=>[_("let's go")]),_:1})]),_:1})])]),_:1})}}});export{g as default}; +import{_ as o}from"./AppDivider-0549cd27.js";import{T as n,_ as l}from"./BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js";import{d as c,r,o as i,c as m,w as e,a as t,b as a,e as _}from"./index-be8bbb8c.js";const d=t("section",{class:"py-3"},[t("h1",{class:"font-space-grotesk text-2xl font-bold text-[#F1F5F9]"}," Give yourself a nickname "),t("p",{class:"mt-2 text-sm leading-5 text-[#CBD5E1]"}," Nicknames are like secret agent codenames for devices within a shared file-sharing room. ")],-1),f={class:"flex flex-grow flex-col justify-between pt-3"},g=c({__name:"ChooseNamePage",setup(p){return(u,h)=>{const s=r("RouterLink");return i(),m(l,null,{header:e(()=>[d]),body:e(()=>[t("div",f,[a(n,{class:"w-full",label:"Enter your nickname",placeholder:"Enter your nickname","hide-label":"","full-width":""}),a(s,{to:{name:"listSpaces"}},{default:e(()=>[a(o,{"full-width":""},{default:e(()=>[_("let's go")]),_:1})]),_:1})])]),_:1})}}});export{g as default}; diff --git a/docs/assets/ListSpacesPage-0d2f642a.js b/docs/assets/ListSpacesPage-b8d4a584.js similarity index 70% rename from docs/assets/ListSpacesPage-0d2f642a.js rename to docs/assets/ListSpacesPage-b8d4a584.js index 73f7553..7bc5342 100644 --- a/docs/assets/ListSpacesPage-0d2f642a.js +++ b/docs/assets/ListSpacesPage-b8d4a584.js @@ -1 +1 @@ -import{e as k,Z as D,t as M,D as j,o as B,a as L,P as A,_ as w}from"./AppDivider-d3b10cf8.js";import{_ as g,o as r,f as b,a as e,d as m,c as f,w as n,b as a,u as i,g as C,h as V,e as y,t as _,i as I,j as $,k as P,n as x,l as N}from"./index-bc0f2b7e.js";import{T as z,_ as T}from"./BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js";import{S,P as U}from"./PlusIcon-61e9a251.js";const Z={},E={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F=e("g",{id:"x"},[e("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"currentColor"})],-1),H=[F];function R(d,s){return r(),b("svg",E,H)}const W=g(Z,[["render",R]]),X={class:"px-x4 py-x3"},Y={class:"flex items-center justify-between"},q={class:"flex items-center"},G=m({__name:"AppDialog",props:{open:{type:Boolean},title:{},description:{},icon:{}},emits:["update:open","close"],setup(d,{emit:s}){const o=s;function l(t){o("update:open",t),t||o("close")}return(t,p)=>(r(),f(i(A),{open:t.open,"onUpdate:open":l},{default:n(()=>[a(i(L),null,{default:n(()=>[a(i(k),{class:"overlay"}),a(i(D),{as:"article",class:"content rounded-medium bg-surface-primary text-primary py-x3 border-primary border"},{default:n(()=>[e("header",X,[e("div",Y,[e("div",q,[t.icon?(r(),f(C(t.icon),{key:0,class:"text-surface-brand h-6 w-auto"})):V("",!0),a(i(M),{class:"text-heading-small font-space-grotesk ml-2 font-bold capitalize"},{default:n(()=>[y(_(t.title),1)]),_:1})]),a(i(j),{class:"flex items-center",type:"button"},{default:n(()=>[a(W,{class:"text-surface-tertiary h-6 w-auto"})]),_:1})]),a(i(B),{class:"mt-x2 text-paragraph-small text-secondary"},{default:n(()=>[y(_(t.description),1)]),_:1})]),e("section",null,[I(t.$slots,"default",{},void 0,!0)])]),_:3})]),_:3})]),_:3},8,["open"]))}});const J=g(G,[["__scopeId","data-v-2b16aac0"]]),K={class:"px-x4 py-x3"},O={class:"px-x4 py-x3"},Q=m({__name:"CreateSpaceDialog",props:{open:{type:Boolean}},emits:["close","create","update:open"],setup(d,{emit:s}){const o=s;function l(c){o("update:open",c),c||o("close")}const t=$("");function p(){o("close"),o("create",t.value)}return(c,u)=>(r(),f(J,{open:c.open,title:"create space",icon:S,description:"Create a custom space to start sharing files to any devices connected on the internet","onUpdate:open":l,onClose:u[1]||(u[1]=v=>o("close"))},{default:n(()=>[e("div",K,[a(z,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=v=>t.value=v),label:"Space name",placeholder:"Space name","hide-label":"","full-width":""},null,8,["modelValue"])]),e("div",O,[a(w,{"full-width":"",onClick:p},{default:n(()=>[y(" create space ")]),_:1})])]),_:1},8,["open"]))}}),ee={},te={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ae=e("g",null,[e("path",{d:"M12 19.5H12.01M22.8064 8.70076C19.9595 6.09199 16.1656 4.5 11.9999 4.5C7.83414 4.5 4.04023 6.09199 1.19336 8.70076M4.73193 12.243C6.67006 10.5357 9.21407 9.5 12 9.5C14.7859 9.5 17.3299 10.5357 19.268 12.243M15.6983 15.7751C14.6792 14.9763 13.3952 14.5 11.9999 14.5C10.5835 14.5 9.28172 14.9908 8.25537 15.8116",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),se=[ae];function oe(d,s){return r(),b("svg",te,se)}const ne=g(ee,[["render",oe]]),ce={class:"font-space-grotesk flex items-center justify-between"},re={class:"flex items-center"},le={class:"ml-x2 text-primary font-bold capitalize"},ie={class:"text-paragraph-x-small mt-x2 text-secondary"},h=m({__name:"SpaceCard",props:{state:{default:"base"},name:{default:"---"},type:{default:"space"},createdAt:{},count:{default:0}},setup(d){const s=d,o={local:ne,space:S},l=P(()=>s.createdAt?`${s.createdAt.getDate()}/${s.createdAt.getMonth()+1}/${s.createdAt.getFullYear()}`:"---");return(t,p)=>(r(),b("button",{class:x(["rounded-medium p-x4 w-full text-left border",[t.state==="active"?"shadow-brand-focus-ring border-brand":"border-primary"]])},[e("header",ce,[e("section",re,[(r(),f(C(o[t.type]),{class:x(["w-auto h-6",[t.state==="active"?"text-surface-brand":"text-surface-tertiary"]])},null,8,["class"])),e("h3",le,_(t.name),1)]),e("section",{class:x(["text-paragraph-x-small flex items-center justify-center w-6 h-6 font-bold border rounded-full",[t.state==="active"?"border-brand text-brand-purple bg-opacity-35 bg-surface-brand":"text-placeholder bg-surface-secondary border-primary"]])},_(t.count),3)]),e("p",ie," Space created on "+_(l.value),1)],2))}}),de=e("div",{class:"mb-x3"},[e("h1",{class:"font-space-grotesk text-heading-medium font-bold text-primary"}," Hey, Shadow! 👋 "),e("p",{class:"mt-x2 text-sm text-[#CBD5E1]"}," Share files by joining or creating a room ")],-1),pe={class:"flex flex-grow flex-col justify-between"},ue=e("h2",{class:"py-x3 text-overline uppercase text-placeholder"}," your spaces ",-1),_e={class:"mt-x3 flex flex-col gap-x6"},fe={class:"flex justify-center"},me={class:"flex flex-col items-center justify-center"},be=m({__name:"ListSpacesPage",setup(d){const s=$("listing");function o(){s.value="create"}function l(){s.value="listing"}const t=N();function p(c){console.log("space: ",c),t.push({name:"space",params:{name:c}})}return(c,u)=>(r(),f(T,null,{header:n(()=>[de]),body:n(()=>[e("div",pe,[e("div",null,[ue,e("div",_e,[a(h,{type:"local","created-at":new Date,name:"local network space"},null,8,["created-at"]),a(h,{state:"active",name:"Milky way galaxy","created-at":new Date,count:14},null,8,["created-at"]),a(h,{state:"active",name:"andromeda","created-at":new Date,count:69},null,8,["created-at"])])]),e("div",fe,[e("div",me,[a(w,{id:"create-space-btn",variant:"rounded",label:"create space",onClick:o},{default:n(()=>[a(U,{class:"h-auto w-8 text-white"})]),_:1})])])]),a(Q,{open:s.value==="create",onClose:l,onCreate:p},null,8,["open"])]),_:1}))}});export{be as default}; +import{e as k,Z as D,t as M,D as j,o as B,a as L,P as A,_ as w}from"./AppDivider-0549cd27.js";import{_ as g,o as c,f as b,a as e,d as m,c as f,w as n,b as a,u as i,g as C,h as V,e as y,t as _,i as I,j as $,k as P,n as x,l as N}from"./index-be8bbb8c.js";import{T as z,_ as T}from"./BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js";import{S,P as U}from"./PlusIcon-c11a82f6.js";const Z={},E={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F=e("g",{id:"x"},[e("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"currentColor"})],-1),H=[F];function R(d,s){return c(),b("svg",E,H)}const W=g(Z,[["render",R]]),X={class:"px-x4 py-x3"},Y={class:"flex items-center justify-between"},q={class:"flex items-center"},G=m({__name:"AppDialog",props:{open:{type:Boolean},title:{},description:{},icon:{}},emits:["update:open","close"],setup(d,{emit:s}){const o=s;function r(t){o("update:open",t),t||o("close")}return(t,p)=>(c(),f(i(A),{open:t.open,"onUpdate:open":r},{default:n(()=>[a(i(L),null,{default:n(()=>[a(i(k),{class:"overlay"}),a(i(D),{as:"article",class:"content rounded-medium bg-surface-primary text-primary py-x3 border-primary border"},{default:n(()=>[e("header",X,[e("div",Y,[e("div",q,[t.icon?(c(),f(C(t.icon),{key:0,class:"text-surface-brand h-6 w-auto"})):V("",!0),a(i(M),{class:"text-heading-small font-space-grotesk ml-2 font-bold capitalize"},{default:n(()=>[y(_(t.title),1)]),_:1})]),a(i(j),{class:"flex items-center",type:"button"},{default:n(()=>[a(W,{class:"text-surface-tertiary h-6 w-auto"})]),_:1})]),a(i(B),{class:"mt-x2 text-paragraph-small text-secondary"},{default:n(()=>[y(_(t.description),1)]),_:1})]),e("section",null,[I(t.$slots,"default",{},void 0,!0)])]),_:3})]),_:3})]),_:3},8,["open"]))}});const J=g(G,[["__scopeId","data-v-2b16aac0"]]),K={class:"px-x4 py-x3"},O={class:"px-x4 py-x3"},Q=m({__name:"CreateSpaceDialog",props:{open:{type:Boolean}},emits:["close","create","update:open"],setup(d,{emit:s}){const o=s;function r(l){o("update:open",l),l||o("close")}const t=$("");function p(){o("close"),o("create",t.value)}return(l,u)=>(c(),f(J,{open:l.open,title:"create space",icon:S,description:"Create a custom space to start sharing files to any devices connected on the internet","onUpdate:open":r,onClose:u[1]||(u[1]=v=>o("close"))},{default:n(()=>[e("div",K,[a(z,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=v=>t.value=v),label:"Space name",placeholder:"Space name","hide-label":"","full-width":""},null,8,["modelValue"])]),e("div",O,[a(w,{"full-width":"",onClick:p},{default:n(()=>[y(" create space ")]),_:1})])]),_:1},8,["open"]))}}),ee={},te={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ae=e("g",null,[e("path",{d:"M12 19.5H12.01M22.8064 8.70076C19.9595 6.09199 16.1656 4.5 11.9999 4.5C7.83414 4.5 4.04023 6.09199 1.19336 8.70076M4.73193 12.243C6.67006 10.5357 9.21407 9.5 12 9.5C14.7859 9.5 17.3299 10.5357 19.268 12.243M15.6983 15.7751C14.6792 14.9763 13.3952 14.5 11.9999 14.5C10.5835 14.5 9.28172 14.9908 8.25537 15.8116",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),se=[ae];function oe(d,s){return c(),b("svg",te,se)}const ne=g(ee,[["render",oe]]),ce={class:"font-space-grotesk flex items-center justify-between"},re={class:"flex items-center"},le={class:"ml-x2 text-primary font-bold capitalize"},ie={class:"text-paragraph-x-small mt-x2 text-secondary"},h=m({__name:"SpaceCard",props:{state:{default:"base"},name:{default:"---"},type:{default:"space"},createdAt:{},count:{default:0}},setup(d){const s=d,o={local:ne,space:S},r=P(()=>s.createdAt?`${s.createdAt.getDate()}/${s.createdAt.getMonth()+1}/${s.createdAt.getFullYear()}`:"---");return(t,p)=>(c(),b("button",{class:x(["rounded-medium p-x4 w-full text-left border",[t.state==="active"?"shadow-brand-focus-ring border-brand":"border-primary"]])},[e("header",ce,[e("section",re,[(c(),f(C(o[t.type]),{class:x(["w-auto h-6",[t.state==="active"?"text-surface-brand":"text-surface-tertiary"]])},null,8,["class"])),e("h3",le,_(t.name),1)]),e("section",{class:x(["text-paragraph-x-small flex items-center justify-center w-6 h-6 font-bold border rounded-full",[t.state==="active"?"border-brand text-brand-purple bg-opacity-35 bg-surface-brand":"text-placeholder bg-surface-secondary border-primary"]])},_(t.count),3)]),e("p",ie," Space created on "+_(r.value),1)],2))}}),de=e("div",{class:"mb-x3"},[e("h1",{class:"font-space-grotesk text-heading-medium font-bold text-primary"}," Hey, Shadow! 👋 "),e("p",{class:"mt-x2 text-sm text-[#CBD5E1]"}," Share files by joining or creating a room ")],-1),pe={class:"flex flex-grow flex-col justify-between"},ue=e("h2",{class:"py-x3 text-overline uppercase text-placeholder"}," your spaces ",-1),_e={class:"mt-x3 flex flex-col gap-x6"},fe={class:"flex justify-center"},me={class:"flex flex-col items-center justify-center"},be=m({__name:"ListSpacesPage",setup(d){const s=$("listing");function o(){s.value="create"}function r(){s.value="listing"}const t=N();function p(l){t.push({name:"space",params:{name:l}})}return(l,u)=>(c(),f(T,null,{header:n(()=>[de]),body:n(()=>[e("div",pe,[e("div",null,[ue,e("div",_e,[a(h,{type:"local","created-at":new Date,name:"local network space"},null,8,["created-at"]),a(h,{state:"active",name:"Milky way galaxy","created-at":new Date,count:14},null,8,["created-at"]),a(h,{state:"active",name:"andromeda","created-at":new Date,count:69},null,8,["created-at"])])]),e("div",fe,[e("div",me,[a(w,{id:"create-space-btn",variant:"rounded",label:"create space",onClick:o},{default:n(()=>[a(U,{class:"h-auto w-8 text-white"})]),_:1})])])]),a(Q,{open:s.value==="create",onClose:r,onCreate:p},null,8,["open"])]),_:1}))}});export{be as default}; diff --git a/docs/assets/PlusIcon-61e9a251.js b/docs/assets/PlusIcon-c11a82f6.js similarity index 96% rename from docs/assets/PlusIcon-61e9a251.js rename to docs/assets/PlusIcon-c11a82f6.js index 020f66c..be5e826 100644 --- a/docs/assets/PlusIcon-61e9a251.js +++ b/docs/assets/PlusIcon-c11a82f6.js @@ -1 +1 @@ -import{_ as e,o as n,f as t,a as o}from"./index-bc0f2b7e.js";const c={},_={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=o("g",null,[o("path",{d:"M20.5 7.27771L12 11.9999M12 11.9999L3.49997 7.27771M12 11.9999L12 21.5M21 16.0585V7.94141C21 7.59876 21 7.42744 20.9495 7.27464C20.9049 7.13947 20.8318 7.01539 20.7354 6.9107C20.6263 6.79236 20.4766 6.70916 20.177 6.54276L12.777 2.43164C12.4934 2.27409 12.3516 2.19531 12.2015 2.16442C12.0685 2.13709 11.9315 2.13709 11.7986 2.16442C11.6484 2.19531 11.5066 2.27409 11.223 2.43165L3.82297 6.54276C3.52345 6.70916 3.37369 6.79236 3.26463 6.9107C3.16816 7.01539 3.09515 7.13947 3.05048 7.27465C3 7.42745 3 7.59877 3 7.94141V16.0585C3 16.4012 3 16.5725 3.05048 16.7253C3.09515 16.8605 3.16816 16.9845 3.26463 17.0892C3.37369 17.2076 3.52345 17.2908 3.82297 17.4572L11.223 21.5683C11.5066 21.7258 11.6484 21.8046 11.7986 21.8355C11.9315 21.8628 12.0685 21.8628 12.2015 21.8355C12.3516 21.8046 12.4934 21.7258 12.777 21.5683L20.177 17.4572C20.4766 17.2908 20.6263 17.2076 20.7354 17.0892C20.8318 16.9845 20.9049 16.8605 20.9495 16.7253C21 16.5725 21 16.4012 21 16.0585Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),a=[i];function d(s,r){return n(),t("svg",_,a)}const f=e(c,[["render",d]]),l={},C={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h=o("g",null,[o("path",{id:"Shape",d:"M12 5V19M5 12H19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),u=[h];function p(s,r){return n(),t("svg",C,u)}const k=e(l,[["render",p]]);export{k as P,f as S}; +import{_ as e,o as n,f as t,a as o}from"./index-be8bbb8c.js";const c={},_={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=o("g",null,[o("path",{d:"M20.5 7.27771L12 11.9999M12 11.9999L3.49997 7.27771M12 11.9999L12 21.5M21 16.0585V7.94141C21 7.59876 21 7.42744 20.9495 7.27464C20.9049 7.13947 20.8318 7.01539 20.7354 6.9107C20.6263 6.79236 20.4766 6.70916 20.177 6.54276L12.777 2.43164C12.4934 2.27409 12.3516 2.19531 12.2015 2.16442C12.0685 2.13709 11.9315 2.13709 11.7986 2.16442C11.6484 2.19531 11.5066 2.27409 11.223 2.43165L3.82297 6.54276C3.52345 6.70916 3.37369 6.79236 3.26463 6.9107C3.16816 7.01539 3.09515 7.13947 3.05048 7.27465C3 7.42745 3 7.59877 3 7.94141V16.0585C3 16.4012 3 16.5725 3.05048 16.7253C3.09515 16.8605 3.16816 16.9845 3.26463 17.0892C3.37369 17.2076 3.52345 17.2908 3.82297 17.4572L11.223 21.5683C11.5066 21.7258 11.6484 21.8046 11.7986 21.8355C11.9315 21.8628 12.0685 21.8628 12.2015 21.8355C12.3516 21.8046 12.4934 21.7258 12.777 21.5683L20.177 17.4572C20.4766 17.2908 20.6263 17.2076 20.7354 17.0892C20.8318 16.9845 20.9049 16.8605 20.9495 16.7253C21 16.5725 21 16.4012 21 16.0585Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),a=[i];function d(s,r){return n(),t("svg",_,a)}const f=e(c,[["render",d]]),l={},C={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h=o("g",null,[o("path",{id:"Shape",d:"M12 5V19M5 12H19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),u=[h];function p(s,r){return n(),t("svg",C,u)}const k=e(l,[["render",p]]);export{k as P,f as S}; diff --git a/docs/assets/SpacePage-4fcf13f6.js b/docs/assets/SpacePage-90a4dbc1.js similarity index 86% rename from docs/assets/SpacePage-4fcf13f6.js rename to docs/assets/SpacePage-90a4dbc1.js index 9c84260..4c98cd0 100644 --- a/docs/assets/SpacePage-4fcf13f6.js +++ b/docs/assets/SpacePage-90a4dbc1.js @@ -1 +1 @@ -import{p as X,f as N,c as Y,b as J,A as W,_ as Q}from"./AppDivider-d3b10cf8.js";import{d as w,o as m,f as x,F as j,m as R,a as h,t as P,c as H,g as K,h as L,_ as C,j as B,i as D,w as A,b as M,u as k,e as e1,p as t1,q as a1,s as l1,l as c1}from"./index-bc0f2b7e.js";import{S as i1,P as r1}from"./PlusIcon-61e9a251.js";const o1=["aria-label"],n1={class:"flex h-full w-full flex-grow items-center justify-between"},s1=["onClick"],d1={class:"capitalize"},f1={key:0,class:"divider h-9 bg-border-primary"},h1=w({__name:"ButtonGroup",props:{label:{},hideLabel:{type:Boolean},options:{}},emits:["click"],setup(t,{emit:e}){const a=e;return(l,c)=>(m(),x("div",{class:"btn-group flex h-13 items-center rounded-medium border border-border-primary bg-surface-primary text-paragraph-small",role:"group","aria-label":l.label||"Button group"},[(m(!0),x(j,null,R(l.options,(i,r)=>(m(),x("div",n1,[h("button",{type:"button",class:"mx-auto flex h-full items-center justify-center gap-x1 px-x4 py-x3",onClick:n=>a("click",r,i)},[h("div",d1,P(i.label),1),i.icon?(m(),H(K(i.icon),{key:0,class:"h-x4 w-auto text-surface-brand"})):L("",!0)],8,s1),r!==l.options.length-1?(m(),x("div",f1)):L("",!0)]))),256))],8,o1))}});const u1=C(h1,[["__scopeId","data-v-89ad0c1e"]]),p1=["name"],m1=w({__name:"FilePicker",props:{name:{default:"fileInput"}},emits:["select"],setup(t,{emit:e}){const a=e,l=B();function c(i){const r=i.target;r.files&&a("select",r.files)}return(i,r)=>(m(),x("label",{class:"file-picker cursor-pointer",onClick:r[0]||(r[0]=n=>{var o;return(o=l.value)==null?void 0:o.click()})},[D(i.$slots,"default"),h("input",{ref_key:"inputEl",ref:l,class:"sr-only",type:"file",name:i.name,onInput:c},null,40,p1)]))}}),g1="/file-transfer-app/assets/radar-bg-15491761.svg",y1="/file-transfer-app/assets/radar-scanner-a7fb8526.png";function s(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function v1(t){var e,a,l,c,i,r,n,o,d,u,y;const f=(a=(e=t.meta)===null||e===void 0?void 0:e.title)!==null&&a!==void 0?a:"Unnamed",p=(c=(l=t.meta)===null||l===void 0?void 0:l.creator)!==null&&c!==void 0?c:"Unknown";let v=`"${f}" by "${p}"`;!((r=(i=t.meta)===null||i===void 0?void 0:i.license)===null||r===void 0)&&r.name&&(v+=`, licensed under "${t.meta.license.name}".`),v+=" / Remix of the original. - Created with dicebear.com";const Z=`${s(f)}`,g=`${s(p)}`,b=!((d=t.meta)===null||d===void 0)&&d.source?`${s(t.meta.source)}`:"",T=!((y=(u=t.meta)===null||u===void 0?void 0:u.license)===null||y===void 0)&&y.url?``:"";return`${v}`+Z+g+b+T+""}function x1(t){var e,a,l,c,i,r,n,o,d;const u=(a=(e=t.meta)===null||e===void 0?void 0:e.title)!==null&&a!==void 0?a:"Unnamed",y=(c=(l=t.meta)===null||l===void 0?void 0:l.creator)!==null&&c!==void 0?c:"Unknown";let f=`"${u}" by "${y}"`;!((r=(i=t.meta)===null||i===void 0?void 0:i.license)===null||r===void 0)&&r.name&&(f+=`, licensed under "${t.meta.license.name}".`),f+=" / Remix of the original.";const p={ImageDescription:`${f} - Created with dicebear.com`,Copyright:f,"XMP-dc:Title":u,"XMP-dc:Creator":y};return!((n=t.meta)===null||n===void 0)&&n.source&&(p["XMP-dc:Source"]=t.meta.source),!((d=(o=t.meta)===null||o===void 0?void 0:o.license)===null||d===void 0)&&d.url&&(p["XMP-cc:License"]=t.meta.license.url),p}const q=-2147483648,M1=2147483647;function I(t){return t^=t<<13,t^=t>>17,t^=t<<5,t}function b1(t){let e=0;for(let a=0;ae=I(e),l=(c,i)=>Math.floor((a()-q)/(M1-q)*(i+1-c)+c);return{seed:t,next:a,bool(c=50){return l(1,100)<=c},integer(c,i){return l(c,i)},pick(c,i){var r;return c.length===0?(a(),i):(r=c[l(0,c.length-1)])!==null&&r!==void 0?r:i},shuffle(c){const i=F(a().toString());return c.sort(()=>i.integer(-1,1))},string(c,i="abcdefghijklmnopqrstuvwxyz1234567890"){const r=F(a().toString());let n="";for(let o=0;o`;switch(l){case"solid":return d+t.body;case"gradientLinear":return``+t.body}}function k1(t,e){let{width:a,height:l,x:c,y:i}=$(t),r=e?(e-100)/100:0,n=(a/2+c)*r*-1,o=(l/2+i)*r*-1;return`${t.body}`}function _1(t,e,a){let l=$(t),c=(l.width+l.x*2)*((e??0)/100),i=(l.height+l.y*2)*((a??0)/100);return`${t.body}`}function w1(t,e){let{width:a,height:l,x:c,y:i}=$(t);return`${t.body}`}function $1(t){let{width:e,x:a}=$(t);return`${t.body}`}function A1(t,e){let{width:a,height:l,x:c,y:i}=$(t),r=e?a*e/100:0,n=e?l*e/100:0;return`${t.body}`}function C1(t){const e={xmlns:"http://www.w3.org/2000/svg",...t.attributes};return Object.keys(e).map(a=>`${s(a)}="${s(e[a])}"`).join(" ")}function F1(t){const e=F(),a={};return t.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,c,i,r)=>(a[i]=a[i]||e.string(8),`${c}${a[i]}${r}`))}const H1={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function E(t){var e;let a={},l=(e=t.properties)!==null&&e!==void 0?e:{};return Object.keys(l).forEach(c=>{let i=l[c];typeof i=="object"&&i.default!==void 0&&(Array.isArray(i.default)?a[c]=[...i.default]:typeof i.default=="object"?a[c]={...i.default}:a[c]=i.default)}),a}function S1(t,e){var a;let l={...E(H1),...E((a=t.schema)!==null&&a!==void 0?a:{}),...e};return JSON.parse(JSON.stringify(l))}function U(t){switch(t){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${t}`;default:throw new Error(`Unsupported format: ${t}`)}}function V1(t,e=512){let a=e;return t=t.replace(/]*)/,(l,c)=>{const i=c.match(/width="([^"]+)"/);return i&&(a=parseInt(i[1])),c.match(/width="([^"]+)"/)?c=c.replace(/width="([^"]+)"/,`width="${a}"`):c+=` width="${a}"`,c.match(/height="([^"]+)"/)?c=c.replace(/height="([^"]+)"/,`height="${a}"`):c+=` height="${a}"`,`z(t,e,a),toFile:l=>z1(l,t,e,a),toArrayBuffer:()=>U1(t,e,a)}};async function z(t,e,a){return e==="svg"?`data:${U(e)};utf8,${encodeURIComponent(t)}`:(await G(t,e,a)).toDataURL(U(e))}async function U1(t,e,a){if(e==="svg")return B1().encode(t);const l=await G(t,e,a);return await new Promise((c,i)=>{l.toBlob(r=>{r?c(r.arrayBuffer()):i(new Error("Could not create blob"))},U(e))})}async function z1(t,e,a,l){const c=document.createElement("a");c.href=await z(e,a,l),c.download=t,c.click(),c.remove()}async function G(t,e,a){a&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:l,size:c}=V1(t);const i=document.createElement("canvas");i.width=c,i.height=c;const r=i.getContext("2d");if(r===null)throw new Error("Could not get canvas context");e==="jpeg"&&(r.fillStyle="white",r.fillRect(0,0,c,c));var n=document.createElement("img");return n.width=c,n.height=c,n.setAttribute("src",await z(l,"svg")),new Promise((o,d)=>{n.onload=()=>{r.drawImage(n,0,0,c,c),o(i)},n.onerror=u=>d(u)})}function O(t){return t==="transparent"?t:`#${t}`}function L1(t,e){var a;let l;e.length<=2?(t.next(),l=e):l=t.shuffle(e),l.length===0&&(l=["transparent"]);const c=l[0],i=(a=l[1])!==null&&a!==void 0?a:l[0];return{primary:O(c),secondary:O(i)}}function q1(t,e={}){var a,l,c,i,r;e=S1(t,e);const n=F(e.seed),o=t.create({prng:n,options:e}),{primary:d,secondary:u}=L1(n,(a=e.backgroundColor)!==null&&a!==void 0?a:[]),y=n.pick((l=e.backgroundType)!==null&&l!==void 0?l:[],"solid"),f=n.integer(!((c=e.backgroundRotation)===null||c===void 0)&&c.length?Math.min(...e.backgroundRotation):0,!((i=e.backgroundRotation)===null||i===void 0)&&i.length?Math.max(...e.backgroundRotation):0);e.size&&(o.attributes.width=e.size.toString(),o.attributes.height=e.size.toString()),e.scale!==void 0&&e.scale!==100&&(o.body=k1(o,e.scale)),e.flip&&(o.body=$1(o)),e.rotate&&(o.body=w1(o,e.rotate)),(e.translateX||e.translateY)&&(o.body=_1(o,e.translateX,e.translateY)),d!=="transparent"&&u!=="transparent"&&(o.body=Z1(o,d,u,y,f)),(e.radius||e.clip)&&(o.body=A1(o,(r=e.radius)!==null&&r!==void 0?r:0)),e.randomizeIds&&(o.body=F1(o));const p=C1(o),v=v1(t),Z=x1(t),g=`${v}${o.body}`;return{toString:()=>g,toJson:()=>{var b;return{svg:g,extra:{primaryBackgroundColor:d,secondaryBackgroundColor:u,backgroundType:y,backgroundRotation:f,...(b=o.extra)===null||b===void 0?void 0:b.call(o)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(g)}`,...V(g,"svg"),png:({includeExif:b=!1}={})=>V(g,"png",b?Z:void 0),jpeg:({includeExif:b=!1}={})=>V(g,"jpeg",b?Z:void 0)}}const E1={antenna01:(t,e)=>``,antenna02:(t,e)=>``,cables01:(t,e)=>``,cables02:(t,e)=>``,round:(t,e)=>``,square:(t,e)=>``,squareAssymetric:(t,e)=>``},O1={antenna:(t,e)=>``,antennaCrooked:(t,e)=>``,bulb01:(t,e)=>``,glowingBulb01:(t,e)=>'',glowingBulb02:(t,e)=>'',horns:(t,e)=>``,lights:(t,e)=>``,pyramid:(t,e)=>``,radar:(t,e)=>''},j1={round01:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},round02:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square01:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square02:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square03:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square04:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`}},R1={bite:(t,e)=>'',diagram:(t,e)=>'',grill01:(t,e)=>'',grill02:(t,e)=>'',grill03:(t,e)=>'',smile01:(t,e)=>'',smile02:(t,e)=>'',square01:(t,e)=>'',square02:(t,e)=>''},P1={bulging:(t,e)=>'',dizzy:(t,e)=>'',eva:(t,e)=>'',frame1:(t,e)=>'',frame2:(t,e)=>'',glow:(t,e)=>'',happy:(t,e)=>'',hearts:(t,e)=>'',robocop:(t,e)=>'',round:(t,e)=>'',roundFrame01:(t,e)=>'',roundFrame02:(t,e)=>'',sensor:(t,e)=>'',shade01:(t,e)=>''},D1={camo01:(t,e)=>'',camo02:(t,e)=>'',circuits:(t,e)=>'',dirty01:(t,e)=>'',dirty02:(t,e)=>'',dots:(t,e)=>'',grunge01:(t,e)=>'',grunge02:(t,e)=>''},I1=Object.freeze(Object.defineProperty({__proto__:null,eyes:P1,face:j1,mouth:R1,sides:E1,texture:D1,top:O1},Symbol.toStringTag,{value:"Module"}));function _({prng:t,group:e,values:a=[]}){const l=I1,c=t.pick(a);if(c&&l[e][c])return{name:c,value:l[e][c]}}function G1({prng:t,options:e}){const a=_({prng:t,group:"sides",values:e.sides}),l=_({prng:t,group:"top",values:e.top}),c=_({prng:t,group:"face",values:e.face}),i=_({prng:t,group:"mouth",values:e.mouth}),r=_({prng:t,group:"eyes",values:e.eyes}),n=_({prng:t,group:"texture",values:e.texture});return{sides:t.bool(e.sidesProbability)?a:void 0,top:t.bool(e.topProbability)?l:void 0,face:c,mouth:t.bool(e.mouthProbability)?i:void 0,eyes:r,texture:t.bool(e.textureProbability)?n:void 0}}function T1(t){return t==="transparent"?t:`#${t}`}function X1({prng:t,options:e}){var a;return{base:T1(t.pick((a=e.baseColor)!==null&&a!==void 0?a:[],"transparent"))}}const N1={$schema:"http://json-schema.org/draft-07/schema#",properties:{baseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffb300","1e88e5","546e7a","6d4c41","00acc1","f4511e","5e35b1","43a047","757575","3949ab","039be5","7cb342","c0ca33","fb8c00","d81b60","8e24aa","e53935","00897b","fdd835"]},eyes:{type:"array",items:{type:"string",enum:["bulging","dizzy","eva","frame1","frame2","glow","happy","hearts","robocop","round","roundFrame01","roundFrame02","sensor","shade01"]},default:["bulging","dizzy","eva","frame1","frame2","glow","happy","hearts","robocop","round","roundFrame01","roundFrame02","sensor","shade01"]},face:{type:"array",items:{type:"string",enum:["round01","round02","square01","square02","square03","square04"]},default:["round01","round02","square01","square02","square03","square04"]},mouth:{type:"array",items:{type:"string",enum:["bite","diagram","grill01","grill02","grill03","smile01","smile02","square01","square02"]},default:["bite","diagram","grill01","grill02","grill03","smile01","smile02","square01","square02"]},mouthProbability:{type:"integer",minimum:0,maximum:100,default:100},sides:{type:"array",items:{type:"string",enum:["antenna01","antenna02","cables01","cables02","round","square","squareAssymetric"]},default:["antenna01","antenna02","cables01","cables02","round","square","squareAssymetric"]},sidesProbability:{type:"integer",minimum:0,maximum:100,default:100},texture:{type:"array",items:{type:"string",enum:["camo01","camo02","circuits","dirty01","dirty02","dots","grunge01","grunge02"]},default:["camo01","camo02","circuits","dirty01","dirty02","dots","grunge01","grunge02"]},textureProbability:{type:"integer",minimum:0,maximum:100,default:50},top:{type:"array",items:{type:"string",enum:["antenna","antennaCrooked","bulb01","glowingBulb01","glowingBulb02","horns","lights","pyramid","radar"]},default:["antenna","antennaCrooked","bulb01","glowingBulb01","glowingBulb02","horns","lights","pyramid","radar"]},topProbability:{type:"integer",minimum:0,maximum:100,default:100}}},Y1={title:"Bottts",creator:"Pablo Stanley",source:"https://bottts.com/",homepage:"https://twitter.com/pablostanley",license:{name:"Free for personal and commercial use",url:"https://bottts.com/"}},J1=({prng:t,options:e})=>{var a,l,c,i,r,n,o,d,u,y;const f=G1({prng:t,options:e}),p=X1({prng:t,options:e});return{attributes:{viewBox:"0 0 180 180",fill:"none","shape-rendering":"auto"},body:`${(l=(a=f.sides)===null||a===void 0?void 0:a.value(f,p))!==null&&l!==void 0?l:""}${(i=(c=f.top)===null||c===void 0?void 0:c.value(f,p))!==null&&i!==void 0?i:""}${(n=(r=f.face)===null||r===void 0?void 0:r.value(f,p))!==null&&n!==void 0?n:""}${(d=(o=f.mouth)===null||o===void 0?void 0:o.value(f,p))!==null&&d!==void 0?d:""}${(y=(u=f.eyes)===null||u===void 0?void 0:u.value(f,p))!==null&&y!==void 0?y:""}`,extra:()=>({...Object.entries(f).reduce((v,[Z,g])=>(v[Z]=g==null?void 0:g.name,v),{}),...Object.entries(p).reduce((v,[Z,g])=>(v[`${Z}Color`]=g,v),{})})}},W1=Object.freeze(Object.defineProperty({__proto__:null,create:J1,meta:Y1,schema:N1},Symbol.toStringTag,{value:"Module"})),Q1=w({__name:"Avatar",props:{name:{}},setup(t){const e=t,a=e.name.split(" ").map(c=>c.trim()).reduce((c,i)=>c+i[0],""),l=q1(W1,{seed:e.name}).toDataUriSync();return(c,i)=>(m(),H(k(Y),{class:"inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border border-brand bg-surface-brand bg-opacity-35"},{default:A(()=>[M(k(X),{class:"h-8 w-auto",src:k(l),alt:c.name},null,8,["src","alt"]),M(k(N),{class:"uppercase text-white","delay-ms":600},{default:A(()=>[e1(P(k(a)),1)]),_:1})]),_:1}))}}),K1=["src"],e2=["src"],t2=a1('',1),a2=w({__name:"Radar",setup(t){const e=B(),a=B([]);function l(c){const i="intersection-point",r=c.querySelectorAll(`circle[class*='${i}']`),n=[];for(const o of r.values()){const{x:d,y:u}=o.getBoundingClientRect();n.push({x:`${Math.round(d)}px`,y:`${Math.round(u)}px`})}return console.log("coordinates: ",n),n.filter((o,d)=>d%2===0&&d%5===0)}return t1(()=>{e.value&&(a.value=l(e.value))}),(c,i)=>(m(),x("div",{ref_key:"containerEl",ref:e,class:"relative"},[h("img",{src:k(g1),alt:"Radar background",class:"relative z-0 h-auto w-full"},null,8,K1),h("img",{src:k(y1),alt:"Scanner image",class:"scanner absolute left-0 top-0 h-auto w-full"},null,8,e2),t2,(m(!0),x(j,null,R(a.value,r=>(m(),H(Q1,{key:r.x+r.y,style:l1({left:r.x,top:r.y}),class:"absolute -translate-x-1/2 -translate-y-1/2",name:k(J)()},null,8,["style","name"]))),128))],512))}});const l2=C(a2,[["__scopeId","data-v-657cbd9e"]]),c2={},i2={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r2=h("g",null,[h("path",{d:"M4.33333 4.33333H4.34M11.6667 4.33333H11.6733M4.33333 11.6667H4.34M8.66667 8.66667H8.67333M11.6667 11.6667H11.6733M11.3333 14H14V11.3333M9.33333 11V14M14 9.33333H11M10.4 6.66667H12.9333C13.3067 6.66667 13.4934 6.66667 13.636 6.594C13.7614 6.53009 13.8634 6.4281 13.9273 6.30266C14 6.16005 14 5.97337 14 5.6V3.06667C14 2.6933 14 2.50661 13.9273 2.36401C13.8634 2.23856 13.7614 2.13658 13.636 2.07266C13.4934 2 13.3067 2 12.9333 2H10.4C10.0266 2 9.83995 2 9.69734 2.07266C9.5719 2.13658 9.46991 2.23856 9.406 2.36401C9.33333 2.50661 9.33333 2.6933 9.33333 3.06667V5.6C9.33333 5.97337 9.33333 6.16005 9.406 6.30266C9.46991 6.4281 9.5719 6.53009 9.69734 6.594C9.83995 6.66667 10.0266 6.66667 10.4 6.66667ZM3.06667 6.66667H5.6C5.97337 6.66667 6.16005 6.66667 6.30266 6.594C6.4281 6.53009 6.53009 6.4281 6.594 6.30266C6.66667 6.16005 6.66667 5.97337 6.66667 5.6V3.06667C6.66667 2.6933 6.66667 2.50661 6.594 2.36401C6.53009 2.23856 6.4281 2.13658 6.30266 2.07266C6.16005 2 5.97337 2 5.6 2H3.06667C2.6933 2 2.50661 2 2.36401 2.07266C2.23856 2.13658 2.13658 2.23856 2.07266 2.36401C2 2.50661 2 2.6933 2 3.06667V5.6C2 5.97337 2 6.16005 2.07266 6.30266C2.13658 6.4281 2.23856 6.53009 2.36401 6.594C2.50661 6.66667 2.6933 6.66667 3.06667 6.66667ZM3.06667 14H5.6C5.97337 14 6.16005 14 6.30266 13.9273C6.4281 13.8634 6.53009 13.7614 6.594 13.636C6.66667 13.4934 6.66667 13.3067 6.66667 12.9333V10.4C6.66667 10.0266 6.66667 9.83995 6.594 9.69734C6.53009 9.5719 6.4281 9.46991 6.30266 9.406C6.16005 9.33333 5.97337 9.33333 5.6 9.33333H3.06667C2.6933 9.33333 2.50661 9.33333 2.36401 9.406C2.23856 9.46991 2.13658 9.5719 2.07266 9.69734C2 9.83995 2 10.0266 2 10.4V12.9333C2 13.3067 2 13.4934 2.07266 13.636C2.13658 13.7614 2.23856 13.8634 2.36401 13.9273C2.50661 14 2.6933 14 3.06667 14Z",stroke:"currentColor","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1),o2=[r2];function n2(t,e){return m(),x("svg",i2,o2)}const s2=C(c2,[["render",n2]]),d2={},f2={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h2=h("g",{id:"Share"},[h("path",{d:"M5.72667 9.00683L10.28 11.6602M10.2733 4.34016L5.72667 6.9935M14 3.3335C14 4.43807 13.1046 5.3335 12 5.3335C10.8954 5.3335 10 4.43807 10 3.3335C10 2.22893 10.8954 1.3335 12 1.3335C13.1046 1.3335 14 2.22893 14 3.3335ZM6 8.00016C6 9.10473 5.10457 10.0002 4 10.0002C2.89543 10.0002 2 9.10473 2 8.00016C2 6.89559 2.89543 6.00016 4 6.00016C5.10457 6.00016 6 6.89559 6 8.00016ZM14 12.6668C14 13.7714 13.1046 14.6668 12 14.6668C10.8954 14.6668 10 13.7714 10 12.6668C10 11.5623 10.8954 10.6668 12 10.6668C13.1046 10.6668 14 11.5623 14 12.6668Z",stroke:"currentColor","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1),u2=[h2];function p2(t,e){return m(),x("svg",f2,u2)}const m2=C(d2,[["render",p2]]),g2={},y2={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v2=h("g",null,[h("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),x2=[v2];function M2(t,e){return m(),x("svg",y2,x2)}const b2=C(g2,[["render",M2]]),Z2={class:"flex h-screen-d w-screen flex-col overflow-x-hidden bg-surface-primary px-x4 pt-x4 text-primary"},k2={class:"relative flex items-center justify-center py-x4"},_2={class:"flex items-center"},w2=h("h1",{class:"ml-x2 font-space-grotesk font-bold capitalize"}," Design Space ",-1),$2={class:"flex-grow pb-x3"},A2=w({__name:"SpaceLayout",setup(t){const e=c1();function a(){e.back()}return(l,c)=>(m(),x("article",Z2,[h("header",k2,[h("button",{class:"absolute left-0 top-x4",onClick:a},[M(b2,{class:"h-6 w-auto"})]),h("div",_2,[M(i1,{class:"h-6 w-auto text-surface-brand"}),w2])]),M(W,{class:"my-x2"}),h("section",$2,[D(l.$slots,"default")])]))}}),C2={class:"flex h-full flex-col justify-between"},F2={class:"flex-grow"},H2=h("p",{class:"mt-x3 text-center text-paragraph-small text-secondary"}," Waiting for devices to join your space ",-1),S2={class:"flex justify-center"},z2=w({__name:"SpacePage",setup(t){const e=[{label:"share link",icon:m2,value:"shareLink"},{label:"QR code",icon:s2,value:"qrCode"}];return(a,l)=>(m(),H(A2,null,{default:A(()=>[h("div",C2,[h("div",F2,[h("section",null,[M(l2,{class:"w-full"}),H2]),M(u1,{options:e,class:"mb-x3 mt-x6"})]),h("div",S2,[M(m1,{onSelect:l[0]||(l[0]=c=>console.log(c))},{default:A(()=>[M(Q,{label:"add file",variant:"rounded"},{default:A(()=>[M(r1,{class:"h-8 w-auto"})]),_:1})]),_:1})])])]),_:1}))}});export{z2 as default}; +import{p as X,f as N,c as Y,b as J,A as W,_ as Q}from"./AppDivider-0549cd27.js";import{d as w,o as m,f as x,F as j,m as R,a as h,t as P,c as H,g as K,h as L,_ as C,j as B,i as D,w as A,b as M,u as _,e as e1,p as t1,q as a1,s as l1,l as c1}from"./index-be8bbb8c.js";import{S as i1,P as r1}from"./PlusIcon-c11a82f6.js";const o1=["aria-label"],n1={class:"flex h-full w-full flex-grow items-center justify-between"},s1=["onClick"],f1={class:"capitalize"},d1={key:0,class:"divider h-9 bg-border-primary"},h1=w({__name:"ButtonGroup",props:{label:{},hideLabel:{type:Boolean},options:{}},emits:["click"],setup(t,{emit:e}){const a=e;return(l,c)=>(m(),x("div",{class:"btn-group flex h-13 items-center rounded-medium border border-border-primary bg-surface-primary text-paragraph-small",role:"group","aria-label":l.label||"Button group"},[(m(!0),x(j,null,R(l.options,(i,r)=>(m(),x("div",n1,[h("button",{type:"button",class:"mx-auto flex h-full items-center justify-center gap-x1 px-x4 py-x3",onClick:n=>a("click",r,i)},[h("div",f1,P(i.label),1),i.icon?(m(),H(K(i.icon),{key:0,class:"h-x4 w-auto text-surface-brand"})):L("",!0)],8,s1),r!==l.options.length-1?(m(),x("div",d1)):L("",!0)]))),256))],8,o1))}});const u1=C(h1,[["__scopeId","data-v-89ad0c1e"]]),p1=["name"],m1=w({__name:"FilePicker",props:{name:{default:"fileInput"}},emits:["select"],setup(t,{emit:e}){const a=e,l=B();function c(i){const r=i.target;r.files&&a("select",r.files)}return(i,r)=>(m(),x("label",{class:"file-picker cursor-pointer",onClick:r[0]||(r[0]=n=>{var o;return(o=l.value)==null?void 0:o.click()})},[D(i.$slots,"default"),h("input",{ref_key:"inputEl",ref:l,class:"sr-only",type:"file",name:i.name,onInput:c},null,40,p1)]))}}),g1="/file-transfer-app/assets/radar-bg-15491761.svg",y1="/file-transfer-app/assets/radar-scanner-a7fb8526.png";function s(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function v1(t){var e,a,l,c,i,r,n,o,f,u,y;const d=(a=(e=t.meta)===null||e===void 0?void 0:e.title)!==null&&a!==void 0?a:"Unnamed",p=(c=(l=t.meta)===null||l===void 0?void 0:l.creator)!==null&&c!==void 0?c:"Unknown";let v=`"${d}" by "${p}"`;!((r=(i=t.meta)===null||i===void 0?void 0:i.license)===null||r===void 0)&&r.name&&(v+=`, licensed under "${t.meta.license.name}".`),v+=" / Remix of the original. - Created with dicebear.com";const k=`${s(d)}`,g=`${s(p)}`,Z=!((f=t.meta)===null||f===void 0)&&f.source?`${s(t.meta.source)}`:"",T=!((y=(u=t.meta)===null||u===void 0?void 0:u.license)===null||y===void 0)&&y.url?``:"";return`${v}`+k+g+Z+T+""}function x1(t){var e,a,l,c,i,r,n,o,f;const u=(a=(e=t.meta)===null||e===void 0?void 0:e.title)!==null&&a!==void 0?a:"Unnamed",y=(c=(l=t.meta)===null||l===void 0?void 0:l.creator)!==null&&c!==void 0?c:"Unknown";let d=`"${u}" by "${y}"`;!((r=(i=t.meta)===null||i===void 0?void 0:i.license)===null||r===void 0)&&r.name&&(d+=`, licensed under "${t.meta.license.name}".`),d+=" / Remix of the original.";const p={ImageDescription:`${d} - Created with dicebear.com`,Copyright:d,"XMP-dc:Title":u,"XMP-dc:Creator":y};return!((n=t.meta)===null||n===void 0)&&n.source&&(p["XMP-dc:Source"]=t.meta.source),!((f=(o=t.meta)===null||o===void 0?void 0:o.license)===null||f===void 0)&&f.url&&(p["XMP-cc:License"]=t.meta.license.url),p}const q=-2147483648,M1=2147483647;function I(t){return t^=t<<13,t^=t>>17,t^=t<<5,t}function Z1(t){let e=0;for(let a=0;ae=I(e),l=(c,i)=>Math.floor((a()-q)/(M1-q)*(i+1-c)+c);return{seed:t,next:a,bool(c=50){return l(1,100)<=c},integer(c,i){return l(c,i)},pick(c,i){var r;return c.length===0?(a(),i):(r=c[l(0,c.length-1)])!==null&&r!==void 0?r:i},shuffle(c){const i=F(a().toString());return c.sort(()=>i.integer(-1,1))},string(c,i="abcdefghijklmnopqrstuvwxyz1234567890"){const r=F(a().toString());let n="";for(let o=0;o`;switch(l){case"solid":return f+t.body;case"gradientLinear":return``+t.body}}function _1(t,e){let{width:a,height:l,x:c,y:i}=$(t),r=e?(e-100)/100:0,n=(a/2+c)*r*-1,o=(l/2+i)*r*-1;return`${t.body}`}function b1(t,e,a){let l=$(t),c=(l.width+l.x*2)*((e??0)/100),i=(l.height+l.y*2)*((a??0)/100);return`${t.body}`}function w1(t,e){let{width:a,height:l,x:c,y:i}=$(t);return`${t.body}`}function $1(t){let{width:e,x:a}=$(t);return`${t.body}`}function A1(t,e){let{width:a,height:l,x:c,y:i}=$(t),r=e?a*e/100:0,n=e?l*e/100:0;return`${t.body}`}function C1(t){const e={xmlns:"http://www.w3.org/2000/svg",...t.attributes};return Object.keys(e).map(a=>`${s(a)}="${s(e[a])}"`).join(" ")}function F1(t){const e=F(),a={};return t.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,c,i,r)=>(a[i]=a[i]||e.string(8),`${c}${a[i]}${r}`))}const H1={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function E(t){var e;let a={},l=(e=t.properties)!==null&&e!==void 0?e:{};return Object.keys(l).forEach(c=>{let i=l[c];typeof i=="object"&&i.default!==void 0&&(Array.isArray(i.default)?a[c]=[...i.default]:typeof i.default=="object"?a[c]={...i.default}:a[c]=i.default)}),a}function S1(t,e){var a;let l={...E(H1),...E((a=t.schema)!==null&&a!==void 0?a:{}),...e};return JSON.parse(JSON.stringify(l))}function U(t){switch(t){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${t}`;default:throw new Error(`Unsupported format: ${t}`)}}function V1(t,e=512){let a=e;return t=t.replace(/]*)/,(l,c)=>{const i=c.match(/width="([^"]+)"/);return i&&(a=parseInt(i[1])),c.match(/width="([^"]+)"/)?c=c.replace(/width="([^"]+)"/,`width="${a}"`):c+=` width="${a}"`,c.match(/height="([^"]+)"/)?c=c.replace(/height="([^"]+)"/,`height="${a}"`):c+=` height="${a}"`,`z(t,e,a),toFile:l=>z1(l,t,e,a),toArrayBuffer:()=>U1(t,e,a)}};async function z(t,e,a){return e==="svg"?`data:${U(e)};utf8,${encodeURIComponent(t)}`:(await G(t,e,a)).toDataURL(U(e))}async function U1(t,e,a){if(e==="svg")return B1().encode(t);const l=await G(t,e,a);return await new Promise((c,i)=>{l.toBlob(r=>{r?c(r.arrayBuffer()):i(new Error("Could not create blob"))},U(e))})}async function z1(t,e,a,l){const c=document.createElement("a");c.href=await z(e,a,l),c.download=t,c.click(),c.remove()}async function G(t,e,a){a&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:l,size:c}=V1(t);const i=document.createElement("canvas");i.width=c,i.height=c;const r=i.getContext("2d");if(r===null)throw new Error("Could not get canvas context");e==="jpeg"&&(r.fillStyle="white",r.fillRect(0,0,c,c));var n=document.createElement("img");return n.width=c,n.height=c,n.setAttribute("src",await z(l,"svg")),new Promise((o,f)=>{n.onload=()=>{r.drawImage(n,0,0,c,c),o(i)},n.onerror=u=>f(u)})}function O(t){return t==="transparent"?t:`#${t}`}function L1(t,e){var a;let l;e.length<=2?(t.next(),l=e):l=t.shuffle(e),l.length===0&&(l=["transparent"]);const c=l[0],i=(a=l[1])!==null&&a!==void 0?a:l[0];return{primary:O(c),secondary:O(i)}}function q1(t,e={}){var a,l,c,i,r;e=S1(t,e);const n=F(e.seed),o=t.create({prng:n,options:e}),{primary:f,secondary:u}=L1(n,(a=e.backgroundColor)!==null&&a!==void 0?a:[]),y=n.pick((l=e.backgroundType)!==null&&l!==void 0?l:[],"solid"),d=n.integer(!((c=e.backgroundRotation)===null||c===void 0)&&c.length?Math.min(...e.backgroundRotation):0,!((i=e.backgroundRotation)===null||i===void 0)&&i.length?Math.max(...e.backgroundRotation):0);e.size&&(o.attributes.width=e.size.toString(),o.attributes.height=e.size.toString()),e.scale!==void 0&&e.scale!==100&&(o.body=_1(o,e.scale)),e.flip&&(o.body=$1(o)),e.rotate&&(o.body=w1(o,e.rotate)),(e.translateX||e.translateY)&&(o.body=b1(o,e.translateX,e.translateY)),f!=="transparent"&&u!=="transparent"&&(o.body=k1(o,f,u,y,d)),(e.radius||e.clip)&&(o.body=A1(o,(r=e.radius)!==null&&r!==void 0?r:0)),e.randomizeIds&&(o.body=F1(o));const p=C1(o),v=v1(t),k=x1(t),g=`${v}${o.body}`;return{toString:()=>g,toJson:()=>{var Z;return{svg:g,extra:{primaryBackgroundColor:f,secondaryBackgroundColor:u,backgroundType:y,backgroundRotation:d,...(Z=o.extra)===null||Z===void 0?void 0:Z.call(o)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(g)}`,...V(g,"svg"),png:({includeExif:Z=!1}={})=>V(g,"png",Z?k:void 0),jpeg:({includeExif:Z=!1}={})=>V(g,"jpeg",Z?k:void 0)}}const E1={antenna01:(t,e)=>``,antenna02:(t,e)=>``,cables01:(t,e)=>``,cables02:(t,e)=>``,round:(t,e)=>``,square:(t,e)=>``,squareAssymetric:(t,e)=>``},O1={antenna:(t,e)=>``,antennaCrooked:(t,e)=>``,bulb01:(t,e)=>``,glowingBulb01:(t,e)=>'',glowingBulb02:(t,e)=>'',horns:(t,e)=>``,lights:(t,e)=>``,pyramid:(t,e)=>``,radar:(t,e)=>''},j1={round01:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},round02:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square01:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square02:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square03:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`},square04:(t,e)=>{var a,l;return`${(l=(a=t.texture)===null||a===void 0?void 0:a.value(t,e))!==null&&l!==void 0?l:""}`}},R1={bite:(t,e)=>'',diagram:(t,e)=>'',grill01:(t,e)=>'',grill02:(t,e)=>'',grill03:(t,e)=>'',smile01:(t,e)=>'',smile02:(t,e)=>'',square01:(t,e)=>'',square02:(t,e)=>''},P1={bulging:(t,e)=>'',dizzy:(t,e)=>'',eva:(t,e)=>'',frame1:(t,e)=>'',frame2:(t,e)=>'',glow:(t,e)=>'',happy:(t,e)=>'',hearts:(t,e)=>'',robocop:(t,e)=>'',round:(t,e)=>'',roundFrame01:(t,e)=>'',roundFrame02:(t,e)=>'',sensor:(t,e)=>'',shade01:(t,e)=>''},D1={camo01:(t,e)=>'',camo02:(t,e)=>'',circuits:(t,e)=>'',dirty01:(t,e)=>'',dirty02:(t,e)=>'',dots:(t,e)=>'',grunge01:(t,e)=>'',grunge02:(t,e)=>''},I1=Object.freeze(Object.defineProperty({__proto__:null,eyes:P1,face:j1,mouth:R1,sides:E1,texture:D1,top:O1},Symbol.toStringTag,{value:"Module"}));function b({prng:t,group:e,values:a=[]}){const l=I1,c=t.pick(a);if(c&&l[e][c])return{name:c,value:l[e][c]}}function G1({prng:t,options:e}){const a=b({prng:t,group:"sides",values:e.sides}),l=b({prng:t,group:"top",values:e.top}),c=b({prng:t,group:"face",values:e.face}),i=b({prng:t,group:"mouth",values:e.mouth}),r=b({prng:t,group:"eyes",values:e.eyes}),n=b({prng:t,group:"texture",values:e.texture});return{sides:t.bool(e.sidesProbability)?a:void 0,top:t.bool(e.topProbability)?l:void 0,face:c,mouth:t.bool(e.mouthProbability)?i:void 0,eyes:r,texture:t.bool(e.textureProbability)?n:void 0}}function T1(t){return t==="transparent"?t:`#${t}`}function X1({prng:t,options:e}){var a;return{base:T1(t.pick((a=e.baseColor)!==null&&a!==void 0?a:[],"transparent"))}}const N1={$schema:"http://json-schema.org/draft-07/schema#",properties:{baseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffb300","1e88e5","546e7a","6d4c41","00acc1","f4511e","5e35b1","43a047","757575","3949ab","039be5","7cb342","c0ca33","fb8c00","d81b60","8e24aa","e53935","00897b","fdd835"]},eyes:{type:"array",items:{type:"string",enum:["bulging","dizzy","eva","frame1","frame2","glow","happy","hearts","robocop","round","roundFrame01","roundFrame02","sensor","shade01"]},default:["bulging","dizzy","eva","frame1","frame2","glow","happy","hearts","robocop","round","roundFrame01","roundFrame02","sensor","shade01"]},face:{type:"array",items:{type:"string",enum:["round01","round02","square01","square02","square03","square04"]},default:["round01","round02","square01","square02","square03","square04"]},mouth:{type:"array",items:{type:"string",enum:["bite","diagram","grill01","grill02","grill03","smile01","smile02","square01","square02"]},default:["bite","diagram","grill01","grill02","grill03","smile01","smile02","square01","square02"]},mouthProbability:{type:"integer",minimum:0,maximum:100,default:100},sides:{type:"array",items:{type:"string",enum:["antenna01","antenna02","cables01","cables02","round","square","squareAssymetric"]},default:["antenna01","antenna02","cables01","cables02","round","square","squareAssymetric"]},sidesProbability:{type:"integer",minimum:0,maximum:100,default:100},texture:{type:"array",items:{type:"string",enum:["camo01","camo02","circuits","dirty01","dirty02","dots","grunge01","grunge02"]},default:["camo01","camo02","circuits","dirty01","dirty02","dots","grunge01","grunge02"]},textureProbability:{type:"integer",minimum:0,maximum:100,default:50},top:{type:"array",items:{type:"string",enum:["antenna","antennaCrooked","bulb01","glowingBulb01","glowingBulb02","horns","lights","pyramid","radar"]},default:["antenna","antennaCrooked","bulb01","glowingBulb01","glowingBulb02","horns","lights","pyramid","radar"]},topProbability:{type:"integer",minimum:0,maximum:100,default:100}}},Y1={title:"Bottts",creator:"Pablo Stanley",source:"https://bottts.com/",homepage:"https://twitter.com/pablostanley",license:{name:"Free for personal and commercial use",url:"https://bottts.com/"}},J1=({prng:t,options:e})=>{var a,l,c,i,r,n,o,f,u,y;const d=G1({prng:t,options:e}),p=X1({prng:t,options:e});return{attributes:{viewBox:"0 0 180 180",fill:"none","shape-rendering":"auto"},body:`${(l=(a=d.sides)===null||a===void 0?void 0:a.value(d,p))!==null&&l!==void 0?l:""}${(i=(c=d.top)===null||c===void 0?void 0:c.value(d,p))!==null&&i!==void 0?i:""}${(n=(r=d.face)===null||r===void 0?void 0:r.value(d,p))!==null&&n!==void 0?n:""}${(f=(o=d.mouth)===null||o===void 0?void 0:o.value(d,p))!==null&&f!==void 0?f:""}${(y=(u=d.eyes)===null||u===void 0?void 0:u.value(d,p))!==null&&y!==void 0?y:""}`,extra:()=>({...Object.entries(d).reduce((v,[k,g])=>(v[k]=g==null?void 0:g.name,v),{}),...Object.entries(p).reduce((v,[k,g])=>(v[`${k}Color`]=g,v),{})})}},W1=Object.freeze(Object.defineProperty({__proto__:null,create:J1,meta:Y1,schema:N1},Symbol.toStringTag,{value:"Module"})),Q1=w({__name:"Avatar",props:{name:{}},setup(t){const e=t,a=e.name.split(" ").map(c=>c.trim()).reduce((c,i)=>c+i[0],""),l=q1(W1,{seed:e.name}).toDataUriSync();return(c,i)=>(m(),H(_(Y),{class:"inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border border-brand bg-surface-brand bg-opacity-35"},{default:A(()=>[M(_(X),{class:"h-8 w-auto",src:_(l),alt:c.name},null,8,["src","alt"]),M(_(N),{class:"uppercase text-white","delay-ms":600},{default:A(()=>[e1(P(_(a)),1)]),_:1})]),_:1}))}}),K1=["src"],e2=["src"],t2=a1('',1),a2=w({__name:"Radar",setup(t){const e=B(),a=B([]);function l(c){const i="intersection-point",r=c.querySelectorAll(`circle[class*='${i}']`),n=[];for(const o of r.values()){const{x:f,y:u}=o.getBoundingClientRect();n.push({x:`${Math.round(f)}px`,y:`${Math.round(u)}px`,id:J()})}return n.filter((o,f)=>f%2===0&&f%5===0)}return t1(()=>{e.value&&(a.value=l(e.value))}),(c,i)=>(m(),x("div",{ref_key:"containerEl",ref:e,class:"relative"},[h("img",{src:_(g1),alt:"Radar background",class:"relative z-0 h-auto w-full"},null,8,K1),h("img",{src:_(y1),alt:"Scanner image",class:"scanner absolute left-0 top-0 h-auto w-full"},null,8,e2),t2,(m(!0),x(j,null,R(a.value,r=>(m(),H(Q1,{key:r.x+r.y,style:l1({left:r.x,top:r.y}),class:"absolute -translate-x-1/2 -translate-y-1/2",name:r.id},null,8,["style","name"]))),128))],512))}});const l2=C(a2,[["__scopeId","data-v-ec6724fe"]]),c2={},i2={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r2=h("g",null,[h("path",{d:"M4.33333 4.33333H4.34M11.6667 4.33333H11.6733M4.33333 11.6667H4.34M8.66667 8.66667H8.67333M11.6667 11.6667H11.6733M11.3333 14H14V11.3333M9.33333 11V14M14 9.33333H11M10.4 6.66667H12.9333C13.3067 6.66667 13.4934 6.66667 13.636 6.594C13.7614 6.53009 13.8634 6.4281 13.9273 6.30266C14 6.16005 14 5.97337 14 5.6V3.06667C14 2.6933 14 2.50661 13.9273 2.36401C13.8634 2.23856 13.7614 2.13658 13.636 2.07266C13.4934 2 13.3067 2 12.9333 2H10.4C10.0266 2 9.83995 2 9.69734 2.07266C9.5719 2.13658 9.46991 2.23856 9.406 2.36401C9.33333 2.50661 9.33333 2.6933 9.33333 3.06667V5.6C9.33333 5.97337 9.33333 6.16005 9.406 6.30266C9.46991 6.4281 9.5719 6.53009 9.69734 6.594C9.83995 6.66667 10.0266 6.66667 10.4 6.66667ZM3.06667 6.66667H5.6C5.97337 6.66667 6.16005 6.66667 6.30266 6.594C6.4281 6.53009 6.53009 6.4281 6.594 6.30266C6.66667 6.16005 6.66667 5.97337 6.66667 5.6V3.06667C6.66667 2.6933 6.66667 2.50661 6.594 2.36401C6.53009 2.23856 6.4281 2.13658 6.30266 2.07266C6.16005 2 5.97337 2 5.6 2H3.06667C2.6933 2 2.50661 2 2.36401 2.07266C2.23856 2.13658 2.13658 2.23856 2.07266 2.36401C2 2.50661 2 2.6933 2 3.06667V5.6C2 5.97337 2 6.16005 2.07266 6.30266C2.13658 6.4281 2.23856 6.53009 2.36401 6.594C2.50661 6.66667 2.6933 6.66667 3.06667 6.66667ZM3.06667 14H5.6C5.97337 14 6.16005 14 6.30266 13.9273C6.4281 13.8634 6.53009 13.7614 6.594 13.636C6.66667 13.4934 6.66667 13.3067 6.66667 12.9333V10.4C6.66667 10.0266 6.66667 9.83995 6.594 9.69734C6.53009 9.5719 6.4281 9.46991 6.30266 9.406C6.16005 9.33333 5.97337 9.33333 5.6 9.33333H3.06667C2.6933 9.33333 2.50661 9.33333 2.36401 9.406C2.23856 9.46991 2.13658 9.5719 2.07266 9.69734C2 9.83995 2 10.0266 2 10.4V12.9333C2 13.3067 2 13.4934 2.07266 13.636C2.13658 13.7614 2.23856 13.8634 2.36401 13.9273C2.50661 14 2.6933 14 3.06667 14Z",stroke:"currentColor","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1),o2=[r2];function n2(t,e){return m(),x("svg",i2,o2)}const s2=C(c2,[["render",n2]]),f2={},d2={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h2=h("g",{id:"Share"},[h("path",{d:"M5.72667 9.00683L10.28 11.6602M10.2733 4.34016L5.72667 6.9935M14 3.3335C14 4.43807 13.1046 5.3335 12 5.3335C10.8954 5.3335 10 4.43807 10 3.3335C10 2.22893 10.8954 1.3335 12 1.3335C13.1046 1.3335 14 2.22893 14 3.3335ZM6 8.00016C6 9.10473 5.10457 10.0002 4 10.0002C2.89543 10.0002 2 9.10473 2 8.00016C2 6.89559 2.89543 6.00016 4 6.00016C5.10457 6.00016 6 6.89559 6 8.00016ZM14 12.6668C14 13.7714 13.1046 14.6668 12 14.6668C10.8954 14.6668 10 13.7714 10 12.6668C10 11.5623 10.8954 10.6668 12 10.6668C13.1046 10.6668 14 11.5623 14 12.6668Z",stroke:"currentColor","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1),u2=[h2];function p2(t,e){return m(),x("svg",d2,u2)}const m2=C(f2,[["render",p2]]),g2={},y2={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v2=h("g",null,[h("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),x2=[v2];function M2(t,e){return m(),x("svg",y2,x2)}const Z2=C(g2,[["render",M2]]),k2={class:"flex h-screen-d w-screen flex-col overflow-x-hidden bg-surface-primary px-x4 pt-x4 text-primary"},_2={class:"relative flex items-center justify-center py-x4"},b2={class:"flex items-center"},w2=h("h1",{class:"ml-x2 font-space-grotesk font-bold capitalize"}," Design Space ",-1),$2={class:"flex-grow pb-x3"},A2=w({__name:"SpaceLayout",setup(t){const e=c1();function a(){e.back()}return(l,c)=>(m(),x("article",k2,[h("header",_2,[h("button",{class:"absolute left-0 top-x4",onClick:a},[M(Z2,{class:"h-6 w-auto"})]),h("div",b2,[M(i1,{class:"h-6 w-auto text-surface-brand"}),w2])]),M(W,{class:"my-x2"}),h("section",$2,[D(l.$slots,"default")])]))}}),C2={class:"flex h-full flex-col justify-between"},F2={class:"flex-grow"},H2=h("p",{class:"mt-x3 text-center text-paragraph-small text-secondary"}," Waiting for devices to join your space ",-1),S2={class:"flex justify-center"},z2=w({__name:"SpacePage",setup(t){const e=[{label:"share link",icon:m2,value:"shareLink"},{label:"QR code",icon:s2,value:"qrCode"}];return(a,l)=>(m(),H(A2,null,{default:A(()=>[h("div",C2,[h("div",F2,[h("section",null,[M(l2,{class:"w-full"}),H2]),M(u1,{options:e,class:"mb-x3 mt-x6"})]),h("div",S2,[M(m1,null,{default:A(()=>[M(Q,{label:"add file",variant:"rounded"},{default:A(()=>[M(r1,{class:"h-8 w-auto"})]),_:1})]),_:1})])])]),_:1}))}});export{z2 as default}; diff --git a/docs/assets/SpacePage-d4b2dcaf.css b/docs/assets/SpacePage-d4b2dcaf.css deleted file mode 100644 index 16df598..0000000 --- a/docs/assets/SpacePage-d4b2dcaf.css +++ /dev/null @@ -1 +0,0 @@ -.divider[data-v-89ad0c1e]{width:1px}.scanner[data-v-657cbd9e]{animation:scanning-657cbd9e 4s linear infinite}@keyframes scanning-657cbd9e{0%{transform:rotate(0)}to{transform:rotate(360deg)}} diff --git a/docs/assets/SpacePage-d968c969.css b/docs/assets/SpacePage-d968c969.css new file mode 100644 index 0000000..936e9d3 --- /dev/null +++ b/docs/assets/SpacePage-d968c969.css @@ -0,0 +1 @@ +.divider[data-v-89ad0c1e]{width:1px}.scanner[data-v-ec6724fe]{animation:scanning-ec6724fe 4s linear infinite}@keyframes scanning-ec6724fe{0%{transform:rotate(0)}to{transform:rotate(360deg)}} diff --git a/docs/assets/index-bc0f2b7e.js b/docs/assets/index-be8bbb8c.js similarity index 99% rename from docs/assets/index-bc0f2b7e.js rename to docs/assets/index-be8bbb8c.js index 4a6443f..6f25716 100644 --- a/docs/assets/index-bc0f2b7e.js +++ b/docs/assets/index-be8bbb8c.js @@ -2,4 +2,4 @@ * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const ft=typeof window<"u";function fc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const q=Object.assign;function Ln(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ae(r)?r.map(e):e(r)}return n}const Lt=()=>{},Ae=Array.isArray,ac=/\/$/,hc=e=>e.replace(ac,"");function jn(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=mc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function dc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&vt(t.matched[s],n.matched[r])&&wo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!gc(e[n],t[n]))return!1;return!0}function gc(e,t){return Ae(e)?ir(e,t):Ae(t)?ir(t,e):e===t}function ir(e,t){return Ae(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function mc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Kt;(function(e){e.pop="pop",e.push="push"})(Kt||(Kt={}));var jt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(jt||(jt={}));function _c(e){if(!e)if(ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hc(e)}const yc=/^[^#]+#/;function bc(e,t){return e.replace(yc,"#")+t}function vc(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const On=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ec(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=vc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function lr(e,t){return(history.state?history.state.position-t:-1)+e}const Xn=new Map;function wc(e,t){Xn.set(e,t)}function xc(e){const t=Xn.get(e);return Xn.delete(e),t}let Rc=()=>location.protocol+"//"+location.host;function xo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),or(l,"")}return or(n,e)+s+r}function Pc(e,t,n,s){let r=[],o=[],i=null;const c=({state:g})=>{const b=xo(e,location),O=n.value,A=t.value;let H=0;if(g){if(n.value=b,t.value=g,i&&i===O){i=null;return}H=A?g.position-A.position:0}else s(b);r.forEach(I=>{I(n.value,O,{delta:H,type:Kt.pop,direction:H?H>0?jt.forward:jt.back:jt.unknown})})};function l(){i=n.value}function f(g){r.push(g);const b=()=>{const O=r.indexOf(g);O>-1&&r.splice(O,1)};return o.push(b),b}function a(){const{history:g}=window;g.state&&g.replaceState(q({},g.state,{scroll:On()}),"")}function d(){for(const g of o)g();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:l,listen:f,destroy:d}}function cr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?On():null}}function Cc(e){const{history:t,location:n}=window,s={value:xo(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,f,a){const d=e.indexOf("#"),g=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Rc()+e+l;try{t[a?"replaceState":"pushState"](f,"",g),r.value=f}catch(b){console.error(b),n[a?"replace":"assign"](g)}}function i(l,f){const a=q({},t.state,cr(r.value.back,l,r.value.forward,!0),f,{position:r.value.position});o(l,a,!0),s.value=l}function c(l,f){const a=q({},r.value,t.state,{forward:l,scroll:On()});o(a.current,a,!0);const d=q({},cr(s.value,l,null),{position:a.position+1},f);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Oc(e){e=_c(e);const t=Cc(e),n=Pc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=q({location:"",base:e,go:s,createHref:bc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Ac(e){return typeof e=="string"||e&&typeof e=="object"}function Ro(e){return typeof e=="string"||typeof e=="symbol"}const We={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Po=Symbol("");var ur;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ur||(ur={}));function Et(e,t){return q(new Error,{type:e,[Po]:!0},t)}function $e(e,t){return e instanceof Error&&Po in e&&(t==null||!!(e.type&t))}const fr="[^/]+?",Tc={sensitive:!1,strict:!1,start:!0,end:!0},Sc=/[.+*?^${}()[\]/\\]/g;function Ic(e,t){const n=q({},Tc,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const a=f.length?[]:[90];n.strict&&!f.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Nc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Fc={type:0,value:""},Lc=/[a-zA-Z0-9_]/;function jc(e){if(!e)return[[]];if(e==="/")return[[Fc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${n})/"${f}": ${b}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,f="",a="";function d(){f&&(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:a,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=l}for(;c{i(L)}:Lt}function i(a){if(Ro(a)){const d=s.get(a);d&&(s.delete(a),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(a);d>-1&&(n.splice(d,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function c(){return n}function l(a){let d=0;for(;d=0&&(a.record.path!==n[d].record.path||!Co(a,n[d]));)d++;n.splice(d,0,a),a.record.name&&!dr(a)&&s.set(a.record.name,a)}function f(a,d){let g,b={},O,A;if("name"in a&&a.name){if(g=s.get(a.name),!g)throw Et(1,{location:a});A=g.record.name,b=q(hr(d.params,g.keys.filter(L=>!L.optional).map(L=>L.name)),a.params&&hr(a.params,g.keys.map(L=>L.name))),O=g.stringify(b)}else if("path"in a)O=a.path,g=n.find(L=>L.re.test(O)),g&&(b=g.parse(O),A=g.record.name);else{if(g=d.name?s.get(d.name):n.find(L=>L.re.test(d.path)),!g)throw Et(1,{location:a,currentLocation:d});A=g.record.name,b=q({},d.params,a.params),O=g.stringify(b)}const H=[];let I=g;for(;I;)H.unshift(I.record),I=I.parent;return{name:A,path:O,params:b,matched:H,meta:Dc(H)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function hr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function kc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Bc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Bc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function dr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dc(e){return e.reduce((t,n)=>q(t,n.meta),{})}function pr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Co(e,t){return t.children.some(n=>n===e||Co(e,n))}const Oo=/#/g,Kc=/&/g,Uc=/\//g,Wc=/=/g,zc=/\?/g,Ao=/\+/g,qc=/%5B/g,Vc=/%5D/g,To=/%5E/g,Qc=/%60/g,So=/%7B/g,Yc=/%7C/g,Io=/%7D/g,Jc=/%20/g;function xs(e){return encodeURI(""+e).replace(Yc,"|").replace(qc,"[").replace(Vc,"]")}function Xc(e){return xs(e).replace(So,"{").replace(Io,"}").replace(To,"^")}function Zn(e){return xs(e).replace(Ao,"%2B").replace(Jc,"+").replace(Oo,"%23").replace(Kc,"%26").replace(Qc,"`").replace(So,"{").replace(Io,"}").replace(To,"^")}function Zc(e){return Zn(e).replace(Wc,"%3D")}function Gc(e){return xs(e).replace(Oo,"%23").replace(zc,"%3F")}function eu(e){return e==null?"":Gc(e).replace(Uc,"%2F")}function fn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function tu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Zn(o)):[s&&Zn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function nu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ae(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const su=Symbol(""),mr=Symbol(""),An=Symbol(""),Mo=Symbol(""),Gn=Symbol("");function At(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function qe(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Et(4,{from:n,to:t})):d instanceof Error?c(d):Ac(d)?c(Et(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},f=e.call(s&&s.instances[r],t,n,l);let a=Promise.resolve(f);e.length<3&&(a=a.then(l)),a.catch(d=>c(d))})}function Hn(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(ru(c)){const f=(c.__vccOpts||c)[t];f&&r.push(qe(f,n,s,o,i))}else{let l=c();r.push(()=>l.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const a=fc(f)?f.default:f;o.components[i]=a;const g=(a.__vccOpts||a)[t];return g&&qe(g,n,s,o,i)()}))}}return r}function ru(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _r(e){const t=Le(An),n=Le(Mo),s=Re(()=>t.resolve(gt(e.to))),r=Re(()=>{const{matched:l}=s.value,{length:f}=l,a=l[f-1],d=n.matched;if(!a||!d.length)return-1;const g=d.findIndex(vt.bind(null,a));if(g>-1)return g;const b=yr(l[f-2]);return f>1&&yr(a)===b&&d[d.length-1].path!==b?d.findIndex(vt.bind(null,l[f-2])):g}),o=Re(()=>r.value>-1&&cu(n.params,s.value.params)),i=Re(()=>r.value>-1&&r.value===n.matched.length-1&&wo(n.params,s.value.params));function c(l={}){return lu(l)?t[gt(e.replace)?"replace":"push"](gt(e.to)).catch(Lt):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const ou=no({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_r,setup(e,{slots:t}){const n=vn(_r(e)),{options:s}=Le(An),r=Re(()=>({[br(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[br(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Eo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),iu=ou;function lu(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 cu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ae(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function yr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const br=(e,t,n)=>e??t??n,uu=no({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Le(Gn),r=Re(()=>e.route||s.value),o=Le(mr,0),i=Re(()=>{let f=gt(o);const{matched:a}=r.value;let d;for(;(d=a[f])&&!d.components;)f++;return f}),c=Re(()=>r.value.matched[i.value]);Gt(mr,Re(()=>i.value+1)),Gt(su,c),Gt(Gn,r);const l=mi();return Zt(()=>[l.value,c.value,e.name],([f,a,d],[g,b,O])=>{a&&(a.instances[d]=f,b&&b!==a&&f&&f===g&&(a.leaveGuards.size||(a.leaveGuards=b.leaveGuards),a.updateGuards.size||(a.updateGuards=b.updateGuards))),f&&a&&(!b||!vt(a,b)||!g)&&(a.enterCallbacks[d]||[]).forEach(A=>A(f))},{flush:"post"}),()=>{const f=r.value,a=e.name,d=c.value,g=d&&d.components[a];if(!g)return vr(n.default,{Component:g,route:f});const b=d.props[a],O=b?b===!0?f.params:typeof b=="function"?b(f):b:null,H=Eo(g,q({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(d.instances[a]=null)},ref:l}));return vr(n.default,{Component:H,route:f})||H}}});function vr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fu=uu;function au(e){const t=$c(e.routes,e),n=e.parseQuery||tu,s=e.stringifyQuery||gr,r=e.history,o=At(),i=At(),c=At(),l=_i(We);let f=We;ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Ln.bind(null,_=>""+_),d=Ln.bind(null,eu),g=Ln.bind(null,fn);function b(_,C){let R,S;return Ro(_)?(R=t.getRecordMatcher(_),S=C):S=_,t.addRoute(S,R)}function O(_){const C=t.getRecordMatcher(_);C&&t.removeRoute(C)}function A(){return t.getRoutes().map(_=>_.record)}function H(_){return!!t.getRecordMatcher(_)}function I(_,C){if(C=q({},C||l.value),typeof _=="string"){const p=jn(n,_,C.path),m=t.resolve({path:p.path},C),y=r.createHref(p.fullPath);return q(p,m,{params:g(m.params),hash:fn(p.hash),redirectedFrom:void 0,href:y})}let R;if("path"in _)R=q({},_,{path:jn(n,_.path,C.path).path});else{const p=q({},_.params);for(const m in p)p[m]==null&&delete p[m];R=q({},_,{params:d(p)}),C.params=d(C.params)}const S=t.resolve(R,C),z=_.hash||"";S.params=a(g(S.params));const u=dc(s,q({},_,{hash:Xc(z),path:S.path})),h=r.createHref(u);return q({fullPath:u,hash:z,query:s===gr?nu(_.query):_.query||{}},S,{redirectedFrom:void 0,href:h})}function L(_){return typeof _=="string"?jn(n,_,l.value.path):q({},_)}function D(_,C){if(f!==_)return Et(8,{from:C,to:_})}function F(_){return ne(_)}function ee(_){return F(q(L(_),{replace:!0}))}function Z(_){const C=_.matched[_.matched.length-1];if(C&&C.redirect){const{redirect:R}=C;let S=typeof R=="function"?R(_):R;return typeof S=="string"&&(S=S.includes("?")||S.includes("#")?S=L(S):{path:S},S.params={}),q({query:_.query,hash:_.hash,params:"path"in S?{}:_.params},S)}}function ne(_,C){const R=f=I(_),S=l.value,z=_.state,u=_.force,h=_.replace===!0,p=Z(R);if(p)return ne(q(L(p),{state:typeof p=="object"?q({},z,p.state):z,force:u,replace:h}),C||R);const m=R;m.redirectedFrom=C;let y;return!u&&pc(s,S,R)&&(y=Et(16,{to:m,from:S}),Se(S,S,!0,!1)),(y?Promise.resolve(y):de(m,S)).catch(v=>$e(v)?$e(v,2)?v:Ke(v):W(v,m,S)).then(v=>{if(v){if($e(v,2))return ne(q({replace:h},L(v.to),{state:typeof v.to=="object"?q({},z,v.to.state):z,force:u}),C||m)}else v=Xe(m,S,!0,h,z);return _e(m,S,v),v})}function oe(_,C){const R=D(_,C);return R?Promise.reject(R):Promise.resolve()}function ve(_){const C=lt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(_):_()}function de(_,C){let R;const[S,z,u]=hu(_,C);R=Hn(S.reverse(),"beforeRouteLeave",_,C);for(const p of S)p.leaveGuards.forEach(m=>{R.push(qe(m,_,C))});const h=oe.bind(null,_,C);return R.push(h),ce(R).then(()=>{R=[];for(const p of o.list())R.push(qe(p,_,C));return R.push(h),ce(R)}).then(()=>{R=Hn(z,"beforeRouteUpdate",_,C);for(const p of z)p.updateGuards.forEach(m=>{R.push(qe(m,_,C))});return R.push(h),ce(R)}).then(()=>{R=[];for(const p of u)if(p.beforeEnter)if(Ae(p.beforeEnter))for(const m of p.beforeEnter)R.push(qe(m,_,C));else R.push(qe(p.beforeEnter,_,C));return R.push(h),ce(R)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),R=Hn(u,"beforeRouteEnter",_,C),R.push(h),ce(R))).then(()=>{R=[];for(const p of i.list())R.push(qe(p,_,C));return R.push(h),ce(R)}).catch(p=>$e(p,8)?p:Promise.reject(p))}function _e(_,C,R){c.list().forEach(S=>ve(()=>S(_,C,R)))}function Xe(_,C,R,S,z){const u=D(_,C);if(u)return u;const h=C===We,p=ft?history.state:{};R&&(S||h?r.replace(_.fullPath,q({scroll:h&&p&&p.scroll},z)):r.push(_.fullPath,z)),l.value=_,Se(_,C,R,h),Ke()}let Te;function Pt(){Te||(Te=r.listen((_,C,R)=>{if(!Ut.listening)return;const S=I(_),z=Z(S);if(z){ne(q(z,{replace:!0}),S).catch(Lt);return}f=S;const u=l.value;ft&&wc(lr(u.fullPath,R.delta),On()),de(S,u).catch(h=>$e(h,12)?h:$e(h,2)?(ne(h.to,S).then(p=>{$e(p,20)&&!R.delta&&R.type===Kt.pop&&r.go(-1,!1)}).catch(Lt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),W(h,S,u))).then(h=>{h=h||Xe(S,u,!1),h&&(R.delta&&!$e(h,8)?r.go(-R.delta,!1):R.type===Kt.pop&&$e(h,20)&&r.go(-1,!1)),_e(S,u,h)}).catch(Lt)}))}let ot=At(),se=At(),Q;function W(_,C,R){Ke(_);const S=se.list();return S.length?S.forEach(z=>z(_,C,R)):console.error(_),Promise.reject(_)}function He(){return Q&&l.value!==We?Promise.resolve():new Promise((_,C)=>{ot.add([_,C])})}function Ke(_){return Q||(Q=!_,Pt(),ot.list().forEach(([C,R])=>_?R(_):C()),ot.reset()),_}function Se(_,C,R,S){const{scrollBehavior:z}=e;if(!ft||!z)return Promise.resolve();const u=!R&&xc(lr(_.fullPath,0))||(S||!R)&&history.state&&history.state.scroll||null;return Vr().then(()=>z(_,C,u)).then(h=>h&&Ec(h)).catch(h=>W(h,_,C))}const pe=_=>r.go(_);let it;const lt=new Set,Ut={currentRoute:l,listening:!0,addRoute:b,removeRoute:O,hasRoute:H,getRoutes:A,resolve:I,options:e,push:F,replace:ee,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:se.add,isReady:He,install(_){const C=this;_.component("RouterLink",iu),_.component("RouterView",fu),_.config.globalProperties.$router=C,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>gt(l)}),ft&&!it&&l.value===We&&(it=!0,F(r.location).catch(z=>{}));const R={};for(const z in We)Object.defineProperty(R,z,{get:()=>l.value[z],enumerable:!0});_.provide(An,C),_.provide(Mo,Br(R)),_.provide(Gn,l);const S=_.unmount;lt.add(_),_.unmount=function(){lt.delete(_),lt.size<1&&(f=We,Te&&Te(),Te=null,l.value=We,it=!1,Q=!1),S()}}};function ce(_){return _.reduce((C,R)=>C.then(()=>ve(R)),Promise.resolve())}return Ut}function hu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ivt(f,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(f=>vt(f,l))||r.push(l))}return[n,s,r]}function Lu(){return Le(An)}const du=()=>ws(()=>import("./ChooseNamePage-33882997.js"),["assets/ChooseNamePage-33882997.js","assets/AppDivider-d3b10cf8.js","assets/AppDivider-ab32987d.css","assets/BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js","assets/BaseLayout-39ddc407.css"]),pu=()=>ws(()=>import("./ListSpacesPage-0d2f642a.js"),["assets/ListSpacesPage-0d2f642a.js","assets/AppDivider-d3b10cf8.js","assets/AppDivider-ab32987d.css","assets/BaseLayout.vue_vue_type_script_setup_true_lang-de6aa019.js","assets/BaseLayout-39ddc407.css","assets/PlusIcon-61e9a251.js","assets/ListSpacesPage-cb2e1cc4.css"]),gu=()=>ws(()=>import("./SpacePage-4fcf13f6.js"),["assets/SpacePage-4fcf13f6.js","assets/AppDivider-d3b10cf8.js","assets/AppDivider-ab32987d.css","assets/PlusIcon-61e9a251.js","assets/SpacePage-d4b2dcaf.css"]),mu=[{name:"home",path:"/",redirect:{name:"chooseName"}},{name:"chooseName",path:"/choose-name",component:du},{path:"/spaces",redirect:{name:"listSpaces"},children:[{path:"",name:"listSpaces",component:pu},{path:":name",name:"space",component:gu}]}],_u=au({history:Oc("/file-transfer-app"),routes:mu}),No=nc(lc);No.use(_u);No.mount("#app");export{Eu as A,vn as B,Tu as C,Cu as D,wl as E,we as F,Ru as G,oo as H,Dr as I,vu as J,Vi as K,Fu as L,Le as M,Gt as N,xu as O,Vr as P,zi as Q,qi as R,Eo as S,yu as T,vl as U,Tn as V,je as W,yt as X,Su as Y,rc as _,yo as a,he as b,ys as c,no as d,El as e,Iu as f,Pu as g,Nu as h,Au as i,mi as j,Re as k,Lu as l,Ou as m,_n as n,_s as o,Wi as p,Mu as q,ji as r,mn as s,bu as t,gt as u,_i as v,Ii as w,Zt as x,wu as y,Qo as z}; + */const ft=typeof window<"u";function fc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const q=Object.assign;function Ln(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ae(r)?r.map(e):e(r)}return n}const Lt=()=>{},Ae=Array.isArray,ac=/\/$/,hc=e=>e.replace(ac,"");function jn(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=mc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function dc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&vt(t.matched[s],n.matched[r])&&wo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!gc(e[n],t[n]))return!1;return!0}function gc(e,t){return Ae(e)?ir(e,t):Ae(t)?ir(t,e):e===t}function ir(e,t){return Ae(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function mc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Kt;(function(e){e.pop="pop",e.push="push"})(Kt||(Kt={}));var jt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(jt||(jt={}));function _c(e){if(!e)if(ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hc(e)}const yc=/^[^#]+#/;function bc(e,t){return e.replace(yc,"#")+t}function vc(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const On=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ec(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=vc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function lr(e,t){return(history.state?history.state.position-t:-1)+e}const Xn=new Map;function wc(e,t){Xn.set(e,t)}function xc(e){const t=Xn.get(e);return Xn.delete(e),t}let Rc=()=>location.protocol+"//"+location.host;function xo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),or(l,"")}return or(n,e)+s+r}function Pc(e,t,n,s){let r=[],o=[],i=null;const c=({state:g})=>{const b=xo(e,location),O=n.value,A=t.value;let H=0;if(g){if(n.value=b,t.value=g,i&&i===O){i=null;return}H=A?g.position-A.position:0}else s(b);r.forEach(I=>{I(n.value,O,{delta:H,type:Kt.pop,direction:H?H>0?jt.forward:jt.back:jt.unknown})})};function l(){i=n.value}function f(g){r.push(g);const b=()=>{const O=r.indexOf(g);O>-1&&r.splice(O,1)};return o.push(b),b}function a(){const{history:g}=window;g.state&&g.replaceState(q({},g.state,{scroll:On()}),"")}function d(){for(const g of o)g();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:l,listen:f,destroy:d}}function cr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?On():null}}function Cc(e){const{history:t,location:n}=window,s={value:xo(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,f,a){const d=e.indexOf("#"),g=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Rc()+e+l;try{t[a?"replaceState":"pushState"](f,"",g),r.value=f}catch(b){console.error(b),n[a?"replace":"assign"](g)}}function i(l,f){const a=q({},t.state,cr(r.value.back,l,r.value.forward,!0),f,{position:r.value.position});o(l,a,!0),s.value=l}function c(l,f){const a=q({},r.value,t.state,{forward:l,scroll:On()});o(a.current,a,!0);const d=q({},cr(s.value,l,null),{position:a.position+1},f);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Oc(e){e=_c(e);const t=Cc(e),n=Pc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=q({location:"",base:e,go:s,createHref:bc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Ac(e){return typeof e=="string"||e&&typeof e=="object"}function Ro(e){return typeof e=="string"||typeof e=="symbol"}const We={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Po=Symbol("");var ur;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ur||(ur={}));function Et(e,t){return q(new Error,{type:e,[Po]:!0},t)}function $e(e,t){return e instanceof Error&&Po in e&&(t==null||!!(e.type&t))}const fr="[^/]+?",Tc={sensitive:!1,strict:!1,start:!0,end:!0},Sc=/[.+*?^${}()[\]/\\]/g;function Ic(e,t){const n=q({},Tc,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const a=f.length?[]:[90];n.strict&&!f.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Nc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Fc={type:0,value:""},Lc=/[a-zA-Z0-9_]/;function jc(e){if(!e)return[[]];if(e==="/")return[[Fc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${n})/"${f}": ${b}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,f="",a="";function d(){f&&(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:a,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=l}for(;c{i(L)}:Lt}function i(a){if(Ro(a)){const d=s.get(a);d&&(s.delete(a),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(a);d>-1&&(n.splice(d,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function c(){return n}function l(a){let d=0;for(;d=0&&(a.record.path!==n[d].record.path||!Co(a,n[d]));)d++;n.splice(d,0,a),a.record.name&&!dr(a)&&s.set(a.record.name,a)}function f(a,d){let g,b={},O,A;if("name"in a&&a.name){if(g=s.get(a.name),!g)throw Et(1,{location:a});A=g.record.name,b=q(hr(d.params,g.keys.filter(L=>!L.optional).map(L=>L.name)),a.params&&hr(a.params,g.keys.map(L=>L.name))),O=g.stringify(b)}else if("path"in a)O=a.path,g=n.find(L=>L.re.test(O)),g&&(b=g.parse(O),A=g.record.name);else{if(g=d.name?s.get(d.name):n.find(L=>L.re.test(d.path)),!g)throw Et(1,{location:a,currentLocation:d});A=g.record.name,b=q({},d.params,a.params),O=g.stringify(b)}const H=[];let I=g;for(;I;)H.unshift(I.record),I=I.parent;return{name:A,path:O,params:b,matched:H,meta:Dc(H)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function hr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function kc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Bc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Bc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function dr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dc(e){return e.reduce((t,n)=>q(t,n.meta),{})}function pr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Co(e,t){return t.children.some(n=>n===e||Co(e,n))}const Oo=/#/g,Kc=/&/g,Uc=/\//g,Wc=/=/g,zc=/\?/g,Ao=/\+/g,qc=/%5B/g,Vc=/%5D/g,To=/%5E/g,Qc=/%60/g,So=/%7B/g,Yc=/%7C/g,Io=/%7D/g,Jc=/%20/g;function xs(e){return encodeURI(""+e).replace(Yc,"|").replace(qc,"[").replace(Vc,"]")}function Xc(e){return xs(e).replace(So,"{").replace(Io,"}").replace(To,"^")}function Zn(e){return xs(e).replace(Ao,"%2B").replace(Jc,"+").replace(Oo,"%23").replace(Kc,"%26").replace(Qc,"`").replace(So,"{").replace(Io,"}").replace(To,"^")}function Zc(e){return Zn(e).replace(Wc,"%3D")}function Gc(e){return xs(e).replace(Oo,"%23").replace(zc,"%3F")}function eu(e){return e==null?"":Gc(e).replace(Uc,"%2F")}function fn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function tu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Zn(o)):[s&&Zn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function nu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ae(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const su=Symbol(""),mr=Symbol(""),An=Symbol(""),Mo=Symbol(""),Gn=Symbol("");function At(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function qe(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Et(4,{from:n,to:t})):d instanceof Error?c(d):Ac(d)?c(Et(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},f=e.call(s&&s.instances[r],t,n,l);let a=Promise.resolve(f);e.length<3&&(a=a.then(l)),a.catch(d=>c(d))})}function Hn(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(ru(c)){const f=(c.__vccOpts||c)[t];f&&r.push(qe(f,n,s,o,i))}else{let l=c();r.push(()=>l.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const a=fc(f)?f.default:f;o.components[i]=a;const g=(a.__vccOpts||a)[t];return g&&qe(g,n,s,o,i)()}))}}return r}function ru(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _r(e){const t=Le(An),n=Le(Mo),s=Re(()=>t.resolve(gt(e.to))),r=Re(()=>{const{matched:l}=s.value,{length:f}=l,a=l[f-1],d=n.matched;if(!a||!d.length)return-1;const g=d.findIndex(vt.bind(null,a));if(g>-1)return g;const b=yr(l[f-2]);return f>1&&yr(a)===b&&d[d.length-1].path!==b?d.findIndex(vt.bind(null,l[f-2])):g}),o=Re(()=>r.value>-1&&cu(n.params,s.value.params)),i=Re(()=>r.value>-1&&r.value===n.matched.length-1&&wo(n.params,s.value.params));function c(l={}){return lu(l)?t[gt(e.replace)?"replace":"push"](gt(e.to)).catch(Lt):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const ou=no({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_r,setup(e,{slots:t}){const n=vn(_r(e)),{options:s}=Le(An),r=Re(()=>({[br(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[br(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Eo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),iu=ou;function lu(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 cu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ae(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function yr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const br=(e,t,n)=>e??t??n,uu=no({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Le(Gn),r=Re(()=>e.route||s.value),o=Le(mr,0),i=Re(()=>{let f=gt(o);const{matched:a}=r.value;let d;for(;(d=a[f])&&!d.components;)f++;return f}),c=Re(()=>r.value.matched[i.value]);Gt(mr,Re(()=>i.value+1)),Gt(su,c),Gt(Gn,r);const l=mi();return Zt(()=>[l.value,c.value,e.name],([f,a,d],[g,b,O])=>{a&&(a.instances[d]=f,b&&b!==a&&f&&f===g&&(a.leaveGuards.size||(a.leaveGuards=b.leaveGuards),a.updateGuards.size||(a.updateGuards=b.updateGuards))),f&&a&&(!b||!vt(a,b)||!g)&&(a.enterCallbacks[d]||[]).forEach(A=>A(f))},{flush:"post"}),()=>{const f=r.value,a=e.name,d=c.value,g=d&&d.components[a];if(!g)return vr(n.default,{Component:g,route:f});const b=d.props[a],O=b?b===!0?f.params:typeof b=="function"?b(f):b:null,H=Eo(g,q({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(d.instances[a]=null)},ref:l}));return vr(n.default,{Component:H,route:f})||H}}});function vr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fu=uu;function au(e){const t=$c(e.routes,e),n=e.parseQuery||tu,s=e.stringifyQuery||gr,r=e.history,o=At(),i=At(),c=At(),l=_i(We);let f=We;ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Ln.bind(null,_=>""+_),d=Ln.bind(null,eu),g=Ln.bind(null,fn);function b(_,C){let R,S;return Ro(_)?(R=t.getRecordMatcher(_),S=C):S=_,t.addRoute(S,R)}function O(_){const C=t.getRecordMatcher(_);C&&t.removeRoute(C)}function A(){return t.getRoutes().map(_=>_.record)}function H(_){return!!t.getRecordMatcher(_)}function I(_,C){if(C=q({},C||l.value),typeof _=="string"){const p=jn(n,_,C.path),m=t.resolve({path:p.path},C),y=r.createHref(p.fullPath);return q(p,m,{params:g(m.params),hash:fn(p.hash),redirectedFrom:void 0,href:y})}let R;if("path"in _)R=q({},_,{path:jn(n,_.path,C.path).path});else{const p=q({},_.params);for(const m in p)p[m]==null&&delete p[m];R=q({},_,{params:d(p)}),C.params=d(C.params)}const S=t.resolve(R,C),z=_.hash||"";S.params=a(g(S.params));const u=dc(s,q({},_,{hash:Xc(z),path:S.path})),h=r.createHref(u);return q({fullPath:u,hash:z,query:s===gr?nu(_.query):_.query||{}},S,{redirectedFrom:void 0,href:h})}function L(_){return typeof _=="string"?jn(n,_,l.value.path):q({},_)}function D(_,C){if(f!==_)return Et(8,{from:C,to:_})}function F(_){return ne(_)}function ee(_){return F(q(L(_),{replace:!0}))}function Z(_){const C=_.matched[_.matched.length-1];if(C&&C.redirect){const{redirect:R}=C;let S=typeof R=="function"?R(_):R;return typeof S=="string"&&(S=S.includes("?")||S.includes("#")?S=L(S):{path:S},S.params={}),q({query:_.query,hash:_.hash,params:"path"in S?{}:_.params},S)}}function ne(_,C){const R=f=I(_),S=l.value,z=_.state,u=_.force,h=_.replace===!0,p=Z(R);if(p)return ne(q(L(p),{state:typeof p=="object"?q({},z,p.state):z,force:u,replace:h}),C||R);const m=R;m.redirectedFrom=C;let y;return!u&&pc(s,S,R)&&(y=Et(16,{to:m,from:S}),Se(S,S,!0,!1)),(y?Promise.resolve(y):de(m,S)).catch(v=>$e(v)?$e(v,2)?v:Ke(v):W(v,m,S)).then(v=>{if(v){if($e(v,2))return ne(q({replace:h},L(v.to),{state:typeof v.to=="object"?q({},z,v.to.state):z,force:u}),C||m)}else v=Xe(m,S,!0,h,z);return _e(m,S,v),v})}function oe(_,C){const R=D(_,C);return R?Promise.reject(R):Promise.resolve()}function ve(_){const C=lt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(_):_()}function de(_,C){let R;const[S,z,u]=hu(_,C);R=Hn(S.reverse(),"beforeRouteLeave",_,C);for(const p of S)p.leaveGuards.forEach(m=>{R.push(qe(m,_,C))});const h=oe.bind(null,_,C);return R.push(h),ce(R).then(()=>{R=[];for(const p of o.list())R.push(qe(p,_,C));return R.push(h),ce(R)}).then(()=>{R=Hn(z,"beforeRouteUpdate",_,C);for(const p of z)p.updateGuards.forEach(m=>{R.push(qe(m,_,C))});return R.push(h),ce(R)}).then(()=>{R=[];for(const p of u)if(p.beforeEnter)if(Ae(p.beforeEnter))for(const m of p.beforeEnter)R.push(qe(m,_,C));else R.push(qe(p.beforeEnter,_,C));return R.push(h),ce(R)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),R=Hn(u,"beforeRouteEnter",_,C),R.push(h),ce(R))).then(()=>{R=[];for(const p of i.list())R.push(qe(p,_,C));return R.push(h),ce(R)}).catch(p=>$e(p,8)?p:Promise.reject(p))}function _e(_,C,R){c.list().forEach(S=>ve(()=>S(_,C,R)))}function Xe(_,C,R,S,z){const u=D(_,C);if(u)return u;const h=C===We,p=ft?history.state:{};R&&(S||h?r.replace(_.fullPath,q({scroll:h&&p&&p.scroll},z)):r.push(_.fullPath,z)),l.value=_,Se(_,C,R,h),Ke()}let Te;function Pt(){Te||(Te=r.listen((_,C,R)=>{if(!Ut.listening)return;const S=I(_),z=Z(S);if(z){ne(q(z,{replace:!0}),S).catch(Lt);return}f=S;const u=l.value;ft&&wc(lr(u.fullPath,R.delta),On()),de(S,u).catch(h=>$e(h,12)?h:$e(h,2)?(ne(h.to,S).then(p=>{$e(p,20)&&!R.delta&&R.type===Kt.pop&&r.go(-1,!1)}).catch(Lt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),W(h,S,u))).then(h=>{h=h||Xe(S,u,!1),h&&(R.delta&&!$e(h,8)?r.go(-R.delta,!1):R.type===Kt.pop&&$e(h,20)&&r.go(-1,!1)),_e(S,u,h)}).catch(Lt)}))}let ot=At(),se=At(),Q;function W(_,C,R){Ke(_);const S=se.list();return S.length?S.forEach(z=>z(_,C,R)):console.error(_),Promise.reject(_)}function He(){return Q&&l.value!==We?Promise.resolve():new Promise((_,C)=>{ot.add([_,C])})}function Ke(_){return Q||(Q=!_,Pt(),ot.list().forEach(([C,R])=>_?R(_):C()),ot.reset()),_}function Se(_,C,R,S){const{scrollBehavior:z}=e;if(!ft||!z)return Promise.resolve();const u=!R&&xc(lr(_.fullPath,0))||(S||!R)&&history.state&&history.state.scroll||null;return Vr().then(()=>z(_,C,u)).then(h=>h&&Ec(h)).catch(h=>W(h,_,C))}const pe=_=>r.go(_);let it;const lt=new Set,Ut={currentRoute:l,listening:!0,addRoute:b,removeRoute:O,hasRoute:H,getRoutes:A,resolve:I,options:e,push:F,replace:ee,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:se.add,isReady:He,install(_){const C=this;_.component("RouterLink",iu),_.component("RouterView",fu),_.config.globalProperties.$router=C,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>gt(l)}),ft&&!it&&l.value===We&&(it=!0,F(r.location).catch(z=>{}));const R={};for(const z in We)Object.defineProperty(R,z,{get:()=>l.value[z],enumerable:!0});_.provide(An,C),_.provide(Mo,Br(R)),_.provide(Gn,l);const S=_.unmount;lt.add(_),_.unmount=function(){lt.delete(_),lt.size<1&&(f=We,Te&&Te(),Te=null,l.value=We,it=!1,Q=!1),S()}}};function ce(_){return _.reduce((C,R)=>C.then(()=>ve(R)),Promise.resolve())}return Ut}function hu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ivt(f,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(f=>vt(f,l))||r.push(l))}return[n,s,r]}function Lu(){return Le(An)}const du=()=>ws(()=>import("./ChooseNamePage-5d126b5e.js"),["assets/ChooseNamePage-5d126b5e.js","assets/AppDivider-0549cd27.js","assets/AppDivider-ab32987d.css","assets/BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js","assets/BaseLayout-39ddc407.css"]),pu=()=>ws(()=>import("./ListSpacesPage-b8d4a584.js"),["assets/ListSpacesPage-b8d4a584.js","assets/AppDivider-0549cd27.js","assets/AppDivider-ab32987d.css","assets/BaseLayout.vue_vue_type_script_setup_true_lang-30868c59.js","assets/BaseLayout-39ddc407.css","assets/PlusIcon-c11a82f6.js","assets/ListSpacesPage-cb2e1cc4.css"]),gu=()=>ws(()=>import("./SpacePage-90a4dbc1.js"),["assets/SpacePage-90a4dbc1.js","assets/AppDivider-0549cd27.js","assets/AppDivider-ab32987d.css","assets/PlusIcon-c11a82f6.js","assets/SpacePage-d968c969.css"]),mu=[{name:"home",path:"/",redirect:{name:"chooseName"}},{name:"chooseName",path:"/choose-name",component:du},{path:"/spaces",redirect:{name:"listSpaces"},children:[{path:"",name:"listSpaces",component:pu},{path:":name",name:"space",component:gu}]}],_u=au({history:Oc("/file-transfer-app"),routes:mu}),No=nc(lc);No.use(_u);No.mount("#app");export{Eu as A,vn as B,Tu as C,Cu as D,wl as E,we as F,Ru as G,oo as H,Dr as I,vu as J,Vi as K,Fu as L,Le as M,Gt as N,xu as O,Vr as P,zi as Q,qi as R,Eo as S,yu as T,vl as U,Tn as V,je as W,yt as X,Su as Y,rc as _,yo as a,he as b,ys as c,no as d,El as e,Iu as f,Pu as g,Nu as h,Au as i,mi as j,Re as k,Lu as l,Ou as m,_n as n,_s as o,Wi as p,Mu as q,ji as r,mn as s,bu as t,gt as u,_i as v,Ii as w,Zt as x,wu as y,Qo as z}; diff --git a/docs/index.html b/docs/index.html index 7de3177..732a151 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ Flash it - +