diff --git a/android-chrome-192x192.png b/android-chrome-192x192.png index 0f75d11..04f4e2d 100644 Binary files a/android-chrome-192x192.png and b/android-chrome-192x192.png differ diff --git a/android-chrome-512x512.png b/android-chrome-512x512.png index 72d88de..a23b963 100644 Binary files a/android-chrome-512x512.png and b/android-chrome-512x512.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png index e4909c8..61e6e14 100644 Binary files a/apple-touch-icon.png and b/apple-touch-icon.png differ diff --git a/assets/@floating-ui-DGkE6due.js b/assets/@floating-ui-DGkE6due.js new file mode 100644 index 0000000..336497c --- /dev/null +++ b/assets/@floating-ui-DGkE6due.js @@ -0,0 +1 @@ +import{r as S}from"./react-DmpIMwDM.js";import{r as Ht}from"./react-dom-tIxIBQuZ.js";const Nt=["top","right","bottom","left"],B=Math.min,D=Math.max,rt=Math.round,ot=Math.floor,I=t=>({x:t,y:t}),Vt={left:"right",right:"left",bottom:"top",top:"bottom"},zt={start:"end",end:"start"};function ut(t,e,n){return D(t,B(e,n))}function z(t,e){return typeof t=="function"?t(e):t}function _(t){return t.split("-")[0]}function J(t){return t.split("-")[1]}function mt(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}function Q(t){return["top","bottom"].includes(_(t))?"y":"x"}function ht(t){return mt(Q(t))}function _t(t,e,n){n===void 0&&(n=!1);const o=J(t),i=ht(t),r=gt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=st(s)),[s,st(s)]}function jt(t){const e=st(t);return[dt(t),e,dt(e)]}function dt(t){return t.replace(/start|end/g,e=>zt[e])}function It(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Yt(t,e,n,o){const i=J(t);let r=It(_(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(dt)))),r}function st(t){return t.replace(/left|right|bottom|top/g,e=>Vt[e])}function Xt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pt(t){return typeof t!="number"?Xt(t):{top:t,right:t,bottom:t,left:t}}function ct(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function vt(t,e,n){let{reference:o,floating:i}=t;const r=Q(e),s=ht(e),l=gt(s),c=_(e),f=r==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let a;switch(c){case"top":a={x:d,y:o.y-i.height};break;case"bottom":a={x:d,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:u};break;case"left":a={x:o.x-i.width,y:u};break;default:a={x:o.x,y:o.y}}switch(J(e)){case"start":a[s]-=m*(n&&f?-1:1);break;case"end":a[s]+=m*(n&&f?-1:1);break}return a}const qt=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=vt(f,o,c),m=o,a={},g=0;for(let h=0;h({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=e,{element:f,padding:d=0}=z(t,e)||{};if(f==null)return{};const u=Pt(d),m={x:n,y:o},a=ht(i),g=gt(a),h=await s.getDimensions(f),w=a==="y",p=w?"top":"left",y=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[a]-m[a]-r.floating[g],x=m[a]-r.reference[a],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let O=A?A[v]:0;(!O||!await(s.isElement==null?void 0:s.isElement(A)))&&(O=l.floating[v]||r.floating[g]);const P=b/2-x/2,W=O/2-h[g]/2-1,k=B(u[p],W),F=B(u[y],W),C=k,V=O-h[g]-F,L=O/2-h[g]/2+P,E=ut(C,L,V),T=!c.arrow&&J(i)!=null&&L!==E&&r.reference[g]/2-(LC<=0)){var W,k;const C=(((W=r.flip)==null?void 0:W.index)||0)+1,V=x[C];if(V)return{data:{index:C,overflows:P},reset:{placement:V}};let L=(k=P.filter(E=>E.overflows[0]<=0).sort((E,T)=>E.overflows[1]-T.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(a){case"bestFit":{var F;const E=(F=P.map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,q)=>R+q,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:F[0];E&&(L=E);break}case"initialPlacement":L=l;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function bt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function At(t){return Nt.some(e=>t[e]>=0)}const Gt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=z(t,e);switch(o){case"referenceHidden":{const r=await tt(e,{...i,elementContext:"reference"}),s=bt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:At(s)}}}case"escaped":{const r=await tt(e,{...i,altBoundary:!0}),s=bt(r,n.floating);return{data:{escapedOffsets:s,escaped:At(s)}}}default:return{}}}}};async function Jt(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=_(n),l=J(n),c=Q(n)==="y",f=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,u=z(e,t);let{mainAxis:m,crossAxis:a,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof g=="number"&&(a=l==="end"?g*-1:g),c?{x:a*d,y:m*f}:{x:m*f,y:a*d}}const Qt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=e,c=await Jt(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},Zt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:p,y}=w;return{x:p,y}}},...c}=z(t,e),f={x:n,y:o},d=await tt(e,c),u=Q(_(i)),m=mt(u);let a=f[m],g=f[u];if(r){const w=m==="y"?"top":"left",p=m==="y"?"bottom":"right",y=a+d[w],v=a-d[p];a=ut(y,a,v)}if(s){const w=u==="y"?"top":"left",p=u==="y"?"bottom":"right",y=g+d[w],v=g-d[p];g=ut(y,g,v)}const h=l.fn({...e,[m]:a,[u]:g});return{...h,data:{x:h.x-n,y:h.y-o}}}}},te=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=z(t,e),d={x:n,y:o},u=Q(i),m=mt(u);let a=d[m],g=d[u];const h=z(l,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const v=m==="y"?"height":"width",b=r.reference[m]-r.floating[v]+w.mainAxis,x=r.reference[m]+r.reference[v]-w.mainAxis;ax&&(a=x)}if(f){var p,y;const v=m==="y"?"width":"height",b=["top","left"].includes(_(i)),x=r.reference[u]-r.floating[v]+(b&&((p=s.offset)==null?void 0:p[u])||0)+(b?0:w.crossAxis),A=r.reference[u]+r.reference[v]+(b?0:((y=s.offset)==null?void 0:y[u])||0)-(b?w.crossAxis:0);gA&&(g=A)}return{[m]:a,[u]:g}}}},ee=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:r}=e,{apply:s=()=>{},...l}=z(t,e),c=await tt(e,l),f=_(n),d=J(n),u=Q(n)==="y",{width:m,height:a}=o.floating;let g,h;f==="top"||f==="bottom"?(g=f,h=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(h=f,g=d==="end"?"top":"bottom");const w=a-c.top-c.bottom,p=m-c.left-c.right,y=B(a-c[g],w),v=B(m-c[h],p),b=!e.middlewareData.shift;let x=y,A=v;if(u?A=d||b?B(v,p):p:x=d||b?B(y,w):w,b&&!d){const P=D(c.left,0),W=D(c.right,0),k=D(c.top,0),F=D(c.bottom,0);u?A=m-2*(P!==0||W!==0?P+W:D(c.left,c.right)):x=a-2*(k!==0||F!==0?k+F:D(c.top,c.bottom))}await s({...e,availableWidth:A,availableHeight:x});const O=await i.getDimensions(r.floating);return m!==O.width||a!==O.height?{reset:{rects:!0}}:{}}}};function Z(t){return Tt(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function j(t){var e;return(e=(Tt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Tt(t){return t instanceof Node||t instanceof M(t).Node}function H(t){return t instanceof Element||t instanceof M(t).Element}function N(t){return t instanceof HTMLElement||t instanceof M(t).HTMLElement}function Rt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof M(t).ShadowRoot}function nt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=$(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function ne(t){return["table","td","th"].includes(Z(t))}function pt(t){const e=wt(),n=$(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(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 oe(t){let e=Y(t);for(;N(e)&&!G(e);){if(pt(e))return e;e=Y(e)}return null}function wt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function G(t){return["html","body","#document"].includes(Z(t))}function $(t){return M(t).getComputedStyle(t)}function ft(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){if(Z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Rt(t)&&t.host||j(t);return Rt(e)?e.host:e}function Dt(t){const e=Y(t);return G(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&nt(e)?e:Dt(e)}function et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Dt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=M(i);return r?e.concat(s,s.visualViewport||[],nt(i)?i:[],s.frameElement&&n?et(s.frameElement):[]):e.concat(i,et(i,[],n))}function Mt(t){const e=$(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=N(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=rt(n)!==r||rt(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function xt(t){return H(t)?t:t.contextElement}function K(t){const e=xt(t);if(!N(e))return I(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Mt(e);let s=(r?rt(n.width):n.width)/o,l=(r?rt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ie=I(0);function kt(t){const e=M(t);return!wt()||!e.visualViewport?ie:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function re(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==M(t)?!1:e}function X(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=xt(t);let s=I(1);e&&(o?H(o)&&(s=K(o)):s=K(t));const l=re(r,n,o)?kt(r):I(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const m=M(r),a=o&&H(o)?M(o):o;let g=m,h=g.frameElement;for(;h&&o&&a!==g;){const w=K(h),p=h.getBoundingClientRect(),y=$(h),v=p.left+(h.clientLeft+parseFloat(y.paddingLeft))*w.x,b=p.top+(h.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,u*=w.y,c+=v,f+=b,g=M(h),h=g.frameElement}}return ct({width:d,height:u,x:c,y:f})}const se=[":popover-open",":modal"];function yt(t){return se.some(e=>{try{return t.matches(e)}catch{return!1}})}function ce(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=j(o),l=e?yt(e.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=I(1);const d=I(0),u=N(o);if((u||!u&&!r)&&((Z(o)!=="body"||nt(s))&&(c=ft(o)),N(o))){const m=X(o);f=K(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function le(t){return Array.from(t.getClientRects())}function Ft(t){return X(j(t)).left+ft(t).scrollLeft}function fe(t){const e=j(t),n=ft(t),o=t.ownerDocument.body,i=D(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=D(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Ft(t);const l=-n.scrollTop;return $(o).direction==="rtl"&&(s+=D(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function ae(t,e){const n=M(t),o=j(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const f=wt();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function ue(t,e){const n=X(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=N(t)?K(t):I(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function Ot(t,e,n){let o;if(e==="viewport")o=ae(t,n);else if(e==="document")o=fe(j(t));else if(H(e))o=ue(e,n);else{const i=kt(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ct(o)}function $t(t,e){const n=Y(t);return n===e||!H(n)||G(n)?!1:$(n).position==="fixed"||$t(n,e)}function de(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter(l=>H(l)&&Z(l)!=="body"),i=null;const r=$(t).position==="fixed";let s=r?Y(t):t;for(;H(s)&&!G(s);){const l=$(s),c=pt(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||nt(s)&&!c&&$t(t,s))?o=o.filter(d=>d!==s):i=l,s=Y(s)}return e.set(t,o),o}function me(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?yt(e)?[]:de(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,d)=>{const u=Ot(e,d,i);return f.top=D(u.top,f.top),f.right=B(u.right,f.right),f.bottom=B(u.bottom,f.bottom),f.left=D(u.left,f.left),f},Ot(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ge(t){const{width:e,height:n}=Mt(t);return{width:e,height:n}}function he(t,e,n){const o=N(e),i=j(e),r=n==="fixed",s=X(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=I(0);if(o||!o&&!r)if((Z(e)!=="body"||nt(i))&&(l=ft(e)),o){const u=X(e,!0,r,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Ft(i));const f=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:f,y:d,width:s.width,height:s.height}}function at(t){return $(t).position==="static"}function Ct(t,e){return!N(t)||$(t).position==="fixed"?null:e?e(t):t.offsetParent}function Wt(t,e){const n=M(t);if(yt(t))return n;if(!N(t)){let i=Y(t);for(;i&&!G(i);){if(H(i)&&!at(i))return i;i=Y(i)}return n}let o=Ct(t,e);for(;o&&ne(o)&&at(o);)o=Ct(o,e);return o&&G(o)&&at(o)&&!pt(o)?n:o||oe(t)||n}const pe=async function(t){const e=this.getOffsetParent||Wt,n=this.getDimensions,o=await n(t.floating);return{reference:he(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function we(t){return $(t).direction==="rtl"}const xe={convertOffsetParentRelativeRectToViewportRelativeRect:ce,getDocumentElement:j,getClippingRect:me,getOffsetParent:Wt,getElementRects:pe,getClientRects:le,getDimensions:ge,getScale:K,isElement:H,isRTL:we};function ye(t,e){let n=null,o;const i=j(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:f,top:d,width:u,height:m}=t.getBoundingClientRect();if(l||e(),!u||!m)return;const a=ot(d),g=ot(i.clientWidth-(f+u)),h=ot(i.clientHeight-(d+m)),w=ot(f),y={rootMargin:-a+"px "+-g+"px "+-h+"px "+-w+"px",threshold:D(0,B(1,c))||1};let v=!0;function b(x){const A=x[0].intersectionRatio;if(A!==c){if(!v)return s();A?s(!1,A):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(t)}return s(!0),r}function Te(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=xt(t),d=i||r?[...f?et(f):[],...et(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const u=f&&l?ye(f,n):null;let m=-1,a=null;s&&(a=new ResizeObserver(p=>{let[y]=p;y&&y.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=a)==null||v.observe(e)})),n()}),f&&!c&&a.observe(f),a.observe(e));let g,h=c?X(t):null;c&&w();function w(){const p=X(t);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,g=requestAnimationFrame(w)}return n(),()=>{var p;d.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),u==null||u(),(p=a)==null||p.disconnect(),a=null,c&&cancelAnimationFrame(g)}}const ve=Qt,be=Zt,Ae=Kt,Re=ee,Oe=Gt,Et=Ut,Ce=te,Ee=(t,e,n)=>{const o=new Map,i={platform:xe,...n},r={...i.platform,_c:o};return qt(t,e,{...i,platform:r})};var it=typeof document<"u"?S.useLayoutEffect:S.useEffect;function lt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!lt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!lt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function Bt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function St(t,e){const n=Bt(t);return Math.round(e*n)/n}function Lt(t){const e=S.useRef(t);return it(()=>{e.current=t}),e}function De(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=t,[d,u]=S.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,a]=S.useState(o);lt(m,o)||a(o);const[g,h]=S.useState(null),[w,p]=S.useState(null),y=S.useCallback(R=>{R!==A.current&&(A.current=R,h(R))},[]),v=S.useCallback(R=>{R!==O.current&&(O.current=R,p(R))},[]),b=r||g,x=s||w,A=S.useRef(null),O=S.useRef(null),P=S.useRef(d),W=c!=null,k=Lt(c),F=Lt(i),C=S.useCallback(()=>{if(!A.current||!O.current)return;const R={placement:e,strategy:n,middleware:m};F.current&&(R.platform=F.current),Ee(A.current,O.current,R).then(q=>{const U={...q,isPositioned:!0};V.current&&!lt(P.current,U)&&(P.current=U,Ht.flushSync(()=>{u(U)}))})},[m,e,n,F]);it(()=>{f===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[f]);const V=S.useRef(!1);it(()=>(V.current=!0,()=>{V.current=!1}),[]),it(()=>{if(b&&(A.current=b),x&&(O.current=x),b&&x){if(k.current)return k.current(b,x,C);C()}},[b,x,C,k,W]);const L=S.useMemo(()=>({reference:A,floating:O,setReference:y,setFloating:v}),[y,v]),E=S.useMemo(()=>({reference:b,floating:x}),[b,x]),T=S.useMemo(()=>{const R={position:n,left:0,top:0};if(!E.floating)return R;const q=St(E.floating,d.x),U=St(E.floating,d.y);return l?{...R,transform:"translate("+q+"px, "+U+"px)",...Bt(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:U}},[n,l,E.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:C,refs:L,elements:E,floatingStyles:T}),[d,C,L,E,T])}const Se=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Et({element:o.current,padding:i}).fn(n):{}:o?Et({element:o,padding:i}).fn(n):{}}}},Me=(t,e)=>({...ve(t),options:[t,e]}),ke=(t,e)=>({...be(t),options:[t,e]}),Fe=(t,e)=>({...Ce(t),options:[t,e]}),$e=(t,e)=>({...Ae(t),options:[t,e]}),We=(t,e)=>({...Re(t),options:[t,e]}),Be=(t,e)=>({...Oe(t),options:[t,e]}),He=(t,e)=>({...Se(t),options:[t,e]});export{Te as a,We as b,He as c,$e as f,Be as h,Fe as l,Me as o,ke as s,De as u}; diff --git a/assets/@floating-ui-DGkE6due.js.gz b/assets/@floating-ui-DGkE6due.js.gz new file mode 100644 index 0000000..2abc07c Binary files /dev/null and b/assets/@floating-ui-DGkE6due.js.gz differ diff --git a/assets/@radix-ui-D_gCN1bM.js b/assets/@radix-ui-D_gCN1bM.js new file mode 100644 index 0000000..607ea90 --- /dev/null +++ b/assets/@radix-ui-D_gCN1bM.js @@ -0,0 +1,11 @@ +import{r as s,j as d,R as de,a as jr}from"./react-DmpIMwDM.js";import{r as $e,G as Lr}from"./react-dom-tIxIBQuZ.js";import{h as lt}from"./aria-hidden-DQ5UC2Eg.js";import{R as ut}from"./react-remove-scroll-BOyN_WUU.js";import{u as Fr,a as kr,o as Hr,s as Wr,f as $r,b as Br,c as Ur,h as Vr,l as zr}from"./@floating-ui-DGkE6due.js";function Kr(e,o){typeof e=="function"?e(o):e!=null&&(e.current=o)}function kt(...e){return o=>e.forEach(t=>Kr(t,o))}function A(...e){return s.useCallback(kt(...e),e)}var pe=s.forwardRef((e,o)=>{const{children:t,...r}=e,n=s.Children.toArray(t),a=n.find(Yr);if(a){const c=a.props.children,i=n.map(l=>l===a?s.Children.count(c)>1?s.Children.only(null):s.isValidElement(c)?c.props.children:null:l);return d.jsx(tt,{...r,ref:o,children:s.isValidElement(c)?s.cloneElement(c,void 0,i):null})}return d.jsx(tt,{...r,ref:o,children:t})});pe.displayName="Slot";var tt=s.forwardRef((e,o)=>{const{children:t,...r}=e;if(s.isValidElement(t)){const n=Xr(t);return s.cloneElement(t,{...Gr(r,t.props),ref:o?kt(o,n):n})}return s.Children.count(t)>1?s.Children.only(null):null});tt.displayName="SlotClone";var Ht=({children:e})=>d.jsx(d.Fragment,{children:e});function Yr(e){return s.isValidElement(e)&&e.type===Ht}function Gr(e,o){const t={...o};for(const r in o){const n=e[r],a=o[r];/^on[A-Z]/.test(r)?n&&a?t[r]=(...i)=>{a(...i),n(...i)}:n&&(t[r]=n):r==="style"?t[r]={...n,...a}:r==="className"&&(t[r]=[n,a].filter(Boolean).join(" "))}return{...e,...t}}function Xr(e){var r,n;let o=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function ot(e,[o,t]){return Math.min(t,Math.max(o,e))}function b(e,o,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e==null||e(n),t===!1||!n.defaultPrevented)return o==null?void 0:o(n)}}function qr(e,o){const t=s.createContext(o);function r(a){const{children:c,...i}=a,l=s.useMemo(()=>i,Object.values(i));return d.jsx(t.Provider,{value:l,children:c})}function n(a){const c=s.useContext(t);if(c)return c;if(o!==void 0)return o;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,n]}function ae(e,o=[]){let t=[];function r(a,c){const i=s.createContext(c),l=t.length;t=[...t,c];function u(v){const{scope:h,children:m,...p}=v,g=(h==null?void 0:h[e][l])||i,w=s.useMemo(()=>p,Object.values(p));return d.jsx(g.Provider,{value:w,children:m})}function f(v,h){const m=(h==null?void 0:h[e][l])||i,p=s.useContext(m);if(p)return p;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const n=()=>{const a=t.map(c=>s.createContext(c));return function(i){const l=(i==null?void 0:i[e])||a;return s.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return n.scopeName=e,[r,Zr(n,...o)]}function Zr(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const c=r.reduce((i,{useScope:l,scopeName:u})=>{const v=l(a)[`__scope${u}`];return{...i,...v}},{});return s.useMemo(()=>({[`__scope${o.scopeName}`]:c}),[c])}};return t.scopeName=o.scopeName,t}function Jr(e){const o=e+"CollectionProvider",[t,r]=ae(o),[n,a]=t(o,{collectionRef:{current:null},itemMap:new Map}),c=m=>{const{scope:p,children:g}=m,w=de.useRef(null),S=de.useRef(new Map).current;return d.jsx(n,{scope:p,itemMap:S,collectionRef:w,children:g})};c.displayName=o;const i=e+"CollectionSlot",l=de.forwardRef((m,p)=>{const{scope:g,children:w}=m,S=a(i,g),x=A(p,S.collectionRef);return d.jsx(pe,{ref:x,children:w})});l.displayName=i;const u=e+"CollectionItemSlot",f="data-radix-collection-item",v=de.forwardRef((m,p)=>{const{scope:g,children:w,...S}=m,x=de.useRef(null),C=A(p,x),E=a(u,g);return de.useEffect(()=>(E.itemMap.set(x,{ref:x,...S}),()=>void E.itemMap.delete(x))),d.jsx(pe,{[f]:"",ref:C,children:w})});v.displayName=u;function h(m){const p=a(e+"CollectionConsumer",m);return de.useCallback(()=>{const w=p.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((E,D)=>S.indexOf(E.ref.current)-S.indexOf(D.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:c,Slot:l,ItemSlot:v},h,r]}var Qr=s.createContext(void 0);function Wt(e){const o=s.useContext(Qr);return e||o||"ltr"}var en=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],R=en.reduce((e,o)=>{const t=s.forwardRef((r,n)=>{const{asChild:a,...c}=r,i=a?pe:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(i,{...c,ref:n})});return t.displayName=`Primitive.${o}`,{...e,[o]:t}},{});function tn(e,o){e&&$e.flushSync(()=>e.dispatchEvent(o))}function W(e){const o=s.useRef(e);return s.useEffect(()=>{o.current=e}),s.useMemo(()=>(...t)=>{var r;return(r=o.current)==null?void 0:r.call(o,...t)},[])}function on(e,o=globalThis==null?void 0:globalThis.document){const t=W(e);s.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(n)};return o.addEventListener("keydown",r,{capture:!0}),()=>o.removeEventListener("keydown",r,{capture:!0})},[t,o])}var rn="DismissableLayer",rt="dismissableLayer.update",nn="dismissableLayer.pointerDownOutside",sn="dismissableLayer.focusOutside",Nt,$t=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_e=s.forwardRef((e,o)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:c,onDismiss:i,...l}=e,u=s.useContext($t),[f,v]=s.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=s.useState({}),p=A(o,y=>v(y)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),S=g.indexOf(w),x=f?g.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=S,D=ln(y=>{const I=y.target,T=[...u.branches].some(j=>j.contains(I));!E||T||(n==null||n(y),c==null||c(y),y.defaultPrevented||i==null||i())},h),L=un(y=>{const I=y.target;[...u.branches].some(j=>j.contains(I))||(a==null||a(y),c==null||c(y),y.defaultPrevented||i==null||i())},h);return on(y=>{x===u.layers.size-1&&(r==null||r(y),!y.defaultPrevented&&i&&(y.preventDefault(),i()))},h),s.useEffect(()=>{if(f)return t&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Nt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),_t(),()=>{t&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Nt)}},[f,h,t,u]),s.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),_t())},[f,u]),s.useEffect(()=>{const y=()=>m({});return document.addEventListener(rt,y),()=>document.removeEventListener(rt,y)},[]),d.jsx(R.div,{...l,ref:p,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:b(e.onFocusCapture,L.onFocusCapture),onBlurCapture:b(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:b(e.onPointerDownCapture,D.onPointerDownCapture)})});_e.displayName=rn;var an="DismissableLayerBranch",cn=s.forwardRef((e,o)=>{const t=s.useContext($t),r=s.useRef(null),n=A(o,r);return s.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),d.jsx(R.div,{...e,ref:n})});cn.displayName=an;function ln(e,o=globalThis==null?void 0:globalThis.document){const t=W(e),r=s.useRef(!1),n=s.useRef(()=>{});return s.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){Bt(nn,t,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(o.removeEventListener("click",n.current),n.current=l,o.addEventListener("click",n.current,{once:!0})):l()}else o.removeEventListener("click",n.current);r.current=!1},c=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),o.removeEventListener("pointerdown",a),o.removeEventListener("click",n.current)}},[o,t]),{onPointerDownCapture:()=>r.current=!0}}function un(e,o=globalThis==null?void 0:globalThis.document){const t=W(e),r=s.useRef(!1);return s.useEffect(()=>{const n=a=>{a.target&&!r.current&&Bt(sn,t,{originalEvent:a},{discrete:!1})};return o.addEventListener("focusin",n),()=>o.removeEventListener("focusin",n)},[o,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _t(){const e=new CustomEvent(rt);document.dispatchEvent(e)}function Bt(e,o,t,{discrete:r}){const n=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});o&&n.addEventListener(e,o,{once:!0}),r?tn(n,a):n.dispatchEvent(a)}var Ze=0;function dt(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ot()),document.body.insertAdjacentElement("beforeend",e[1]??Ot()),Ze++,()=>{Ze===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ze--}},[])}function Ot(){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}var Je="focusScope.autoFocusOnMount",Qe="focusScope.autoFocusOnUnmount",Dt={bubbles:!1,cancelable:!0},dn="FocusScope",Be=s.forwardRef((e,o)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...c}=e,[i,l]=s.useState(null),u=W(n),f=W(a),v=s.useRef(null),h=A(o,g=>l(g)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let g=function(C){if(m.paused||!i)return;const E=C.target;i.contains(E)?v.current=E:se(v.current,{select:!0})},w=function(C){if(m.paused||!i)return;const E=C.relatedTarget;E!==null&&(i.contains(E)||se(v.current,{select:!0}))},S=function(C){if(document.activeElement===document.body)for(const D of C)D.removedNodes.length>0&&se(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const x=new MutationObserver(S);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),x.disconnect()}}},[r,i,m.paused]),s.useEffect(()=>{if(i){Mt.add(m);const g=document.activeElement;if(!i.contains(g)){const S=new CustomEvent(Je,Dt);i.addEventListener(Je,u),i.dispatchEvent(S),S.defaultPrevented||(fn(gn(Ut(i)),{select:!0}),document.activeElement===g&&se(i))}return()=>{i.removeEventListener(Je,u),setTimeout(()=>{const S=new CustomEvent(Qe,Dt);i.addEventListener(Qe,f),i.dispatchEvent(S),S.defaultPrevented||se(g??document.body,{select:!0}),i.removeEventListener(Qe,f),Mt.remove(m)},0)}}},[i,u,f,m]);const p=s.useCallback(g=>{if(!t&&!r||m.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,S=document.activeElement;if(w&&S){const x=g.currentTarget,[C,E]=pn(x);C&&E?!g.shiftKey&&S===E?(g.preventDefault(),t&&se(C,{select:!0})):g.shiftKey&&S===C&&(g.preventDefault(),t&&se(E,{select:!0})):S===x&&g.preventDefault()}},[t,r,m.paused]);return d.jsx(R.div,{tabIndex:-1,...c,ref:h,onKeyDown:p})});Be.displayName=dn;function fn(e,{select:o=!1}={}){const t=document.activeElement;for(const r of e)if(se(r,{select:o}),document.activeElement!==t)return}function pn(e){const o=Ut(e),t=It(o,e),r=It(o.reverse(),e);return[t,r]}function Ut(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)o.push(t.currentNode);return o}function It(e,o){for(const t of e)if(!vn(t,{upTo:o}))return t}function vn(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hn(e){return e instanceof HTMLInputElement&&"select"in e}function se(e,{select:o=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&hn(e)&&o&&e.select()}}var Mt=mn();function mn(){let e=[];return{add(o){const t=e[0];o!==t&&(t==null||t.pause()),e=jt(e,o),e.unshift(o)},remove(o){var t;e=jt(e,o),(t=e[0])==null||t.resume()}}}function jt(e,o){const t=[...e],r=t.indexOf(o);return r!==-1&&t.splice(r,1),t}function gn(e){return e.filter(o=>o.tagName!=="A")}var $=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},Sn=jr.useId||(()=>{}),xn=0;function fe(e){const[o,t]=s.useState(Sn());return $(()=>{t(r=>r??String(xn++))},[e]),o?`radix-${o}`:""}var wn="Arrow",Vt=s.forwardRef((e,o)=>{const{children:t,width:r=10,height:n=5,...a}=e;return d.jsx(R.svg,{...a,ref:o,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vt.displayName=wn;var Cn=Vt;function bn(e){const[o,t]=s.useState(void 0);return $(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const a=n[0];let c,i;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;c=u.inlineSize,i=u.blockSize}else c=e.offsetWidth,i=e.offsetHeight;t({width:c,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else t(void 0)},[e]),o}var ft="Popper",[zt,we]=ae(ft),[Pn,Kt]=zt(ft),Yt=e=>{const{__scopePopper:o,children:t}=e,[r,n]=s.useState(null);return d.jsx(Pn,{scope:o,anchor:r,onAnchorChange:n,children:t})};Yt.displayName=ft;var Gt="PopperAnchor",Xt=s.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:r,...n}=e,a=Kt(Gt,t),c=s.useRef(null),i=A(o,c);return s.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||c.current)}),r?null:d.jsx(R.div,{...n,ref:i})});Xt.displayName=Gt;var pt="PopperContent",[yn,En]=zt(pt),qt=s.forwardRef((e,o)=>{var P,M,H,O,N,_;const{__scopePopper:t,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:c=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:v="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:p,...g}=e,w=Kt(pt,t),[S,x]=s.useState(null),C=A(o,K=>x(K)),[E,D]=s.useState(null),L=bn(E),y=(L==null?void 0:L.width)??0,I=(L==null?void 0:L.height)??0,T=r+(a!=="center"?"-"+a:""),j=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(u)?u:[u],U=k.length>0,V={padding:j,boundary:k.filter(An),altBoundary:U},{refs:J,floatingStyles:F,placement:Y,isPositioned:B,middlewareData:z}=Fr({strategy:"fixed",placement:T,whileElementsMounted:(...K)=>kr(...K,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[Hr({mainAxis:n+I,alignmentAxis:c}),l&&Wr({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?zr():void 0,...V}),l&&$r({...V}),Br({...V,apply:({elements:K,rects:Q,availableWidth:Ee,availableHeight:Re})=>{const{width:Ae,height:Mr}=Q.reference,Ie=K.floating.style;Ie.setProperty("--radix-popper-available-width",`${Ee}px`),Ie.setProperty("--radix-popper-available-height",`${Re}px`),Ie.setProperty("--radix-popper-anchor-width",`${Ae}px`),Ie.setProperty("--radix-popper-anchor-height",`${Mr}px`)}}),E&&Ur({element:E,padding:i}),Tn({arrowWidth:y,arrowHeight:I}),h&&Vr({strategy:"referenceHidden",...V})]}),[X,be]=Qt(Y),te=W(p);$(()=>{B&&(te==null||te())},[B,te]);const Pe=(P=z.arrow)==null?void 0:P.x,ye=(M=z.arrow)==null?void 0:M.y,ne=((H=z.arrow)==null?void 0:H.centerOffset)!==0,[me,ue]=s.useState();return $(()=>{S&&ue(window.getComputedStyle(S).zIndex)},[S]),d.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(O=z.transformOrigin)==null?void 0:O.x,(N=z.transformOrigin)==null?void 0:N.y].join(" "),...((_=z.hide)==null?void 0:_.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(yn,{scope:t,placedSide:X,onArrowChange:D,arrowX:Pe,arrowY:ye,shouldHideArrow:ne,children:d.jsx(R.div,{"data-side":X,"data-align":be,...g,ref:C,style:{...g.style,animation:B?void 0:"none"}})})})});qt.displayName=pt;var Zt="PopperArrow",Rn={top:"bottom",right:"left",bottom:"top",left:"right"},Jt=s.forwardRef(function(o,t){const{__scopePopper:r,...n}=o,a=En(Zt,r),c=Rn[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(Cn,{...n,ref:t,style:{...n.style,display:"block"}})})});Jt.displayName=Zt;function An(e){return e!==null}var Tn=e=>({name:"transformOrigin",options:e,fn(o){var w,S,x;const{placement:t,rects:r,middlewareData:n}=o,c=((w=n.arrow)==null?void 0:w.centerOffset)!==0,i=c?0:e.arrowWidth,l=c?0:e.arrowHeight,[u,f]=Qt(t),v={start:"0%",center:"50%",end:"100%"}[f],h=(((S=n.arrow)==null?void 0:S.x)??0)+i/2,m=(((x=n.arrow)==null?void 0:x.y)??0)+l/2;let p="",g="";return u==="bottom"?(p=c?v:`${h}px`,g=`${-l}px`):u==="top"?(p=c?v:`${h}px`,g=`${r.floating.height+l}px`):u==="right"?(p=`${-l}px`,g=c?v:`${m}px`):u==="left"&&(p=`${r.floating.width+l}px`,g=c?v:`${m}px`),{data:{x:p,y:g}}}});function Qt(e){const[o,t="center"]=e.split("-");return[o,t]}var vt=Yt,Ue=Xt,ht=qt,mt=Jt,Nn="Portal",Ve=s.forwardRef((e,o)=>{var i;const{container:t,...r}=e,[n,a]=s.useState(!1);$(()=>a(!0),[]);const c=t||n&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return c?Lr.createPortal(d.jsx(R.div,{...r,ref:o}),c):null});Ve.displayName=Nn;function Ne({prop:e,defaultProp:o,onChange:t=()=>{}}){const[r,n]=_n({defaultProp:o,onChange:t}),a=e!==void 0,c=a?e:r,i=W(t),l=s.useCallback(u=>{if(a){const v=typeof u=="function"?u(e):u;v!==e&&i(v)}else n(u)},[a,e,n,i]);return[c,l]}function _n({defaultProp:e,onChange:o}){const t=s.useState(e),[r]=t,n=s.useRef(r),a=W(o);return s.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),t}function On(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var Dn="VisuallyHidden",eo=s.forwardRef((e,o)=>d.jsx(R.span,{...e,ref:o,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));eo.displayName=Dn;var In=[" ","Enter","ArrowUp","ArrowDown"],Mn=[" ","Enter"],Oe="Select",[ze,Ke,jn]=Jr(Oe),[Ce,ca]=ae(Oe,[jn,we]),Ye=we(),[Ln,ie]=Ce(Oe),[Fn,kn]=Ce(Oe),to=e=>{const{__scopeSelect:o,children:t,open:r,defaultOpen:n,onOpenChange:a,value:c,defaultValue:i,onValueChange:l,dir:u,name:f,autoComplete:v,disabled:h,required:m}=e,p=Ye(o),[g,w]=s.useState(null),[S,x]=s.useState(null),[C,E]=s.useState(!1),D=Wt(u),[L=!1,y]=Ne({prop:r,defaultProp:n,onChange:a}),[I,T]=Ne({prop:c,defaultProp:i,onChange:l}),j=s.useRef(null),k=g?!!g.closest("form"):!0,[U,V]=s.useState(new Set),J=Array.from(U).map(F=>F.props.value).join(";");return d.jsx(vt,{...p,children:d.jsxs(Ln,{required:m,scope:o,trigger:g,onTriggerChange:w,valueNode:S,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:fe(),value:I,onValueChange:T,open:L,onOpenChange:y,dir:D,triggerPointerDownPosRef:j,disabled:h,children:[d.jsx(ze.Provider,{scope:o,children:d.jsx(Fn,{scope:e.__scopeSelect,onNativeOptionAdd:s.useCallback(F=>{V(Y=>new Set(Y).add(F))},[]),onNativeOptionRemove:s.useCallback(F=>{V(Y=>{const B=new Set(Y);return B.delete(F),B})},[]),children:t})}),k?d.jsxs(To,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:v,value:I,onChange:F=>T(F.target.value),disabled:h,children:[I===void 0?d.jsx("option",{value:""}):null,Array.from(U)]},J):null]})})};to.displayName=Oe;var oo="SelectTrigger",ro=s.forwardRef((e,o)=>{const{__scopeSelect:t,disabled:r=!1,...n}=e,a=Ye(t),c=ie(oo,t),i=c.disabled||r,l=A(o,c.onTriggerChange),u=Ke(t),[f,v,h]=No(p=>{const g=u().filter(x=>!x.disabled),w=g.find(x=>x.value===c.value),S=_o(g,p,w);S!==void 0&&c.onValueChange(S.value)}),m=()=>{i||(c.onOpenChange(!0),h())};return d.jsx(Ue,{asChild:!0,...a,children:d.jsx(R.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ao(c.value)?"":void 0,...n,ref:l,onClick:b(n.onClick,p=>{p.currentTarget.focus()}),onPointerDown:b(n.onPointerDown,p=>{const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(m(),c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:b(n.onKeyDown,p=>{const g=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&v(p.key),!(g&&p.key===" ")&&In.includes(p.key)&&(m(),p.preventDefault())})})})});ro.displayName=oo;var no="SelectValue",so=s.forwardRef((e,o)=>{const{__scopeSelect:t,className:r,style:n,children:a,placeholder:c="",...i}=e,l=ie(no,t),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,v=A(o,l.onValueNodeChange);return $(()=>{u(f)},[u,f]),d.jsx(R.span,{...i,ref:v,style:{pointerEvents:"none"},children:Ao(l.value)?d.jsx(d.Fragment,{children:c}):a})});so.displayName=no;var Hn="SelectIcon",ao=s.forwardRef((e,o)=>{const{__scopeSelect:t,children:r,...n}=e;return d.jsx(R.span,{"aria-hidden":!0,...n,ref:o,children:r||"▼"})});ao.displayName=Hn;var Wn="SelectPortal",io=e=>d.jsx(Ve,{asChild:!0,...e});io.displayName=Wn;var ve="SelectContent",co=s.forwardRef((e,o)=>{const t=ie(ve,e.__scopeSelect),[r,n]=s.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const a=r;return a?$e.createPortal(d.jsx(lo,{scope:e.__scopeSelect,children:d.jsx(ze.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(uo,{...e,ref:o})});co.displayName=ve;var oe=10,[lo,ce]=Ce(ve),$n="SelectContentImpl",uo=s.forwardRef((e,o)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:a,onPointerDownOutside:c,side:i,sideOffset:l,align:u,alignOffset:f,arrowPadding:v,collisionBoundary:h,collisionPadding:m,sticky:p,hideWhenDetached:g,avoidCollisions:w,...S}=e,x=ie(ve,t),[C,E]=s.useState(null),[D,L]=s.useState(null),y=A(o,P=>E(P)),[I,T]=s.useState(null),[j,k]=s.useState(null),U=Ke(t),[V,J]=s.useState(!1),F=s.useRef(!1);s.useEffect(()=>{if(C)return lt(C)},[C]),dt();const Y=s.useCallback(P=>{const[M,...H]=U().map(_=>_.ref.current),[O]=H.slice(-1),N=document.activeElement;for(const _ of P)if(_===N||(_==null||_.scrollIntoView({block:"nearest"}),_===M&&D&&(D.scrollTop=0),_===O&&D&&(D.scrollTop=D.scrollHeight),_==null||_.focus(),document.activeElement!==N))return},[U,D]),B=s.useCallback(()=>Y([I,C]),[Y,I,C]);s.useEffect(()=>{V&&B()},[V,B]);const{onOpenChange:z,triggerPointerDownPosRef:X}=x;s.useEffect(()=>{if(C){let P={x:0,y:0};const M=O=>{var N,_;P={x:Math.abs(Math.round(O.pageX)-(((N=X.current)==null?void 0:N.x)??0)),y:Math.abs(Math.round(O.pageY)-(((_=X.current)==null?void 0:_.y)??0))}},H=O=>{P.x<=10&&P.y<=10?O.preventDefault():C.contains(O.target)||z(!1),document.removeEventListener("pointermove",M),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",H,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",H,{capture:!0})}}},[C,z,X]),s.useEffect(()=>{const P=()=>z(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[z]);const[be,te]=No(P=>{const M=U().filter(N=>!N.disabled),H=M.find(N=>N.ref.current===document.activeElement),O=_o(M,P,H);O&&setTimeout(()=>O.ref.current.focus())}),Pe=s.useCallback((P,M,H)=>{const O=!F.current&&!H;(x.value!==void 0&&x.value===M||O)&&(T(P),O&&(F.current=!0))},[x.value]),ye=s.useCallback(()=>C==null?void 0:C.focus(),[C]),ne=s.useCallback((P,M,H)=>{const O=!F.current&&!H;(x.value!==void 0&&x.value===M||O)&&k(P)},[x.value]),me=r==="popper"?nt:fo,ue=me===nt?{side:i,sideOffset:l,align:u,alignOffset:f,arrowPadding:v,collisionBoundary:h,collisionPadding:m,sticky:p,hideWhenDetached:g,avoidCollisions:w}:{};return d.jsx(lo,{scope:t,content:C,viewport:D,onViewportChange:L,itemRefCallback:Pe,selectedItem:I,onItemLeave:ye,itemTextRefCallback:ne,focusSelectedItem:B,selectedItemText:j,position:r,isPositioned:V,searchRef:be,children:d.jsx(ut,{as:pe,allowPinchZoom:!0,children:d.jsx(Be,{asChild:!0,trapped:x.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:b(n,P=>{var M;(M=x.trigger)==null||M.focus({preventScroll:!0}),P.preventDefault()}),children:d.jsx(_e,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(me,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:P=>P.preventDefault(),...S,...ue,onPlaced:()=>J(!0),ref:y,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:b(S.onKeyDown,P=>{const M=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!M&&P.key.length===1&&te(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let O=U().filter(N=>!N.disabled).map(N=>N.ref.current);if(["ArrowUp","End"].includes(P.key)&&(O=O.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const N=P.target,_=O.indexOf(N);O=O.slice(_+1)}setTimeout(()=>Y(O)),P.preventDefault()}})})})})})})});uo.displayName=$n;var Bn="SelectItemAlignedPosition",fo=s.forwardRef((e,o)=>{const{__scopeSelect:t,onPlaced:r,...n}=e,a=ie(ve,t),c=ce(ve,t),[i,l]=s.useState(null),[u,f]=s.useState(null),v=A(o,y=>f(y)),h=Ke(t),m=s.useRef(!1),p=s.useRef(!0),{viewport:g,selectedItem:w,selectedItemText:S,focusSelectedItem:x}=c,C=s.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&g&&w&&S){const y=a.trigger.getBoundingClientRect(),I=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),j=S.getBoundingClientRect();if(a.dir!=="rtl"){const N=j.left-I.left,_=T.left-N,K=y.left-_,Q=y.width+K,Ee=Math.max(Q,I.width),Re=window.innerWidth-oe,Ae=ot(_,[oe,Re-Ee]);i.style.minWidth=Q+"px",i.style.left=Ae+"px"}else{const N=I.right-j.right,_=window.innerWidth-T.right-N,K=window.innerWidth-y.right-_,Q=y.width+K,Ee=Math.max(Q,I.width),Re=window.innerWidth-oe,Ae=ot(_,[oe,Re-Ee]);i.style.minWidth=Q+"px",i.style.right=Ae+"px"}const k=h(),U=window.innerHeight-oe*2,V=g.scrollHeight,J=window.getComputedStyle(u),F=parseInt(J.borderTopWidth,10),Y=parseInt(J.paddingTop,10),B=parseInt(J.borderBottomWidth,10),z=parseInt(J.paddingBottom,10),X=F+Y+V+z+B,be=Math.min(w.offsetHeight*5,X),te=window.getComputedStyle(g),Pe=parseInt(te.paddingTop,10),ye=parseInt(te.paddingBottom,10),ne=y.top+y.height/2-oe,me=U-ne,ue=w.offsetHeight/2,P=w.offsetTop+ue,M=F+Y+P,H=X-M;if(M<=ne){const N=w===k[k.length-1].ref.current;i.style.bottom="0px";const _=u.clientHeight-g.offsetTop-g.offsetHeight,K=Math.max(me,ue+(N?ye:0)+_+B),Q=M+K;i.style.height=Q+"px"}else{const N=w===k[0].ref.current;i.style.top="0px";const K=Math.max(ne,F+g.offsetTop+(N?Pe:0)+ue)+H;i.style.height=K+"px",g.scrollTop=M-ne+g.offsetTop}i.style.margin=`${oe}px 0`,i.style.minHeight=be+"px",i.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,i,u,g,w,S,a.dir,r]);$(()=>C(),[C]);const[E,D]=s.useState();$(()=>{u&&D(window.getComputedStyle(u).zIndex)},[u]);const L=s.useCallback(y=>{y&&p.current===!0&&(C(),x==null||x(),p.current=!1)},[C,x]);return d.jsx(Vn,{scope:t,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:L,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(R.div,{...n,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});fo.displayName=Bn;var Un="SelectPopperPosition",nt=s.forwardRef((e,o)=>{const{__scopeSelect:t,align:r="start",collisionPadding:n=oe,...a}=e,c=Ye(t);return d.jsx(ht,{...c,...a,ref:o,align:r,collisionPadding:n,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});nt.displayName=Un;var[Vn,gt]=Ce(ve,{}),st="SelectViewport",po=s.forwardRef((e,o)=>{const{__scopeSelect:t,nonce:r,...n}=e,a=ce(st,t),c=gt(st,t),i=A(o,a.onViewportChange),l=s.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(ze.Slot,{scope:t,children:d.jsx(R.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:i,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:b(n.onScroll,u=>{const f=u.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:h}=c;if(h!=null&&h.current&&v){const m=Math.abs(l.current-f.scrollTop);if(m>0){const p=window.innerHeight-oe*2,g=parseFloat(v.style.minHeight),w=parseFloat(v.style.height),S=Math.max(g,w);if(S0?E:0,v.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});po.displayName=st;var vo="SelectGroup",[zn,Kn]=Ce(vo),ho=s.forwardRef((e,o)=>{const{__scopeSelect:t,...r}=e,n=fe();return d.jsx(zn,{scope:t,id:n,children:d.jsx(R.div,{role:"group","aria-labelledby":n,...r,ref:o})})});ho.displayName=vo;var mo="SelectLabel",go=s.forwardRef((e,o)=>{const{__scopeSelect:t,...r}=e,n=Kn(mo,t);return d.jsx(R.div,{id:n.id,...r,ref:o})});go.displayName=mo;var je="SelectItem",[Yn,So]=Ce(je),xo=s.forwardRef((e,o)=>{const{__scopeSelect:t,value:r,disabled:n=!1,textValue:a,...c}=e,i=ie(je,t),l=ce(je,t),u=i.value===r,[f,v]=s.useState(a??""),[h,m]=s.useState(!1),p=A(o,S=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,S,r,n)}),g=fe(),w=()=>{n||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Yn,{scope:t,value:r,disabled:n,textId:g,isSelected:u,onItemTextChange:s.useCallback(S=>{v(x=>x||((S==null?void 0:S.textContent)??"").trim())},[]),children:d.jsx(ze.ItemSlot,{scope:t,value:r,disabled:n,textValue:f,children:d.jsx(R.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...c,ref:p,onFocus:b(c.onFocus,()=>m(!0)),onBlur:b(c.onBlur,()=>m(!1)),onPointerUp:b(c.onPointerUp,w),onPointerMove:b(c.onPointerMove,S=>{var x;n?(x=l.onItemLeave)==null||x.call(l):S.currentTarget.focus({preventScroll:!0})}),onPointerLeave:b(c.onPointerLeave,S=>{var x;S.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:b(c.onKeyDown,S=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&S.key===" "||(Mn.includes(S.key)&&w(),S.key===" "&&S.preventDefault())})})})})});xo.displayName=je;var Te="SelectItemText",wo=s.forwardRef((e,o)=>{const{__scopeSelect:t,className:r,style:n,...a}=e,c=ie(Te,t),i=ce(Te,t),l=So(Te,t),u=kn(Te,t),[f,v]=s.useState(null),h=A(o,S=>v(S),l.onItemTextChange,S=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,S,l.value,l.disabled)}),m=f==null?void 0:f.textContent,p=s.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:w}=u;return $(()=>(g(p),()=>w(p)),[g,w,p]),d.jsxs(d.Fragment,{children:[d.jsx(R.span,{id:l.textId,...a,ref:h}),l.isSelected&&c.valueNode&&!c.valueNodeHasChildren?$e.createPortal(a.children,c.valueNode):null]})});wo.displayName=Te;var Co="SelectItemIndicator",bo=s.forwardRef((e,o)=>{const{__scopeSelect:t,...r}=e;return So(Co,t).isSelected?d.jsx(R.span,{"aria-hidden":!0,...r,ref:o}):null});bo.displayName=Co;var at="SelectScrollUpButton",Po=s.forwardRef((e,o)=>{const t=ce(at,e.__scopeSelect),r=gt(at,e.__scopeSelect),[n,a]=s.useState(!1),c=A(o,r.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let i=function(){const u=l.scrollTop>0;a(u)};const l=t.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[t.viewport,t.isPositioned]),n?d.jsx(Eo,{...e,ref:c,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=t;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});Po.displayName=at;var it="SelectScrollDownButton",yo=s.forwardRef((e,o)=>{const t=ce(it,e.__scopeSelect),r=gt(it,e.__scopeSelect),[n,a]=s.useState(!1),c=A(o,r.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let i=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)l.removeEventListener("scroll",i)}},[t.viewport,t.isPositioned]),n?d.jsx(Eo,{...e,ref:c,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=t;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});yo.displayName=it;var Eo=s.forwardRef((e,o)=>{const{__scopeSelect:t,onAutoScroll:r,...n}=e,a=ce("SelectScrollButton",t),c=s.useRef(null),i=Ke(t),l=s.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return s.useEffect(()=>()=>l(),[l]),$(()=>{var f;const u=i().find(v=>v.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),d.jsx(R.div,{"aria-hidden":!0,...n,ref:o,style:{flexShrink:0,...n.style},onPointerDown:b(n.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:b(n.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:b(n.onPointerLeave,()=>{l()})})}),Gn="SelectSeparator",Ro=s.forwardRef((e,o)=>{const{__scopeSelect:t,...r}=e;return d.jsx(R.div,{"aria-hidden":!0,...r,ref:o})});Ro.displayName=Gn;var ct="SelectArrow",Xn=s.forwardRef((e,o)=>{const{__scopeSelect:t,...r}=e,n=Ye(t),a=ie(ct,t),c=ce(ct,t);return a.open&&c.position==="popper"?d.jsx(mt,{...n,...r,ref:o}):null});Xn.displayName=ct;function Ao(e){return e===""||e===void 0}var To=s.forwardRef((e,o)=>{const{value:t,...r}=e,n=s.useRef(null),a=A(o,n),c=On(t);return s.useEffect(()=>{const i=n.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(c!==t&&f){const v=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(v)}},[c,t]),d.jsx(eo,{asChild:!0,children:d.jsx("select",{...r,ref:a,defaultValue:t})})});To.displayName="BubbleSelect";function No(e){const o=W(e),t=s.useRef(""),r=s.useRef(0),n=s.useCallback(c=>{const i=t.current+c;o(i),function l(u){t.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[o]),a=s.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return s.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,n,a]}function _o(e,o,t){const n=o.length>1&&Array.from(o).every(u=>u===o[0])?o[0]:o,a=t?e.indexOf(t):-1;let c=qn(e,Math.max(a,0));n.length===1&&(c=c.filter(u=>u!==t));const l=c.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return l!==t?l:void 0}function qn(e,o){return e.map((t,r)=>e[(o+r)%e.length])}var la=to,ua=ro,da=so,fa=ao,pa=io,va=co,ha=po,ma=ho,ga=go,Sa=xo,xa=wo,wa=bo,Ca=Po,ba=yo,Pa=Ro;function Zn(e,o){return s.useReducer((t,r)=>o[t][r]??t,e)}var q=e=>{const{present:o,children:t}=e,r=Jn(o),n=typeof t=="function"?t({present:r.isPresent}):s.Children.only(t),a=A(r.ref,Qn(n));return typeof t=="function"||r.isPresent?s.cloneElement(n,{ref:a}):null};q.displayName="Presence";function Jn(e){const[o,t]=s.useState(),r=s.useRef({}),n=s.useRef(e),a=s.useRef("none"),c=e?"mounted":"unmounted",[i,l]=Zn(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=Me(r.current);a.current=i==="mounted"?u:"none"},[i]),$(()=>{const u=r.current,f=n.current;if(f!==e){const h=a.current,m=Me(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),$(()=>{if(o){const u=v=>{const m=Me(r.current).includes(v.animationName);v.target===o&&m&&$e.flushSync(()=>l("ANIMATION_END"))},f=v=>{v.target===o&&(a.current=Me(r.current))};return o.addEventListener("animationstart",f),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u),()=>{o.removeEventListener("animationstart",f),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:s.useCallback(u=>{u&&(r.current=getComputedStyle(u)),t(u)},[])}}function Me(e){return(e==null?void 0:e.animationName)||"none"}function Qn(e){var r,n;let o=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var et,St="HoverCard",[Oo,ya]=ae(St,[we]),Ge=we(),[es,xt]=Oo(St),Do=e=>{const{__scopeHoverCard:o,children:t,open:r,defaultOpen:n,onOpenChange:a,openDelay:c=700,closeDelay:i=300}=e,l=Ge(o),u=s.useRef(0),f=s.useRef(0),v=s.useRef(!1),h=s.useRef(!1),[m=!1,p]=Ne({prop:r,defaultProp:n,onChange:a}),g=s.useCallback(()=>{clearTimeout(f.current),u.current=window.setTimeout(()=>p(!0),c)},[c,p]),w=s.useCallback(()=>{clearTimeout(u.current),!v.current&&!h.current&&(f.current=window.setTimeout(()=>p(!1),i))},[i,p]),S=s.useCallback(()=>p(!1),[p]);return s.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(f.current)},[]),d.jsx(es,{scope:o,open:m,onOpenChange:p,onOpen:g,onClose:w,onDismiss:S,hasSelectionRef:v,isPointerDownOnContentRef:h,children:d.jsx(vt,{...l,children:t})})};Do.displayName=St;var Io="HoverCardTrigger",Mo=s.forwardRef((e,o)=>{const{__scopeHoverCard:t,...r}=e,n=xt(Io,t),a=Ge(t);return d.jsx(Ue,{asChild:!0,...a,children:d.jsx(R.a,{"data-state":n.open?"open":"closed",...r,ref:o,onPointerEnter:b(e.onPointerEnter,Fe(n.onOpen)),onPointerLeave:b(e.onPointerLeave,Fe(n.onClose)),onFocus:b(e.onFocus,n.onOpen),onBlur:b(e.onBlur,n.onClose),onTouchStart:b(e.onTouchStart,c=>c.preventDefault())})})});Mo.displayName=Io;var ts="HoverCardPortal",[Ea,os]=Oo(ts,{forceMount:void 0}),Le="HoverCardContent",jo=s.forwardRef((e,o)=>{const t=os(Le,e.__scopeHoverCard),{forceMount:r=t.forceMount,...n}=e,a=xt(Le,e.__scopeHoverCard);return d.jsx(q,{present:r||a.open,children:d.jsx(rs,{"data-state":a.open?"open":"closed",...n,onPointerEnter:b(e.onPointerEnter,Fe(a.onOpen)),onPointerLeave:b(e.onPointerLeave,Fe(a.onClose)),ref:o})})});jo.displayName=Le;var rs=s.forwardRef((e,o)=>{const{__scopeHoverCard:t,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:c,...i}=e,l=xt(Le,t),u=Ge(t),f=s.useRef(null),v=A(o,f),[h,m]=s.useState(!1);return s.useEffect(()=>{if(h){const p=document.body;return et=p.style.userSelect||p.style.webkitUserSelect,p.style.userSelect="none",p.style.webkitUserSelect="none",()=>{p.style.userSelect=et,p.style.webkitUserSelect=et}}},[h]),s.useEffect(()=>{if(f.current){const p=()=>{m(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var w;((w=document.getSelection())==null?void 0:w.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",p),()=>{document.removeEventListener("pointerup",p),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),s.useEffect(()=>{f.current&&as(f.current).forEach(g=>g.setAttribute("tabindex","-1"))}),d.jsx(_e,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:c,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:b(a,p=>{p.preventDefault()}),onDismiss:l.onDismiss,children:d.jsx(ht,{...u,...i,onPointerDown:b(i.onPointerDown,p=>{p.currentTarget.contains(p.target)&&m(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:v,style:{...i.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),ns="HoverCardArrow",ss=s.forwardRef((e,o)=>{const{__scopeHoverCard:t,...r}=e,n=Ge(t);return d.jsx(mt,{...n,...r,ref:o})});ss.displayName=ns;function Fe(e){return o=>o.pointerType==="touch"?void 0:e()}function as(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)o.push(t.currentNode);return o}var Ra=Do,Aa=Mo,Ta=jo,wt="Popover",[Lo,Na]=ae(wt,[we]),De=we(),[is,le]=Lo(wt),Fo=e=>{const{__scopePopover:o,children:t,open:r,defaultOpen:n,onOpenChange:a,modal:c=!1}=e,i=De(o),l=s.useRef(null),[u,f]=s.useState(!1),[v=!1,h]=Ne({prop:r,defaultProp:n,onChange:a});return d.jsx(vt,{...i,children:d.jsx(is,{scope:o,contentId:fe(),triggerRef:l,open:v,onOpenChange:h,onOpenToggle:s.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:s.useCallback(()=>f(!0),[]),onCustomAnchorRemove:s.useCallback(()=>f(!1),[]),modal:c,children:t})})};Fo.displayName=wt;var ko="PopoverAnchor",cs=s.forwardRef((e,o)=>{const{__scopePopover:t,...r}=e,n=le(ko,t),a=De(t),{onCustomAnchorAdd:c,onCustomAnchorRemove:i}=n;return s.useEffect(()=>(c(),()=>i()),[c,i]),d.jsx(Ue,{...a,...r,ref:o})});cs.displayName=ko;var Ho="PopoverTrigger",Wo=s.forwardRef((e,o)=>{const{__scopePopover:t,...r}=e,n=le(Ho,t),a=De(t),c=A(o,n.triggerRef),i=d.jsx(R.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":zo(n.open),...r,ref:c,onClick:b(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:d.jsx(Ue,{asChild:!0,...a,children:i})});Wo.displayName=Ho;var Ct="PopoverPortal",[ls,us]=Lo(Ct,{forceMount:void 0}),$o=e=>{const{__scopePopover:o,forceMount:t,children:r,container:n}=e,a=le(Ct,o);return d.jsx(ls,{scope:o,forceMount:t,children:d.jsx(q,{present:t||a.open,children:d.jsx(Ve,{asChild:!0,container:n,children:r})})})};$o.displayName=Ct;var Se="PopoverContent",Bo=s.forwardRef((e,o)=>{const t=us(Se,e.__scopePopover),{forceMount:r=t.forceMount,...n}=e,a=le(Se,e.__scopePopover);return d.jsx(q,{present:r||a.open,children:a.modal?d.jsx(ds,{...n,ref:o}):d.jsx(fs,{...n,ref:o})})});Bo.displayName=Se;var ds=s.forwardRef((e,o)=>{const t=le(Se,e.__scopePopover),r=s.useRef(null),n=A(o,r),a=s.useRef(!1);return s.useEffect(()=>{const c=r.current;if(c)return lt(c)},[]),d.jsx(ut,{as:pe,allowPinchZoom:!0,children:d.jsx(Uo,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(e.onCloseAutoFocus,c=>{var i;c.preventDefault(),a.current||(i=t.triggerRef.current)==null||i.focus()}),onPointerDownOutside:b(e.onPointerDownOutside,c=>{const i=c.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:b(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),fs=s.forwardRef((e,o)=>{const t=le(Se,e.__scopePopover),r=s.useRef(!1),n=s.useRef(!1);return d.jsx(Uo,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c,i;(c=e.onCloseAutoFocus)==null||c.call(e,a),a.defaultPrevented||(r.current||(i=t.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=a.target;((u=t.triggerRef.current)==null?void 0:u.contains(c))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&n.current&&a.preventDefault()}})}),Uo=s.forwardRef((e,o)=>{const{__scopePopover:t,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...v}=e,h=le(Se,t),m=De(t);return dt(),d.jsx(Be,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:a,children:d.jsx(_e,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:d.jsx(ht,{"data-state":zo(h.open),role:"dialog",id:h.contentId,...m,...v,ref:o,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Vo="PopoverClose",ps=s.forwardRef((e,o)=>{const{__scopePopover:t,...r}=e,n=le(Vo,t);return d.jsx(R.button,{type:"button",...r,ref:o,onClick:b(e.onClick,()=>n.onOpenChange(!1))})});ps.displayName=Vo;var vs="PopoverArrow",hs=s.forwardRef((e,o)=>{const{__scopePopover:t,...r}=e,n=De(t);return d.jsx(mt,{...n,...r,ref:o})});hs.displayName=vs;function zo(e){return e?"open":"closed"}var _a=Fo,Oa=Wo,Da=$o,Ia=Bo,bt="Dialog",[Ko,Yo]=ae(bt),[ms,Z]=Ko(bt),Go=e=>{const{__scopeDialog:o,children:t,open:r,defaultOpen:n,onOpenChange:a,modal:c=!0}=e,i=s.useRef(null),l=s.useRef(null),[u=!1,f]=Ne({prop:r,defaultProp:n,onChange:a});return d.jsx(ms,{scope:o,triggerRef:i,contentRef:l,contentId:fe(),titleId:fe(),descriptionId:fe(),open:u,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(v=>!v),[f]),modal:c,children:t})};Go.displayName=bt;var Xo="DialogTrigger",qo=s.forwardRef((e,o)=>{const{__scopeDialog:t,...r}=e,n=Z(Xo,t),a=A(o,n.triggerRef);return d.jsx(R.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Et(n.open),...r,ref:a,onClick:b(e.onClick,n.onOpenToggle)})});qo.displayName=Xo;var Pt="DialogPortal",[gs,Zo]=Ko(Pt,{forceMount:void 0}),Jo=e=>{const{__scopeDialog:o,forceMount:t,children:r,container:n}=e,a=Z(Pt,o);return d.jsx(gs,{scope:o,forceMount:t,children:s.Children.map(r,c=>d.jsx(q,{present:t||a.open,children:d.jsx(Ve,{asChild:!0,container:n,children:c})}))})};Jo.displayName=Pt;var ke="DialogOverlay",Qo=s.forwardRef((e,o)=>{const t=Zo(ke,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,a=Z(ke,e.__scopeDialog);return a.modal?d.jsx(q,{present:r||a.open,children:d.jsx(Ss,{...n,ref:o})}):null});Qo.displayName=ke;var Ss=s.forwardRef((e,o)=>{const{__scopeDialog:t,...r}=e,n=Z(ke,t);return d.jsx(ut,{as:pe,allowPinchZoom:!0,shards:[n.contentRef],children:d.jsx(R.div,{"data-state":Et(n.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})}),he="DialogContent",er=s.forwardRef((e,o)=>{const t=Zo(he,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,a=Z(he,e.__scopeDialog);return d.jsx(q,{present:r||a.open,children:a.modal?d.jsx(xs,{...n,ref:o}):d.jsx(ws,{...n,ref:o})})});er.displayName=he;var xs=s.forwardRef((e,o)=>{const t=Z(he,e.__scopeDialog),r=s.useRef(null),n=A(o,t.contentRef,r);return s.useEffect(()=>{const a=r.current;if(a)return lt(a)},[]),d.jsx(tr,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),(c=t.triggerRef.current)==null||c.focus()}),onPointerDownOutside:b(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,i=c.button===0&&c.ctrlKey===!0;(c.button===2||i)&&a.preventDefault()}),onFocusOutside:b(e.onFocusOutside,a=>a.preventDefault())})}),ws=s.forwardRef((e,o)=>{const t=Z(he,e.__scopeDialog),r=s.useRef(!1),n=s.useRef(!1);return d.jsx(tr,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c,i;(c=e.onCloseAutoFocus)==null||c.call(e,a),a.defaultPrevented||(r.current||(i=t.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=a.target;((u=t.triggerRef.current)==null?void 0:u.contains(c))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&n.current&&a.preventDefault()}})}),tr=s.forwardRef((e,o)=>{const{__scopeDialog:t,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:a,...c}=e,i=Z(he,t),l=s.useRef(null),u=A(o,l);return dt(),d.jsxs(d.Fragment,{children:[d.jsx(Be,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:a,children:d.jsx(_e,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Et(i.open),...c,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(bs,{titleId:i.titleId}),d.jsx(ys,{contentRef:l,descriptionId:i.descriptionId})]})]})}),yt="DialogTitle",or=s.forwardRef((e,o)=>{const{__scopeDialog:t,...r}=e,n=Z(yt,t);return d.jsx(R.h2,{id:n.titleId,...r,ref:o})});or.displayName=yt;var rr="DialogDescription",nr=s.forwardRef((e,o)=>{const{__scopeDialog:t,...r}=e,n=Z(rr,t);return d.jsx(R.p,{id:n.descriptionId,...r,ref:o})});nr.displayName=rr;var sr="DialogClose",ar=s.forwardRef((e,o)=>{const{__scopeDialog:t,...r}=e,n=Z(sr,t);return d.jsx(R.button,{type:"button",...r,ref:o,onClick:b(e.onClick,()=>n.onOpenChange(!1))})});ar.displayName=sr;function Et(e){return e?"open":"closed"}var ir="DialogTitleWarning",[Cs,cr]=qr(ir,{contentName:he,titleName:yt,docsSlug:"dialog"}),bs=({titleId:e})=>{const o=cr(ir),t=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Ps="DialogDescriptionWarning",ys=({contentRef:e,descriptionId:o})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cr(Ps).contentName}}.`;return s.useEffect(()=>{var a;const n=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");o&&n&&(document.getElementById(o)||console.warn(r))},[r,e,o]),null},Es=Go,Rs=qo,As=Jo,Ts=Qo,Ns=er,_s=or,Os=nr,lr=ar;function Ds(e,o){return s.useReducer((t,r)=>o[t][r]??t,e)}var Rt="ScrollArea",[ur,Ma]=ae(Rt),[Is,G]=ur(Rt),dr=s.forwardRef((e,o)=>{const{__scopeScrollArea:t,type:r="hover",dir:n,scrollHideDelay:a=600,...c}=e,[i,l]=s.useState(null),[u,f]=s.useState(null),[v,h]=s.useState(null),[m,p]=s.useState(null),[g,w]=s.useState(null),[S,x]=s.useState(0),[C,E]=s.useState(0),[D,L]=s.useState(!1),[y,I]=s.useState(!1),T=A(o,k=>l(k)),j=Wt(n);return d.jsx(Is,{scope:t,type:r,dir:j,scrollHideDelay:a,scrollArea:i,viewport:u,onViewportChange:f,content:v,onContentChange:h,scrollbarX:m,onScrollbarXChange:p,scrollbarXEnabled:D,onScrollbarXEnabledChange:L,scrollbarY:g,onScrollbarYChange:w,scrollbarYEnabled:y,onScrollbarYEnabledChange:I,onCornerWidthChange:x,onCornerHeightChange:E,children:d.jsx(R.div,{dir:j,...c,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});dr.displayName=Rt;var fr="ScrollAreaViewport",pr=s.forwardRef((e,o)=>{const{__scopeScrollArea:t,children:r,nonce:n,...a}=e,c=G(fr,t),i=s.useRef(null),l=A(o,i,c.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(R.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:d.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});pr.displayName=fr;var ee="ScrollAreaScrollbar",Ms=s.forwardRef((e,o)=>{const{forceMount:t,...r}=e,n=G(ee,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:c}=n,i=e.orientation==="horizontal";return s.useEffect(()=>(i?a(!0):c(!0),()=>{i?a(!1):c(!1)}),[i,a,c]),n.type==="hover"?d.jsx(js,{...r,ref:o,forceMount:t}):n.type==="scroll"?d.jsx(Ls,{...r,ref:o,forceMount:t}):n.type==="auto"?d.jsx(vr,{...r,ref:o,forceMount:t}):n.type==="always"?d.jsx(At,{...r,ref:o}):null});Ms.displayName=ee;var js=s.forwardRef((e,o)=>{const{forceMount:t,...r}=e,n=G(ee,e.__scopeScrollArea),[a,c]=s.useState(!1);return s.useEffect(()=>{const i=n.scrollArea;let l=0;if(i){const u=()=>{window.clearTimeout(l),c(!0)},f=()=>{l=window.setTimeout(()=>c(!1),n.scrollHideDelay)};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",f)}}},[n.scrollArea,n.scrollHideDelay]),d.jsx(q,{present:t||a,children:d.jsx(vr,{"data-state":a?"visible":"hidden",...r,ref:o})})}),Ls=s.forwardRef((e,o)=>{const{forceMount:t,...r}=e,n=G(ee,e.__scopeScrollArea),a=e.orientation==="horizontal",c=qe(()=>l("SCROLL_END"),100),[i,l]=Ds("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(i==="idle"){const u=window.setTimeout(()=>l("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(u)}},[i,n.scrollHideDelay,l]),s.useEffect(()=>{const u=n.viewport,f=a?"scrollLeft":"scrollTop";if(u){let v=u[f];const h=()=>{const m=u[f];v!==m&&(l("SCROLL"),c()),v=m};return u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[n.viewport,a,l,c]),d.jsx(q,{present:t||i!=="hidden",children:d.jsx(At,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:o,onPointerEnter:b(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:b(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),vr=s.forwardRef((e,o)=>{const t=G(ee,e.__scopeScrollArea),{forceMount:r,...n}=e,[a,c]=s.useState(!1),i=e.orientation==="horizontal",l=qe(()=>{if(t.viewport){const u=t.viewport.offsetWidth{const{orientation:t="vertical",...r}=e,n=G(ee,e.__scopeScrollArea),a=s.useRef(null),c=s.useRef(0),[i,l]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Sr(i.viewport,i.content),f={...r,sizes:i,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:h=>c.current=h};function v(h,m){return Us(h,c.current,i,m)}return t==="horizontal"?d.jsx(Fs,{...f,ref:o,onThumbPositionChange:()=>{if(n.viewport&&a.current){const h=n.viewport.scrollLeft,m=Lt(h,i,n.dir);a.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=v(h,n.dir))}}):t==="vertical"?d.jsx(ks,{...f,ref:o,onThumbPositionChange:()=>{if(n.viewport&&a.current){const h=n.viewport.scrollTop,m=Lt(h,i);a.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=v(h))}}):null}),Fs=s.forwardRef((e,o)=>{const{sizes:t,onSizesChange:r,...n}=e,a=G(ee,e.__scopeScrollArea),[c,i]=s.useState(),l=s.useRef(null),u=A(o,l,a.onScrollbarXChange);return s.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),d.jsx(mr,{"data-orientation":"horizontal",...n,ref:u,sizes:t,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xe(t)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,v)=>{if(a.viewport){const h=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(h),wr(h,v)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&c&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:We(c.paddingLeft),paddingEnd:We(c.paddingRight)}})}})}),ks=s.forwardRef((e,o)=>{const{sizes:t,onSizesChange:r,...n}=e,a=G(ee,e.__scopeScrollArea),[c,i]=s.useState(),l=s.useRef(null),u=A(o,l,a.onScrollbarYChange);return s.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),d.jsx(mr,{"data-orientation":"vertical",...n,ref:u,sizes:t,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xe(t)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,v)=>{if(a.viewport){const h=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(h),wr(h,v)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&c&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:We(c.paddingTop),paddingEnd:We(c.paddingBottom)}})}})}),[Hs,hr]=ur(ee),mr=s.forwardRef((e,o)=>{const{__scopeScrollArea:t,sizes:r,hasThumb:n,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:f,onResize:v,...h}=e,m=G(ee,t),[p,g]=s.useState(null),w=A(o,T=>g(T)),S=s.useRef(null),x=s.useRef(""),C=m.viewport,E=r.content-r.viewport,D=W(f),L=W(l),y=qe(v,10);function I(T){if(S.current){const j=T.clientX-S.current.left,k=T.clientY-S.current.top;u({x:j,y:k})}}return s.useEffect(()=>{const T=j=>{const k=j.target;(p==null?void 0:p.contains(k))&&D(j,E)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[C,p,E,D]),s.useEffect(L,[r,L]),xe(p,y),xe(m.content,y),d.jsx(Hs,{scope:t,scrollbar:p,hasThumb:n,onThumbChange:W(a),onThumbPointerUp:W(c),onThumbPositionChange:L,onThumbPointerDown:W(i),children:d.jsx(R.div,{...h,ref:w,style:{position:"absolute",...h.style},onPointerDown:b(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),S.current=p.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),I(T))}),onPointerMove:b(e.onPointerMove,I),onPointerUp:b(e.onPointerUp,T=>{const j=T.target;j.hasPointerCapture(T.pointerId)&&j.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=x.current,m.viewport&&(m.viewport.style.scrollBehavior=""),S.current=null})})})}),He="ScrollAreaThumb",Ws=s.forwardRef((e,o)=>{const{forceMount:t,...r}=e,n=hr(He,e.__scopeScrollArea);return d.jsx(q,{present:t||n.hasThumb,children:d.jsx($s,{ref:o,...r})})}),$s=s.forwardRef((e,o)=>{const{__scopeScrollArea:t,style:r,...n}=e,a=G(He,t),c=hr(He,t),{onThumbPositionChange:i}=c,l=A(o,v=>c.onThumbChange(v)),u=s.useRef(),f=qe(()=>{u.current&&(u.current(),u.current=void 0)},100);return s.useEffect(()=>{const v=a.viewport;if(v){const h=()=>{if(f(),!u.current){const m=Vs(v,i);u.current=m,i()}};return i(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[a.viewport,f,i]),d.jsx(R.div,{"data-state":c.hasThumb?"visible":"hidden",...n,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:b(e.onPointerDownCapture,v=>{const m=v.target.getBoundingClientRect(),p=v.clientX-m.left,g=v.clientY-m.top;c.onThumbPointerDown({x:p,y:g})}),onPointerUp:b(e.onPointerUp,c.onThumbPointerUp)})});Ws.displayName=He;var Tt="ScrollAreaCorner",gr=s.forwardRef((e,o)=>{const t=G(Tt,e.__scopeScrollArea),r=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&r?d.jsx(Bs,{...e,ref:o}):null});gr.displayName=Tt;var Bs=s.forwardRef((e,o)=>{const{__scopeScrollArea:t,...r}=e,n=G(Tt,t),[a,c]=s.useState(0),[i,l]=s.useState(0),u=!!(a&&i);return xe(n.scrollbarX,()=>{var v;const f=((v=n.scrollbarX)==null?void 0:v.offsetHeight)||0;n.onCornerHeightChange(f),l(f)}),xe(n.scrollbarY,()=>{var v;const f=((v=n.scrollbarY)==null?void 0:v.offsetWidth)||0;n.onCornerWidthChange(f),c(f)}),u?d.jsx(R.div,{...r,ref:o,style:{width:a,height:i,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function We(e){return e?parseInt(e,10):0}function Sr(e,o){const t=e/o;return isNaN(t)?0:t}function Xe(e){const o=Sr(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-t)*o;return Math.max(r,18)}function Us(e,o,t,r="ltr"){const n=Xe(t),a=n/2,c=o||a,i=n-c,l=t.scrollbar.paddingStart+c,u=t.scrollbar.size-t.scrollbar.paddingEnd-i,f=t.content-t.viewport,v=r==="ltr"?[0,f]:[f*-1,0];return xr([l,u],v)(e)}function Lt(e,o,t="ltr"){const r=Xe(o),n=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,a=o.scrollbar.size-n,c=o.content-o.viewport,i=a-r,l=t==="ltr"?[0,c]:[c*-1,0],u=ot(e,l);return xr([0,c],[0,i])(u)}function xr(e,o){return t=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const r=(o[1]-o[0])/(e[1]-e[0]);return o[0]+r*(t-e[0])}}function wr(e,o){return e>0&&e{})=>{let t={left:e.scrollLeft,top:e.scrollTop},r=0;return function n(){const a={left:e.scrollLeft,top:e.scrollTop},c=t.left!==a.left,i=t.top!==a.top;(c||i)&&o(),t=a,r=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(r)};function qe(e,o){const t=W(e),r=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(r.current),[]),s.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(t,o)},[t,o])}function xe(e,o){const t=W(o);$(()=>{let r=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var ja=dr,La=pr,Fa=gr,zs="Separator",Ft="horizontal",Ks=["horizontal","vertical"],Cr=s.forwardRef((e,o)=>{const{decorative:t,orientation:r=Ft,...n}=e,a=Ys(r)?r:Ft,i=t?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(R.div,{"data-orientation":a,...i,...n,ref:o})});Cr.displayName=zs;function Ys(e){return Ks.includes(e)}var ka=Cr,br="AlertDialog",[Gs,Ha]=ae(br,[Yo]),re=Yo(),Pr=e=>{const{__scopeAlertDialog:o,...t}=e,r=re(o);return d.jsx(Es,{...r,...t,modal:!0})};Pr.displayName=br;var Xs="AlertDialogTrigger",qs=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,n=re(t);return d.jsx(Rs,{...n,...r,ref:o})});qs.displayName=Xs;var Zs="AlertDialogPortal",yr=e=>{const{__scopeAlertDialog:o,...t}=e,r=re(o);return d.jsx(As,{...r,...t})};yr.displayName=Zs;var Js="AlertDialogOverlay",Er=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,n=re(t);return d.jsx(Ts,{...n,...r,ref:o})});Er.displayName=Js;var ge="AlertDialogContent",[Qs,ea]=Gs(ge),Rr=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...n}=e,a=re(t),c=s.useRef(null),i=A(o,c),l=s.useRef(null);return d.jsx(Cs,{contentName:ge,titleName:Ar,docsSlug:"alert-dialog",children:d.jsx(Qs,{scope:t,cancelRef:l,children:d.jsxs(Ns,{role:"alertdialog",...a,...n,ref:i,onOpenAutoFocus:b(n.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=l.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[d.jsx(Ht,{children:r}),d.jsx(oa,{contentRef:c})]})})})});Rr.displayName=ge;var Ar="AlertDialogTitle",Tr=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,n=re(t);return d.jsx(_s,{...n,...r,ref:o})});Tr.displayName=Ar;var Nr="AlertDialogDescription",_r=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,n=re(t);return d.jsx(Os,{...n,...r,ref:o})});_r.displayName=Nr;var ta="AlertDialogAction",Or=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,n=re(t);return d.jsx(lr,{...n,...r,ref:o})});Or.displayName=ta;var Dr="AlertDialogCancel",Ir=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:n}=ea(Dr,t),a=re(t),c=A(o,n);return d.jsx(lr,{...a,...r,ref:c})});Ir.displayName=Dr;var oa=({contentRef:e})=>{const o=`\`${ge}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${ge}\` by passing a \`${Nr}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ge}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return s.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},Wa=Pr,$a=yr,Ba=Er,Ua=Rr,Va=Or,za=Ir,Ka=Tr,Ya=_r;export{Ba as A,Ua as B,Ns as C,Os as D,Ka as E,Ya as F,ma as G,Va as H,fa as I,za as J,$a as K,ga as L,Wa as M,Ts as O,As as P,Es as R,pe as S,Rs as T,ha as V,lr as a,_s as b,ua as c,Ca as d,ba as e,pa as f,va as g,Sa as h,wa as i,xa as j,Pa as k,la as l,da as m,Ta as n,Ra as o,Aa as p,Da as q,Ia as r,_a as s,Oa as t,ja as u,La as v,Fa as w,Ms as x,Ws as y,ka as z}; diff --git a/assets/@radix-ui-D_gCN1bM.js.gz b/assets/@radix-ui-D_gCN1bM.js.gz new file mode 100644 index 0000000..20100a9 Binary files /dev/null and b/assets/@radix-ui-D_gCN1bM.js.gz differ diff --git a/assets/aria-hidden-DQ5UC2Eg.js b/assets/aria-hidden-DQ5UC2Eg.js new file mode 100644 index 0000000..2443b02 --- /dev/null +++ b/assets/aria-hidden-DQ5UC2Eg.js @@ -0,0 +1 @@ +var S=function(r){if(typeof document>"u")return null;var u=Array.isArray(r)?r[0]:r;return u.ownerDocument.body},f=new WeakMap,v=new WeakMap,p={},h=0,W=function(r){return r&&(r.host||W(r.parentNode))},D=function(r,u){return u.map(function(e){if(r.contains(e))return e;var n=W(e);return n&&r.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",r,". Doing nothing"),null)}).filter(function(e){return!!e})},E=function(r,u,e,n){var i=D(u,Array.isArray(r)?r:[r]);p[e]||(p[e]=new WeakMap);var s=p[e],l=[],o=new Set,b=new Set(i),y=function(t){!t||o.has(t)||(o.add(t),y(t.parentNode))};i.forEach(y);var A=function(t){!t||b.has(t)||Array.prototype.forEach.call(t.children,function(a){if(o.has(a))A(a);else try{var c=a.getAttribute(n),w=c!==null&&c!=="false",d=(f.get(a)||0)+1,M=(s.get(a)||0)+1;f.set(a,d),s.set(a,M),l.push(a),d===1&&w&&v.set(a,!0),M===1&&a.setAttribute(e,"true"),w||a.setAttribute(n,"true")}catch(k){console.error("aria-hidden: cannot operate on ",a,k)}})};return A(u),o.clear(),h++,function(){l.forEach(function(t){var a=f.get(t)-1,c=s.get(t)-1;f.set(t,a),s.set(t,c),a||(v.has(t)||t.removeAttribute(n),v.delete(t)),c||t.removeAttribute(e)}),h--,h||(f=new WeakMap,f=new WeakMap,v=new WeakMap,p={})}},C=function(r,u,e){e===void 0&&(e="data-aria-hidden");var n=Array.from(Array.isArray(r)?r:[r]),i=S(r);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),E(n,i,e,"aria-hidden")):function(){return null}};export{C as h}; diff --git a/assets/aria-hidden-DQ5UC2Eg.js.gz b/assets/aria-hidden-DQ5UC2Eg.js.gz new file mode 100644 index 0000000..d5bbc9b Binary files /dev/null and b/assets/aria-hidden-DQ5UC2Eg.js.gz differ diff --git a/assets/attr-accept-BWI1aNlo.js b/assets/attr-accept-BWI1aNlo.js new file mode 100644 index 0000000..64708b0 --- /dev/null +++ b/assets/attr-accept-BWI1aNlo.js @@ -0,0 +1 @@ +var s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),r}var c=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=(e.type||"").toLowerCase(),a=n.replace(/\/.*$/,"");return r.some(function(f){var u=f.trim().toLowerCase();return u.charAt(0)==="."?o.toLowerCase().endsWith(u):u.endsWith("/*")?a===u.replace(/\/.*$/,""):n===u})}return!0};export{c as _,l as a,s as c,i as g}; diff --git a/assets/class-variance-authority-Bb4qSo10.js b/assets/class-variance-authority-Bb4qSo10.js new file mode 100644 index 0000000..78bc95a --- /dev/null +++ b/assets/class-variance-authority-Bb4qSo10.js @@ -0,0 +1 @@ +function m(n){var e,t,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;etypeof n=="boolean"?"".concat(n):n===0?"0":n,y=j,A=(n,e)=>t=>{var l;if((e==null?void 0:e.variants)==null)return y(n,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:d,defaultVariants:u}=e,N=Object.keys(d).map(a=>{const r=t==null?void 0:t[a],s=u==null?void 0:u[a];if(r===null)return null;const i=f(r)||f(s);return d[a][i]}),v=t&&Object.entries(t).reduce((a,r)=>{let[s,i]=r;return i===void 0||(a[s]=i),a},{}),V=e==null||(l=e.compoundVariants)===null||l===void 0?void 0:l.reduce((a,r)=>{let{class:s,className:i,...b}=r;return Object.entries(b).every(C=>{let[c,o]=C;return Array.isArray(o)?o.includes({...u,...v}[c]):{...u,...v}[c]===o})?[...a,s,i]:a},[]);return y(n,N,V,t==null?void 0:t.class,t==null?void 0:t.className)};export{A as c}; diff --git a/assets/class-variance-authority-Bb4qSo10.js.gz b/assets/class-variance-authority-Bb4qSo10.js.gz new file mode 100644 index 0000000..4e2ebe1 Binary files /dev/null and b/assets/class-variance-authority-Bb4qSo10.js.gz differ diff --git a/assets/clsx-B-dksMZM.js b/assets/clsx-B-dksMZM.js new file mode 100644 index 0000000..b8badeb --- /dev/null +++ b/assets/clsx-B-dksMZM.js @@ -0,0 +1 @@ +function a(r){var f,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(f=0;f"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function i(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){u(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function v(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function l(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof s=="object"&&s.global===s?s:void 0,w=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!w?function(e,t,r){var n=a.URL||a.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin===location.origin?l(o):v(o.href)?i(e,t,r):l(o,o.target="_blank")):(o.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){l(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(p(e,r),t);else if(v(e))i(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){l(n)})}}:function(e,t,r,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return i(e,t,r);var o=e.type==="application/octet-stream",b=/constructor/i.test(a.HTMLElement)||a.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||o&&b||w)&&typeof FileReader<"u"){var d=new FileReader;d.onloadend=function(){var c=d.result;c=m?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},d.readAsDataURL(e)}else{var y=a.URL||a.webkitURL,f=y.createObjectURL(e);n?n.location=f:location.href=f,n=null,setTimeout(function(){y.revokeObjectURL(f)},4e4)}});a.saveAs=u.saveAs=u,h.exports=u})})(E);var R=E.exports;export{R as F}; diff --git a/assets/file-saver-DhbZvGod.js.gz b/assets/file-saver-DhbZvGod.js.gz new file mode 100644 index 0000000..cbcb4b5 Binary files /dev/null and b/assets/file-saver-DhbZvGod.js.gz differ diff --git a/assets/file-selector-CBHVlu32.js b/assets/file-selector-CBHVlu32.js new file mode 100644 index 0000000..6c8b98a --- /dev/null +++ b/assets/file-selector-CBHVlu32.js @@ -0,0 +1 @@ +import{_ as p,a as s,b as g,c as h}from"./tslib-CuZy2iRz.js";var z=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function c(t,i){var e=E(t);if(typeof e.path!="string"){var n=t.webkitRelativePath;Object.defineProperty(e,"path",{value:typeof i=="string"?i:typeof n=="string"&&n.length>0?n:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function E(t){var i=t.name,e=i&&i.lastIndexOf(".")!==-1;if(e&&!t.type){var n=i.split(".").pop().toLowerCase(),a=z.get(n);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var F=[".DS_Store","Thumbs.db"];function S(t){return p(this,void 0,void 0,function(){return s(this,function(i){return u(t)&&P(t.dataTransfer)?[2,T(t.dataTransfer,t.type)]:_(t)?[2,k(t)]:Array.isArray(t)&&t.every(function(e){return"getFile"in e&&typeof e.getFile=="function"})?[2,O(t)]:[2,[]]})})}function P(t){return u(t)}function _(t){return u(t)&&u(t.target)}function u(t){return typeof t=="object"&&t!==null}function k(t){return l(t.target.files).map(function(i){return c(i)})}function O(t){return p(this,void 0,void 0,function(){var i;return s(this,function(e){switch(e.label){case 0:return[4,Promise.all(t.map(function(n){return n.getFile()}))];case 1:return i=e.sent(),[2,i.map(function(n){return c(n)})]}})})}function T(t,i){return p(this,void 0,void 0,function(){var e,n;return s(this,function(a){switch(a.label){case 0:return t.items?(e=l(t.items).filter(function(r){return r.kind==="file"}),i!=="drop"?[2,e]:[4,Promise.all(e.map(A))]):[3,2];case 1:return n=a.sent(),[2,x(w(n))];case 2:return[2,x(l(t.files).map(function(r){return c(r)}))]}})})}function x(t){return t.filter(function(i){return F.indexOf(i.name)===-1})}function l(t){if(t===null)return[];for(var i=[],e=0;e{for(const n of o)if(n.type==="childList")for(const i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function a(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(o){if(o.ep)return;o.ep=!0;const n=a(o);fetch(o.href,n)}})();const Ot="https://sql.js.org/dist/sql-wasm.wasm",$t=async t=>{try{const[s,a]=await Promise.all([t.arrayBuffer(),Je({locateFile:()=>Ot})]);return new a.Database(new Uint8Array(s))}catch(s){throw console.error("Failed to load database:",s),s}},Q=t=>{var s;try{return((s=t.exec("SELECT name FROM sqlite_master WHERE type='table';")[0])==null?void 0:s.values.flat())||[]}catch(a){return console.error("Failed to get table names:",a),[]}},zt=async(t,s)=>{try{const[a,r]=t.exec(` + PRAGMA table_info("${s}"); + PRAGMA foreign_key_list("${s}"); + `),o=a.values.reduce((n,i)=>(n[i[1]]={type:i[2],isPrimaryKey:i[5]===1,isForeignKey:!1},n),{});return r==null||r.values.forEach(n=>{const i=n[3];o[i]&&(o[i].isForeignKey=!0)}),o}catch(a){throw console.error(`Failed to get schema for table "${s}":`,a),a}},L=t=>{if(t.length===0)return{data:[],columns:[]};const{columns:s,values:a}=t[0];return{data:a.map(o=>Object.fromEntries(s.map((n,i)=>[n,o[i]]))),columns:s}},Bt=t=>{try{const s=t.export(),a=new Blob([s],{type:"application/x-sqlite3"});B.saveAs(a,"database.sqlite")}catch(s){throw console.error("Failed to export database:",s),s}},Vt=(t,s)=>{const a=t.map(o=>`"${o}"`).join(","),r=s.map(o=>t.map(n=>`"${o[n]??""}"`).join(","));return[a,...r].join(` +`)},M=(t,s,a)=>{try{const r=s.exec(t);if(r.length===0)throw new Error(`Query "${t}" returned no results.`);const{data:o,columns:n}=L(r),i=Vt(n,o),u=new Blob([i],{type:"text/csv;charset=utf-8;"});B.saveAs(u,`${a}.csv`)}catch(r){throw console.error(`Failed to get CSV for query "${t}":`,r),r}},_t=(t,s)=>{const r=Q(t)[s],o=`SELECT * FROM "${r}"`;M(o,t,r)},Ut=t=>{Q(t).forEach(s=>{const a=`SELECT * FROM "${s}"`;M(a,t,s)})},Kt=(t,s)=>{M(s,t,"custom_query")},T=Ge((t,s)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},rowPerPageOrAuto:"auto",isCustomQuery:!1,loadDatabase:async a=>{t({isLoading:!0,queryError:null});try{const r=await $t(a),o=Q(r),n=await Promise.all(o.map(async d=>{const m=r.exec(`SELECT COUNT(*) FROM "${d}"`),f=parseInt(m[0].values[0][0],10),p=await zt(r,d);return{name:d,count:f,schema:p}})),i=n.map(({name:d,count:m})=>({name:d,count:m})),u=n.reduce((d,{name:m,schema:f})=>(d[m]=f,d),{});t({db:r,tables:i,tableSchemas:u,isLoading:!1})}catch(r){console.error("Failed to load database:",r),t({isLoading:!1,queryError:"Failed to load database"})}},query:a=>{const{db:r}=s();return r?r.exec(a):(console.warn("Database is not loaded."),[])},setQueryError:a=>t({queryError:a}),setTables:a=>t({tables:a}),setSelectedTable:a=>t({selectedTable:a}),setTableSchemas:a=>t({tableSchemas:a}),setRowPerPageOrAuto:a=>t({rowPerPageOrAuto:a}),customQuery:"",setIsCustomQuery:a=>t({isCustomQuery:a}),setCustomQuery:a=>t({customQuery:a}),queryHestory:[],setQueryHestory:a=>t({queryHestory:a}),appendToQueryHestory:a=>t(r=>({queryHestory:[...r.queryHestory,a]})),expandPage:!1,setExpandPage:a=>t({expandPage:a})}));function Gt(t,s,a,r){const{db:o,setQueryError:n,setIsCustomQuery:i,query:u,appendToQueryHestory:d,customQuery:m,setCustomQuery:f}=T(),[p,b]=l.useState([]),[j,y]=l.useState([]),[v,R]=l.useState(!0);l.useEffect(()=>{if(o&&t&&!r){R(!0);const x=`SELECT * FROM "${t}" LIMIT ${s} OFFSET ${a};`;(async()=>{try{const h=u(x),{data:C,columns:S}=L(h);y(S),b(C),n(null),f(x)}catch(h){h instanceof Error&&n(h.message)}finally{R(!1),d(x)}})()}},[o,t,a,s,r,n,u]);const N=l.useCallback(()=>{if(m.trim()===""){n(null);return}R(!0),(async()=>{try{const x=u(m),{data:h,columns:C}=L(x);y(C),b(h),i(!0),n(null)}catch(x){x instanceof Error&&n(x.message)}finally{R(!1)}})()},[m,u,n,i]);return{data:p,columns:j,customQuery:m,setCustomQuery:f,isQueryLoading:v,handleCustomQuery:N}}function Jt(t){const{setIsCustomQuery:s}=T(),[a,r]=l.useState(0);l.useEffect(()=>{r(0),s(!1)},[s]);let o=30;if(t==="auto"){const n=window.innerHeight,i=[{height:1700,rowHeight:65},{height:1300,rowHeight:70},{height:1200,rowHeight:75},{height:1100,rowHeight:75},{height:1e3,rowHeight:80},{height:950,rowHeight:85},{height:900,rowHeight:90},{height:850,rowHeight:95},{height:800,rowHeight:100},{height:750,rowHeight:105},{height:700,rowHeight:110},{height:600,rowHeight:120},{height:550,rowHeight:150},{height:500,rowHeight:190},{height:0,rowHeight:280}];let d=120;for(const m of i)if(n>m.height){d=m.rowHeight;break}o=Math.max(1,Math.floor(n/d))}else o=t;return{page:a,setPage:r,rowsPerPage:o}}function c(...t){return Ye(We(t))}const q=l.forwardRef(({className:t,type:s,...a},r)=>e.jsx("input",{type:s,className:c("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));q.displayName="Input";const F=ie("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),g=l.forwardRef(({className:t,variant:s,size:a,asChild:r=!1,...o},n)=>{const i=r?Xe:"button";return e.jsx(i,{className:c(F({variant:s,size:a,className:t})),ref:n,...o})});g.displayName="Button";function Wt({page:t,setPage:s,rowsPerPage:a,rowCount:r}){const o=Math.ceil(r/a),n=Math.floor(t/a)+1,i=()=>{n{n>1&&s(t-a)};return e.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 z-10 mx-auto w-[270px]",children:e.jsxs("div",{className:"flex justify-between gap-2 rounded border bg-secondary p-[6px]",children:[e.jsx(g,{onClick:u,title:"Previous page",disabled:n===1,children:e.jsx(gt,{className:"h-4 w-4"})}),e.jsxs("span",{className:"flex items-center justify-center text-sm",children:["Page ",n," of ",o]}),e.jsx(g,{onClick:i,title:"Next page",disabled:n>=o,children:e.jsx(bt,{className:"h-4 w-4"})})]})})}const Yt=rt,Xt=ot,Zt=lt,de=l.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(V,{ref:r,className:c("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[s,e.jsx(Ze,{asChild:!0,children:e.jsx(ce,{className:"h-4 w-4 opacity-50"})})]}));de.displayName=V.displayName;const ue=l.forwardRef(({className:t,...s},a)=>e.jsx(_,{ref:a,className:c("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(yt,{className:"h-4 w-4"})}));ue.displayName=_.displayName;const me=l.forwardRef(({className:t,...s},a)=>e.jsx(U,{ref:a,className:c("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(ce,{className:"h-4 w-4"})}));me.displayName=U.displayName;const fe=l.forwardRef(({className:t,children:s,position:a="popper",...r},o)=>e.jsx(et,{children:e.jsxs(K,{ref:o,className:c("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...r,children:[e.jsx(ue,{}),e.jsx(tt,{className:c("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(me,{})]})}));fe.displayName=K.displayName;const pe=l.forwardRef(({className:t,...s},a)=>e.jsx(G,{ref:a,className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...s}));pe.displayName=G.displayName;const xe=l.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(J,{ref:r,className:c("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(st,{children:e.jsx(jt,{className:"h-4 w-4"})})}),e.jsx(at,{children:s})]}));xe.displayName=J.displayName;const es=l.forwardRef(({className:t,...s},a)=>e.jsx(W,{ref:a,className:c("-mx-1 my-1 h-px bg-muted",t),...s}));es.displayName=W.displayName;const ts=ie("inline-flex items-center rounded border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function he({className:t,variant:s,...a}){return e.jsx("div",{className:c(ts({variant:s}),t),...a})}function ss(){const{tables:t,selectedTable:s,setSelectedTable:a}=T(),r=l.useMemo(()=>{var i;const n=parseInt(s);return isNaN(n)?0:((i=t[n])==null?void 0:i.count)||0},[t,s]),o=l.useMemo(()=>t.map((n,i)=>e.jsx(xe,{value:`${i}`,children:n.name},n.name)),[t]);return e.jsxs("section",{className:"flex grow items-center justify-center gap-1",children:[e.jsxs(Yt,{value:s,onValueChange:a,children:[e.jsx(de,{className:"grow",children:e.jsx(Zt,{placeholder:"Select a table"})}),e.jsx(fe,{children:e.jsxs(Xt,{children:[e.jsx(pe,{children:"Tables"}),o]})})]}),e.jsx(he,{title:"Rows",className:"min-w-[100px] grow py-2 text-sm md:min-w-[200px]",variant:"outline",children:e.jsx("span",{className:"w-full text-center",children:r})})]})}const ge=nt,be=it,I=l.forwardRef(({className:t,align:s="start",side:a="bottom",sideOffset:r=4,...o},n)=>e.jsx(Y,{ref:n,align:s,side:a,sideOffset:r,className:c("z-50 w-64 text-balance break-words rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));I.displayName=Y.displayName;const ye=l.forwardRef(({className:t,...s},a)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:a,className:c("w-full caption-bottom text-sm",t),...s})}));ye.displayName="Table";const je=l.forwardRef(({className:t,...s},a)=>e.jsx("thead",{ref:a,className:c("[&_tr]:border-b",t),...s}));je.displayName="TableHeader";const we=l.forwardRef(({className:t,...s},a)=>e.jsx("tbody",{ref:a,className:c("[&_tr:last-child]:border-0",t),...s}));we.displayName="TableBody";const as=l.forwardRef(({className:t,...s},a)=>e.jsx("tfoot",{ref:a,className:c("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...s}));as.displayName="TableFooter";const A=l.forwardRef(({className:t,...s},a)=>e.jsx("tr",{ref:a,className:c("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...s}));A.displayName="TableRow";const Ne=l.forwardRef(({className:t,...s},a)=>e.jsx("th",{ref:a,className:c("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...s}));Ne.displayName="TableHead";const ve=l.forwardRef(({className:t,children:s,dataType:a,...r},o)=>e.jsx("td",{ref:o,className:c("max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r,children:e.jsxs(ge,{children:[e.jsx(be,{asChild:!0,children:e.jsx("span",{className:"cursor-pointer hover:underline",children:s})}),e.jsx(I,{side:"bottom",align:"start",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[a==="BLOB"?e.jsx("span",{className:"max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:s}):s,a&&e.jsx(he,{className:"text-xs",children:a})]})})]})}));ve.displayName="TableCell";const rs=l.forwardRef(({className:t,...s},a)=>e.jsx("caption",{ref:a,className:c("mt-4 text-sm text-muted-foreground",t),...s}));rs.displayName="TableCaption";const os=P.memo(({columnSchema:t})=>t!=null&&t.isPrimaryKey?e.jsx(wt,{className:"h-4 w-4"}):t!=null&&t.isForeignKey?e.jsx(Nt,{className:"h-4 w-4"}):(t==null?void 0:t.type)==="BLOB"?e.jsx(vt,{className:"h-4 w-4"}):(t==null?void 0:t.type)==="DATETIME"?e.jsx(Ct,{className:"h-4 w-4"}):null),ls=P.memo(({col:t,columnSchema:s})=>e.jsx(Ne,{children:e.jsxs(ge,{children:[e.jsx(be,{asChild:!0,children:e.jsx("span",{className:"cursor-pointer hover:underline",children:e.jsxs("div",{className:"flex gap-1",children:[t,e.jsx(os,{columnSchema:s})]})})}),e.jsx(I,{side:"bottom",align:"start",children:(s==null?void 0:s.type)||"Unknown"})]})})),ns=P.memo(({value:t,dataType:s})=>e.jsx(ve,{dataType:s,children:t||e.jsx("span",{className:"italic opacity-40",children:"NULL"})}));function is({data:t,columns:s,tableName:a,tableSchemas:r}){const o=l.useMemo(()=>e.jsx(je,{children:e.jsx(A,{children:s.map((i,u)=>e.jsx(ls,{col:i,columnSchema:r[a][i]},u))})}),[s,r,a]),n=l.useMemo(()=>e.jsx(we,{children:t.map((i,u)=>e.jsx(A,{children:s.map((d,m)=>{var f;return e.jsx(ns,{value:i[d],dataType:(f=r[a][d])==null?void 0:f.type},m)})},u))}),[t,s,r,a]);return e.jsxs(ye,{children:[o,n]})}function H({children:t}){return e.jsxs("div",{className:"flex items-center justify-center gap-4 rounded border p-4",children:[e.jsx(Rt,{className:"h-6 w-6"}),e.jsx("span",{className:"font-semibold",children:t})]})}function Ce({children:t}){return e.jsxs("div",{className:"flex items-center justify-center gap-4 rounded border p-4",children:[e.jsx(St,{className:"h-6 w-6 animate-spin"}),e.jsx("span",{className:"font-semibold",children:t})]})}const cs=dt,ds=ut,Re=l.forwardRef(({className:t,align:s="center",sideOffset:a=4,...r},o)=>e.jsx(ct,{children:e.jsx(X,{ref:o,align:s,sideOffset:a,className:c("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));Re.displayName=X.displayName;function us(){const{selectedTable:t,tables:s,customQuery:a,db:r}=T(),o=l.useCallback((i,u,d,m)=>e.jsx(g,{className:m,onClick:i,title:d,children:e.jsx("span",{className:"ml-2",children:u})}),[]),n=l.useMemo(()=>{var i;return r&&e.jsxs("div",{className:"flex flex-col gap-1",children:[o(()=>Bt(r),"Export as SQLite","Download database as SQLite"),o(()=>_t(r,parseInt(t)),`Export ${((i=s[parseInt(t)])==null?void 0:i.name)||"selected"} table as CSV`,"Export selected table as CSV"),o(()=>Ut(r),"Export all tables as CSV","Export all tables as CSV"),o(()=>Kt(r,a),"Export custom query as CSV","Export the result of the custom query as CSV")]})},[r,o,t,s,a]);return e.jsxs(cs,{children:[e.jsx(ds,{asChild:!0,children:e.jsx(g,{title:"Open export options",children:e.jsx(Tt,{className:"h-5 w-5"})})}),e.jsx(Re,{align:"end",className:"w-80",children:n})]})}function ms(){const{tables:t,selectedTable:s,tableSchemas:a,queryError:r,setQueryError:o,rowPerPageOrAuto:n,isCustomQuery:i,setIsCustomQuery:u,customQuery:d,setCustomQuery:m,expandPage:f,setExpandPage:p}=T(),{page:b,setPage:j,rowsPerPage:y}=Jt(n),v=l.useMemo(()=>{var E;return(E=t[parseInt(s)])==null?void 0:E.name},[t,s]),R=l.useMemo(()=>{var E;return((E=t[parseInt(s)])==null?void 0:E.count)||0},[t,s]),{data:N,columns:x,isQueryLoading:h,handleCustomQuery:C}=Gt(v,y,b,i),S=l.useCallback(()=>{o(null),m(""),u(!1)},[u,o,m]),k=l.useCallback(()=>{j(0),S()},[S,j]);l.useEffect(()=>{j(0)},[s]);const _e=l.useMemo(()=>e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row",children:[e.jsx(q,{type:"text",value:d,onChange:E=>m(E.target.value),placeholder:"Enter your custom query",className:"w-full"}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx(g,{className:"w-full",onClick:C,title:"Run custom query",children:e.jsx(Et,{className:"h-5 w-5"})}),e.jsx(g,{className:"w-full",onClick:S,title:"Reset query",children:e.jsx(Pt,{className:"h-5 w-5"})}),e.jsx(g,{className:"w-full",onClick:k,title:"Reset to first page",disabled:b===0,children:e.jsx(kt,{className:"h-5 w-5"})})]})]}),[d,C,S,k,b]),Ue=l.useMemo(()=>h?e.jsxs(Ce,{children:["Loading ",v]}):N.length>0?e.jsx("div",{className:"rounded border",children:e.jsx(is,{data:N,columns:x,tableName:v,tableSchemas:a})}):e.jsx(H,{children:`Table ${v} is empty`}),[h,N,x,v,a]);return e.jsxs("div",{className:"flex flex-col gap-3 pb-8",children:[e.jsxs("section",{className:"flex flex-col gap-2 rounded border p-3 pb-2",children:[e.jsxs("div",{className:"flex h-full gap-1",children:[e.jsx(ss,{}),e.jsx(g,{className:"ml-1 hidden expand:block",onClick:()=>p(!f),title:"Toggle page size",children:f?e.jsx(Dt,{className:"h-5 w-5"}):e.jsx(Lt,{className:"h-5 w-5"})}),e.jsx(us,{})]}),_e,r&&e.jsx("p",{className:"text-center text-xs capitalize text-red-500",children:r})]}),Ue,!i&&e.jsx(Wt,{page:b,setPage:j,rowsPerPage:y,rowCount:R})]})}const Se=({shouldScaleBackground:t=!0,...s})=>e.jsx(w.Root,{shouldScaleBackground:t,...s});Se.displayName="Drawer";const fs=w.Trigger,ps=w.Portal,xs=w.Close,Te=l.forwardRef(({className:t,...s},a)=>e.jsx(w.Overlay,{ref:a,className:c("fixed inset-0 z-50 bg-black/80",t),...s}));Te.displayName=w.Overlay.displayName;const Ee=l.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(ps,{children:[e.jsx(Te,{}),e.jsxs(w.Content,{ref:r,className:c("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...a,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),s]})]}));Ee.displayName="DrawerContent";const Pe=({className:t,...s})=>e.jsx("div",{className:c("grid gap-1.5 p-4 text-center sm:text-left",t),...s});Pe.displayName="DrawerHeader";const ke=({className:t,...s})=>e.jsx("div",{className:c("mt-auto flex flex-col gap-2 p-4",t),...s});ke.displayName="DrawerFooter";const De=l.forwardRef(({className:t,...s},a)=>e.jsx(w.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",t),...s}));De.displayName=w.Title.displayName;const Le=l.forwardRef(({className:t,...s},a)=>e.jsx(w.Description,{ref:a,className:c("text-sm text-muted-foreground",t),...s}));Le.displayName=w.Description.displayName;const Ae=l.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(Z,{ref:r,className:c("relative overflow-hidden",t),...a,children:[e.jsx(mt,{className:"h-full w-full rounded-[inherit]",children:s}),e.jsx(He,{}),e.jsx(ft,{})]}));Ae.displayName=Z.displayName;const He=l.forwardRef(({className:t,orientation:s="vertical",...a},r)=>e.jsx(ee,{ref:r,orientation:s,className:c("flex touch-none select-none transition-colors",s==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...a,children:e.jsx(pt,{className:"relative flex-1 rounded-full bg-border"})}));He.displayName=ee.displayName;const Qe=l.forwardRef(({className:t,orientation:s="horizontal",decorative:a=!0,...r},o)=>e.jsx(te,{ref:o,decorative:a,orientation:s,className:c("shrink-0 bg-border",s==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...r}));Qe.displayName=te.displayName;const O="rowsPerPage";function hs(){const{setRowPerPageOrAuto:t,setIsCustomQuery:s,queryHestory:a}=T(),[r,o]=l.useState(null),[n,i]=l.useState(!1);l.useEffect(()=>{const f=localStorage.getItem(O);if(f)if(f==="auto")i(!0);else{const p=Number(f);o(p),t(p)}},[t]);const u=l.useCallback(f=>{const p=Number(f.target.value);isNaN(p)||(o(p),i(!1))},[]),d=l.useCallback(()=>{i(f=>!f)},[]),m=l.useCallback(()=>{if(s(!1),r===null){D.error("Please provide a number of rows per page or set it to auto.");return}if(r<1){D.error("Please provide a positive number of rows per page.");return}const f=n?"auto":r.toString();localStorage.setItem(O,f),t(n?"auto":r)},[r,n,s,t]);return e.jsxs(Se,{children:[e.jsx(fs,{asChild:!0,children:e.jsx(g,{className:"grow",title:"Open settings drawer",children:e.jsx(At,{className:"h-5 w-5"})})}),e.jsx(Ee,{children:e.jsxs("div",{className:"mx-auto w-full max-w-md",children:[e.jsxs(Pe,{children:[e.jsx(De,{children:"Settings"}),e.jsx(Le,{children:"Personalize your site experience here."})]}),e.jsxs("div",{className:"flex flex-col gap-4 p-4 pb-0",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm text-muted-foreground",children:"Rows Per Page"}),e.jsxs("div",{className:"flex items-center justify-center gap-1 rounded border p-2",children:[e.jsx(q,{value:r||"",onChange:u,disabled:n,placeholder:"Number of rows",type:"number",name:"rowsPerPage"}),e.jsx("span",{className:"h-full text-center text-sm text-muted-foreground",children:"OR"}),e.jsx(g,{className:n?"border border-primary":"",onClick:d,title:"Toggle auto rows per page",variant:"outline",children:"Auto Calculate"})]}),e.jsx(g,{className:"mt-2 w-full",onClick:m,title:"Save rows per page settings",variant:"outline",children:e.jsx("span",{children:"Save"})})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"mb-1 text-sm text-muted-foreground",children:["Query History (",a.length,")"]}),e.jsx(Ae,{className:"h-48 rounded-md border",children:e.jsx("div",{className:"p-4",children:a.map((f,p)=>e.jsxs("div",{children:[e.jsx("div",{className:"text-sm",children:f}),e.jsx(Qe,{className:"my-2"})]},p))})})]})]}),e.jsx(ke,{children:e.jsx(xs,{asChild:!0,children:e.jsx(g,{title:"Close settings drawer",variant:"outline",children:"Close"})})})]})})]})}const $="darkMode",z="animate-circular-reveal";function Me(){const[t,s]=l.useState(!1),a=l.useCallback(o=>{s(o),document.body.classList.toggle("dark",o),localStorage.setItem($,o.toString()),document.body.classList.add(z),setTimeout(()=>{document.body.classList.remove(z)},500)},[]);l.useEffect(()=>{const o=localStorage.getItem($),n=o!==null?o==="true":window.matchMedia("(prefers-color-scheme: dark)").matches;a(n);const i=d=>{a(d.matches)},u=window.matchMedia("(prefers-color-scheme: dark)");return u.addEventListener("change",i),()=>{u.removeEventListener("change",i)}},[a]);const r=l.useCallback(()=>{a(!t)},[t,a]);return e.jsx(g,{className:"relative grow",onClick:r,title:t?"Enable light mode":"Enable dark mode",children:t?e.jsx(Ht,{className:"h-5 w-5"}):e.jsx(Qt,{className:"h-5 w-5"})})}const gs={"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]},bs={CHINOOK:"https://github.com/vwh/sqlite-viewer/raw/main/db_examples/chinook.db"};function ys(){const{loadDatabase:t,setTables:s,setSelectedTable:a,db:r}=T(),[o,n]=l.useState([]),i=l.useCallback(async(p,b)=>{if(n([]),s([]),a("0"),p.length>0&&await t(p[0]),b.length>0){const j=b.flatMap(y=>y.errors);n(j)}},[t,s,a]),{getRootProps:u,getInputProps:d}=qt({onDrop:i,multiple:!1,accept:gs}),m=l.useCallback(p=>e.jsxs("div",{className:`flex h-full items-center justify-center gap-2 ${p?"px-[10px]":"px-0"}`,children:[e.jsxs("div",{...u(),className:`flex h-full grow cursor-pointer flex-col items-center justify-center rounded border p-6 text-center ${p?"py-0":"py-32"}`,children:[e.jsx("input",{id:"file-upload",...d()}),e.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),e.jsx("p",{className:"hidden sm:block",children:"Drag and drop a SQLite file here, or click to select one"}),e.jsx("p",{className:"block sm:hidden",children:p?"Click to select a file":"Click to select a SQLite file"}),!p&&e.jsx("a",{href:bs.CHINOOK,className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),p&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(Me,{}),e.jsx(hs,{})]})]}),[u,d]),f=l.useMemo(()=>m(!!r),[m,r]);return e.jsxs("section",{children:[f,e.jsx(js,{errors:o})]})}const js=P.memo(({errors:t})=>(P.useEffect(()=>{t==null||t.forEach(s=>D(s.message,{position:"bottom-right"}))},[t]),null));function ws(){const[t,s]=l.useState(()=>document.body.classList.contains("dark"));return l.useEffect(()=>{const a=new MutationObserver(()=>{s(document.body.classList.contains("dark"))});return a.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>a.disconnect()},[]),t}function Ns(){const s=ws()?"/sqlite-dark.webp":"/sqlite-light.webp";return e.jsx("section",{className:"flex justify-center rounded border py-3",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("img",{id:"logo",title:"SQLite Logo",src:s,alt:"SQLite Logo",width:"170",height:"80",draggable:"false"}),e.jsx("p",{className:"text-sm",children:"View SQLite files in the browser"})]})})}const vs=ht,Cs=xt,qe=l.forwardRef(({className:t,...s},a)=>e.jsx(se,{className:c("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s,ref:a}));qe.displayName=se.displayName;const Fe=l.forwardRef(({className:t,...s},a)=>e.jsxs(Cs,{children:[e.jsx(qe,{}),e.jsx(ae,{ref:a,className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...s})]}));Fe.displayName=ae.displayName;const Ie=({className:t,...s})=>e.jsx("div",{className:c("flex flex-col space-y-2 text-left",t),...s});Ie.displayName="AlertDialogHeader";const Oe=({className:t,...s})=>e.jsx("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s});Oe.displayName="AlertDialogFooter";const $e=l.forwardRef(({className:t,...s},a)=>e.jsx(re,{ref:a,className:c("text-lg font-semibold",t),...s}));$e.displayName=re.displayName;const ze=l.forwardRef(({className:t,...s},a)=>e.jsx(oe,{ref:a,className:c("text-sm",t),...s}));ze.displayName=oe.displayName;const Be=l.forwardRef(({className:t,...s},a)=>e.jsx(le,{ref:a,className:c(F(),t),...s}));Be.displayName=le.displayName;const Ve=l.forwardRef(({className:t,...s},a)=>e.jsx(ne,{ref:a,className:c(F({variant:"outline"}),"mt-2 sm:mt-0",t),...s}));Ve.displayName=ne.displayName;function Rs({showDialog:t,setShowDialog:s,fn:a}){return e.jsx(vs,{open:t,onOpenChange:s,children:e.jsxs(Fe,{children:[e.jsxs(Ie,{children:[e.jsx($e,{children:"Retry using a proxy?"}),e.jsx(ze,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),e.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),e.jsxs(Oe,{children:[e.jsx(Ve,{onClick:()=>s(!1),children:"Cancel"}),e.jsx(Be,{onClick:a,children:"Confirm"})]})]})})}const Ss="https://github.com/vwh/sqlite-viewer";function Ts(){return e.jsxs("footer",{className:"flex items-center justify-between rounded border p-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"hidden text-xs sm:block",children:"No file will be uploaded to server. using JavaScript, sql.js"}),e.jsx("p",{className:"block text-xs sm:hidden",children:"No file uploads to server."}),e.jsxs("a",{href:Ss,target:"_blank",className:"flex items-center gap-1 text-sm text-link hover:underline",title:"Star on GitHub",children:[e.jsx(Mt,{className:"h-4 w-4"}),e.jsx("span",{children:"Star us on GitHub"})]})]}),e.jsx("div",{className:"flex gap-1",children:e.jsx(Me,{})})]})}function Es(){const{db:t,tables:s,isLoading:a,loadDatabase:r,expandPage:o}=T(),[n,i]=l.useState(null),[u,d]=l.useState(!1),[m,f]=l.useState(null),[p,b]=l.useState(!1),j=l.useRef(!1),y=l.useCallback(async(N,x=!1)=>{try{b(!0);const h=x?`https://corsproxy.io/?${encodeURIComponent(N)}`:N,C=await fetch(h);if(!C.ok)throw new Error("URL not found or invalid");const S=await C.blob(),k=new File([S],"database.sqlite");await r(k),i(null)}catch(h){x?i(`Error whilefetching, ${h instanceof Error?h.message:String(h)}`):(f(N),d(!0))}finally{b(!1)}},[r]);l.useEffect(()=>{if(j.current)return;const x=new URLSearchParams(window.location.search).get("url");x&&(y(decodeURIComponent(x)),j.current=!0)},[y]);const v=l.useCallback(()=>{m&&(y(m,!0),d(!1))},[m,y]),R=()=>a||p?e.jsxs(Ce,{children:[p?"Fetching":"Loading"," SQLite file"]}):n&&!t?e.jsx(H,{children:n}):t?s.length>0?e.jsx(ms,{}):e.jsx(H,{children:"Your database is empty, no tables found"}):null;return e.jsxs("main",{className:`mx-auto flex h-screen flex-col gap-3 p-4 ${o?"w-full":"container"}`,children:[!t&&e.jsx(Ns,{}),e.jsx(ys,{}),R(),e.jsx(Rs,{showDialog:u,setShowDialog:d,fn:v}),!t&&e.jsx(Ts,{})]})}const Ps=({...t})=>{const{theme:s="system"}=It();return e.jsx(Ft,{theme:s,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-background group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};Ke.createRoot(document.getElementById("root")).render(e.jsxs(P.StrictMode,{children:[e.jsx(Es,{}),e.jsx(Ps,{})]})); diff --git a/assets/index-D0SBxsgt.js.gz b/assets/index-D0SBxsgt.js.gz new file mode 100644 index 0000000..32daadd Binary files /dev/null and b/assets/index-D0SBxsgt.js.gz differ diff --git a/assets/index-D6dvM9RD.css.gz b/assets/index-D6dvM9RD.css.gz new file mode 100644 index 0000000..2da98f0 Binary files /dev/null and b/assets/index-D6dvM9RD.css.gz differ diff --git a/assets/index-h-vSbY91.js b/assets/index-h-vSbY91.js deleted file mode 100644 index 75c000f..0000000 --- a/assets/index-h-vSbY91.js +++ /dev/null @@ -1,242 +0,0 @@ -function ux(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var uh={exports:{}},os={},ch={exports:{}},Pe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var sl=Symbol.for("react.element"),dx=Symbol.for("react.portal"),fx=Symbol.for("react.fragment"),px=Symbol.for("react.strict_mode"),mx=Symbol.for("react.profiler"),hx=Symbol.for("react.provider"),vx=Symbol.for("react.context"),gx=Symbol.for("react.forward_ref"),yx=Symbol.for("react.suspense"),wx=Symbol.for("react.memo"),xx=Symbol.for("react.lazy"),op=Symbol.iterator;function bx(e){return e===null||typeof e!="object"?null:(e=op&&e[op]||e["@@iterator"],typeof e=="function"?e:null)}var dh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fh=Object.assign,ph={};function Qo(e,t,n){this.props=e,this.context=t,this.refs=ph,this.updater=n||dh}Qo.prototype.isReactComponent={};Qo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mh(){}mh.prototype=Qo.prototype;function Qc(e,t,n){this.props=e,this.context=t,this.refs=ph,this.updater=n||dh}var Yc=Qc.prototype=new mh;Yc.constructor=Qc;fh(Yc,Qo.prototype);Yc.isPureReactComponent=!0;var ip=Array.isArray,hh=Object.prototype.hasOwnProperty,Xc={current:null},vh={key:!0,ref:!0,__self:!0,__source:!0};function gh(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)hh.call(t,r)&&!vh.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,X=I[Y];if(0>>1;Yo(Me,ne))ceo(ee,Me)?(I[Y]=ee,I[ce]=ne,Y=ce):(I[Y]=Me,I[pe]=ne,Y=pe);else if(ceo(ee,ne))I[Y]=ee,I[ce]=ne,Y=ce;else break e}}return B}function o(I,B){var ne=I.sortIndex-B.sortIndex;return ne!==0?ne:I.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var c=[],u=[],m=1,v=null,f=3,w=!1,E=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=I)r(u),B.sortIndex=B.expirationTime,t(c,B);else break;B=n(u)}}function _(I){if(S=!1,b(I),!E)if(n(c)!==null)E=!0,oe(R);else{var B=n(u);B!==null&&re(_,B.startTime-I)}}function R(I,B){E=!1,S&&(S=!1,x(D),D=-1),w=!0;var ne=f;try{for(b(B),v=n(c);v!==null&&(!(v.expirationTime>B)||I&&!W());){var Y=v.callback;if(typeof Y=="function"){v.callback=null,f=v.priorityLevel;var X=Y(v.expirationTime<=B);B=e.unstable_now(),typeof X=="function"?v.callback=X:v===n(c)&&r(c),b(B)}else r(c);v=n(c)}if(v!==null)var me=!0;else{var pe=n(u);pe!==null&&re(_,pe.startTime-B),me=!1}return me}finally{v=null,f=ne,w=!1}}var A=!1,N=null,D=-1,M=5,L=-1;function W(){return!(e.unstable_now()-LI||125Y?(I.sortIndex=ne,t(u,I),n(c)===null&&I===n(u)&&(S?(x(D),D=-1):S=!0,re(_,ne-Y))):(I.sortIndex=X,t(c,I),E||w||(E=!0,oe(R))),I},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(I){var B=f;return function(){var ne=f;f=B;try{return I.apply(this,arguments)}finally{f=ne}}}})(Sh);bh.exports=Sh;var Dx=bh.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var jx=h,Zt=Dx;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ou=Object.prototype.hasOwnProperty,Mx=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ap={},sp={};function Ix(e){return Ou.call(sp,e)?!0:Ou.call(ap,e)?!1:Mx.test(e)?sp[e]=!0:(ap[e]=!0,!1)}function Lx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zx(e,t,n,r){if(t===null||typeof t>"u"||Lx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function It(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new It(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new It(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new It(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new It(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xt[e]=new It(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xt[e]=new It(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xt[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jc=/[\-:]([a-z])/g;function ed(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jc,ed);xt[t]=new It(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jc,ed);xt[t]=new It(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jc,ed);xt[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xt[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)});xt.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xt[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)});function td(e,t,n,r){var o=xt.hasOwnProperty(t)?xt[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var c=` -`+o[l].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=l&&0<=s);break}}}finally{qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ki(e):""}function Fx(e){switch(e.tag){case 5:return ki(e.type);case 16:return ki("Lazy");case 13:return ki("Suspense");case 19:return ki("SuspenseList");case 0:case 2:case 15:return e=Gs(e.type,!1),e;case 11:return e=Gs(e.type.render,!1),e;case 1:return e=Gs(e.type,!0),e;default:return""}}function Iu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yo:return"Fragment";case go:return"Portal";case Du:return"Profiler";case nd:return"StrictMode";case ju:return"Suspense";case Mu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _h:return(e.displayName||"Context")+".Consumer";case Ch:return(e._context.displayName||"Context")+".Provider";case rd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case od:return t=e.displayName||null,t!==null?t:Iu(e.type)||"Memo";case ur:t=e._payload,e=e._init;try{return Iu(e(t))}catch{}}return null}function $x(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Iu(t);case 8:return t===nd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Er(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ph(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hx(e){var t=Ph(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=Hx(e))}function Rh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ph(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ba(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lu(e,t){var n=t.checked;return tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Er(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nh(e,t){t=t.checked,t!=null&&td(e,"checked",t,!1)}function zu(e,t){Nh(e,t);var n=Er(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fu(e,t.type,Er(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Fu(e,t,n){(t!=="number"||ba(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pi=Array.isArray;function No(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ai={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bx=["Webkit","ms","Moz","O"];Object.keys(Ai).forEach(function(e){Bx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ai[t]=Ai[e]})});function Dh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ai.hasOwnProperty(e)&&Ai[e]?(""+t).trim():t+"px"}function jh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Dh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wx=tt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bu(e,t){if(t){if(Wx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Wu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uu=null;function id(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vu=null,To=null,Ao=null;function mp(e){if(e=dl(e)){if(typeof Vu!="function")throw Error(U(280));var t=e.stateNode;t&&(t=us(t),Vu(e.stateNode,e.type,t))}}function Mh(e){To?Ao?Ao.push(e):Ao=[e]:To=e}function Ih(){if(To){var e=To,t=Ao;if(Ao=To=null,mp(e),t)for(e=0;e>>=0,e===0?32:31-(eb(e)/tb|0)|0}var Ml=64,Il=4194304;function Ri(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _a(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Ri(s):(i&=l,i!==0&&(r=Ri(i)))}else l=n&~o,l!==0?r=Ri(l):i!==0&&(r=Ri(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ul(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wn(t),e[t]=n}function ib(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Di),Ep=" ",Cp=!1;function nv(e,t){switch(e){case"keyup":return Db.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wo=!1;function Mb(e,t){switch(e){case"compositionend":return rv(t);case"keypress":return t.which!==32?null:(Cp=!0,Ep);case"textInput":return e=t.data,e===Ep&&Cp?null:e;default:return null}}function Ib(e,t){if(wo)return e==="compositionend"||!pd&&nv(e,t)?(e=ev(),ua=cd=pr=null,wo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rp(n)}}function av(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?av(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sv(){for(var e=window,t=ba();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ba(e.document)}return t}function md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vb(e){var t=sv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&av(n.ownerDocument.documentElement,n)){if(r!==null&&md(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Np(n,i);var l=Np(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xo=null,Xu=null,Mi=null,Zu=!1;function Tp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zu||xo==null||xo!==ba(r)||(r=xo,"selectionStart"in r&&md(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mi&&Gi(Mi,r)||(Mi=r,r=Ra(Xu,"onSelect"),0Eo||(e.current=oc[Eo],oc[Eo]=null,Eo--)}function Ue(e,t){Eo++,oc[Eo]=e.current,e.current=t}var Cr={},kt=Nr(Cr),Ht=Nr(!1),Xr=Cr;function Fo(e,t){var n=e.type.contextTypes;if(!n)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Bt(e){return e=e.childContextTypes,e!=null}function Ta(){Qe(Ht),Qe(kt)}function Lp(e,t,n){if(kt.current!==Cr)throw Error(U(168));Ue(kt,t),Ue(Ht,n)}function gv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,$x(e)||"Unknown",o));return tt({},n,r)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,Xr=kt.current,Ue(kt,e),Ue(Ht,Ht.current),!0}function zp(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=gv(e,t,Xr),r.__reactInternalMemoizedMergedChildContext=e,Qe(Ht),Qe(kt),Ue(kt,e)):Qe(Ht),Ue(Ht,n)}var Un=null,cs=!1,au=!1;function yv(e){Un===null?Un=[e]:Un.push(e)}function rS(e){cs=!0,yv(e)}function Tr(){if(!au&&Un!==null){au=!0;var e=0,t=Le;try{var n=Un;for(Le=1;e>=l,o-=l,Vn=1<<32-wn(t)+o|n<D?(M=N,N=null):M=N.sibling;var L=f(x,N,b[D],_);if(L===null){N===null&&(N=M);break}e&&N&&L.alternate===null&&t(x,N),y=i(L,y,D),A===null?R=L:A.sibling=L,A=L,N=M}if(D===b.length)return n(x,N),Ye&&Hr(x,D),R;if(N===null){for(;DD?(M=N,N=null):M=N.sibling;var W=f(x,N,L.value,_);if(W===null){N===null&&(N=M);break}e&&N&&W.alternate===null&&t(x,N),y=i(W,y,D),A===null?R=W:A.sibling=W,A=W,N=M}if(L.done)return n(x,N),Ye&&Hr(x,D),R;if(N===null){for(;!L.done;D++,L=b.next())L=v(x,L.value,_),L!==null&&(y=i(L,y,D),A===null?R=L:A.sibling=L,A=L);return Ye&&Hr(x,D),R}for(N=r(x,N);!L.done;D++,L=b.next())L=w(N,x,D,L.value,_),L!==null&&(e&&L.alternate!==null&&N.delete(L.key===null?D:L.key),y=i(L,y,D),A===null?R=L:A.sibling=L,A=L);return e&&N.forEach(function(V){return t(x,V)}),Ye&&Hr(x,D),R}function P(x,y,b,_){if(typeof b=="object"&&b!==null&&b.type===yo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ol:e:{for(var R=b.key,A=y;A!==null;){if(A.key===R){if(R=b.type,R===yo){if(A.tag===7){n(x,A.sibling),y=o(A,b.props.children),y.return=x,x=y;break e}}else if(A.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===ur&&Hp(R)===A.type){n(x,A.sibling),y=o(A,b.props),y.ref=wi(x,A,b),y.return=x,x=y;break e}n(x,A);break}else t(x,A);A=A.sibling}b.type===yo?(y=Qr(b.props.children,x.mode,_,b.key),y.return=x,x=y):(_=ga(b.type,b.key,b.props,null,x.mode,_),_.ref=wi(x,y,b),_.return=x,x=_)}return l(x);case go:e:{for(A=b.key;y!==null;){if(y.key===A)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(x,y.sibling),y=o(y,b.children||[]),y.return=x,x=y;break e}else{n(x,y);break}else t(x,y);y=y.sibling}y=hu(b,x.mode,_),y.return=x,x=y}return l(x);case ur:return A=b._init,P(x,y,A(b._payload),_)}if(Pi(b))return E(x,y,b,_);if(mi(b))return S(x,y,b,_);Wl(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(x,y.sibling),y=o(y,b),y.return=x,x=y):(n(x,y),y=mu(b,x.mode,_),y.return=x,x=y),l(x)):n(x,y)}return P}var Ho=Sv(!0),Ev=Sv(!1),ja=Nr(null),Ma=null,ko=null,yd=null;function wd(){yd=ko=Ma=null}function xd(e){var t=ja.current;Qe(ja),e._currentValue=t}function ac(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Do(e,t){Ma=e,yd=ko=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ft=!0),e.firstContext=null)}function sn(e){var t=e._currentValue;if(yd!==e)if(e={context:e,memoizedValue:t,next:null},ko===null){if(Ma===null)throw Error(U(308));ko=e,Ma.dependencies={lanes:0,firstContext:e}}else ko=ko.next=e;return t}var Vr=null;function bd(e){Vr===null?Vr=[e]:Vr.push(e)}function Cv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,bd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Yn(e,r)}function Yn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cr=!1;function Sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _v(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Oe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Yn(e,n)}return o=r.interleaved,o===null?(t.next=t,bd(r)):(t.next=o.next,o.next=t),r.interleaved=t,Yn(e,n)}function da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ad(e,n)}}function Bp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ia(e,t,n,r){var o=e.updateQueue;cr=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==l&&(s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=c))}if(i!==null){var v=o.baseState;l=0,m=u=c=null,s=i;do{var f=s.lane,w=s.eventTime;if((r&f)===f){m!==null&&(m=m.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var E=e,S=s;switch(f=t,w=n,S.tag){case 1:if(E=S.payload,typeof E=="function"){v=E.call(w,v,f);break e}v=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=S.payload,f=typeof E=="function"?E.call(w,v,f):E,f==null)break e;v=tt({},v,f);break e;case 2:cr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else w={eventTime:w,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(u=m=w,c=v):m=m.next=w,l|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(m===null&&(c=v),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=m,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);eo|=l,e.lanes=l,e.memoizedState=v}}function Wp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=uu.transition;uu.transition={};try{e(!1),t()}finally{Le=n,uu.transition=r}}function Bv(){return un().memoizedState}function aS(e,t,n){var r=br(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wv(e))Uv(t,n);else if(n=Cv(e,t,n,r),n!==null){var o=jt();xn(n,e,r,o),Vv(n,t,r)}}function sS(e,t,n){var r=br(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wv(e))Uv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,bn(s,l)){var c=t.interleaved;c===null?(o.next=o,bd(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Cv(e,t,o,r),n!==null&&(o=jt(),xn(n,e,r,o),Vv(n,t,r))}}function Wv(e){var t=e.alternate;return e===et||t!==null&&t===et}function Uv(e,t){Ii=za=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ad(e,n)}}var Fa={readContext:sn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},uS={readContext:sn,useCallback:function(e,t){return An().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:Vp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pa(4194308,4,Lv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return pa(4,2,e,t)},useMemo:function(e,t){var n=An();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=An();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=aS.bind(null,et,e),[r.memoizedState,e]},useRef:function(e){var t=An();return e={current:e},t.memoizedState=e},useState:Up,useDebugValue:Td,useDeferredValue:function(e){return An().memoizedState=e},useTransition:function(){var e=Up(!1),t=e[0];return e=lS.bind(null,e[1]),An().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=et,o=An();if(Ye){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),gt===null)throw Error(U(349));Jr&30||Nv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Vp(Av.bind(null,r,i,e),[e]),r.flags|=2048,tl(9,Tv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=An(),t=gt.identifierPrefix;if(Ye){var n=qn,r=Vn;n=(r&~(1<<32-wn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ji++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[On]=t,e[Yi]=r,tg(e,t,!1,!1),t.stateNode=e;e:{switch(l=Wu(n,r),n){case"dialog":Ge("cancel",e),Ge("close",e),o=r;break;case"iframe":case"object":case"embed":Ge("load",e),o=r;break;case"video":case"audio":for(o=0;oUo&&(t.flags|=128,r=!0,xi(i,!1),t.lanes=4194304)}else{if(!r)if(e=La(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Ye)return Et(t),null}else 2*lt()-i.renderingStartTime>Uo&&n!==1073741824&&(t.flags|=128,r=!0,xi(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=lt(),t.sibling=null,n=Je.current,Ue(Je,r?n&1|2:n&1),t):(Et(t),null);case 22:case 23:return Id(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gt&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function gS(e,t){switch(vd(t),t.tag){case 1:return Bt(t.type)&&Ta(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bo(),Qe(Ht),Qe(kt),_d(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cd(t),null;case 13:if(Qe(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));$o()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qe(Je),null;case 4:return Bo(),null;case 10:return xd(t.type._context),null;case 22:case 23:return Id(),null;case 24:return null;default:return null}}var Vl=!1,Ct=!1,yS=typeof WeakSet=="function"?WeakSet:Set,te=null;function Po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rt(e,t,r)}else n.current=null}function vc(e,t,n){try{n()}catch(r){rt(e,t,r)}}var nm=!1;function wS(e,t){if(Ju=ka,e=sv(),md(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,c=-1,u=0,m=0,v=e,f=null;t:for(;;){for(var w;v!==n||o!==0&&v.nodeType!==3||(s=l+o),v!==i||r!==0&&v.nodeType!==3||(c=l+r),v.nodeType===3&&(l+=v.nodeValue.length),(w=v.firstChild)!==null;)f=v,v=w;for(;;){if(v===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++m===r&&(c=l),(w=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=w}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ec={focusedElem:e,selectionRange:n},ka=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var S=E.memoizedProps,P=E.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?S:vn(t.type,S),P);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(_){rt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return E=nm,nm=!1,E}function Li(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&vc(t,n,i)}o=o.next}while(o!==r)}}function ps(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function gc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function og(e){var t=e.alternate;t!==null&&(e.alternate=null,og(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[On],delete t[Yi],delete t[rc],delete t[tS],delete t[nS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ig(e){return e.tag===5||e.tag===3||e.tag===4}function rm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ig(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Na));else if(r!==4&&(e=e.child,e!==null))for(yc(e,t,n),e=e.sibling;e!==null;)yc(e,t,n),e=e.sibling}function wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wc(e,t,n),e=e.sibling;e!==null;)wc(e,t,n),e=e.sibling}var yt=null,gn=!1;function ir(e,t,n){for(n=n.child;n!==null;)lg(e,t,n),n=n.sibling}function lg(e,t,n){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(is,n)}catch{}switch(n.tag){case 5:Ct||Po(n,t);case 6:var r=yt,o=gn;yt=null,ir(e,t,n),yt=r,gn=o,yt!==null&&(gn?(e=yt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):yt.removeChild(n.stateNode));break;case 18:yt!==null&&(gn?(e=yt,n=n.stateNode,e.nodeType===8?lu(e.parentNode,n):e.nodeType===1&&lu(e,n),Vi(e)):lu(yt,n.stateNode));break;case 4:r=yt,o=gn,yt=n.stateNode.containerInfo,gn=!0,ir(e,t,n),yt=r,gn=o;break;case 0:case 11:case 14:case 15:if(!Ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&vc(n,t,l),o=o.next}while(o!==r)}ir(e,t,n);break;case 1:if(!Ct&&(Po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rt(n,t,s)}ir(e,t,n);break;case 21:ir(e,t,n);break;case 22:n.mode&1?(Ct=(r=Ct)||n.memoizedState!==null,ir(e,t,n),Ct=r):ir(e,t,n);break;default:ir(e,t,n)}}function om(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yS),t.forEach(function(r){var o=RS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function hn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bS(r/1960))-r,10e?16:e,mr===null)var r=!1;else{if(e=mr,mr=null,Ba=0,Oe&6)throw Error(U(331));var o=Oe;for(Oe|=4,te=e.current;te!==null;){var i=te,l=i.child;if(te.flags&16){var s=i.deletions;if(s!==null){for(var c=0;clt()-jd?Kr(e,0):Dd|=n),Wt(e,t)}function mg(e,t){t===0&&(e.mode&1?(t=Il,Il<<=1,!(Il&130023424)&&(Il=4194304)):t=1);var n=jt();e=Yn(e,t),e!==null&&(ul(e,t,n),Wt(e,n))}function PS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mg(e,n)}function RS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),mg(e,n)}var hg;hg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,hS(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,Ye&&t.flags&1048576&&wv(t,Da,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ma(e,t),e=t.pendingProps;var o=Fo(t,kt.current);Do(t,n),o=Pd(null,t,r,e,o,n);var i=Rd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Bt(r)?(i=!0,Aa(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sd(t),o.updater=fs,t.stateNode=o,o._reactInternals=t,uc(t,r,e,n),t=fc(null,t,r,!0,i,n)):(t.tag=0,Ye&&i&&hd(t),Dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ma(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=TS(r),e=vn(r,e),o){case 0:t=dc(null,t,r,e,n);break e;case 1:t=Jp(null,t,r,e,n);break e;case 11:t=Xp(null,t,r,e,n);break e;case 14:t=Zp(null,t,r,vn(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vn(r,o),dc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vn(r,o),Jp(e,t,r,o,n);case 3:e:{if(Zv(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,_v(e,t),Ia(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Wo(Error(U(423)),t),t=em(e,t,r,n,o);break e}else if(r!==o){o=Wo(Error(U(424)),t),t=em(e,t,r,n,o);break e}else for(Qt=yr(t.stateNode.containerInfo.firstChild),Yt=t,Ye=!0,yn=null,n=Ev(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($o(),r===o){t=Xn(e,t,n);break e}Dt(e,t,r,n)}t=t.child}return t;case 5:return kv(t),e===null&&lc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,tc(r,o)?l=null:i!==null&&tc(r,i)&&(t.flags|=32),Xv(e,t),Dt(e,t,l,n),t.child;case 6:return e===null&&lc(t),null;case 13:return Jv(e,t,n);case 4:return Ed(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ho(t,null,r,n):Dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vn(r,o),Xp(e,t,r,o,n);case 7:return Dt(e,t,t.pendingProps,n),t.child;case 8:return Dt(e,t,t.pendingProps.children,n),t.child;case 12:return Dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Ue(ja,r._currentValue),r._currentValue=l,i!==null)if(bn(i.value,l)){if(i.children===o.children&&!Ht.current){t=Xn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Gn(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?c.next=c:(c.next=m.next,m.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),ac(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(U(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ac(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Do(t,n),o=sn(o),r=r(o),t.flags|=1,Dt(e,t,r,n),t.child;case 14:return r=t.type,o=vn(r,t.pendingProps),o=vn(r.type,o),Zp(e,t,r,o,n);case 15:return Qv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vn(r,o),ma(e,t),t.tag=1,Bt(r)?(e=!0,Aa(t)):e=!1,Do(t,n),qv(t,r,o),uc(t,r,o,n),fc(null,t,r,!0,e,n);case 19:return eg(e,t,n);case 22:return Yv(e,t,n)}throw Error(U(156,t.tag))};function vg(e,t){return Wh(e,t)}function NS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(e,t,n,r){return new NS(e,t,n,r)}function zd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TS(e){if(typeof e=="function")return zd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rd)return 11;if(e===od)return 14}return 2}function Sr(e,t){var n=e.alternate;return n===null?(n=ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ga(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")zd(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case yo:return Qr(n.children,o,i,t);case nd:l=8,o|=8;break;case Du:return e=ln(12,n,t,o|2),e.elementType=Du,e.lanes=i,e;case ju:return e=ln(13,n,t,o),e.elementType=ju,e.lanes=i,e;case Mu:return e=ln(19,n,t,o),e.elementType=Mu,e.lanes=i,e;case kh:return hs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ch:l=10;break e;case _h:l=9;break e;case rd:l=11;break e;case od:l=14;break e;case ur:l=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=ln(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qr(e,t,n,r){return e=ln(7,e,r,t),e.lanes=n,e}function hs(e,t,n,r){return e=ln(22,e,r,t),e.elementType=kh,e.lanes=n,e.stateNode={isHidden:!1},e}function mu(e,t,n){return e=ln(6,e,null,t),e.lanes=n,e}function hu(e,t,n){return t=ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qs(0),this.expirationTimes=Qs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fd(e,t,n,r,o,i,l,s,c){return e=new AS(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ln(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sd(i),e}function OS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xg)}catch(e){console.error(e)}}xg(),xh.exports=Jt;var ao=xh.exports;const bg=al(ao);var fm=ao;Au.createRoot=fm.createRoot,Au.hydrateRoot=fm.hydrateRoot;var LS={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const pm=e=>{let t;const n=new Set,r=(m,v)=>{const f=typeof m=="function"?m(t):m;if(!Object.is(f,t)){const w=t;t=v??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(E=>E(t,w))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(LS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},zS=e=>e?pm(e):pm;var Sg={exports:{}},Eg={},Cg={exports:{}},_g={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Vo=h;function FS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $S=typeof Object.is=="function"?Object.is:FS,HS=Vo.useState,BS=Vo.useEffect,WS=Vo.useLayoutEffect,US=Vo.useDebugValue;function VS(e,t){var n=t(),r=HS({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return WS(function(){o.value=n,o.getSnapshot=t,vu(o)&&i({inst:o})},[e,n,t]),BS(function(){return vu(o)&&i({inst:o}),e(function(){vu(o)&&i({inst:o})})},[e]),US(n),n}function vu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$S(e,n)}catch{return!0}}function qS(e,t){return t()}var GS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qS:VS;_g.useSyncExternalStore=Vo.useSyncExternalStore!==void 0?Vo.useSyncExternalStore:GS;Cg.exports=_g;var KS=Cg.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xs=h,QS=KS;function YS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var XS=typeof Object.is=="function"?Object.is:YS,ZS=QS.useSyncExternalStore,JS=xs.useRef,eE=xs.useEffect,tE=xs.useMemo,nE=xs.useDebugValue;Eg.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=JS(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=tE(function(){function c(w){if(!u){if(u=!0,m=w,w=r(w),o!==void 0&&l.hasValue){var E=l.value;if(o(E,w))return v=E}return v=w}if(E=v,XS(m,w))return E;var S=r(w);return o!==void 0&&o(E,S)?E:(m=w,v=S)}var u=!1,m,v,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var s=ZS(e,i[0],i[1]);return eE(function(){l.hasValue=!0,l.value=s},[s]),nE(s),s};Sg.exports=Eg;var rE=Sg.exports;const oE=al(rE);var kg={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:iE}=O,{useSyncExternalStoreWithSelector:lE}=oE;let mm=!1;const aE=e=>e;function sE(e,t=aE,n){(kg?"production":void 0)!=="production"&&n&&!mm&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),mm=!0);const r=lE(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return iE(r),r}const hm=e=>{(kg?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?zS(e):e,n=(r,o)=>sE(t,r,o);return Object.assign(n,t),n},uE=e=>e?hm(e):hm;var Pg={exports:{}};const cE={},dE=Object.freeze(Object.defineProperty({__proto__:null,default:cE},Symbol.toStringTag,{value:"Module"})),gu=cx(dE);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var s=typeof o<"u"?o:{},c=s.onAbort;s.onAbort=function(a){l(new Error(a)),c&&c(a)},s.postRun=s.postRun||[],s.postRun.push(function(){i(s)}),e=void 0;var u;u||(u=typeof s<"u"?s:{}),u.onRuntimeInitialized=function(){function a(T,H){switch(typeof H){case"boolean":ax(T,H?1:0);break;case"number":ox(T,H);break;case"string":ix(T,H,-1,-1);break;case"object":if(H===null)tp(T);else if(H.length!=null){var ie=_l(H,Cl);lx(T,ie,H.length,-1),Rl(ie)}else Tl(T,"Wrong API use : tried to return a value of an unknown type ("+H+").",-1);break;default:tp(T)}}function d(T,H){for(var ie=[],ye=0;ye>>0),T!=null){var H=this.filename,ie="/",ye=H;if(ie&&(ie=typeof ie=="string"?ie:li(ie),ye=H?Rt(ie+"/"+H):ie),H=de(!0,!0),ye=yl(ye,(H!==void 0?H:438)&4095|32768,0),T){if(typeof T=="string"){ie=Array(T.length);for(var _e=0,We=T.length;_e(a=ce(a)?new URL(a):_.normalize(a),b.readFileSync(a,d?void 0:"utf8")),y=a=>(a=P(a,!0),a.buffer||(a=new Uint8Array(a)),a),x=(a,d,p,C=!0)=>{a=ce(a)?new URL(a):_.normalize(a),b.readFile(a,C?void 0:"utf8",(k,j)=>{k?p(k):d(C?j.buffer:j)})},!u.thisProgram&&1"[Emscripten Module object]"}else(f||w)&&(w?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),S=S.indexOf("blob:")!==0?S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):"",P=a=>{var d=new XMLHttpRequest;return d.open("GET",a,!1),d.send(null),d.responseText},w&&(y=a=>{var d=new XMLHttpRequest;return d.open("GET",a,!1),d.responseType="arraybuffer",d.send(null),new Uint8Array(d.response)}),x=(a,d,p)=>{var C=new XMLHttpRequest;C.open("GET",a,!0),C.responseType="arraybuffer",C.onload=()=>{C.status==200||C.status==0&&C.response?d(C.response):p()},C.onerror=p,C.send(null)});var R=u.print||console.log.bind(console),A=u.printErr||console.error.bind(console);Object.assign(u,m),m=null,u.thisProgram&&(v=u.thisProgram);var N;u.wasmBinary&&(N=u.wasmBinary),typeof WebAssembly!="object"&&pe("no native wasm support detected");var D,M=!1,L,W,V,$,q,Z,oe;function re(){var a=D.buffer;u.HEAP8=L=new Int8Array(a),u.HEAP16=V=new Int16Array(a),u.HEAPU8=W=new Uint8Array(a),u.HEAPU16=new Uint16Array(a),u.HEAP32=$=new Int32Array(a),u.HEAPU32=q=new Uint32Array(a),u.HEAPF32=Z=new Float32Array(a),u.HEAPF64=oe=new Float64Array(a)}var I=[],B=[],ne=[];function Y(){var a=u.preRun.shift();I.unshift(a)}var X=0,me=null;function pe(a){var d;throw(d=u.onAbort)==null||d.call(u,a),a="Aborted("+a+")",A(a),M=!0,new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.")}var Me=a=>a.startsWith("data:application/octet-stream;base64,"),ce=a=>a.startsWith("file://"),ee;if(ee="sql-wasm.wasm",!Me(ee)){var xe=ee;ee=u.locateFile?u.locateFile(xe,S):S+xe}function je(a){if(a==ee&&N)return new Uint8Array(N);if(y)return y(a);throw"both async and sync fetching of the wasm failed"}function K(a){if(!N&&(f||w)){if(typeof fetch=="function"&&!ce(a))return fetch(a,{credentials:"same-origin"}).then(d=>{if(!d.ok)throw"failed to load wasm binary file at '"+a+"'";return d.arrayBuffer()}).catch(()=>je(a));if(x)return new Promise((d,p)=>{x(a,C=>d(new Uint8Array(C)),p)})}return Promise.resolve().then(()=>je(a))}function Se(a,d,p){return K(a).then(C=>WebAssembly.instantiate(C,d)).then(C=>C).then(p,C=>{A(`failed to asynchronously prepare wasm: ${C}`),pe(C)})}function ve(a,d){var p=ee;N||typeof WebAssembly.instantiateStreaming!="function"||Me(p)||ce(p)||E||typeof fetch!="function"?Se(p,a,d):fetch(p,{credentials:"same-origin"}).then(C=>WebAssembly.instantiateStreaming(C,a).then(d,function(k){return A(`wasm streaming compile failed: ${k}`),A("falling back to ArrayBuffer instantiation"),Se(p,a,d)}))}var J,be,ot=a=>{for(;0>0];case"i8":return L[a>>0];case"i16":return V[a>>1];case"i32":return $[a>>2];case"i64":pe("to do getValue(i64) use WASM_BIGINT");case"float":return Z[a>>2];case"double":return oe[a>>3];case"*":return q[a>>2];default:pe(`invalid type for getValue: ${d}`)}}function nt(a){var d="i32";switch(d.endsWith("*")&&(d="*"),d){case"i1":L[a>>0]=0;break;case"i8":L[a>>0]=0;break;case"i16":V[a>>1]=0;break;case"i32":$[a>>2]=0;break;case"i64":pe("to do setValue(i64) use WASM_BIGINT");case"float":Z[a>>2]=0;break;case"double":oe[a>>3]=0;break;case"*":q[a>>2]=0;break;default:pe(`invalid type for setValue: ${d}`)}}var bt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ge=(a,d,p)=>{var C=d+p;for(p=d;a[p]&&!(p>=C);)++p;if(16k?C+=String.fromCharCode(k):(k-=65536,C+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else C+=String.fromCharCode(k)}return C},pt=(a,d)=>a?ge(W,a,d):"",rr=(a,d)=>{for(var p=0,C=a.length-1;0<=C;C--){var k=a[C];k==="."?a.splice(C,1):k===".."?(a.splice(C,1),p++):p&&(a.splice(C,1),p--)}if(d)for(;p;p--)a.unshift("..");return a},Rt=a=>{var d=a.charAt(0)==="/",p=a.substr(-1)==="/";return(a=rr(a.split("/").filter(C=>!!C),!d).join("/"))||d||(a="."),a&&p&&(a+="/"),(d?"/":"")+a},Nt=a=>{var d=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=d[0],d=d[1],!a&&!d?".":(d&&(d=d.substr(0,d.length-1)),a+d)},Q=a=>{if(a==="/")return"/";a=Rt(a),a=a.replace(/\/$/,"");var d=a.lastIndexOf("/");return d===-1?a:a.substr(d+1)},le=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return p=>crypto.getRandomValues(p);if(E)try{var a=gu;if(a.randomFillSync)return p=>a.randomFillSync(p);var d=a.randomBytes;return p=>(p.set(d(p.byteLength)),p)}catch{}pe("initRandomDevice")},Ie=a=>(Ie=le())(a);function Re(){for(var a="",d=!1,p=arguments.length-1;-1<=p&&!d;p--){if(d=0<=p?arguments[p]:"/",typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)return"";a=d+"/"+a,d=d.charAt(0)==="/"}return a=rr(a.split("/").filter(C=>!!C),!d).join("/"),(d?"/":"")+a||"."}var Xe=[],it=a=>{for(var d=0,p=0;p=C?d++:2047>=C?d+=2:55296<=C&&57343>=C?(d+=4,++p):d+=3}return d},mt=(a,d,p,C)=>{if(!(0=F){var he=a.charCodeAt(++j);F=65536+((F&1023)<<10)|he&1023}if(127>=F){if(p>=C)break;d[p++]=F}else{if(2047>=F){if(p+1>=C)break;d[p++]=192|F>>6}else{if(65535>=F){if(p+2>=C)break;d[p++]=224|F>>12}else{if(p+3>=C)break;d[p++]=240|F>>18,d[p++]=128|F>>12&63}d[p++]=128|F>>6&63}d[p++]=128|F&63}}return d[p]=0,p-k};function Ut(a,d){var p=Array(it(a)+1);return a=mt(a,p,0,p.length),d&&(p.length=a),p}var dn=[];function fn(a,d){dn[a]={input:[],output:[],Xa:d},Ms(a,kn)}var kn={open(a){var d=dn[a.node.rdev];if(!d)throw new G(43);a.tty=d,a.seekable=!1},close(a){a.tty.Xa.fsync(a.tty)},fsync(a){a.tty.Xa.fsync(a.tty)},read(a,d,p,C){if(!a.tty||!a.tty.Xa.sb)throw new G(60);for(var k=0,j=0;j=d||(d=Math.max(d,p*(1048576>p?2:1.125)>>>0),p!=0&&(d=Math.max(d,256)),p=a.Ia,a.Ia=new Uint8Array(d),0=a.node.Ma)return 0;if(a=Math.min(a.node.Ma-k,C),8d)throw new G(28);return d},lb(a,d,p){Te(a.node,d+p),a.node.Ma=Math.max(a.node.Ma,d+p)},bb(a,d,p,C,k){if((a.node.mode&61440)!==32768)throw new G(43);if(a=a.node.Ia,k&2||a.buffer!==L.buffer){if((0{var p=0;return a&&(p|=365),d&&(p|=146),p},fe=null,Be={},Fe=[],Tt=1,At=null,Pn=!0,G=null,so={};function Lt(a,d={}){if(a=Re(a),!a)return{path:"",node:null};if(d=Object.assign({qb:!0,kb:0},d),8!!F);for(var p=fe,C="/",k=0;k>>0)%At.length}function kf(a){var d=js(a.parent.id,a.name);if(At[d]===a)At[d]=a.Wa;else for(d=At[d];d;){if(d.Wa===a){d.Wa=a.Wa;break}d=d.Wa}}function Ir(a,d){var p;if(p=(p=uo(a,"x"))?p:a.Ga.lookup?0:2)throw new G(p,a);for(p=At[js(a.id,d)];p;p=p.Wa){var C=p.name;if(p.parent.id===a.id&&C===d)return p}return a.Ga.lookup(a,d)}function Pf(a,d,p,C){return a=new qf(a,d,p,C),d=js(a.parent.id,a.name),a.Wa=At[d],At[d]=a}function tn(a){return(a&61440)===16384}function Rf(a){var d=["r","w","rw"][a&3];return a&512&&(d+="w"),d}function uo(a,d){if(Pn)return 0;if(!d.includes("r")||a.mode&292){if(d.includes("w")&&!(a.mode&146)||d.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function Nf(a,d){try{return Ir(a,d),20}catch{}return uo(a,"wx")}function Tf(a,d,p){try{var C=Ir(a,d)}catch(k){return k.Ka}if(a=uo(a,"wx"))return a;if(p){if(!tn(C.mode))return 54;if(C===C.parent||li(C)==="/")return 10}else if(tn(C.mode))return 31;return 0}function N1(){for(var a=0;4096>=a;a++)if(!Fe[a])return a;throw new G(33)}function Ot(a){if(a=Fe[a],!a)throw new G(8);return a}function Af(a,d=-1){return ui||(ui=function(){this.$a={}},ui.prototype={},Object.defineProperties(ui.prototype,{object:{get(){return this.node},set(p){this.node=p}},flags:{get(){return this.$a.flags},set(p){this.$a.flags=p}},position:{get(){return this.$a.position},set(p){this.$a.position=p}}})),a=Object.assign(new ui,a),d==-1&&(d=N1()),a.fd=d,Fe[d]=a}var T1={open(a){var d,p;a.Ha=Be[a.node.rdev].Ha,(p=(d=a.Ha).open)==null||p.call(d,a)},Ta(){throw new G(70)}};function Ms(a,d){Be[a]={Ha:d}}function Of(a,d){var p=d==="/",C=!d;if(p&&fe)throw new G(10);if(!p&&!C){var k=Lt(d,{qb:!1});if(d=k.path,k=k.node,k.Va)throw new G(10);if(!tn(k.mode))throw new G(54)}d={type:a,Pb:{},tb:d,Cb:[]},a=a.Ra(d),a.Ra=d,d.root=a,p?fe=a:k&&(k.Va=d,k.Ra&&k.Ra.Cb.push(d))}function yl(a,d,p){var C=Lt(a,{parent:!0}).node;if(a=Q(a),!a||a==="."||a==="..")throw new G(28);var k=Nf(C,a);if(k)throw new G(k);if(!C.Ga.ab)throw new G(63);return C.Ga.ab(C,a,d,p)}function Rn(a,d){return yl(a,(d!==void 0?d:511)&1023|16384,0)}function wl(a,d,p){typeof p>"u"&&(p=d,d=438),yl(a,d|8192,p)}function Is(a,d){if(!Re(a))throw new G(44);var p=Lt(d,{parent:!0}).node;if(!p)throw new G(44);d=Q(d);var C=Nf(p,d);if(C)throw new G(C);if(!p.Ga.symlink)throw new G(63);p.Ga.symlink(p,d,a)}function Df(a){var d=Lt(a,{parent:!0}).node;a=Q(a);var p=Ir(d,a),C=Tf(d,a,!0);if(C)throw new G(C);if(!d.Ga.rmdir)throw new G(63);if(p.Va)throw new G(10);d.Ga.rmdir(d,a),kf(p)}function jf(a){var d=Lt(a,{parent:!0}).node;if(!d)throw new G(44);a=Q(a);var p=Ir(d,a),C=Tf(d,a,!1);if(C)throw new G(C);if(!d.Ga.unlink)throw new G(63);if(p.Va)throw new G(10);d.Ga.unlink(d,a),kf(p)}function Mf(a){if(a=Lt(a).node,!a)throw new G(44);if(!a.Ga.readlink)throw new G(28);return Re(li(a.parent),a.Ga.readlink(a))}function ai(a,d){if(a=Lt(a,{Sa:!d}).node,!a)throw new G(44);if(!a.Ga.Pa)throw new G(63);return a.Ga.Pa(a)}function If(a){return ai(a,!0)}function xl(a,d){if(a=typeof a=="string"?Lt(a,{Sa:!0}).node:a,!a.Ga.Oa)throw new G(63);a.Ga.Oa(a,{mode:d&4095|a.mode&-4096,timestamp:Date.now()})}function Lf(a,d){if(0>d)throw new G(28);if(a=typeof a=="string"?Lt(a,{Sa:!0}).node:a,!a.Ga.Oa)throw new G(63);if(tn(a.mode))throw new G(31);if((a.mode&61440)!==32768)throw new G(28);var p=uo(a,"w");if(p)throw new G(p);a.Ga.Oa(a,{size:d,timestamp:Date.now()})}function co(a,d,p){if(a==="")throw new G(44);if(typeof d=="string"){var C={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[d];if(typeof C>"u")throw Error(`Unknown file open mode: ${d}`);d=C}if(p=d&64?(typeof p>"u"?438:p)&4095|32768:0,typeof a=="object")var k=a;else{a=Rt(a);try{k=Lt(a,{Sa:!(d&131072)}).node}catch{}}if(C=!1,d&64)if(k){if(d&128)throw new G(20)}else k=yl(a,p,0),C=!0;if(!k)throw new G(44);if((k.mode&61440)===8192&&(d&=-513),d&65536&&!tn(k.mode))throw new G(54);if(!C&&(p=k?(k.mode&61440)===40960?32:tn(k.mode)&&(Rf(d)!=="r"||d&512)?31:uo(k,Rf(d)):44))throw new G(p);return d&512&&!C&&Lf(k,0),d&=-131713,k=Af({node:k,path:li(k),flags:d,seekable:!0,position:0,Ha:k.Ha,Fb:[],error:!1}),k.Ha.open&&k.Ha.open(k),!u.logReadFiles||d&1||(zs||(zs={}),a in zs||(zs[a]=1)),k}function Ls(a){if(a.fd===null)throw new G(8);a.hb&&(a.hb=null);try{a.Ha.close&&a.Ha.close(a)}catch(d){throw d}finally{Fe[a.fd]=null}a.fd=null}function zf(a,d,p){if(a.fd===null)throw new G(8);if(!a.seekable||!a.Ha.Ta)throw new G(70);if(p!=0&&p!=1&&p!=2)throw new G(28);a.position=a.Ha.Ta(a,d,p),a.Fb=[]}function Ff(a,d,p,C,k){if(0>C||0>k)throw new G(28);if(a.fd===null)throw new G(8);if((a.flags&2097155)===1)throw new G(8);if(tn(a.node.mode))throw new G(31);if(!a.Ha.read)throw new G(28);var j=typeof k<"u";if(!j)k=a.position;else if(!a.seekable)throw new G(70);return d=a.Ha.read(a,d,p,C,k),j||(a.position+=d),d}function $f(a,d,p,C,k){if(0>C||0>k)throw new G(28);if(a.fd===null)throw new G(8);if(!(a.flags&2097155))throw new G(8);if(tn(a.node.mode))throw new G(31);if(!a.Ha.write)throw new G(28);a.seekable&&a.flags&1024&&zf(a,0,2);var j=typeof k<"u";if(!j)k=a.position;else if(!a.seekable)throw new G(70);return d=a.Ha.write(a,d,p,C,k,void 0),j||(a.position+=d),d}function A1(a){var d,p=co(a,p||0);a=ai(a).size;var C=new Uint8Array(a);return Ff(p,C,0,a,0),d=C,Ls(p),d}function Hf(){G||(G=function(a,d){this.name="ErrnoError",this.node=d,this.Eb=function(p){this.Ka=p},this.Eb(a),this.message="FS error"},G.prototype=Error(),G.prototype.constructor=G,[44].forEach(a=>{so[a]=new G(a),so[a].stack=""}))}var Bf;function si(a,d,p){a=Rt("/dev/"+a);var C=de(!!d,!!p);Wf||(Wf=64);var k=Wf++<<8|0;Ms(k,{open(j){j.seekable=!1},close(){var j;(j=p==null?void 0:p.buffer)!=null&&j.length&&p(10)},read(j,F,he,Ae){for(var Ce=0,st=0;st>2]=C.dev,$[p+4>>2]=C.mode,q[p+8>>2]=C.nlink,$[p+12>>2]=C.uid,$[p+16>>2]=C.gid,$[p+20>>2]=C.rdev,be=[C.size>>>0,(J=C.size,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+24>>2]=be[0],$[p+28>>2]=be[1],$[p+32>>2]=4096,$[p+36>>2]=C.blocks,a=C.atime.getTime(),d=C.mtime.getTime();var k=C.ctime.getTime();return be=[Math.floor(a/1e3)>>>0,(J=Math.floor(a/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+40>>2]=be[0],$[p+44>>2]=be[1],q[p+48>>2]=a%1e3*1e3,be=[Math.floor(d/1e3)>>>0,(J=Math.floor(d/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+56>>2]=be[0],$[p+60>>2]=be[1],q[p+64>>2]=d%1e3*1e3,be=[Math.floor(k/1e3)>>>0,(J=Math.floor(k/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+72>>2]=be[0],$[p+76>>2]=be[1],q[p+80>>2]=k%1e3*1e3,be=[C.ino>>>0,(J=C.ino,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+88>>2]=be[0],$[p+92>>2]=be[1],0}var Sl=void 0;function El(){var a=$[+Sl>>2];return Sl+=4,a}var ci=(a,d)=>d+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*d:NaN,O1=[0,31,60,91,121,152,182,213,244,274,305,335],D1=[0,31,59,90,120,151,181,212,243,273,304,334],Uf=a=>{var d=it(a)+1,p=Pl(d);return p&&mt(a,W,p,d),p},Fs={},Vf=()=>{if(!$s){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:v||"./this.program"},d;for(d in Fs)Fs[d]===void 0?delete a[d]:a[d]=Fs[d];var p=[];for(d in a)p.push(`${d}=${a[d]}`);$s=p}return $s},$s,Hs=a=>{var d=it(a)+1,p=or(d);return mt(a,W,p,d),p},j1=(a,d,p,C)=>{var k={string:Ce=>{var st=0;return Ce!=null&&Ce!==0&&(st=Hs(Ce)),st},array:Ce=>{var st=or(Ce.length);return L.set(Ce,st),st}};a=u["_"+a];var j=[],F=0;if(C)for(var he=0;he(d=d==1?or(a.length):Pl(a.length),a.subarray||a.slice||(a=new Uint8Array(a)),W.set(a,d),d),zr,Bs=[],$n,fo=a=>{zr.delete($n.get(a)),$n.set(a,null),Bs.push(a)},kl=(a,d)=>{if(!zr){zr=new WeakMap;var p=$n.length;if(zr)for(var C=0;C<0+p;C++){var k=$n.get(C);k&&zr.set(k,C)}}if(p=zr.get(a)||0)return p;if(Bs.length)p=Bs.pop();else{try{$n.grow(1)}catch(he){throw he instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":he}p=$n.length-1}try{$n.set(p,a)}catch(he){if(!(he instanceof TypeError))throw he;if(typeof WebAssembly.Function=="function"){C=WebAssembly.Function,k={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var j={parameters:[],results:d[0]=="v"?[]:[k[d[0]]]},F=1;FF?C.push(F):C.push(F%128|128,F>>7),F=0;Fk?d.push(k):d.push(k%128|128,k>>7),d.push.apply(d,C),d.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),d=new WebAssembly.Module(new Uint8Array(d)),d=new WebAssembly.Instance(d,{e:{f:a}}).exports.f}$n.set(p,d)}return zr.set(a,p),p};function qf(a,d,p,C){a||(a=this),this.parent=a,this.Ra=a.Ra,this.Va=null,this.id=Tt++,this.name=d,this.mode=p,this.Ga={},this.Ha={},this.rdev=C}Object.defineProperties(qf.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(a){a?this.mode|=146:this.mode&=-147}}}),Hf(),At=Array(4096),Of(z,"/"),Rn("/tmp"),Rn("/home"),Rn("/home/web_user"),function(){Rn("/dev"),Ms(259,{read:()=>0,write:(C,k,j,F)=>F}),wl("/dev/null",259),fn(1280,ae),fn(1536,ue),wl("/dev/tty",1280),wl("/dev/tty1",1536);var a=new Uint8Array(1024),d=0,p=()=>(d===0&&(d=Ie(a).byteLength),a[--d]);si("random",p),si("urandom",p),Rn("/dev/shm"),Rn("/dev/shm/tmp")}(),function(){Rn("/proc");var a=Rn("/proc/self");Rn("/proc/self/fd"),Of({Ra(){var d=Pf(a,"fd",16895,73);return d.Ga={lookup(p,C){var k=Ot(+C);return p={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},p.parent=p}},d}},"/proc/self/fd")}();var M1={a:(a,d,p,C)=>{pe(`Assertion failed: ${a?ge(W,a):""}, at: `+[d?d?ge(W,d):"":"unknown filename",p,C?C?ge(W,C):"":"unknown function"])},h:function(a,d){try{return a=a?ge(W,a):"",xl(a,d),0}catch(p){if(typeof Ve>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},H:function(a,d,p){try{if(d=d?ge(W,d):"",d=Lr(a,d),p&-8)return-28;var C=Lt(d,{Sa:!0}).node;return C?(a="",p&4&&(a+="r"),p&2&&(a+="w"),p&1&&(a+="x"),a&&uo(C,a)?-2:0):-44}catch(k){if(typeof Ve>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(a,d){try{var p=Ot(a);return xl(p.node,d),0}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return-C.Ka}},g:function(a){try{var d=Ot(a).node,p=typeof d=="string"?Lt(d,{Sa:!0}).node:d;if(!p.Ga.Oa)throw new G(63);return p.Ga.Oa(p,{timestamp:Date.now()}),0}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return-C.Ka}},b:function(a,d,p){Sl=p;try{var C=Ot(a);switch(d){case 0:var k=El();if(0>k)return-28;for(;Fe[k];)k++;return Af(C,k).fd;case 1:case 2:return 0;case 3:return C.flags;case 4:return k=El(),C.flags|=k,0;case 5:return k=El(),V[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return $[Gf()>>2]=28,-1;default:return-28}}catch(j){if(typeof Ve>"u"||j.name!=="ErrnoError")throw j;return-j.Ka}},f:function(a,d){try{var p=Ot(a);return bl(ai,p.path,d)}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return-C.Ka}},n:function(a,d,p){d=ci(d,p);try{if(isNaN(d))return 61;var C=Ot(a);if(!(C.flags&2097155))throw new G(28);return Lf(C.node,d),0}catch(k){if(typeof Ve>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(a,d){try{if(d===0)return-28;var p=it("/")+1;return d"u"||C.name!=="ErrnoError")throw C;return-C.Ka}},F:function(a,d){try{return a=a?ge(W,a):"",bl(If,a,d)}catch(p){if(typeof Ve>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},z:function(a,d,p){try{return d=d?ge(W,d):"",d=Lr(a,d),d=Rt(d),d[d.length-1]==="/"&&(d=d.substr(0,d.length-1)),Rn(d,p),0}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return-C.Ka}},E:function(a,d,p,C){try{d=d?ge(W,d):"";var k=C&256;return d=Lr(a,d,C&4096),bl(k?If:ai,d,p)}catch(j){if(typeof Ve>"u"||j.name!=="ErrnoError")throw j;return-j.Ka}},y:function(a,d,p,C){Sl=C;try{d=d?ge(W,d):"",d=Lr(a,d);var k=C?El():0;return co(d,p,k).fd}catch(j){if(typeof Ve>"u"||j.name!=="ErrnoError")throw j;return-j.Ka}},w:function(a,d,p,C){try{if(d=d?ge(W,d):"",d=Lr(a,d),0>=C)return-28;var k=Mf(d),j=Math.min(C,it(k)),F=L[p+j];return mt(k,W,p,C+1),L[p+j]=F,j}catch(he){if(typeof Ve>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},v:function(a){try{return a=a?ge(W,a):"",Df(a),0}catch(d){if(typeof Ve>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},G:function(a,d){try{return a=a?ge(W,a):"",bl(ai,a,d)}catch(p){if(typeof Ve>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},r:function(a,d,p){try{return d=d?ge(W,d):"",d=Lr(a,d),p===0?jf(d):p===512?Df(d):pe("Invalid flags passed to unlinkat"),0}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return-C.Ka}},q:function(a,d,p){try{if(d=d?ge(W,d):"",d=Lr(a,d,!0),p){var C=q[p>>2]+4294967296*$[p+4>>2],k=$[p+8>>2];j=1e3*C+k/1e6,p+=16,C=q[p>>2]+4294967296*$[p+4>>2],k=$[p+8>>2],F=1e3*C+k/1e6}else var j=Date.now(),F=j;a=j;var he=Lt(d,{Sa:!0}).node;return he.Ga.Oa(he,{timestamp:Math.max(a,F)}),0}catch(Ae){if(typeof Ve>"u"||Ae.name!=="ErrnoError")throw Ae;return-Ae.Ka}},l:function(a,d,p){a=new Date(1e3*ci(a,d)),$[p>>2]=a.getSeconds(),$[p+4>>2]=a.getMinutes(),$[p+8>>2]=a.getHours(),$[p+12>>2]=a.getDate(),$[p+16>>2]=a.getMonth(),$[p+20>>2]=a.getFullYear()-1900,$[p+24>>2]=a.getDay(),d=a.getFullYear(),$[p+28>>2]=(d%4!==0||d%100===0&&d%400!==0?D1:O1)[a.getMonth()]+a.getDate()-1|0,$[p+36>>2]=-(60*a.getTimezoneOffset()),d=new Date(a.getFullYear(),6,1).getTimezoneOffset();var C=new Date(a.getFullYear(),0,1).getTimezoneOffset();$[p+32>>2]=(d!=C&&a.getTimezoneOffset()==Math.min(C,d))|0},j:function(a,d,p,C,k,j,F,he){k=ci(k,j);try{if(isNaN(k))return 61;var Ae=Ot(C);if(d&2&&!(p&2)&&(Ae.flags&2097155)!==2)throw new G(2);if((Ae.flags&2097155)===1)throw new G(2);if(!Ae.Ha.bb)throw new G(43);var Ce=Ae.Ha.bb(Ae,a,k,d,p),st=Ce.Db;return $[F>>2]=Ce.ub,q[he>>2]=st,0}catch(ht){if(typeof Ve>"u"||ht.name!=="ErrnoError")throw ht;return-ht.Ka}},k:function(a,d,p,C,k,j,F){j=ci(j,F);try{if(isNaN(j))return 61;var he=Ot(k);if(p&2){if((he.node.mode&61440)!==32768)throw new G(43);if(!(C&2)){var Ae=W.slice(a,a+d);he.Ha.cb&&he.Ha.cb(he,Ae,j,d,C)}}}catch(Ce){if(typeof Ve>"u"||Ce.name!=="ErrnoError")throw Ce;return-Ce.Ka}},s:(a,d,p)=>{function C(Ae){return(Ae=Ae.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Ae[1]:"GMT"}var k=new Date().getFullYear(),j=new Date(k,0,1),F=new Date(k,6,1);k=j.getTimezoneOffset();var he=F.getTimezoneOffset();q[a>>2]=60*Math.max(k,he),$[d>>2]=+(k!=he),a=C(j),d=C(F),a=Uf(a),d=Uf(d),he>2]=a,q[p+4>>2]=d):(q[p>>2]=d,q[p+4>>2]=a)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:a=>{var d=W.length;if(a>>>=0,2147483648=p;p*=2){var C=d*(1+.2/p);C=Math.min(C,a+100663296);var k=Math;C=Math.max(a,C);e:{k=(k.min.call(k,2147483648,C+(65536-C%65536)%65536)-D.buffer.byteLength+65535)/65536;try{D.grow(k),re();var j=1;break e}catch{}j=void 0}if(j)return!0}return!1},A:(a,d)=>{var p=0;return Vf().forEach((C,k)=>{var j=d+p;for(k=q[a+4*k>>2]=j,j=0;j>0]=C.charCodeAt(j);L[k>>0]=0,p+=C.length+1}),0},B:(a,d)=>{var p=Vf();q[a>>2]=p.length;var C=0;return p.forEach(k=>C+=k.length+1),q[d>>2]=C,0},e:function(a){try{var d=Ot(a);return Ls(d),0}catch(p){if(typeof Ve>"u"||p.name!=="ErrnoError")throw p;return p.Ka}},p:function(a,d){try{var p=Ot(a);return L[d>>0]=p.tty?2:tn(p.mode)?3:(p.mode&61440)===40960?7:4,V[d+2>>1]=0,be=[0,(J=0,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[d+8>>2]=be[0],$[d+12>>2]=be[1],be=[0,(J=0,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[d+16>>2]=be[0],$[d+20>>2]=be[1],0}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return C.Ka}},x:function(a,d,p,C){try{e:{var k=Ot(a);a=d;for(var j,F=d=0;F>2],Ae=q[a+4>>2];a+=8;var Ce=Ff(k,L,he,Ae,j);if(0>Ce){var st=-1;break e}if(d+=Ce,Ce>2]=st,0}catch(ht){if(typeof Ve>"u"||ht.name!=="ErrnoError")throw ht;return ht.Ka}},m:function(a,d,p,C,k){d=ci(d,p);try{if(isNaN(d))return 61;var j=Ot(a);return zf(j,d,C),be=[j.position>>>0,(J=j.position,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[k>>2]=be[0],$[k+4>>2]=be[1],j.hb&&d===0&&C===0&&(j.hb=null),0}catch(F){if(typeof Ve>"u"||F.name!=="ErrnoError")throw F;return F.Ka}},D:function(a){var p;try{var d=Ot(a);return(p=d.Ha)!=null&&p.fsync?d.Ha.fsync(d):0}catch(C){if(typeof Ve>"u"||C.name!=="ErrnoError")throw C;return C.Ka}},u:function(a,d,p,C){try{e:{var k=Ot(a);a=d;for(var j,F=d=0;F>2],Ae=q[a+4>>2];a+=8;var Ce=$f(k,L,he,Ae,j);if(0>Ce){var st=-1;break e}d+=Ce,typeof j<"u"&&(j+=Ce)}st=d}return q[C>>2]=st,0}catch(ht){if(typeof Ve>"u"||ht.name!=="ErrnoError")throw ht;return ht.Ka}}},se=function(){var p;function a(C){var k;return se=C.exports,D=se.I,re(),$n=se.Aa,B.unshift(se.J),X--,(k=u.monitorRunDependencies)==null||k.call(u,X),X==0&&me&&(C=me,me=null,C()),se}var d={a:M1};if(X++,(p=u.monitorRunDependencies)==null||p.call(u,X),u.instantiateWasm)try{return u.instantiateWasm(d,a)}catch(C){return A(`Module.instantiateWasm callback failed with error: ${C}`),!1}return ve(d,function(C){a(C.instance)}),{}}();u._sqlite3_free=a=>(u._sqlite3_free=se.K)(a),u._sqlite3_value_text=a=>(u._sqlite3_value_text=se.L)(a);var Gf=()=>(Gf=se.M)();u._sqlite3_prepare_v2=(a,d,p,C,k)=>(u._sqlite3_prepare_v2=se.N)(a,d,p,C,k),u._sqlite3_step=a=>(u._sqlite3_step=se.O)(a),u._sqlite3_reset=a=>(u._sqlite3_reset=se.P)(a),u._sqlite3_exec=(a,d,p,C,k)=>(u._sqlite3_exec=se.Q)(a,d,p,C,k),u._sqlite3_finalize=a=>(u._sqlite3_finalize=se.R)(a),u._sqlite3_column_name=(a,d)=>(u._sqlite3_column_name=se.S)(a,d),u._sqlite3_column_text=(a,d)=>(u._sqlite3_column_text=se.T)(a,d),u._sqlite3_column_type=(a,d)=>(u._sqlite3_column_type=se.U)(a,d),u._sqlite3_errmsg=a=>(u._sqlite3_errmsg=se.V)(a),u._sqlite3_clear_bindings=a=>(u._sqlite3_clear_bindings=se.W)(a),u._sqlite3_value_blob=a=>(u._sqlite3_value_blob=se.X)(a),u._sqlite3_value_bytes=a=>(u._sqlite3_value_bytes=se.Y)(a),u._sqlite3_value_double=a=>(u._sqlite3_value_double=se.Z)(a),u._sqlite3_value_int=a=>(u._sqlite3_value_int=se._)(a),u._sqlite3_value_type=a=>(u._sqlite3_value_type=se.$)(a),u._sqlite3_result_blob=(a,d,p,C)=>(u._sqlite3_result_blob=se.aa)(a,d,p,C),u._sqlite3_result_double=(a,d)=>(u._sqlite3_result_double=se.ba)(a,d),u._sqlite3_result_error=(a,d,p)=>(u._sqlite3_result_error=se.ca)(a,d,p),u._sqlite3_result_int=(a,d)=>(u._sqlite3_result_int=se.da)(a,d),u._sqlite3_result_int64=(a,d,p)=>(u._sqlite3_result_int64=se.ea)(a,d,p),u._sqlite3_result_null=a=>(u._sqlite3_result_null=se.fa)(a),u._sqlite3_result_text=(a,d,p,C)=>(u._sqlite3_result_text=se.ga)(a,d,p,C),u._sqlite3_aggregate_context=(a,d)=>(u._sqlite3_aggregate_context=se.ha)(a,d),u._sqlite3_column_count=a=>(u._sqlite3_column_count=se.ia)(a),u._sqlite3_data_count=a=>(u._sqlite3_data_count=se.ja)(a),u._sqlite3_column_blob=(a,d)=>(u._sqlite3_column_blob=se.ka)(a,d),u._sqlite3_column_bytes=(a,d)=>(u._sqlite3_column_bytes=se.la)(a,d),u._sqlite3_column_double=(a,d)=>(u._sqlite3_column_double=se.ma)(a,d),u._sqlite3_bind_blob=(a,d,p,C,k)=>(u._sqlite3_bind_blob=se.na)(a,d,p,C,k),u._sqlite3_bind_double=(a,d,p)=>(u._sqlite3_bind_double=se.oa)(a,d,p),u._sqlite3_bind_int=(a,d,p)=>(u._sqlite3_bind_int=se.pa)(a,d,p),u._sqlite3_bind_text=(a,d,p,C,k)=>(u._sqlite3_bind_text=se.qa)(a,d,p,C,k),u._sqlite3_bind_parameter_index=(a,d)=>(u._sqlite3_bind_parameter_index=se.ra)(a,d),u._sqlite3_sql=a=>(u._sqlite3_sql=se.sa)(a),u._sqlite3_normalized_sql=a=>(u._sqlite3_normalized_sql=se.ta)(a),u._sqlite3_changes=a=>(u._sqlite3_changes=se.ua)(a),u._sqlite3_close_v2=a=>(u._sqlite3_close_v2=se.va)(a),u._sqlite3_create_function_v2=(a,d,p,C,k,j,F,he,Ae)=>(u._sqlite3_create_function_v2=se.wa)(a,d,p,C,k,j,F,he,Ae),u._sqlite3_open=(a,d)=>(u._sqlite3_open=se.xa)(a,d);var Pl=u._malloc=a=>(Pl=u._malloc=se.ya)(a),Rl=u._free=a=>(Rl=u._free=se.za)(a);u._RegisterExtensionFunctions=a=>(u._RegisterExtensionFunctions=se.Ba)(a);var Kf=(a,d)=>(Kf=se.Ca)(a,d),di=()=>(di=se.Da)(),fi=a=>(fi=se.Ea)(a),or=a=>(or=se.Fa)(a);u.stackAlloc=or,u.stackSave=di,u.stackRestore=fi,u.cwrap=(a,d,p,C)=>{var k=!p||p.every(j=>j==="number"||j==="boolean");return d!=="string"&&k&&!C?u["_"+a]:function(){return j1(a,d,p,arguments)}},u.addFunction=kl,u.removeFunction=fo,u.UTF8ToString=pt,u.ALLOC_NORMAL=Cl,u.allocate=_l,u.allocateUTF8OnStack=Hs;var Nl;me=function a(){Nl||Qf(),Nl||(me=a)};function Qf(){function a(){if(!Nl&&(Nl=!0,u.calledRun=!0,!M)){if(u.noFSInit||Bf||(Bf=!0,Hf(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?si("stdin",u.stdin):Is("/dev/tty","/dev/stdin"),u.stdout?si("stdout",null,u.stdout):Is("/dev/tty","/dev/stdout"),u.stderr?si("stderr",null,u.stderr):Is("/dev/tty1","/dev/stderr"),co("/dev/stdin",0),co("/dev/stdout",1),co("/dev/stderr",1)),Pn=!1,ot(B),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var d=u.postRun.shift();ne.unshift(d)}ot(ne)}}if(!(0"u"?m={autoBom:!1}:typeof m!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,m,v){var f=new XMLHttpRequest;f.open("GET",u),f.responseType="blob",f.onload=function(){c(f.response,m,v)},f.onerror=function(){console.error("could not download file")},f.send()}function o(u){var m=new XMLHttpRequest;m.open("HEAD",u,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(m)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof pi=="object"&&pi.global===pi?pi:void 0,s=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,m,v){var f=l.URL||l.webkitURL,w=document.createElement("a");m=m||u.name||"download",w.download=m,w.rel="noopener",typeof u=="string"?(w.href=u,w.origin===location.origin?i(w):o(w.href)?r(u,m,v):i(w,w.target="_blank")):(w.href=f.createObjectURL(u),setTimeout(function(){f.revokeObjectURL(w.href)},4e4),setTimeout(function(){i(w)},0))}:"msSaveOrOpenBlob"in navigator?function(u,m,v){if(m=m||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,v),m);else if(o(u))r(u,m,v);else{var f=document.createElement("a");f.href=u,f.target="_blank",setTimeout(function(){i(f)})}}:function(u,m,v,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof u=="string")return r(u,m,v);var w=u.type==="application/octet-stream",E=/constructor/i.test(l.HTMLElement)||l.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||w&&E||s)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var b=P.result;b=S?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=b:location=b,f=null},P.readAsDataURL(u)}else{var x=l.URL||l.webkitURL,y=x.createObjectURL(u);f?f.location=y:location.href=y,f=null,setTimeout(function(){x.revokeObjectURL(y)},4e4)}});l.saveAs=c.saveAs=c,e.exports=c})})(Rg);var Ng=Rg.exports;const mE="https://sql.js.org/dist/sql-wasm.wasm",hE=async e=>{try{const[t,n]=await Promise.all([e.arrayBuffer(),pE({locateFile:()=>mE})]);return new n.Database(new Uint8Array(t))}catch(t){throw console.error("Failed to load database:",t),t}},Wd=e=>{var t;try{return((t=e.exec("SELECT name FROM sqlite_master WHERE type='table';")[0])==null?void 0:t.values.flat())||[]}catch(n){return console.error("Failed to get table names:",n),[]}},vE=async(e,t)=>{try{const[n,r]=e.exec(` - PRAGMA table_info("${t}"); - PRAGMA foreign_key_list("${t}"); - `),o=n.values.reduce((i,l)=>(i[l[1]]={type:l[2],isPrimaryKey:l[5]===1,isForeignKey:!1},i),{});return r==null||r.values.forEach(i=>{const l=i[3];o[l]&&(o[l].isForeignKey=!0)}),o}catch(n){throw console.error(`Failed to get schema for table "${t}":`,n),n}},Cc=e=>{if(e.length===0)return{data:[],columns:[]};const{columns:t,values:n}=e[0];return{data:n.map(o=>Object.fromEntries(t.map((i,l)=>[i,o[l]]))),columns:t}},gE=e=>{try{const t=e.export(),n=new Blob([t],{type:"application/x-sqlite3"});Ng.saveAs(n,"database.sqlite")}catch(t){throw console.error("Failed to export database:",t),t}},yE=(e,t)=>{const n=e.map(o=>`"${o}"`).join(","),r=t.map(o=>e.map(i=>`"${o[i]??""}"`).join(","));return[n,...r].join(` -`)},Ud=(e,t,n)=>{try{const r=t.exec(e);if(r.length===0)throw new Error(`Query "${e}" returned no results.`);const{data:o,columns:i}=Cc(r),l=yE(i,o),s=new Blob([l],{type:"text/csv;charset=utf-8;"});Ng.saveAs(s,`${n}.csv`)}catch(r){throw console.error(`Failed to get CSV for query "${e}":`,r),r}},wE=(e,t)=>{const r=Wd(e)[t],o=`SELECT * FROM "${r}"`;Ud(o,e,r)},xE=e=>{Wd(e).forEach(t=>{const n=`SELECT * FROM "${t}"`;Ud(n,e,t)})},bE=(e,t)=>{Ud(t,e,"custom_query")},Ar=uE((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},rowPerPageOrAuto:"auto",isCustomQuery:!1,loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await hE(n),o=Wd(r),i=await Promise.all(o.map(async c=>{const u=r.exec(`SELECT COUNT(*) FROM "${c}"`),m=parseInt(u[0].values[0][0],10),v=await vE(r,c);return{name:c,count:m,schema:v}})),l=i.map(({name:c,count:u})=>({name:c,count:u})),s=i.reduce((c,{name:u,schema:m})=>(c[u]=m,c),{});e({db:r,tables:l,tableSchemas:s,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const{db:r}=t();return r?r.exec(n):(console.warn("Database is not loaded."),[])},setQueryError:n=>e({queryError:n}),setTables:n=>e({tables:n}),setSelectedTable:n=>e({selectedTable:n}),setTableSchemas:n=>e({tableSchemas:n}),setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),customQuery:"",setIsCustomQuery:n=>e({isCustomQuery:n}),setCustomQuery:n=>e({customQuery:n}),queryHestory:[],setQueryHestory:n=>e({queryHestory:n}),appendToQueryHestory:n=>e(r=>({queryHestory:[...r.queryHestory,n]})),expandPage:!1,setExpandPage:n=>e({expandPage:n})}));function SE(e,t,n,r){const{db:o,setQueryError:i,setIsCustomQuery:l,query:s,appendToQueryHestory:c,customQuery:u,setCustomQuery:m}=Ar(),[v,f]=h.useState([]),[w,E]=h.useState([]),[S,P]=h.useState(!0);h.useEffect(()=>{if(o&&e&&!r){P(!0);const y=`SELECT * FROM "${e}" LIMIT ${t} OFFSET ${n};`;(async()=>{try{const b=s(y),{data:_,columns:R}=Cc(b);E(R),f(_),i(null),m(y)}catch(b){b instanceof Error&&i(b.message)}finally{P(!1),c(y)}})()}},[o,e,n,t,r,i,s]);const x=h.useCallback(()=>{if(u.trim()===""){i(null);return}P(!0),(async()=>{try{const y=s(u),{data:b,columns:_}=Cc(y);E(_),f(b),l(!0),i(null)}catch(y){y instanceof Error&&i(y.message)}finally{P(!1)}})()},[u,s,i,l]);return{data:v,columns:w,customQuery:u,setCustomQuery:m,isQueryLoading:S,handleCustomQuery:x}}function EE(e){const{setIsCustomQuery:t}=Ar(),[n,r]=h.useState(0);h.useEffect(()=>{r(0),t(!1)},[t]);let o=30;if(e==="auto"){const i=window.innerHeight,l=[{height:1700,rowHeight:65},{height:1300,rowHeight:70},{height:1200,rowHeight:75},{height:1100,rowHeight:75},{height:1e3,rowHeight:80},{height:950,rowHeight:85},{height:900,rowHeight:90},{height:850,rowHeight:95},{height:800,rowHeight:100},{height:750,rowHeight:105},{height:700,rowHeight:110},{height:600,rowHeight:120},{height:550,rowHeight:150},{height:500,rowHeight:190},{height:0,rowHeight:280}];let c=120;for(const u of l)if(i>u.height){c=u.rowHeight;break}o=Math.max(1,Math.floor(i/c))}else o=e;return{page:n,setPage:r,rowsPerPage:o}}function Tg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const vm=/^\[(.+)\]$/;function kE(e){if(vm.test(e)){const t=vm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function PE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return NE(Object.entries(e.classGroups),n).forEach(([i,l])=>{_c(l,r,i,t)}),r}function _c(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:gm(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(RE(o)){_c(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{_c(l,gm(t,i),n,r)})})}function gm(e,t){let n=e;return t.split(Vd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function RE(e){return e.isThemeGetter}function NE(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function TE(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Og="!";function AE(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length;function l(s){const c=[];let u=0,m=0,v;for(let P=0;Pm?v-m:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:S}}return n?function(c){return n({className:c,parseClassName:l})}:l}function OE(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function DE(e){return{cache:TE(e.cacheSize),parseClassName:AE(e),..._E(e)}}const jE=/\s+/;function ME(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(jE).map(l=>{const{modifiers:s,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:m}=n(l);let v=!!m,f=r(v?u.substring(0,m):u);if(!f){if(!v)return{isTailwindClass:!1,originalClassName:l};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:l};v=!1}const w=OE(s).join(":");return{isTailwindClass:!0,modifierId:c?w+Og:w,classGroupId:f,originalClassName:l,hasPostfixModifier:v}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:c,hasPostfixModifier:u}=l,m=s+c;return i.has(m)?!1:(i.add(m),o(c,u).forEach(v=>i.add(s+v)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function IE(){let e=0,t,n,r="";for(;ev(m),e());return n=DE(u),r=n.cache.get,o=n.cache.set,i=s,s(c)}function s(c){const u=r(c);if(u)return u;const m=ME(c,n);return o(c,m),m}return function(){return i(IE.apply(null,arguments))}}function qe(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const jg=/^\[(?:([a-z-]+):)?(.+)\]$/i,zE=/^\d+\/\d+$/,FE=new Set(["px","full","screen"]),$E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Hn(e){return Gr(e)||FE.has(e)||zE.test(e)}function lr(e){return Zo(e,"length",ZE)}function Gr(e){return!!e&&!Number.isNaN(Number(e))}function Kl(e){return Zo(e,"number",Gr)}function Si(e){return!!e&&Number.isInteger(Number(e))}function VE(e){return e.endsWith("%")&&Gr(e.slice(0,-1))}function Ee(e){return jg.test(e)}function ar(e){return $E.test(e)}const qE=new Set(["length","size","percentage"]);function GE(e){return Zo(e,qE,Mg)}function KE(e){return Zo(e,"position",Mg)}const QE=new Set(["image","url"]);function YE(e){return Zo(e,QE,eC)}function XE(e){return Zo(e,"",JE)}function Ei(){return!0}function Zo(e,t,n){const r=jg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function ZE(e){return HE.test(e)&&!BE.test(e)}function Mg(){return!1}function JE(e){return WE.test(e)}function eC(e){return UE.test(e)}function tC(){const e=qe("colors"),t=qe("spacing"),n=qe("blur"),r=qe("brightness"),o=qe("borderColor"),i=qe("borderRadius"),l=qe("borderSpacing"),s=qe("borderWidth"),c=qe("contrast"),u=qe("grayscale"),m=qe("hueRotate"),v=qe("invert"),f=qe("gap"),w=qe("gradientColorStops"),E=qe("gradientColorStopPositions"),S=qe("inset"),P=qe("margin"),x=qe("opacity"),y=qe("padding"),b=qe("saturate"),_=qe("scale"),R=qe("sepia"),A=qe("skew"),N=qe("space"),D=qe("translate"),M=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",Ee,t],V=()=>[Ee,t],$=()=>["",Hn,lr],q=()=>["auto",Gr,Ee],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Ee],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Gr,Kl],X=()=>[Gr,Ee];return{cacheSize:500,separator:":",theme:{colors:[Ei],spacing:[Hn,lr],blur:["none","",ar,Ee],brightness:Y(),borderColor:[e],borderRadius:["none","","full",ar,Ee],borderSpacing:V(),borderWidth:$(),contrast:Y(),grayscale:B(),hueRotate:X(),invert:B(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[VE,lr],inset:W(),margin:W(),opacity:Y(),padding:V(),saturate:Y(),scale:Y(),sepia:B(),skew:X(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",Ee]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),Ee]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Si,Ee]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ee]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Si,Ee]}],"grid-cols":[{"grid-cols":[Ei]}],"col-start-end":[{col:["auto",{span:["full",Si,Ee]},Ee]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Ei]}],"row-start-end":[{row:["auto",{span:[Si,Ee]},Ee]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ee]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ee,t]}],"min-w":[{"min-w":[Ee,t,"min","max","fit"]}],"max-w":[{"max-w":[Ee,t,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[Ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Kl]}],"font-family":[{font:[Ei]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ee]}],"line-clamp":[{"line-clamp":["none",Gr,Kl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Hn,Ee]}],"list-image":[{"list-image":["none",Ee]}],"list-style-type":[{list:["none","disc","decimal",Ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Hn,lr]}],"underline-offset":[{"underline-offset":["auto",Hn,Ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),KE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},YE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:oe()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[Hn,Ee]}],"outline-w":[{outline:[Hn,lr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Hn,lr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ar,XE]}],"shadow-color":[{shadow:[Ei]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ar,Ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[v]}],saturate:[{saturate:[b]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ee]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",Ee]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Si,Ee]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Hn,lr,Kl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const nC=LE(tC);function ke(...e){return nC(CE(e))}const qd=h.forwardRef(({className:e,type:t,...n},r)=>g.jsx("input",{type:t,className:ke("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));qd.displayName="Input";function rC(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ig(...e){return t=>e.forEach(n=>rC(n,t))}function De(...e){return h.useCallback(Ig(...e),e)}var _r=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(oC);if(i){const l=i.props.children,s=o.map(c=>c===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:c);return g.jsx(kc,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return g.jsx(kc,{...r,ref:t,children:n})});_r.displayName="Slot";var kc=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=lC(n);return h.cloneElement(n,{...iC(r,n.props),ref:t?Ig(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});kc.displayName="SlotClone";var Lg=({children:e})=>g.jsx(g.Fragment,{children:e});function oC(e){return h.isValidElement(e)&&e.type===Lg}function iC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function lC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function zg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,wm=aC,Fg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const m=n==null?void 0:n[u],v=i==null?void 0:i[u];if(m===null)return null;const f=ym(m)||ym(v);return o[u][f]}),s=n&&Object.entries(n).reduce((u,m)=>{let[v,f]=m;return f===void 0||(u[v]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,m)=>{let{class:v,className:f,...w}=m;return Object.entries(w).every(E=>{let[S,P]=E;return Array.isArray(P)?P.includes({...i,...s}[S]):{...i,...s}[S]===P})?[...u,v,f]:u},[]);return wm(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},Gd=Fg("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),$t=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?_r:"button";return g.jsx(l,{className:ke(Gd({variant:t,size:n,className:e})),ref:i,...o})});$t.displayName="Button";/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$g=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var uC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cC=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},c)=>h.createElement("svg",{ref:c,...uC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$g("lucide",o),...s},[...l.map(([u,m])=>h.createElement(u,m)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const at=(e,t)=>{const n=h.forwardRef(({className:r,...o},i)=>h.createElement(cC,{ref:i,iconNode:t,className:$g(`lucide-${sC(e)}`,r),...o}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const dC=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Hg=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const fC=at("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const pC=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const mC=at("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const hC=at("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vC=at("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const gC=at("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const yC=at("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const wC=at("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const xC=at("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const bC=at("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const SC=at("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const EC=at("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const CC=at("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _C=at("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const kC=at("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const PC=at("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const RC=at("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const NC=at("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const TC=at("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function AC({page:e,setPage:t,rowsPerPage:n,rowCount:r}){const o=Math.ceil(r/n),i=Math.floor(e/n)+1,l=()=>{i{i>1&&t(e-n)};return g.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 z-10 mx-auto w-[270px]",children:g.jsxs("div",{className:"flex justify-between gap-2 rounded border bg-secondary p-[6px]",children:[g.jsx($t,{onClick:s,title:"Previous page",disabled:i===1,children:g.jsx(fC,{className:"h-4 w-4"})}),g.jsxs("span",{className:"flex items-center justify-center text-sm",children:["Page ",i," of ",o]}),g.jsx($t,{onClick:l,title:"Next page",disabled:i>=o,children:g.jsx(pC,{className:"h-4 w-4"})})]})})}function Pc(e,[t,n]){return Math.min(n,Math.max(t,e))}function we(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function OC(e,t){const n=h.createContext(t);function r(i){const{children:l,...s}=i,c=h.useMemo(()=>s,Object.values(s));return g.jsx(n.Provider,{value:c,children:l})}function o(i){const l=h.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Or(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),c=n.length;n=[...n,l];function u(v){const{scope:f,children:w,...E}=v,S=(f==null?void 0:f[e][c])||s,P=h.useMemo(()=>E,Object.values(E));return g.jsx(S.Provider,{value:P,children:w})}function m(v,f){const w=(f==null?void 0:f[e][c])||s,E=h.useContext(w);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${v}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,m]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const c=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,DC(o,...t)]}function DC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:c,scopeName:u})=>{const v=c(i)[`__scope${u}`];return{...s,...v}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function jC(e){const t=e+"CollectionProvider",[n,r]=Or(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:E,children:S}=w,P=O.useRef(null),x=O.useRef(new Map).current;return g.jsx(o,{scope:E,itemMap:x,collectionRef:P,children:S})};l.displayName=t;const s=e+"CollectionSlot",c=O.forwardRef((w,E)=>{const{scope:S,children:P}=w,x=i(s,S),y=De(E,x.collectionRef);return g.jsx(_r,{ref:y,children:P})});c.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=O.forwardRef((w,E)=>{const{scope:S,children:P,...x}=w,y=O.useRef(null),b=De(E,y),_=i(u,S);return O.useEffect(()=>(_.itemMap.set(y,{ref:y,...x}),()=>void _.itemMap.delete(y))),g.jsx(_r,{[m]:"",ref:b,children:P})});v.displayName=u;function f(w){const E=i(e+"CollectionConsumer",w);return O.useCallback(()=>{const P=E.collectionRef.current;if(!P)return[];const x=Array.from(P.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((_,R)=>x.indexOf(_.ref.current)-x.indexOf(R.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:l,Slot:c,ItemSlot:v},f,r]}var MC=h.createContext(void 0);function Bg(e){const t=h.useContext(MC);return e||t||"ltr"}var IC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ne=IC.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?_r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function LC(e,t){e&&ao.flushSync(()=>e.dispatchEvent(t))}function _t(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zC(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var FC="DismissableLayer",Rc="dismissableLayer.update",$C="dismissableLayer.pointerDownOutside",HC="dismissableLayer.focusOutside",xm,Wg=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pl=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...c}=e,u=h.useContext(Wg),[m,v]=h.useState(null),f=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=h.useState({}),E=De(t,N=>v(N)),S=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=S.indexOf(P),y=m?S.indexOf(m):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,_=y>=x,R=UC(N=>{const D=N.target,M=[...u.branches].some(L=>L.contains(D));!_||M||(o==null||o(N),l==null||l(N),N.defaultPrevented||s==null||s())},f),A=VC(N=>{const D=N.target;[...u.branches].some(L=>L.contains(D))||(i==null||i(N),l==null||l(N),N.defaultPrevented||s==null||s())},f);return zC(N=>{y===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},f),h.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xm=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),bm(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xm)}},[m,f,n,u]),h.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),bm())},[m,u]),h.useEffect(()=>{const N=()=>w({});return document.addEventListener(Rc,N),()=>document.removeEventListener(Rc,N)},[]),g.jsx(Ne.div,{...c,ref:E,style:{pointerEvents:b?_?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,A.onFocusCapture),onBlurCapture:we(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,R.onPointerDownCapture)})});pl.displayName=FC;var BC="DismissableLayerBranch",WC=h.forwardRef((e,t)=>{const n=h.useContext(Wg),r=h.useRef(null),o=De(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(Ne.div,{...e,ref:o})});WC.displayName=BC;function UC(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){Ug($C,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function VC(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ug(HC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bm(){const e=new CustomEvent(Rc);document.dispatchEvent(e)}function Ug(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?LC(o,i):o.dispatchEvent(i)}var yu=0;function Kd(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sm()),document.body.insertAdjacentElement("beforeend",e[1]??Sm()),yu++,()=>{yu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yu--}},[])}function Sm(){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}var wu="focusScope.autoFocusOnMount",xu="focusScope.autoFocusOnUnmount",Em={bubbles:!1,cancelable:!0},qC="FocusScope",bs=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[s,c]=h.useState(null),u=_t(o),m=_t(i),v=h.useRef(null),f=De(t,S=>c(S)),w=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let S=function(b){if(w.paused||!s)return;const _=b.target;s.contains(_)?v.current=_:sr(v.current,{select:!0})},P=function(b){if(w.paused||!s)return;const _=b.relatedTarget;_!==null&&(s.contains(_)||sr(v.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const R of b)R.removedNodes.length>0&&sr(s)};document.addEventListener("focusin",S),document.addEventListener("focusout",P);const y=new MutationObserver(x);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",P),y.disconnect()}}},[r,s,w.paused]),h.useEffect(()=>{if(s){_m.add(w);const S=document.activeElement;if(!s.contains(S)){const x=new CustomEvent(wu,Em);s.addEventListener(wu,u),s.dispatchEvent(x),x.defaultPrevented||(GC(ZC(Vg(s)),{select:!0}),document.activeElement===S&&sr(s))}return()=>{s.removeEventListener(wu,u),setTimeout(()=>{const x=new CustomEvent(xu,Em);s.addEventListener(xu,m),s.dispatchEvent(x),x.defaultPrevented||sr(S??document.body,{select:!0}),s.removeEventListener(xu,m),_m.remove(w)},0)}}},[s,u,m,w]);const E=h.useCallback(S=>{if(!n&&!r||w.paused)return;const P=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,x=document.activeElement;if(P&&x){const y=S.currentTarget,[b,_]=KC(y);b&&_?!S.shiftKey&&x===_?(S.preventDefault(),n&&sr(b,{select:!0})):S.shiftKey&&x===b&&(S.preventDefault(),n&&sr(_,{select:!0})):x===y&&S.preventDefault()}},[n,r,w.paused]);return g.jsx(Ne.div,{tabIndex:-1,...l,ref:f,onKeyDown:E})});bs.displayName=qC;function GC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(sr(r,{select:t}),document.activeElement!==n)return}function KC(e){const t=Vg(e),n=Cm(t,e),r=Cm(t.reverse(),e);return[n,r]}function Vg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cm(e,t){for(const n of e)if(!QC(n,{upTo:t}))return n}function QC(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 YC(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&YC(e)&&t&&e.select()}}var _m=XC();function XC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=km(e,t),e.unshift(t)},remove(t){var n;e=km(e,t),(n=e[0])==null||n.resume()}}}function km(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ZC(e){return e.filter(t=>t.tagName!=="A")}var Pt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},JC=kx.useId||(()=>{}),e2=0;function Yr(e){const[t,n]=h.useState(JC());return Pt(()=>{n(r=>r??String(e2++))},[e]),t?`radix-${t}`:""}const t2=["top","right","bottom","left"],jn=Math.min,Kt=Math.max,Va=Math.round,Ql=Math.floor,kr=e=>({x:e,y:e}),n2={left:"right",right:"left",bottom:"top",top:"bottom"},r2={start:"end",end:"start"};function Nc(e,t,n){return Kt(e,jn(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function Jn(e){return e.split("-")[0]}function Jo(e){return e.split("-")[1]}function Qd(e){return e==="x"?"y":"x"}function Yd(e){return e==="y"?"height":"width"}function ei(e){return["top","bottom"].includes(Jn(e))?"y":"x"}function Xd(e){return Qd(ei(e))}function o2(e,t,n){n===void 0&&(n=!1);const r=Jo(e),o=Xd(e),i=Yd(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=qa(l)),[l,qa(l)]}function i2(e){const t=qa(e);return[Tc(e),t,Tc(t)]}function Tc(e){return e.replace(/start|end/g,t=>r2[t])}function l2(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function a2(e,t,n,r){const o=Jo(e);let i=l2(Jn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Tc)))),i}function qa(e){return e.replace(/left|right|bottom|top/g,t=>n2[t])}function s2(e){return{top:0,right:0,bottom:0,left:0,...e}}function qg(e){return typeof e!="number"?s2(e):{top:e,right:e,bottom:e,left:e}}function Ga(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Pm(e,t,n){let{reference:r,floating:o}=e;const i=ei(t),l=Xd(t),s=Yd(l),c=Jn(t),u=i==="y",m=r.x+r.width/2-o.width/2,v=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let w;switch(c){case"top":w={x:m,y:r.y-o.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:v};break;case"left":w={x:r.x-o.width,y:v};break;default:w={x:r.x,y:r.y}}switch(Jo(t)){case"start":w[l]-=f*(n&&u?-1:1);break;case"end":w[l]+=f*(n&&u?-1:1);break}return w}const u2=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:v}=Pm(u,r,c),f=r,w={},E=0;for(let S=0;S({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:c}=t,{element:u,padding:m=0}=Zn(e,t)||{};if(u==null)return{};const v=qg(m),f={x:n,y:r},w=Xd(o),E=Yd(w),S=await l.getDimensions(u),P=w==="y",x=P?"top":"left",y=P?"bottom":"right",b=P?"clientHeight":"clientWidth",_=i.reference[E]+i.reference[w]-f[w]-i.floating[E],R=f[w]-i.reference[w],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let N=A?A[b]:0;(!N||!await(l.isElement==null?void 0:l.isElement(A)))&&(N=s.floating[b]||i.floating[E]);const D=_/2-R/2,M=N/2-S[E]/2-1,L=jn(v[x],M),W=jn(v[y],M),V=L,$=N-S[E]-W,q=N/2-S[E]/2+D,Z=Nc(V,q,$),oe=!c.arrow&&Jo(o)!=null&&q!==Z&&i.reference[E]/2-(qV<=0)){var M,L;const V=(((M=i.flip)==null?void 0:M.index)||0)+1,$=R[V];if($)return{data:{index:V,overflows:D},reset:{placement:$}};let q=(L=D.filter(Z=>Z.overflows[0]<=0).sort((Z,oe)=>Z.overflows[1]-oe.overflows[1])[0])==null?void 0:L.placement;if(!q)switch(w){case"bestFit":{var W;const Z=(W=D.map(oe=>[oe.placement,oe.overflows.filter(re=>re>0).reduce((re,I)=>re+I,0)]).sort((oe,re)=>oe[1]-re[1])[0])==null?void 0:W[0];Z&&(q=Z);break}case"initialPlacement":q=s;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function Rm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nm(e){return t2.some(t=>e[t]>=0)}const f2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zn(e,t);switch(r){case"referenceHidden":{const i=await rl(t,{...o,elementContext:"reference"}),l=Rm(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Nm(l)}}}case"escaped":{const i=await rl(t,{...o,altBoundary:!0}),l=Rm(i,n.floating);return{data:{escapedOffsets:l,escaped:Nm(l)}}}default:return{}}}}};async function p2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Jn(n),s=Jo(n),c=ei(n)==="y",u=["left","top"].includes(l)?-1:1,m=i&&c?-1:1,v=Zn(t,e);let{mainAxis:f,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return s&&typeof E=="number"&&(w=s==="end"?E*-1:E),c?{x:w*m,y:f*u}:{x:f*u,y:w*m}}const m2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,c=await p2(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:l}}}}},h2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:P=>{let{x,y}=P;return{x,y}}},...c}=Zn(e,t),u={x:n,y:r},m=await rl(t,c),v=ei(Jn(o)),f=Qd(v);let w=u[f],E=u[v];if(i){const P=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=w+m[P],b=w-m[x];w=Nc(y,w,b)}if(l){const P=v==="y"?"top":"left",x=v==="y"?"bottom":"right",y=E+m[P],b=E-m[x];E=Nc(y,E,b)}const S=s.fn({...t,[f]:w,[v]:E});return{...S,data:{x:S.x-n,y:S.y-r}}}}},v2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Zn(e,t),m={x:n,y:r},v=ei(o),f=Qd(v);let w=m[f],E=m[v];const S=Zn(s,t),P=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(c){const b=f==="y"?"height":"width",_=i.reference[f]-i.floating[b]+P.mainAxis,R=i.reference[f]+i.reference[b]-P.mainAxis;w<_?w=_:w>R&&(w=R)}if(u){var x,y;const b=f==="y"?"width":"height",_=["top","left"].includes(Jn(o)),R=i.reference[v]-i.floating[b]+(_&&((x=l.offset)==null?void 0:x[v])||0)+(_?0:P.crossAxis),A=i.reference[v]+i.reference[b]+(_?0:((y=l.offset)==null?void 0:y[v])||0)-(_?P.crossAxis:0);EA&&(E=A)}return{[f]:w,[v]:E}}}},g2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=Zn(e,t),c=await rl(t,s),u=Jn(n),m=Jo(n),v=ei(n)==="y",{width:f,height:w}=r.floating;let E,S;u==="top"||u==="bottom"?(E=u,S=m===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(S=u,E=m==="end"?"top":"bottom");const P=w-c.top-c.bottom,x=f-c.left-c.right,y=jn(w-c[E],P),b=jn(f-c[S],x),_=!t.middlewareData.shift;let R=y,A=b;if(v?A=m||_?jn(b,x):x:R=m||_?jn(y,P):P,_&&!m){const D=Kt(c.left,0),M=Kt(c.right,0),L=Kt(c.top,0),W=Kt(c.bottom,0);v?A=f-2*(D!==0||M!==0?D+M:Kt(c.left,c.right)):R=w-2*(L!==0||W!==0?L+W:Kt(c.top,c.bottom))}await l({...t,availableWidth:A,availableHeight:R});const N=await o.getDimensions(i.floating);return f!==N.width||w!==N.height?{reset:{rects:!0}}:{}}}};function ti(e){return Gg(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tr(e){var t;return(t=(Gg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gg(e){return e instanceof Node||e instanceof Xt(e).Node}function Ln(e){return e instanceof Element||e instanceof Xt(e).Element}function zn(e){return e instanceof HTMLElement||e instanceof Xt(e).HTMLElement}function Tm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function ml(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function y2(e){return["table","td","th"].includes(ti(e))}function Zd(e){const t=Jd(),n=Sn(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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function w2(e){let t=Pr(e);for(;zn(t)&&!qo(t);){if(Zd(t))return t;t=Pr(t)}return null}function Jd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qo(e){return["html","body","#document"].includes(ti(e))}function Sn(e){return Xt(e).getComputedStyle(e)}function Ss(e){return Ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pr(e){if(ti(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tm(e)&&e.host||tr(e);return Tm(t)?t.host:t}function Kg(e){const t=Pr(e);return qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:zn(t)&&ml(t)?t:Kg(t)}function ol(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Kg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Xt(o);return i?t.concat(l,l.visualViewport||[],ml(o)?o:[],l.frameElement&&n?ol(l.frameElement):[]):t.concat(o,ol(o,[],n))}function Qg(e){const t=Sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zn(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=Va(n)!==i||Va(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function ef(e){return Ln(e)?e:e.contextElement}function Mo(e){const t=ef(e);if(!zn(t))return kr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Qg(t);let l=(i?Va(n.width):n.width)/r,s=(i?Va(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const x2=kr(0);function Yg(e){const t=Xt(e);return!Jd()||!t.visualViewport?x2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function no(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ef(e);let l=kr(1);t&&(r?Ln(r)&&(l=Mo(r)):l=Mo(e));const s=b2(i,n,r)?Yg(i):kr(0);let c=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,m=o.width/l.x,v=o.height/l.y;if(i){const f=Xt(i),w=r&&Ln(r)?Xt(r):r;let E=f,S=E.frameElement;for(;S&&r&&w!==E;){const P=Mo(S),x=S.getBoundingClientRect(),y=Sn(S),b=x.left+(S.clientLeft+parseFloat(y.paddingLeft))*P.x,_=x.top+(S.clientTop+parseFloat(y.paddingTop))*P.y;c*=P.x,u*=P.y,m*=P.x,v*=P.y,c+=b,u+=_,E=Xt(S),S=E.frameElement}}return Ga({width:m,height:v,x:c,y:u})}const S2=[":popover-open",":modal"];function tf(e){return S2.some(t=>{try{return e.matches(t)}catch{return!1}})}function E2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=tr(r),s=t?tf(t.floating):!1;if(r===l||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=kr(1);const m=kr(0),v=zn(r);if((v||!v&&!i)&&((ti(r)!=="body"||ml(l))&&(c=Ss(r)),zn(r))){const f=no(r);u=Mo(r),m.x=f.x+r.clientLeft,m.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+m.x,y:n.y*u.y-c.scrollTop*u.y+m.y}}function C2(e){return Array.from(e.getClientRects())}function Xg(e){return no(tr(e)).left+Ss(e).scrollLeft}function _2(e){const t=tr(e),n=Ss(e),r=e.ownerDocument.body,o=Kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Xg(e);const s=-n.scrollTop;return Sn(r).direction==="rtl"&&(l+=Kt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function k2(e,t){const n=Xt(e),r=tr(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,c=0;if(o){i=o.width,l=o.height;const u=Jd();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:s,y:c}}function P2(e,t){const n=no(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=zn(e)?Mo(e):kr(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:l,height:s,x:c,y:u}}function Am(e,t,n){let r;if(t==="viewport")r=k2(e,n);else if(t==="document")r=_2(tr(e));else if(Ln(t))r=P2(t,n);else{const o=Yg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ga(r)}function Zg(e,t){const n=Pr(e);return n===t||!Ln(n)||qo(n)?!1:Sn(n).position==="fixed"||Zg(n,t)}function R2(e,t){const n=t.get(e);if(n)return n;let r=ol(e,[],!1).filter(s=>Ln(s)&&ti(s)!=="body"),o=null;const i=Sn(e).position==="fixed";let l=i?Pr(e):e;for(;Ln(l)&&!qo(l);){const s=Sn(l),c=Zd(l);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ml(l)&&!c&&Zg(e,l))?r=r.filter(m=>m!==l):o=s,l=Pr(l)}return t.set(e,r),r}function N2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?tf(t)?[]:R2(t,this._c):[].concat(n),r],s=l[0],c=l.reduce((u,m)=>{const v=Am(t,m,o);return u.top=Kt(v.top,u.top),u.right=jn(v.right,u.right),u.bottom=jn(v.bottom,u.bottom),u.left=Kt(v.left,u.left),u},Am(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function T2(e){const{width:t,height:n}=Qg(e);return{width:t,height:n}}function A2(e,t,n){const r=zn(t),o=tr(t),i=n==="fixed",l=no(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=kr(0);if(r||!r&&!i)if((ti(t)!=="body"||ml(o))&&(s=Ss(t)),r){const v=no(t,!0,i,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=Xg(o));const u=l.left+s.scrollLeft-c.x,m=l.top+s.scrollTop-c.y;return{x:u,y:m,width:l.width,height:l.height}}function bu(e){return Sn(e).position==="static"}function Om(e,t){return!zn(e)||Sn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jg(e,t){const n=Xt(e);if(tf(e))return n;if(!zn(e)){let o=Pr(e);for(;o&&!qo(o);){if(Ln(o)&&!bu(o))return o;o=Pr(o)}return n}let r=Om(e,t);for(;r&&y2(r)&&bu(r);)r=Om(r,t);return r&&qo(r)&&bu(r)&&!Zd(r)?n:r||w2(e)||n}const O2=async function(e){const t=this.getOffsetParent||Jg,n=this.getDimensions,r=await n(e.floating);return{reference:A2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function D2(e){return Sn(e).direction==="rtl"}const j2={convertOffsetParentRelativeRectToViewportRelativeRect:E2,getDocumentElement:tr,getClippingRect:N2,getOffsetParent:Jg,getElementRects:O2,getClientRects:C2,getDimensions:T2,getScale:Mo,isElement:Ln,isRTL:D2};function M2(e,t){let n=null,r;const o=tr(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:m,width:v,height:f}=e.getBoundingClientRect();if(s||t(),!v||!f)return;const w=Ql(m),E=Ql(o.clientWidth-(u+v)),S=Ql(o.clientHeight-(m+f)),P=Ql(u),y={rootMargin:-w+"px "+-E+"px "+-S+"px "+-P+"px",threshold:Kt(0,jn(1,c))||1};let b=!0;function _(R){const A=R[0].intersectionRatio;if(A!==c){if(!b)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(_,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,y)}n.observe(e)}return l(!0),i}function I2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=ef(e),m=o||i?[...u?ol(u):[],...ol(t)]:[];m.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const v=u&&s?M2(u,n):null;let f=-1,w=null;l&&(w=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=w)==null||b.observe(t)})),n()}),u&&!c&&w.observe(u),w.observe(t));let E,S=c?no(e):null;c&&P();function P(){const x=no(e);S&&(x.x!==S.x||x.y!==S.y||x.width!==S.width||x.height!==S.height)&&n(),S=x,E=requestAnimationFrame(P)}return n(),()=>{var x;m.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),v==null||v(),(x=w)==null||x.disconnect(),w=null,c&&cancelAnimationFrame(E)}}const L2=m2,z2=h2,F2=d2,$2=g2,H2=f2,Dm=c2,B2=v2,W2=(e,t,n)=>{const r=new Map,o={platform:j2,...n},i={...o.platform,_c:r};return u2(e,t,{...o,platform:i})};var ya=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Ka(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ka(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ka(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ey(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jm(e,t){const n=ey(e);return Math.round(t*n)/n}function Mm(e){const t=h.useRef(e);return ya(()=>{t.current=e}),t}function U2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[m,v]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,w]=h.useState(r);Ka(f,r)||w(r);const[E,S]=h.useState(null),[P,x]=h.useState(null),y=h.useCallback(re=>{re!==A.current&&(A.current=re,S(re))},[]),b=h.useCallback(re=>{re!==N.current&&(N.current=re,x(re))},[]),_=i||E,R=l||P,A=h.useRef(null),N=h.useRef(null),D=h.useRef(m),M=c!=null,L=Mm(c),W=Mm(o),V=h.useCallback(()=>{if(!A.current||!N.current)return;const re={placement:t,strategy:n,middleware:f};W.current&&(re.platform=W.current),W2(A.current,N.current,re).then(I=>{const B={...I,isPositioned:!0};$.current&&!Ka(D.current,B)&&(D.current=B,ao.flushSync(()=>{v(B)}))})},[f,t,n,W]);ya(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,v(re=>({...re,isPositioned:!1})))},[u]);const $=h.useRef(!1);ya(()=>($.current=!0,()=>{$.current=!1}),[]),ya(()=>{if(_&&(A.current=_),R&&(N.current=R),_&&R){if(L.current)return L.current(_,R,V);V()}},[_,R,V,L,M]);const q=h.useMemo(()=>({reference:A,floating:N,setReference:y,setFloating:b}),[y,b]),Z=h.useMemo(()=>({reference:_,floating:R}),[_,R]),oe=h.useMemo(()=>{const re={position:n,left:0,top:0};if(!Z.floating)return re;const I=jm(Z.floating,m.x),B=jm(Z.floating,m.y);return s?{...re,transform:"translate("+I+"px, "+B+"px)",...ey(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:B}},[n,s,Z.floating,m.x,m.y]);return h.useMemo(()=>({...m,update:V,refs:q,elements:Z,floatingStyles:oe}),[m,V,q,Z,oe])}const V2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Dm({element:r.current,padding:o}).fn(n):{}:r?Dm({element:r,padding:o}).fn(n):{}}}},q2=(e,t)=>({...L2(e),options:[e,t]}),G2=(e,t)=>({...z2(e),options:[e,t]}),K2=(e,t)=>({...B2(e),options:[e,t]}),Q2=(e,t)=>({...F2(e),options:[e,t]}),Y2=(e,t)=>({...$2(e),options:[e,t]}),X2=(e,t)=>({...H2(e),options:[e,t]}),Z2=(e,t)=>({...V2(e),options:[e,t]});var J2="Arrow",ty=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return g.jsx(Ne.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});ty.displayName=J2;var e_=ty;function t_(e){const[t,n]=h.useState(void 0);return Pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nf="Popper",[ny,ni]=Or(nf),[n_,ry]=ny(nf),oy=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return g.jsx(n_,{scope:t,anchor:r,onAnchorChange:o,children:n})};oy.displayName=nf;var iy="PopperAnchor",ly=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ry(iy,n),l=h.useRef(null),s=De(t,l);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:g.jsx(Ne.div,{...o,ref:s})});ly.displayName=iy;var rf="PopperContent",[r_,o_]=ny(rf),ay=h.forwardRef((e,t)=>{var ee,xe,je,K,Se,ve;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:v="partial",hideWhenDetached:f=!1,updatePositionStrategy:w="optimized",onPlaced:E,...S}=e,P=ry(rf,n),[x,y]=h.useState(null),b=De(t,J=>y(J)),[_,R]=h.useState(null),A=t_(_),N=(A==null?void 0:A.width)??0,D=(A==null?void 0:A.height)??0,M=r+(i!=="center"?"-"+i:""),L=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},W=Array.isArray(u)?u:[u],V=W.length>0,$={padding:L,boundary:W.filter(l_),altBoundary:V},{refs:q,floatingStyles:Z,placement:oe,isPositioned:re,middlewareData:I}=U2({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>I2(...J,{animationFrame:w==="always"}),elements:{reference:P.anchor},middleware:[q2({mainAxis:o+D,alignmentAxis:l}),c&&G2({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?K2():void 0,...$}),c&&Q2({...$}),Y2({...$,apply:({elements:J,rects:be,availableWidth:ot,availableHeight:ze})=>{const{width:nt,height:bt}=be.reference,ge=J.floating.style;ge.setProperty("--radix-popper-available-width",`${ot}px`),ge.setProperty("--radix-popper-available-height",`${ze}px`),ge.setProperty("--radix-popper-anchor-width",`${nt}px`),ge.setProperty("--radix-popper-anchor-height",`${bt}px`)}}),_&&Z2({element:_,padding:s}),a_({arrowWidth:N,arrowHeight:D}),f&&X2({strategy:"referenceHidden",...$})]}),[B,ne]=cy(oe),Y=_t(E);Pt(()=>{re&&(Y==null||Y())},[re,Y]);const X=(ee=I.arrow)==null?void 0:ee.x,me=(xe=I.arrow)==null?void 0:xe.y,pe=((je=I.arrow)==null?void 0:je.centerOffset)!==0,[Me,ce]=h.useState();return Pt(()=>{x&&ce(window.getComputedStyle(x).zIndex)},[x]),g.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:re?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(K=I.transformOrigin)==null?void 0:K.x,(Se=I.transformOrigin)==null?void 0:Se.y].join(" "),...((ve=I.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(r_,{scope:n,placedSide:B,onArrowChange:R,arrowX:X,arrowY:me,shouldHideArrow:pe,children:g.jsx(Ne.div,{"data-side":B,"data-align":ne,...S,ref:b,style:{...S.style,animation:re?void 0:"none"}})})})});ay.displayName=rf;var sy="PopperArrow",i_={top:"bottom",right:"left",bottom:"top",left:"right"},uy=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=o_(sy,r),l=i_[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(e_,{...o,ref:n,style:{...o.style,display:"block"}})})});uy.displayName=sy;function l_(e){return e!==null}var a_=e=>({name:"transformOrigin",options:e,fn(t){var P,x,y;const{placement:n,rects:r,middlewareData:o}=t,l=((P=o.arrow)==null?void 0:P.centerOffset)!==0,s=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[u,m]=cy(n),v={start:"0%",center:"50%",end:"100%"}[m],f=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,w=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let E="",S="";return u==="bottom"?(E=l?v:`${f}px`,S=`${-c}px`):u==="top"?(E=l?v:`${f}px`,S=`${r.floating.height+c}px`):u==="right"?(E=`${-c}px`,S=l?v:`${w}px`):u==="left"&&(E=`${r.floating.width+c}px`,S=l?v:`${w}px`),{data:{x:E,y:S}}}});function cy(e){const[t,n="center"]=e.split("-");return[t,n]}var of=oy,Es=ly,lf=ay,af=uy,s_="Portal",Cs=h.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=h.useState(!1);Pt(()=>i(!0),[]);const l=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?bg.createPortal(g.jsx(Ne.div,{...r,ref:t}),l):null});Cs.displayName=s_;function il({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=u_({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=_t(n),c=h.useCallback(u=>{if(i){const v=typeof u=="function"?u(e):u;v!==e&&s(v)}else o(u)},[i,e,o,s]);return[l,c]}function u_({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=_t(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function c_(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var d_="VisuallyHidden",dy=h.forwardRef((e,t)=>g.jsx(Ne.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));dy.displayName=d_;var f_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mo=new WeakMap,Yl=new WeakMap,Xl={},Su=0,fy=function(e){return e&&(e.host||fy(e.parentNode))},p_=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},m_=function(e,t,n,r){var o=p_(t,Array.isArray(e)?e:[e]);Xl[n]||(Xl[n]=new WeakMap);var i=Xl[n],l=[],s=new Set,c=new Set(o),u=function(v){!v||s.has(v)||(s.add(v),u(v.parentNode))};o.forEach(u);var m=function(v){!v||c.has(v)||Array.prototype.forEach.call(v.children,function(f){if(s.has(f))m(f);else try{var w=f.getAttribute(r),E=w!==null&&w!=="false",S=(mo.get(f)||0)+1,P=(i.get(f)||0)+1;mo.set(f,S),i.set(f,P),l.push(f),S===1&&E&&Yl.set(f,!0),P===1&&f.setAttribute(n,"true"),E||f.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return m(t),s.clear(),Su++,function(){l.forEach(function(v){var f=mo.get(v)-1,w=i.get(v)-1;mo.set(v,f),i.set(v,w),f||(Yl.has(v)||v.removeAttribute(r),Yl.delete(v)),w||v.removeAttribute(n)}),Su--,Su||(mo=new WeakMap,mo=new WeakMap,Yl=new WeakMap,Xl={})}},sf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=f_(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),m_(r,o,n,"aria-hidden")):function(){return null}},Dn=function(){return Dn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function Ac(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return T_;var t=A_(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},D_=vy(),Io="data-scroll-locked",j_=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(h_,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body[`).concat(Io,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(l,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(wa,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(xa,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(wa," .").concat(wa,` { - right: 0 `).concat(r,`; - } - - .`).concat(xa," .").concat(xa,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Io,`] { - `).concat(v_,": ").concat(s,`px; - } -`)},zm=function(){var e=parseInt(document.body.getAttribute(Io)||"0",10);return isFinite(e)?e:0},M_=function(){h.useEffect(function(){return document.body.setAttribute(Io,(zm()+1).toString()),function(){var e=zm()-1;e<=0?document.body.removeAttribute(Io):document.body.setAttribute(Io,e.toString())}},[])},I_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;M_();var i=h.useMemo(function(){return O_(o)},[o]);return h.createElement(D_,{styles:j_(i,!t,o,n?"":"!important")})},Oc=!1;if(typeof window<"u")try{var Zl=Object.defineProperty({},"passive",{get:function(){return Oc=!0,!0}});window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{Oc=!1}var ho=Oc?{passive:!1}:!1,L_=function(e){return e.tagName==="TEXTAREA"},gy=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!L_(e)&&n[t]==="visible")},z_=function(e){return gy(e,"overflowY")},F_=function(e){return gy(e,"overflowX")},Fm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=yy(e,r);if(o){var i=wy(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$_=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},H_=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yy=function(e,t){return e==="v"?z_(t):F_(t)},wy=function(e,t){return e==="v"?$_(t):H_(t)},B_=function(e,t){return e==="h"&&t==="rtl"?-1:1},W_=function(e,t,n,r,o){var i=B_(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,c=t.contains(s),u=!1,m=l>0,v=0,f=0;do{var w=wy(e,s),E=w[0],S=w[1],P=w[2],x=S-P-i*E;(E||x)&&yy(e,s)&&(v+=x,f+=E),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(m&&(Math.abs(v)<1||!o)||!m&&(Math.abs(f)<1||!o))&&(u=!0),u},Jl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$m=function(e){return[e.deltaX,e.deltaY]},Hm=function(e){return e&&"current"in e?e.current:e},U_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},V_=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},q_=0,vo=[];function G_(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(q_++)[0],i=h.useState(vy)[0],l=h.useRef(e);h.useEffect(function(){l.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=Ac([e.lockRef.current],(e.shards||[]).map(Hm),!0).filter(Boolean);return S.forEach(function(P){return P.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(S,P){if("touches"in S&&S.touches.length===2)return!l.current.allowPinchZoom;var x=Jl(S),y=n.current,b="deltaX"in S?S.deltaX:y[0]-x[0],_="deltaY"in S?S.deltaY:y[1]-x[1],R,A=S.target,N=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in S&&N==="h"&&A.type==="range")return!1;var D=Fm(N,A);if(!D)return!0;if(D?R=N:(R=N==="v"?"h":"v",D=Fm(N,A)),!D)return!1;if(!r.current&&"changedTouches"in S&&(b||_)&&(r.current=R),!R)return!0;var M=r.current||R;return W_(M,P,S,M==="h"?b:_,!0)},[]),c=h.useCallback(function(S){var P=S;if(!(!vo.length||vo[vo.length-1]!==i)){var x="deltaY"in P?$m(P):Jl(P),y=t.current.filter(function(R){return R.name===P.type&&(R.target===P.target||P.target===R.shadowParent)&&U_(R.delta,x)})[0];if(y&&y.should){P.cancelable&&P.preventDefault();return}if(!y){var b=(l.current.shards||[]).map(Hm).filter(Boolean).filter(function(R){return R.contains(P.target)}),_=b.length>0?s(P,b[0]):!l.current.noIsolation;_&&P.cancelable&&P.preventDefault()}}},[]),u=h.useCallback(function(S,P,x,y){var b={name:S,delta:P,target:x,should:y,shadowParent:K_(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),m=h.useCallback(function(S){n.current=Jl(S),r.current=void 0},[]),v=h.useCallback(function(S){u(S.type,$m(S),S.target,s(S,e.lockRef.current))},[]),f=h.useCallback(function(S){u(S.type,Jl(S),S.target,s(S,e.lockRef.current))},[]);h.useEffect(function(){return vo.push(i),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:f}),document.addEventListener("wheel",c,ho),document.addEventListener("touchmove",c,ho),document.addEventListener("touchstart",m,ho),function(){vo=vo.filter(function(S){return S!==i}),document.removeEventListener("wheel",c,ho),document.removeEventListener("touchmove",c,ho),document.removeEventListener("touchstart",m,ho)}},[]);var w=e.removeScrollBar,E=e.inert;return h.createElement(h.Fragment,null,E?h.createElement(i,{styles:V_(o)}):null,w?h.createElement(I_,{gapMode:e.gapMode}):null)}function K_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Q_=E_(hy,G_);var ks=h.forwardRef(function(e,t){return h.createElement(_s,Dn({},e,{ref:t,sideCar:Q_}))});ks.classNames=_s.classNames;var Y_=[" ","Enter","ArrowUp","ArrowDown"],X_=[" ","Enter"],hl="Select",[Ps,Rs,Z_]=jC(hl),[ii,eT]=Or(hl,[Z_,ni]),Ns=ni(),[J_,Dr]=ii(hl),[ek,tk]=ii(hl),xy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:s,onValueChange:c,dir:u,name:m,autoComplete:v,disabled:f,required:w}=e,E=Ns(t),[S,P]=h.useState(null),[x,y]=h.useState(null),[b,_]=h.useState(!1),R=Bg(u),[A=!1,N]=il({prop:r,defaultProp:o,onChange:i}),[D,M]=il({prop:l,defaultProp:s,onChange:c}),L=h.useRef(null),W=S?!!S.closest("form"):!0,[V,$]=h.useState(new Set),q=Array.from(V).map(Z=>Z.props.value).join(";");return g.jsx(of,{...E,children:g.jsxs(J_,{required:w,scope:t,trigger:S,onTriggerChange:P,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:Yr(),value:D,onValueChange:M,open:A,onOpenChange:N,dir:R,triggerPointerDownPosRef:L,disabled:f,children:[g.jsx(Ps.Provider,{scope:t,children:g.jsx(ek,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(Z=>{$(oe=>new Set(oe).add(Z))},[]),onNativeOptionRemove:h.useCallback(Z=>{$(oe=>{const re=new Set(oe);return re.delete(Z),re})},[]),children:n})}),W?g.jsxs(qy,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:v,value:D,onChange:Z=>M(Z.target.value),disabled:f,children:[D===void 0?g.jsx("option",{value:""}):null,Array.from(V)]},q):null]})})};xy.displayName=hl;var by="SelectTrigger",Sy=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Ns(n),l=Dr(by,n),s=l.disabled||r,c=De(t,l.onTriggerChange),u=Rs(n),[m,v,f]=Gy(E=>{const S=u().filter(y=>!y.disabled),P=S.find(y=>y.value===l.value),x=Ky(S,E,P);x!==void 0&&l.onValueChange(x.value)}),w=()=>{s||(l.onOpenChange(!0),f())};return g.jsx(Es,{asChild:!0,...i,children:g.jsx(Ne.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Vy(l.value)?"":void 0,...o,ref:c,onClick:we(o.onClick,E=>{E.currentTarget.focus()}),onPointerDown:we(o.onPointerDown,E=>{const S=E.target;S.hasPointerCapture(E.pointerId)&&S.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&(w(),l.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)},E.preventDefault())}),onKeyDown:we(o.onKeyDown,E=>{const S=m.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&v(E.key),!(S&&E.key===" ")&&Y_.includes(E.key)&&(w(),E.preventDefault())})})})});Sy.displayName=by;var Ey="SelectValue",Cy=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...s}=e,c=Dr(Ey,n),{onValueNodeHasChildrenChange:u}=c,m=i!==void 0,v=De(t,c.onValueNodeChange);return Pt(()=>{u(m)},[u,m]),g.jsx(Ne.span,{...s,ref:v,style:{pointerEvents:"none"},children:Vy(c.value)?g.jsx(g.Fragment,{children:l}):i})});Cy.displayName=Ey;var nk="SelectIcon",_y=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return g.jsx(Ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});_y.displayName=nk;var rk="SelectPortal",ky=e=>g.jsx(Cs,{asChild:!0,...e});ky.displayName=rk;var ro="SelectContent",Py=h.forwardRef((e,t)=>{const n=Dr(ro,e.__scopeSelect),[r,o]=h.useState();if(Pt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?ao.createPortal(g.jsx(Ry,{scope:e.__scopeSelect,children:g.jsx(Ps.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),i):null}return g.jsx(Ny,{...e,ref:t})});Py.displayName=ro;var Wn=10,[Ry,jr]=ii(ro),ok="SelectContentImpl",Ny=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:s,sideOffset:c,align:u,alignOffset:m,arrowPadding:v,collisionBoundary:f,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:P,...x}=e,y=Dr(ro,n),[b,_]=h.useState(null),[R,A]=h.useState(null),N=De(t,ee=>_(ee)),[D,M]=h.useState(null),[L,W]=h.useState(null),V=Rs(n),[$,q]=h.useState(!1),Z=h.useRef(!1);h.useEffect(()=>{if(b)return sf(b)},[b]),Kd();const oe=h.useCallback(ee=>{const[xe,...je]=V().map(ve=>ve.ref.current),[K]=je.slice(-1),Se=document.activeElement;for(const ve of ee)if(ve===Se||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===xe&&R&&(R.scrollTop=0),ve===K&&R&&(R.scrollTop=R.scrollHeight),ve==null||ve.focus(),document.activeElement!==Se))return},[V,R]),re=h.useCallback(()=>oe([D,b]),[oe,D,b]);h.useEffect(()=>{$&&re()},[$,re]);const{onOpenChange:I,triggerPointerDownPosRef:B}=y;h.useEffect(()=>{if(b){let ee={x:0,y:0};const xe=K=>{var Se,ve;ee={x:Math.abs(Math.round(K.pageX)-(((Se=B.current)==null?void 0:Se.x)??0)),y:Math.abs(Math.round(K.pageY)-(((ve=B.current)==null?void 0:ve.y)??0))}},je=K=>{ee.x<=10&&ee.y<=10?K.preventDefault():b.contains(K.target)||I(!1),document.removeEventListener("pointermove",xe),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",je,{capture:!0})}}},[b,I,B]),h.useEffect(()=>{const ee=()=>I(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[I]);const[ne,Y]=Gy(ee=>{const xe=V().filter(Se=>!Se.disabled),je=xe.find(Se=>Se.ref.current===document.activeElement),K=Ky(xe,ee,je);K&&setTimeout(()=>K.ref.current.focus())}),X=h.useCallback((ee,xe,je)=>{const K=!Z.current&&!je;(y.value!==void 0&&y.value===xe||K)&&(M(ee),K&&(Z.current=!0))},[y.value]),me=h.useCallback(()=>b==null?void 0:b.focus(),[b]),pe=h.useCallback((ee,xe,je)=>{const K=!Z.current&&!je;(y.value!==void 0&&y.value===xe||K)&&W(ee)},[y.value]),Me=r==="popper"?Dc:Ty,ce=Me===Dc?{side:s,sideOffset:c,align:u,alignOffset:m,arrowPadding:v,collisionBoundary:f,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:P}:{};return g.jsx(Ry,{scope:n,content:b,viewport:R,onViewportChange:A,itemRefCallback:X,selectedItem:D,onItemLeave:me,itemTextRefCallback:pe,focusSelectedItem:re,selectedItemText:L,position:r,isPositioned:$,searchRef:ne,children:g.jsx(ks,{as:_r,allowPinchZoom:!0,children:g.jsx(bs,{asChild:!0,trapped:y.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:we(o,ee=>{var xe;(xe=y.trigger)==null||xe.focus({preventScroll:!0}),ee.preventDefault()}),children:g.jsx(pl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:g.jsx(Me,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:ee=>ee.preventDefault(),...x,...ce,onPlaced:()=>q(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:we(x.onKeyDown,ee=>{const xe=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!xe&&ee.key.length===1&&Y(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let K=V().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Se=ee.target,ve=K.indexOf(Se);K=K.slice(ve+1)}setTimeout(()=>oe(K)),ee.preventDefault()}})})})})})})});Ny.displayName=ok;var ik="SelectItemAlignedPosition",Ty=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Dr(ro,n),l=jr(ro,n),[s,c]=h.useState(null),[u,m]=h.useState(null),v=De(t,N=>m(N)),f=Rs(n),w=h.useRef(!1),E=h.useRef(!0),{viewport:S,selectedItem:P,selectedItemText:x,focusSelectedItem:y}=l,b=h.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&S&&P&&x){const N=i.trigger.getBoundingClientRect(),D=u.getBoundingClientRect(),M=i.valueNode.getBoundingClientRect(),L=x.getBoundingClientRect();if(i.dir!=="rtl"){const Se=L.left-D.left,ve=M.left-Se,J=N.left-ve,be=N.width+J,ot=Math.max(be,D.width),ze=window.innerWidth-Wn,nt=Pc(ve,[Wn,ze-ot]);s.style.minWidth=be+"px",s.style.left=nt+"px"}else{const Se=D.right-L.right,ve=window.innerWidth-M.right-Se,J=window.innerWidth-N.right-ve,be=N.width+J,ot=Math.max(be,D.width),ze=window.innerWidth-Wn,nt=Pc(ve,[Wn,ze-ot]);s.style.minWidth=be+"px",s.style.right=nt+"px"}const W=f(),V=window.innerHeight-Wn*2,$=S.scrollHeight,q=window.getComputedStyle(u),Z=parseInt(q.borderTopWidth,10),oe=parseInt(q.paddingTop,10),re=parseInt(q.borderBottomWidth,10),I=parseInt(q.paddingBottom,10),B=Z+oe+$+I+re,ne=Math.min(P.offsetHeight*5,B),Y=window.getComputedStyle(S),X=parseInt(Y.paddingTop,10),me=parseInt(Y.paddingBottom,10),pe=N.top+N.height/2-Wn,Me=V-pe,ce=P.offsetHeight/2,ee=P.offsetTop+ce,xe=Z+oe+ee,je=B-xe;if(xe<=pe){const Se=P===W[W.length-1].ref.current;s.style.bottom="0px";const ve=u.clientHeight-S.offsetTop-S.offsetHeight,J=Math.max(Me,ce+(Se?me:0)+ve+re),be=xe+J;s.style.height=be+"px"}else{const Se=P===W[0].ref.current;s.style.top="0px";const J=Math.max(pe,Z+S.offsetTop+(Se?X:0)+ce)+je;s.style.height=J+"px",S.scrollTop=xe-pe+S.offsetTop}s.style.margin=`${Wn}px 0`,s.style.minHeight=ne+"px",s.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[f,i.trigger,i.valueNode,s,u,S,P,x,i.dir,r]);Pt(()=>b(),[b]);const[_,R]=h.useState();Pt(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const A=h.useCallback(N=>{N&&E.current===!0&&(b(),y==null||y(),E.current=!1)},[b,y]);return g.jsx(ak,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:w,onScrollButtonChange:A,children:g.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:g.jsx(Ne.div,{...o,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ty.displayName=ik;var lk="SelectPopperPosition",Dc=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Wn,...i}=e,l=Ns(n);return g.jsx(lf,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Dc.displayName=lk;var[ak,uf]=ii(ro,{}),jc="SelectViewport",Ay=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=jr(jc,n),l=uf(jc,n),s=De(t,i.onViewportChange),c=h.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),g.jsx(Ps.Slot,{scope:n,children:g.jsx(Ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:we(o.onScroll,u=>{const m=u.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&v){const w=Math.abs(c.current-m.scrollTop);if(w>0){const E=window.innerHeight-Wn*2,S=parseFloat(v.style.minHeight),P=parseFloat(v.style.height),x=Math.max(S,P);if(x0?_:0,v.style.justifyContent="flex-end")}}}c.current=m.scrollTop})})})]})});Ay.displayName=jc;var Oy="SelectGroup",[sk,uk]=ii(Oy),Dy=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Yr();return g.jsx(sk,{scope:n,id:o,children:g.jsx(Ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Dy.displayName=Oy;var jy="SelectLabel",My=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=uk(jy,n);return g.jsx(Ne.div,{id:o.id,...r,ref:t})});My.displayName=jy;var Qa="SelectItem",[ck,Iy]=ii(Qa),Ly=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,s=Dr(Qa,n),c=jr(Qa,n),u=s.value===r,[m,v]=h.useState(i??""),[f,w]=h.useState(!1),E=De(t,x=>{var y;return(y=c.itemRefCallback)==null?void 0:y.call(c,x,r,o)}),S=Yr(),P=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(ck,{scope:n,value:r,disabled:o,textId:S,isSelected:u,onItemTextChange:h.useCallback(x=>{v(y=>y||((x==null?void 0:x.textContent)??"").trim())},[]),children:g.jsx(Ps.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:g.jsx(Ne.div,{role:"option","aria-labelledby":S,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:E,onFocus:we(l.onFocus,()=>w(!0)),onBlur:we(l.onBlur,()=>w(!1)),onPointerUp:we(l.onPointerUp,P),onPointerMove:we(l.onPointerMove,x=>{var y;o?(y=c.onItemLeave)==null||y.call(c):x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:we(l.onPointerLeave,x=>{var y;x.currentTarget===document.activeElement&&((y=c.onItemLeave)==null||y.call(c))}),onKeyDown:we(l.onKeyDown,x=>{var b;((b=c.searchRef)==null?void 0:b.current)!==""&&x.key===" "||(X_.includes(x.key)&&P(),x.key===" "&&x.preventDefault())})})})})});Ly.displayName=Qa;var Ti="SelectItemText",zy=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=Dr(Ti,n),s=jr(Ti,n),c=Iy(Ti,n),u=tk(Ti,n),[m,v]=h.useState(null),f=De(t,x=>v(x),c.onItemTextChange,x=>{var y;return(y=s.itemTextRefCallback)==null?void 0:y.call(s,x,c.value,c.disabled)}),w=m==null?void 0:m.textContent,E=h.useMemo(()=>g.jsx("option",{value:c.value,disabled:c.disabled,children:w},c.value),[c.disabled,c.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:P}=u;return Pt(()=>(S(E),()=>P(E)),[S,P,E]),g.jsxs(g.Fragment,{children:[g.jsx(Ne.span,{id:c.textId,...i,ref:f}),c.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ao.createPortal(i.children,l.valueNode):null]})});zy.displayName=Ti;var Fy="SelectItemIndicator",$y=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Iy(Fy,n).isSelected?g.jsx(Ne.span,{"aria-hidden":!0,...r,ref:t}):null});$y.displayName=Fy;var Mc="SelectScrollUpButton",Hy=h.forwardRef((e,t)=>{const n=jr(Mc,e.__scopeSelect),r=uf(Mc,e.__scopeSelect),[o,i]=h.useState(!1),l=De(t,r.onScrollButtonChange);return Pt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?g.jsx(Wy,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});Hy.displayName=Mc;var Ic="SelectScrollDownButton",By=h.forwardRef((e,t)=>{const n=jr(Ic,e.__scopeSelect),r=uf(Ic,e.__scopeSelect),[o,i]=h.useState(!1),l=De(t,r.onScrollButtonChange);return Pt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,m=Math.ceil(c.scrollTop)c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?g.jsx(Wy,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});By.displayName=Ic;var Wy=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=jr("SelectScrollButton",n),l=h.useRef(null),s=Rs(n),c=h.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),Pt(()=>{var m;const u=s().find(v=>v.ref.current===document.activeElement);(m=u==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[s]),g.jsx(Ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:we(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:we(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:we(o.onPointerLeave,()=>{c()})})}),dk="SelectSeparator",Uy=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return g.jsx(Ne.div,{"aria-hidden":!0,...r,ref:t})});Uy.displayName=dk;var Lc="SelectArrow",fk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ns(n),i=Dr(Lc,n),l=jr(Lc,n);return i.open&&l.position==="popper"?g.jsx(af,{...o,...r,ref:t}):null});fk.displayName=Lc;function Vy(e){return e===""||e===void 0}var qy=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=h.useRef(null),i=De(t,o),l=c_(n);return h.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==n&&m){const v=new Event("change",{bubbles:!0});m.call(s,n),s.dispatchEvent(v)}},[l,n]),g.jsx(dy,{asChild:!0,children:g.jsx("select",{...r,ref:i,defaultValue:n})})});qy.displayName="BubbleSelect";function Gy(e){const t=_t(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(l=>{const s=n.current+l;t(s),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Ky(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=pk(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const c=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function pk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mk=xy,Qy=Sy,hk=Cy,vk=_y,gk=ky,Yy=Py,yk=Ay,wk=Dy,Xy=My,Zy=Ly,xk=zy,bk=$y,Jy=Hy,e0=By,t0=Uy;const Sk=mk,Ek=wk,Ck=hk,n0=h.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Qy,{ref:r,className:ke("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,g.jsx(vk,{asChild:!0,children:g.jsx(Hg,{className:"h-4 w-4 opacity-50"})})]}));n0.displayName=Qy.displayName;const r0=h.forwardRef(({className:e,...t},n)=>g.jsx(Jy,{ref:n,className:ke("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(mC,{className:"h-4 w-4"})}));r0.displayName=Jy.displayName;const o0=h.forwardRef(({className:e,...t},n)=>g.jsx(e0,{ref:n,className:ke("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Hg,{className:"h-4 w-4"})}));o0.displayName=e0.displayName;const i0=h.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>g.jsx(gk,{children:g.jsxs(Yy,{ref:o,className:ke("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[g.jsx(r0,{}),g.jsx(yk,{className:ke("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(o0,{})]})}));i0.displayName=Yy.displayName;const l0=h.forwardRef(({className:e,...t},n)=>g.jsx(Xy,{ref:n,className:ke("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));l0.displayName=Xy.displayName;const a0=h.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Zy,{ref:r,className:ke("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(bk,{children:g.jsx(dC,{className:"h-4 w-4"})})}),g.jsx(xk,{children:t})]}));a0.displayName=Zy.displayName;const _k=h.forwardRef(({className:e,...t},n)=>g.jsx(t0,{ref:n,className:ke("-mx-1 my-1 h-px bg-muted",e),...t}));_k.displayName=t0.displayName;const kk=Fg("inline-flex items-center rounded border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function s0({className:e,variant:t,...n}){return g.jsx("div",{className:ke(kk({variant:t}),e),...n})}function Pk(){const{tables:e,selectedTable:t,setSelectedTable:n}=Ar(),r=h.useMemo(()=>{var l;const i=parseInt(t);return isNaN(i)?0:((l=e[i])==null?void 0:l.count)||0},[e,t]),o=h.useMemo(()=>e.map((i,l)=>g.jsx(a0,{value:`${l}`,children:i.name},i.name)),[e]);return g.jsxs("section",{className:"flex grow items-center justify-center gap-1",children:[g.jsxs(Sk,{value:t,onValueChange:n,children:[g.jsx(n0,{className:"grow",children:g.jsx(Ck,{placeholder:"Select a table"})}),g.jsx(i0,{children:g.jsxs(Ek,{children:[g.jsx(l0,{children:"Tables"}),o]})})]}),g.jsx(s0,{title:"Rows",className:"min-w-[100px] grow py-2 text-sm md:min-w-[200px]",variant:"outline",children:g.jsx("span",{className:"w-full text-center",children:r})})]})}function Rk(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var En=e=>{const{present:t,children:n}=e,r=Nk(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=De(r.ref,Tk(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};En.displayName="Presence";function Nk(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[s,c]=Rk(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=ea(r.current);i.current=s==="mounted"?u:"none"},[s]),Pt(()=>{const u=r.current,m=o.current;if(m!==e){const f=i.current,w=ea(u);e?c("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(m&&f!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Pt(()=>{if(t){const u=v=>{const w=ea(r.current).includes(v.animationName);v.target===t&&w&&ao.flushSync(()=>c("ANIMATION_END"))},m=v=>{v.target===t&&(i.current=ea(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ea(e){return(e==null?void 0:e.animationName)||"none"}function Tk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ku,cf="HoverCard",[u0,tT]=Or(cf,[ni]),Ts=ni(),[Ak,df]=u0(cf),c0=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:s=300}=e,c=Ts(t),u=h.useRef(0),m=h.useRef(0),v=h.useRef(!1),f=h.useRef(!1),[w=!1,E]=il({prop:r,defaultProp:o,onChange:i}),S=h.useCallback(()=>{clearTimeout(m.current),u.current=window.setTimeout(()=>E(!0),l)},[l,E]),P=h.useCallback(()=>{clearTimeout(u.current),!v.current&&!f.current&&(m.current=window.setTimeout(()=>E(!1),s))},[s,E]),x=h.useCallback(()=>E(!1),[E]);return h.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(m.current)},[]),g.jsx(Ak,{scope:t,open:w,onOpenChange:E,onOpen:S,onClose:P,onDismiss:x,hasSelectionRef:v,isPointerDownOnContentRef:f,children:g.jsx(of,{...c,children:n})})};c0.displayName=cf;var d0="HoverCardTrigger",f0=h.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=df(d0,n),i=Ts(n);return g.jsx(Es,{asChild:!0,...i,children:g.jsx(Ne.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:we(e.onPointerEnter,Xa(o.onOpen)),onPointerLeave:we(e.onPointerLeave,Xa(o.onClose)),onFocus:we(e.onFocus,o.onOpen),onBlur:we(e.onBlur,o.onClose),onTouchStart:we(e.onTouchStart,l=>l.preventDefault())})})});f0.displayName=d0;var Ok="HoverCardPortal",[nT,Dk]=u0(Ok,{forceMount:void 0}),Ya="HoverCardContent",p0=h.forwardRef((e,t)=>{const n=Dk(Ya,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=df(Ya,e.__scopeHoverCard);return g.jsx(En,{present:r||i.open,children:g.jsx(jk,{"data-state":i.open?"open":"closed",...o,onPointerEnter:we(e.onPointerEnter,Xa(i.onOpen)),onPointerLeave:we(e.onPointerLeave,Xa(i.onClose)),ref:t})})});p0.displayName=Ya;var jk=h.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...s}=e,c=df(Ya,n),u=Ts(n),m=h.useRef(null),v=De(t,m),[f,w]=h.useState(!1);return h.useEffect(()=>{if(f){const E=document.body;return ku=E.style.userSelect||E.style.webkitUserSelect,E.style.userSelect="none",E.style.webkitUserSelect="none",()=>{E.style.userSelect=ku,E.style.webkitUserSelect=ku}}},[f]),h.useEffect(()=>{if(m.current){const E=()=>{w(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var P;((P=document.getSelection())==null?void 0:P.toString())!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",E),()=>{document.removeEventListener("pointerup",E),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),h.useEffect(()=>{m.current&&Lk(m.current).forEach(S=>S.setAttribute("tabindex","-1"))}),g.jsx(pl,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:we(i,E=>{E.preventDefault()}),onDismiss:c.onDismiss,children:g.jsx(lf,{...u,...s,onPointerDown:we(s.onPointerDown,E=>{E.currentTarget.contains(E.target)&&w(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:v,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Mk="HoverCardArrow",Ik=h.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Ts(n);return g.jsx(af,{...o,...r,ref:t})});Ik.displayName=Mk;function Xa(e){return t=>t.pointerType==="touch"?void 0:e()}function Lk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var zk=c0,Fk=f0,m0=p0;const h0=zk,v0=Fk,ff=h.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>g.jsx(m0,{ref:i,align:t,side:n,sideOffset:r,className:ke("z-50 w-64 text-balance break-words rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ff.displayName=m0.displayName;const g0=h.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:"relative w-full overflow-auto",children:g.jsx("table",{ref:n,className:ke("w-full caption-bottom text-sm",e),...t})}));g0.displayName="Table";const y0=h.forwardRef(({className:e,...t},n)=>g.jsx("thead",{ref:n,className:ke("[&_tr]:border-b",e),...t}));y0.displayName="TableHeader";const w0=h.forwardRef(({className:e,...t},n)=>g.jsx("tbody",{ref:n,className:ke("[&_tr:last-child]:border-0",e),...t}));w0.displayName="TableBody";const $k=h.forwardRef(({className:e,...t},n)=>g.jsx("tfoot",{ref:n,className:ke("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));$k.displayName="TableFooter";const zc=h.forwardRef(({className:e,...t},n)=>g.jsx("tr",{ref:n,className:ke("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));zc.displayName="TableRow";const x0=h.forwardRef(({className:e,...t},n)=>g.jsx("th",{ref:n,className:ke("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));x0.displayName="TableHead";const b0=h.forwardRef(({className:e,children:t,dataType:n,...r},o)=>g.jsx("td",{ref:o,className:ke("max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...r,children:g.jsxs(h0,{children:[g.jsx(v0,{asChild:!0,children:g.jsx("span",{className:"cursor-pointer hover:underline",children:t})}),g.jsx(ff,{side:"bottom",align:"start",children:g.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?g.jsx("span",{className:"max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:t}):t,n&&g.jsx(s0,{className:"text-xs",children:n})]})})]})}));b0.displayName="TableCell";const Hk=h.forwardRef(({className:e,...t},n)=>g.jsx("caption",{ref:n,className:ke("mt-4 text-sm text-muted-foreground",e),...t}));Hk.displayName="TableCaption";const Bk=O.memo(({columnSchema:e})=>e!=null&&e.isPrimaryKey?g.jsx(wC,{className:"h-4 w-4"}):e!=null&&e.isForeignKey?g.jsx(xC,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="BLOB"?g.jsx(vC,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="DATETIME"?g.jsx(hC,{className:"h-4 w-4"}):null),Wk=O.memo(({col:e,columnSchema:t})=>g.jsx(x0,{children:g.jsxs(h0,{children:[g.jsx(v0,{asChild:!0,children:g.jsx("span",{className:"cursor-pointer hover:underline",children:g.jsxs("div",{className:"flex gap-1",children:[e,g.jsx(Bk,{columnSchema:t})]})})}),g.jsx(ff,{side:"bottom",align:"start",children:(t==null?void 0:t.type)||"Unknown"})]})})),Uk=O.memo(({value:e,dataType:t})=>g.jsx(b0,{dataType:t,children:e||g.jsx("span",{className:"italic opacity-40",children:"NULL"})}));function Vk({data:e,columns:t,tableName:n,tableSchemas:r}){const o=h.useMemo(()=>g.jsx(y0,{children:g.jsx(zc,{children:t.map((l,s)=>g.jsx(Wk,{col:l,columnSchema:r[n][l]},s))})}),[t,r,n]),i=h.useMemo(()=>g.jsx(w0,{children:e.map((l,s)=>g.jsx(zc,{children:t.map((c,u)=>{var m;return g.jsx(Uk,{value:l[c],dataType:(m=r[n][c])==null?void 0:m.type},u)})},s))}),[e,t,r,n]);return g.jsxs(g0,{children:[o,i]})}function Fc({children:e}){return g.jsxs("div",{className:"flex items-center justify-center gap-4 rounded border p-4",children:[g.jsx(TC,{className:"h-6 w-6"}),g.jsx("span",{className:"font-semibold",children:e})]})}function S0({children:e}){return g.jsxs("div",{className:"flex items-center justify-center gap-4 rounded border p-4",children:[g.jsx(SC,{className:"h-6 w-6 animate-spin"}),g.jsx("span",{className:"font-semibold",children:e})]})}var pf="Popover",[E0,rT]=Or(pf,[ni]),vl=ni(),[qk,Mr]=E0(pf),C0=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,s=vl(t),c=h.useRef(null),[u,m]=h.useState(!1),[v=!1,f]=il({prop:r,defaultProp:o,onChange:i});return g.jsx(of,{...s,children:g.jsx(qk,{scope:t,contentId:Yr(),triggerRef:c,open:v,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(w=>!w),[f]),hasCustomAnchor:u,onCustomAnchorAdd:h.useCallback(()=>m(!0),[]),onCustomAnchorRemove:h.useCallback(()=>m(!1),[]),modal:l,children:n})})};C0.displayName=pf;var _0="PopoverAnchor",Gk=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mr(_0,n),i=vl(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=o;return h.useEffect(()=>(l(),()=>s()),[l,s]),g.jsx(Es,{...i,...r,ref:t})});Gk.displayName=_0;var k0="PopoverTrigger",P0=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mr(k0,n),i=vl(n),l=De(t,o.triggerRef),s=g.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O0(o.open),...r,ref:l,onClick:we(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:g.jsx(Es,{asChild:!0,...i,children:s})});P0.displayName=k0;var mf="PopoverPortal",[Kk,Qk]=E0(mf,{forceMount:void 0}),R0=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Mr(mf,t);return g.jsx(Kk,{scope:t,forceMount:n,children:g.jsx(En,{present:n||i.open,children:g.jsx(Cs,{asChild:!0,container:o,children:r})})})};R0.displayName=mf;var Go="PopoverContent",N0=h.forwardRef((e,t)=>{const n=Qk(Go,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Mr(Go,e.__scopePopover);return g.jsx(En,{present:r||i.open,children:i.modal?g.jsx(Yk,{...o,ref:t}):g.jsx(Xk,{...o,ref:t})})});N0.displayName=Go;var Yk=h.forwardRef((e,t)=>{const n=Mr(Go,e.__scopePopover),r=h.useRef(null),o=De(t,r),i=h.useRef(!1);return h.useEffect(()=>{const l=r.current;if(l)return sf(l)},[]),g.jsx(ks,{as:_r,allowPinchZoom:!0,children:g.jsx(T0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:we(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),Xk=h.forwardRef((e,t)=>{const n=Mr(Go,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return g.jsx(T0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),T0=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,...v}=e,f=Mr(Go,n),w=vl(n);return Kd(),g.jsx(bs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(pl,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:g.jsx(lf,{"data-state":O0(f.open),role:"dialog",id:f.contentId,...w,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),A0="PopoverClose",Zk=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mr(A0,n);return g.jsx(Ne.button,{type:"button",...r,ref:t,onClick:we(e.onClick,()=>o.onOpenChange(!1))})});Zk.displayName=A0;var Jk="PopoverArrow",eP=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=vl(n);return g.jsx(af,{...o,...r,ref:t})});eP.displayName=Jk;function O0(e){return e?"open":"closed"}var tP=C0,nP=P0,rP=R0,D0=N0;const oP=tP,iP=nP,j0=h.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>g.jsx(rP,{children:g.jsx(D0,{ref:o,align:t,sideOffset:n,className:ke("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));j0.displayName=D0.displayName;function lP(){const{selectedTable:e,tables:t,customQuery:n,db:r}=Ar(),o=h.useCallback((l,s,c,u)=>g.jsx($t,{className:u,onClick:l,title:c,children:g.jsx("span",{className:"ml-2",children:s})}),[]),i=h.useMemo(()=>{var l;return r&&g.jsxs("div",{className:"flex flex-col gap-1",children:[o(()=>gE(r),"Export as SQLite","Download database as SQLite"),o(()=>wE(r,parseInt(e)),`Export ${((l=t[parseInt(e)])==null?void 0:l.name)||"selected"} table as CSV`,"Export selected table as CSV"),o(()=>xE(r),"Export all tables as CSV","Export all tables as CSV"),o(()=>bE(r,n),"Export custom query as CSV","Export the result of the custom query as CSV")]})},[r,o,e,t,n]);return g.jsxs(oP,{children:[g.jsx(iP,{asChild:!0,children:g.jsx($t,{title:"Open export options",children:g.jsx(gC,{className:"h-5 w-5"})})}),g.jsx(j0,{align:"end",className:"w-80",children:i})]})}function aP(){const{tables:e,selectedTable:t,tableSchemas:n,queryError:r,setQueryError:o,rowPerPageOrAuto:i,isCustomQuery:l,setIsCustomQuery:s,customQuery:c,setCustomQuery:u,expandPage:m,setExpandPage:v}=Ar(),{page:f,setPage:w,rowsPerPage:E}=EE(i),S=h.useMemo(()=>{var M;return(M=e[parseInt(t)])==null?void 0:M.name},[e,t]),P=h.useMemo(()=>{var M;return((M=e[parseInt(t)])==null?void 0:M.count)||0},[e,t]),{data:x,columns:y,isQueryLoading:b,handleCustomQuery:_}=SE(S,E,f,l),R=h.useCallback(()=>{o(null),u(""),s(!1)},[s,o,u]),A=h.useCallback(()=>{w(0),R()},[R,w]);h.useEffect(()=>{w(0)},[t]);const N=h.useMemo(()=>g.jsxs("div",{className:"flex flex-col gap-2 md:flex-row",children:[g.jsx(qd,{type:"text",value:c,onChange:M=>u(M.target.value),placeholder:"Enter your custom query",className:"w-full"}),g.jsxs("div",{className:"flex gap-1",children:[g.jsx($t,{className:"w-full",onClick:_,title:"Run custom query",children:g.jsx(kC,{className:"h-5 w-5"})}),g.jsx($t,{className:"w-full",onClick:R,title:"Reset query",children:g.jsx(NC,{className:"h-5 w-5"})}),g.jsx($t,{className:"w-full",onClick:A,title:"Reset to first page",disabled:f===0,children:g.jsx(bC,{className:"h-5 w-5"})})]})]}),[c,_,R,A,f]),D=h.useMemo(()=>b?g.jsxs(S0,{children:["Loading ",S]}):x.length>0?g.jsx("div",{className:"rounded border",children:g.jsx(Vk,{data:x,columns:y,tableName:S,tableSchemas:n})}):g.jsx(Fc,{children:`Table ${S} is empty`}),[b,x,y,S,n]);return g.jsxs("div",{className:"flex flex-col gap-3 pb-8",children:[g.jsxs("section",{className:"flex flex-col gap-2 rounded border p-3 pb-2",children:[g.jsxs("div",{className:"flex h-full gap-1",children:[g.jsx(Pk,{}),g.jsx($t,{className:"expand:block ml-1 hidden",onClick:()=>v(!m),title:"Toggle page size",children:m?g.jsx(CC,{className:"h-5 w-5"}):g.jsx(EC,{className:"h-5 w-5"})}),g.jsx(lP,{})]}),N,r&&g.jsx("p",{className:"text-center text-xs capitalize text-red-500",children:r})]}),D,!l&&g.jsx(AC,{page:f,setPage:w,rowsPerPage:E,rowCount:P})]})}var M0={exports:{}},sP="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uP=sP,cP=uP;function I0(){}function L0(){}L0.resetWarningCache=I0;var dP=function(){function e(r,o,i,l,s,c){if(c!==cP){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:L0,resetWarningCache:I0};return n.PropTypes=n,n};M0.exports=dP();var fP=M0.exports;const $e=al(fP);var pP=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function gl(e,t){var n=mP(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function mP(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=pP.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var hP=[".DS_Store","Thumbs.db"];function vP(e){return ri(this,void 0,void 0,function(){return oi(this,function(t){return Za(e)&&gP(e.dataTransfer)?[2,bP(e.dataTransfer,e.type)]:yP(e)?[2,wP(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,xP(e)]:[2,[]]})})}function gP(e){return Za(e)}function yP(e){return Za(e)&&Za(e.target)}function Za(e){return typeof e=="object"&&e!==null}function wP(e){return $c(e.target.files).map(function(t){return gl(t)})}function xP(e){return ri(this,void 0,void 0,function(){var t;return oi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return gl(r)})]}})})}function bP(e,t){return ri(this,void 0,void 0,function(){var n,r;return oi(this,function(o){switch(o.label){case 0:return e.items?(n=$c(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(SP))]):[3,2];case 1:return r=o.sent(),[2,Bm(z0(r))];case 2:return[2,Bm($c(e.files).map(function(i){return gl(i)}))]}})})}function Bm(e){return e.filter(function(t){return hP.indexOf(t.name)===-1})}function $c(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Gm(n)];if(e.sizen)return[!1,Gm(n)]}return[!0,null]}function Wr(e){return e!=null}function zP(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(c){var u=B0(c,n),m=ll(u,1),v=m[0],f=W0(c,r,o),w=ll(f,1),E=w[0],S=s?s(c):null;return v&&E&&!S})}function Ja(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ta(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Qm(e){e.preventDefault()}function FP(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function $P(e){return e.indexOf("Edge/")!==-1}function HP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return FP(e)||$P(e)}function Tn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oR(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var hf=h.forwardRef(function(e,t){var n=e.children,r=es(e,GP),o=K0(r),i=o.open,l=es(o,KP);return h.useImperativeHandle(t,function(){return{open:i}},[i]),O.createElement(h.Fragment,null,n(Ze(Ze({},l),{},{open:i})))});hf.displayName="Dropzone";var G0={disabled:!1,getFilesFromEvent:vP,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};hf.defaultProps=G0;hf.propTypes={children:$e.func,accept:$e.objectOf($e.arrayOf($e.string)),multiple:$e.bool,preventDropOnDocument:$e.bool,noClick:$e.bool,noKeyboard:$e.bool,noDrag:$e.bool,noDragEventsBubbling:$e.bool,minSize:$e.number,maxSize:$e.number,maxFiles:$e.number,disabled:$e.bool,getFilesFromEvent:$e.func,onFileDialogCancel:$e.func,onFileDialogOpen:$e.func,useFsAccessApi:$e.bool,autoFocus:$e.bool,onDragEnter:$e.func,onDragLeave:$e.func,onDragOver:$e.func,onDrop:$e.func,onDropAccepted:$e.func,onDropRejected:$e.func,onError:$e.func,validator:$e.func};var Uc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function K0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ze(Ze({},G0),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,m=t.onDragLeave,v=t.onDragOver,f=t.onDrop,w=t.onDropAccepted,E=t.onDropRejected,S=t.onFileDialogCancel,P=t.onFileDialogOpen,x=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,_=t.noClick,R=t.noKeyboard,A=t.noDrag,N=t.noDragEventsBubbling,D=t.onError,M=t.validator,L=h.useMemo(function(){return UP(n)},[n]),W=h.useMemo(function(){return WP(n)},[n]),V=h.useMemo(function(){return typeof P=="function"?P:Xm},[P]),$=h.useMemo(function(){return typeof S=="function"?S:Xm},[S]),q=h.useRef(null),Z=h.useRef(null),oe=h.useReducer(iR,Uc),re=Pu(oe,2),I=re[0],B=re[1],ne=I.isFocused,Y=I.isFileDialogActive,X=h.useRef(typeof window<"u"&&window.isSecureContext&&x&&BP()),me=function(){!X.current&&Y&&setTimeout(function(){if(Z.current){var le=Z.current.files;le.length||(B({type:"closeDialog"}),$())}},300)};h.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[Z,Y,$,X]);var pe=h.useRef([]),Me=function(le){q.current&&q.current.contains(le.target)||(le.preventDefault(),pe.current=[])};h.useEffect(function(){return b&&(document.addEventListener("dragover",Qm,!1),document.addEventListener("drop",Me,!1)),function(){b&&(document.removeEventListener("dragover",Qm),document.removeEventListener("drop",Me))}},[q,b]),h.useEffect(function(){return!r&&y&&q.current&&q.current.focus(),function(){}},[q,y,r]);var ce=h.useCallback(function(Q){D?D(Q):console.error(Q)},[D]),ee=h.useCallback(function(Q){Q.preventDefault(),Q.persist(),pt(Q),pe.current=[].concat(XP(pe.current),[Q.target]),ta(Q)&&Promise.resolve(o(Q)).then(function(le){if(!(Ja(Q)&&!N)){var Ie=le.length,Re=Ie>0&&zP({files:le,accept:L,minSize:l,maxSize:i,multiple:s,maxFiles:c,validator:M}),Xe=Ie>0&&!Re;B({isDragAccept:Re,isDragReject:Xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Q)}}).catch(function(le){return ce(le)})},[o,u,ce,N,L,l,i,s,c,M]),xe=h.useCallback(function(Q){Q.preventDefault(),Q.persist(),pt(Q);var le=ta(Q);if(le&&Q.dataTransfer)try{Q.dataTransfer.dropEffect="copy"}catch{}return le&&v&&v(Q),!1},[v,N]),je=h.useCallback(function(Q){Q.preventDefault(),Q.persist(),pt(Q);var le=pe.current.filter(function(Re){return q.current&&q.current.contains(Re)}),Ie=le.indexOf(Q.target);Ie!==-1&&le.splice(Ie,1),pe.current=le,!(le.length>0)&&(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ta(Q)&&m&&m(Q))},[q,m,N]),K=h.useCallback(function(Q,le){var Ie=[],Re=[];Q.forEach(function(Xe){var it=B0(Xe,L),mt=Pu(it,2),Ut=mt[0],dn=mt[1],fn=W0(Xe,l,i),kn=Pu(fn,2),ae=kn[0],ue=kn[1],Te=M?M(Xe):null;if(Ut&&ae&&!Te)Ie.push(Xe);else{var z=[dn,ue];Te&&(z=z.concat(Te)),Re.push({file:Xe,errors:z.filter(function(de){return de})})}}),(!s&&Ie.length>1||s&&c>=1&&Ie.length>c)&&(Ie.forEach(function(Xe){Re.push({file:Xe,errors:[LP]})}),Ie.splice(0)),B({acceptedFiles:Ie,fileRejections:Re,type:"setFiles"}),f&&f(Ie,Re,le),Re.length>0&&E&&E(Re,le),Ie.length>0&&w&&w(Ie,le)},[B,s,L,l,i,c,f,w,E,M]),Se=h.useCallback(function(Q){Q.preventDefault(),Q.persist(),pt(Q),pe.current=[],ta(Q)&&Promise.resolve(o(Q)).then(function(le){Ja(Q)&&!N||K(le,Q)}).catch(function(le){return ce(le)}),B({type:"reset"})},[o,K,ce,N]),ve=h.useCallback(function(){if(X.current){B({type:"openDialog"}),V();var Q={multiple:s,types:W};window.showOpenFilePicker(Q).then(function(le){return o(le)}).then(function(le){K(le,null),B({type:"closeDialog"})}).catch(function(le){VP(le)?($(le),B({type:"closeDialog"})):qP(le)?(X.current=!1,Z.current?(Z.current.value=null,Z.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(le)});return}Z.current&&(B({type:"openDialog"}),V(),Z.current.value=null,Z.current.click())},[B,V,$,x,K,ce,W,s]),J=h.useCallback(function(Q){!q.current||!q.current.isEqualNode(Q.target)||(Q.key===" "||Q.key==="Enter"||Q.keyCode===32||Q.keyCode===13)&&(Q.preventDefault(),ve())},[q,ve]),be=h.useCallback(function(){B({type:"focus"})},[]),ot=h.useCallback(function(){B({type:"blur"})},[]),ze=h.useCallback(function(){_||(HP()?setTimeout(ve,0):ve())},[_,ve]),nt=function(le){return r?null:le},bt=function(le){return R?null:nt(le)},ge=function(le){return A?null:nt(le)},pt=function(le){N&&le.stopPropagation()},rr=h.useMemo(function(){return function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Q.refKey,Ie=le===void 0?"ref":le,Re=Q.role,Xe=Q.onKeyDown,it=Q.onFocus,mt=Q.onBlur,Ut=Q.onClick,dn=Q.onDragEnter,fn=Q.onDragOver,kn=Q.onDragLeave,ae=Q.onDrop,ue=es(Q,QP);return Ze(Ze(Wc({onKeyDown:bt(Tn(Xe,J)),onFocus:bt(Tn(it,be)),onBlur:bt(Tn(mt,ot)),onClick:nt(Tn(Ut,ze)),onDragEnter:ge(Tn(dn,ee)),onDragOver:ge(Tn(fn,xe)),onDragLeave:ge(Tn(kn,je)),onDrop:ge(Tn(ae,Se)),role:typeof Re=="string"&&Re!==""?Re:"presentation"},Ie,q),!r&&!R?{tabIndex:0}:{}),ue)}},[q,J,be,ot,ze,ee,xe,je,Se,R,A,r]),Rt=h.useCallback(function(Q){Q.stopPropagation()},[]),Nt=h.useMemo(function(){return function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Q.refKey,Ie=le===void 0?"ref":le,Re=Q.onChange,Xe=Q.onClick,it=es(Q,YP),mt=Wc({accept:L,multiple:s,type:"file",style:{display:"none"},onChange:nt(Tn(Re,Se)),onClick:nt(Tn(Xe,Rt)),tabIndex:-1},Ie,Z);return Ze(Ze({},mt),it)}},[Z,n,s,Se,r]);return Ze(Ze({},I),{},{isFocused:ne&&!r,getRootProps:rr,getInputProps:Nt,rootRef:q,inputRef:Z,open:nt(ve)})}function iR(e,t){switch(t.type){case"focus":return Ze(Ze({},e),{},{isFocused:!0});case"blur":return Ze(Ze({},e),{},{isFocused:!1});case"openDialog":return Ze(Ze({},Uc),{},{isFileDialogActive:!0});case"closeDialog":return Ze(Ze({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ze(Ze({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ze(Ze({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ze({},Uc);default:return e}}function Xm(){}var lR=e=>{switch(e){case"success":return uR;case"info":return dR;case"warning":return cR;case"error":return fR;default:return null}},aR=Array(12).fill(0),sR=({visible:e})=>O.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},O.createElement("div",{className:"sonner-spinner"},aR.map((t,n)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),uR=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),cR=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),dR=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),fR=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pR=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Vc=1,mR=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Vc++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(vR(i)&&!i.ok){o=!1;let l=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?await t.success(i):t.success,s=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(async i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?await t.error(i):t.error,s=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Vc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},qt=new mR,hR=(e,t)=>{let n=(t==null?void 0:t.id)||Vc++;return qt.addToast({title:e,...t,id:n}),n},vR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",gR=hR,yR=()=>qt.toasts,qc=Object.assign(gR,{success:qt.success,info:qt.info,warning:qt.warning,error:qt.error,custom:qt.custom,message:qt.message,promise:qt.promise,dismiss:qt.dismiss,loading:qt.loading},{getHistory:yR});function wR(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}wR(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} -`);function na(e){return e.label!==void 0}var xR=3,bR="32px",SR=4e3,ER=356,CR=14,_R=20,kR=200;function PR(...e){return e.filter(Boolean).join(" ")}var RR=e=>{var t,n,r,o,i,l,s,c,u,m;let{invert:v,toast:f,unstyled:w,interacting:E,setHeights:S,visibleToasts:P,heights:x,index:y,toasts:b,expanded:_,removeToast:R,defaultRichColors:A,closeButton:N,style:D,cancelButtonStyle:M,actionButtonStyle:L,className:W="",descriptionClassName:V="",duration:$,position:q,gap:Z,loadingIcon:oe,expandByDefault:re,classNames:I,icons:B,closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:Y,cn:X}=e,[me,pe]=O.useState(!1),[Me,ce]=O.useState(!1),[ee,xe]=O.useState(!1),[je,K]=O.useState(!1),[Se,ve]=O.useState(0),[J,be]=O.useState(0),ot=O.useRef(null),ze=O.useRef(null),nt=y===0,bt=y+1<=P,ge=f.type,pt=f.dismissible!==!1,rr=f.className||"",Rt=f.descriptionClassName||"",Nt=O.useMemo(()=>x.findIndex(z=>z.toastId===f.id)||0,[x,f.id]),Q=O.useMemo(()=>{var z;return(z=f.closeButton)!=null?z:N},[f.closeButton,N]),le=O.useMemo(()=>f.duration||$||SR,[f.duration,$]),Ie=O.useRef(0),Re=O.useRef(0),Xe=O.useRef(0),it=O.useRef(null),[mt,Ut]=q.split("-"),dn=O.useMemo(()=>x.reduce((z,de,fe)=>fe>=Nt?z:z+de.height,0),[x,Nt]),fn=pR(),kn=f.invert||v,ae=ge==="loading";Re.current=O.useMemo(()=>Nt*Z+dn,[Nt,dn]),O.useEffect(()=>{pe(!0)},[]),O.useLayoutEffect(()=>{if(!me)return;let z=ze.current,de=z.style.height;z.style.height="auto";let fe=z.getBoundingClientRect().height;z.style.height=de,be(fe),S(Be=>Be.find(Fe=>Fe.toastId===f.id)?Be.map(Fe=>Fe.toastId===f.id?{...Fe,height:fe}:Fe):[{toastId:f.id,height:fe,position:f.position},...Be])},[me,f.title,f.description,S,f.id]);let ue=O.useCallback(()=>{ce(!0),ve(Re.current),S(z=>z.filter(de=>de.toastId!==f.id)),setTimeout(()=>{R(f)},kR)},[f,R,S,Re]);O.useEffect(()=>{if(f.promise&&ge==="loading"||f.duration===1/0||f.type==="loading")return;let z,de=le;return _||E||Y&&fn?(()=>{if(Xe.current{var fe;(fe=f.onAutoClose)==null||fe.call(f,f),ue()},de)),()=>clearTimeout(z)},[_,E,re,f,le,ue,f.promise,ge,Y,fn]),O.useEffect(()=>{let z=ze.current;if(z){let de=z.getBoundingClientRect().height;return be(de),S(fe=>[{toastId:f.id,height:de,position:f.position},...fe]),()=>S(fe=>fe.filter(Be=>Be.toastId!==f.id))}},[S,f.id]),O.useEffect(()=>{f.delete&&ue()},[ue,f.delete]);function Te(){return B!=null&&B.loading?O.createElement("div",{className:"sonner-loader","data-visible":ge==="loading"},B.loading):oe?O.createElement("div",{className:"sonner-loader","data-visible":ge==="loading"},oe):O.createElement(sR,{visible:ge==="loading"})}return O.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:ze,className:X(W,rr,I==null?void 0:I.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[ge],(n=f==null?void 0:f.classNames)==null?void 0:n[ge]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:A,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":me,"data-promise":!!f.promise,"data-removed":Me,"data-visible":bt,"data-y-position":mt,"data-x-position":Ut,"data-index":y,"data-front":nt,"data-swiping":ee,"data-dismissible":pt,"data-type":ge,"data-invert":kn,"data-swipe-out":je,"data-expanded":!!(_||re&&me),style:{"--index":y,"--toasts-before":y,"--z-index":b.length-y,"--offset":`${Me?Se:Re.current}px`,"--initial-height":re?"auto":`${J}px`,...D,...f.style},onPointerDown:z=>{ae||!pt||(ot.current=new Date,ve(Re.current),z.target.setPointerCapture(z.pointerId),z.target.tagName!=="BUTTON"&&(xe(!0),it.current={x:z.clientX,y:z.clientY}))},onPointerUp:()=>{var z,de,fe,Be;if(je||!pt)return;it.current=null;let Fe=Number(((z=ze.current)==null?void 0:z.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Tt=new Date().getTime()-((de=ot.current)==null?void 0:de.getTime()),At=Math.abs(Fe)/Tt;if(Math.abs(Fe)>=_R||At>.11){ve(Re.current),(fe=f.onDismiss)==null||fe.call(f,f),ue(),K(!0);return}(Be=ze.current)==null||Be.style.setProperty("--swipe-amount","0px"),xe(!1)},onPointerMove:z=>{var de;if(!it.current||!pt)return;let fe=z.clientY-it.current.y,Be=z.clientX-it.current.x,Fe=(mt==="top"?Math.min:Math.max)(0,fe),Tt=z.pointerType==="touch"?10:2;Math.abs(Fe)>Tt?(de=ze.current)==null||de.style.setProperty("--swipe-amount",`${fe}px`):Math.abs(Be)>Tt&&(it.current=null)}},Q&&!f.jsx?O.createElement("button",{"aria-label":ne,"data-disabled":ae,"data-close-button":!0,onClick:ae||!pt?()=>{}:()=>{var z;ue(),(z=f.onDismiss)==null||z.call(f,f)},className:X(I==null?void 0:I.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||O.isValidElement(f.title)?f.jsx||f.title:O.createElement(O.Fragment,null,ge||f.icon||f.promise?O.createElement("div",{"data-icon":"",className:X(I==null?void 0:I.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Te():null,f.type!=="loading"?f.icon||(B==null?void 0:B[ge])||lR(ge):null):null,O.createElement("div",{"data-content":"",className:X(I==null?void 0:I.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:X(I==null?void 0:I.title,(s=f==null?void 0:f.classNames)==null?void 0:s.title)},f.title),f.description?O.createElement("div",{"data-description":"",className:X(V,Rt,I==null?void 0:I.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},f.description):null),O.isValidElement(f.cancel)?f.cancel:f.cancel&&na(f.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:z=>{var de,fe;na(f.cancel)&&pt&&((fe=(de=f.cancel).onClick)==null||fe.call(de,z),ue())},className:X(I==null?void 0:I.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,O.isValidElement(f.action)?f.action:f.action&&na(f.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||L,onClick:z=>{var de,fe;na(f.action)&&(z.defaultPrevented||((fe=(de=f.action).onClick)==null||fe.call(de,z),ue()))},className:X(I==null?void 0:I.actionButton,(m=f==null?void 0:f.classNames)==null?void 0:m.actionButton)},f.action.label):null))};function Zm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var NR=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:c="light",richColors:u,duration:m,style:v,visibleToasts:f=xR,toastOptions:w,dir:E=Zm(),gap:S=CR,loadingIcon:P,icons:x,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:b,cn:_=PR}=e,[R,A]=O.useState([]),N=O.useMemo(()=>Array.from(new Set([n].concat(R.filter(Y=>Y.position).map(Y=>Y.position)))),[R,n]),[D,M]=O.useState([]),[L,W]=O.useState(!1),[V,$]=O.useState(!1),[q,Z]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),oe=O.useRef(null),re=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=O.useRef(null),B=O.useRef(!1),ne=O.useCallback(Y=>{var X;(X=R.find(me=>me.id===Y.id))!=null&&X.delete||qt.dismiss(Y.id),A(me=>me.filter(({id:pe})=>pe!==Y.id))},[R]);return O.useEffect(()=>qt.subscribe(Y=>{if(Y.dismiss){A(X=>X.map(me=>me.id===Y.id?{...me,delete:!0}:me));return}setTimeout(()=>{bg.flushSync(()=>{A(X=>{let me=X.findIndex(pe=>pe.id===Y.id);return me!==-1?[...X.slice(0,me),{...X[me],...Y},...X.slice(me+1)]:[Y,...X]})})})}),[]),O.useEffect(()=>{if(c!=="system"){Z(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:Y})=>{Z(Y?"dark":"light")})},[c]),O.useEffect(()=>{R.length<=1&&W(!1)},[R]),O.useEffect(()=>{let Y=X=>{var me,pe;r.every(Me=>X[Me]||X.code===Me)&&(W(!0),(me=oe.current)==null||me.focus()),X.code==="Escape"&&(document.activeElement===oe.current||(pe=oe.current)!=null&&pe.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[r]),O.useEffect(()=>{if(oe.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,B.current=!1)}},[oe.current]),R.length?O.createElement("section",{"aria-label":`${y} ${re}`,tabIndex:-1},N.map((Y,X)=>{var me;let[pe,Me]=Y.split("-");return O.createElement("ol",{key:Y,dir:E==="auto"?Zm():E,tabIndex:-1,ref:oe,className:l,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":pe,"data-x-position":Me,style:{"--front-toast-height":`${((me=D[0])==null?void 0:me.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||bR,"--width":`${ER}px`,"--gap":`${S}px`,...v},onBlur:ce=>{B.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(B.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||B.current||(B.current=!0,I.current=ce.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{V||W(!1)},onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},R.filter(ce=>!ce.position&&X===0||ce.position===Y).map((ce,ee)=>{var xe,je;return O.createElement(RR,{key:ce.id,icons:x,index:ee,toast:ce,defaultRichColors:u,duration:(xe=w==null?void 0:w.duration)!=null?xe:m,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:t,visibleToasts:f,closeButton:(je=w==null?void 0:w.closeButton)!=null?je:i,interacting:V,position:Y,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:ne,toasts:R.filter(K=>K.position==ce.position),heights:D.filter(K=>K.position==ce.position),setHeights:M,expandByDefault:o,gap:S,loadingIcon:P,expanded:L,pauseWhenPageIsHidden:b,cn:_})}))})):null},vf="Dialog",[Q0,Y0]=Or(vf),[TR,Cn]=Q0(vf),X0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=h.useRef(null),c=h.useRef(null),[u=!1,m]=il({prop:r,defaultProp:o,onChange:i});return g.jsx(TR,{scope:t,triggerRef:s,contentRef:c,contentId:Yr(),titleId:Yr(),descriptionId:Yr(),open:u,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(v=>!v),[m]),modal:l,children:n})};X0.displayName=vf;var Z0="DialogTrigger",J0=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Cn(Z0,n),i=De(t,o.triggerRef);return g.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wf(o.open),...r,ref:i,onClick:we(e.onClick,o.onOpenToggle)})});J0.displayName=Z0;var gf="DialogPortal",[AR,ew]=Q0(gf,{forceMount:void 0}),tw=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Cn(gf,t);return g.jsx(AR,{scope:t,forceMount:n,children:h.Children.map(r,l=>g.jsx(En,{present:n||i.open,children:g.jsx(Cs,{asChild:!0,container:o,children:l})}))})};tw.displayName=gf;var ts="DialogOverlay",nw=h.forwardRef((e,t)=>{const n=ew(ts,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Cn(ts,e.__scopeDialog);return i.modal?g.jsx(En,{present:r||i.open,children:g.jsx(OR,{...o,ref:t})}):null});nw.displayName=ts;var OR=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Cn(ts,n);return g.jsx(ks,{as:_r,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(Ne.div,{"data-state":wf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),oo="DialogContent",rw=h.forwardRef((e,t)=>{const n=ew(oo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Cn(oo,e.__scopeDialog);return g.jsx(En,{present:r||i.open,children:i.modal?g.jsx(DR,{...o,ref:t}):g.jsx(jR,{...o,ref:t})})});rw.displayName=oo;var DR=h.forwardRef((e,t)=>{const n=Cn(oo,e.__scopeDialog),r=h.useRef(null),o=De(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return sf(i)},[]),g.jsx(ow,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&i.preventDefault()}),onFocusOutside:we(e.onFocusOutside,i=>i.preventDefault())})}),jR=h.forwardRef((e,t)=>{const n=Cn(oo,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return g.jsx(ow,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),ow=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,s=Cn(oo,n),c=h.useRef(null),u=De(t,c);return Kd(),g.jsxs(g.Fragment,{children:[g.jsx(bs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(pl,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":wf(s.open),...l,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(IR,{titleId:s.titleId}),g.jsx(zR,{contentRef:c,descriptionId:s.descriptionId})]})]})}),yf="DialogTitle",iw=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Cn(yf,n);return g.jsx(Ne.h2,{id:o.titleId,...r,ref:t})});iw.displayName=yf;var lw="DialogDescription",aw=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Cn(lw,n);return g.jsx(Ne.p,{id:o.descriptionId,...r,ref:t})});aw.displayName=lw;var sw="DialogClose",uw=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Cn(sw,n);return g.jsx(Ne.button,{type:"button",...r,ref:t,onClick:we(e.onClick,()=>o.onOpenChange(!1))})});uw.displayName=sw;function wf(e){return e?"open":"closed"}var cw="DialogTitleWarning",[MR,dw]=OC(cw,{contentName:oo,titleName:yf,docsSlug:"dialog"}),IR=({titleId:e})=>{const t=dw(cw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},LR="DialogDescriptionWarning",zR=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dw(LR).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},fw=X0,pw=J0,mw=tw,hw=nw,vw=rw,gw=iw,yw=aw,xf=uw;function FR(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ww=O.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),As=()=>{const e=O.useContext(ww);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};FR("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const $R=typeof window<"u"?h.useLayoutEffect:h.useEffect;function Gc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function HR(){return bf(/^Mac/)}function BR(){return bf(/^iPhone/)}function WR(){return bf(/^iPad/)||HR()&&navigator.maxTouchPoints>1}function xw(){return BR()||WR()}function bf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const Ru=typeof document<"u"&&window.visualViewport;function Jm(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function bw(e){for(Jm(e)&&(e=e.parentElement);e&&!Jm(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const UR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ra=0,Nu;function VR(e={}){let{isDisabled:t}=e;$R(()=>{if(!t)return ra++,ra===1&&(xw()?Nu=GR():Nu=qR()),()=>{ra--,ra===0&&Nu()}},[t])}function qR(){return Gc(Sw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function GR(){let e,t=0,n=v=>{e=bw(v.target),!(e===document.documentElement&&e===document.body)&&(t=v.changedTouches[0].pageY)},r=v=>{if(!e||e===document.documentElement||e===document.body){v.preventDefault();return}let f=v.changedTouches[0].pageY,w=e.scrollTop,E=e.scrollHeight-e.clientHeight;E!==0&&((w<=0&&f>t||w>=E&&f{let f=v.target;Kc(f)&&f!==document.activeElement&&(v.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=v=>{let f=v.target;Kc(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Ru&&(Ru.height{eh(f)}):Ru.addEventListener("resize",()=>eh(f),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,u=Gc(Sw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Gc(Ci(document,"touchstart",n,{passive:!1,capture:!0}),Ci(document,"touchmove",r,{passive:!1,capture:!0}),Ci(document,"touchend",o,{passive:!1,capture:!0}),Ci(document,"focus",i,!0),Ci(window,"scroll",l));return()=>{u(),m(),window.scrollTo(s,c)}}function Sw(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ci(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function eh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=bw(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const l=n.getBoundingClientRect().bottom;i>l&&(n.scrollTop+=o-r)}e=n.parentElement}}function Kc(e){return e instanceof HTMLInputElement&&!UR.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function KR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function QR(...e){return t=>e.forEach(n=>KR(n,t))}function Ew(...e){return h.useCallback(QR(...e),e)}let _i=null;function YR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,s]=O.useState(()=>typeof window<"u"?window.location.href:""),c=O.useRef(0),u=O.useCallback(()=>{if(_i===null&&e&&!i){_i={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:v,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-v}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=f-window.innerHeight;w&&c.current>=f&&(document.body.style.top=`${-(c.current+w)}px`)}),300)}},[e]),m=O.useCallback(()=>{if(_i!==null&&!i){const v=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,_i),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){s(window.location.href);return}window.scrollTo(f,v)}),_i=null}},[l]);return O.useEffect(()=>{function v(){c.current=window.scrollY}return v(),window.addEventListener("scroll",v),()=>{window.removeEventListener("scroll",v)}},[]),O.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,l,t,n,u,m]),{restorePositionSetting:m}}const Cw=new WeakMap;function Ke(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!n&&Cw.set(e,r)}function oa(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Cw.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const ut=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function ia(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[ut(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ut(t)?5:4]):null)}function XR(e){return 8*(Math.log(e+1)-2)}const He={DURATION:.5,EASE:[.32,.72,0,1]},_w=.4;function kw(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function ZR({defaultProp:e,onChange:t}){const n=O.useState(e),[r]=n,o=O.useRef(r),i=kw(t);return O.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function JR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ZR({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=kw(n),c=O.useCallback(u=>{if(i){const v=typeof u=="function"?u(e):u;v!==e&&s(v)}else o(u)},[i,e,o,s]);return[l,c]}function eN({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:s="bottom"}){const[c,u]=JR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),m=O.useMemo(()=>c===(n==null?void 0:n[n.length-1])||null,[n,c]),v=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===c||!n,f=O.useMemo(()=>n==null?void 0:n.findIndex(b=>b===c),[n,c]),w=O.useMemo(()=>{var b;return(b=n==null?void 0:n.map(_=>{const R=typeof window<"u",A=typeof _=="string";let N=0;if(A&&(N=parseInt(_,10)),ut(s)){const M=A?N:R?_*window.innerHeight:0;return R?s==="bottom"?window.innerHeight-M:-window.innerHeight+M:M}const D=A?N:R?_*window.innerWidth:0;return R?s==="right"?window.innerWidth-D:-window.innerWidth+D:D}))!=null?b:[]},[n]),E=O.useMemo(()=>f!==null?w==null?void 0:w[f]:null,[w,f]),S=O.useCallback(b=>{var _;const R=(_=w==null?void 0:w.findIndex(A=>A===b))!=null?_:null;l(R),Ke(r.current,{transition:`transform ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`,transform:ut(s)?`translate3d(0, ${b}px, 0)`:`translate3d(${b}px, 0, 0)`}),w&&R!==w.length-1&&R!==i?Ke(o.current,{transition:`opacity ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`,opacity:"0"}):Ke(o.current,{transition:`opacity ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`,opacity:"1"}),u(R!==null?n==null?void 0:n[R]:null)},[r.current,n,w,i,o,u]);O.useEffect(()=>{if(c||e){var b;const _=(b=n==null?void 0:n.findIndex(R=>R===e||R===c))!=null?b:-1;w&&_!==-1&&typeof w[_]=="number"&&S(w[_])}},[c,e,n,w,S]);function P({draggedDistance:b,closeDrawer:_,velocity:R,dismissible:A}){if(i===void 0)return;const N=s==="bottom"||s==="right"?(E??0)-b:(E??0)+b,D=f===i-1,M=f===0,L=b>0;if(D&&Ke(o.current,{transition:`opacity ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`}),R>2&&!L){A?_():S(w[0]);return}if(R>2&&L&&w&&n){S(w[n.length-1]);return}const W=w==null?void 0:w.reduce(($,q)=>typeof $!="number"||typeof q!="number"?$:Math.abs(q-N)_w&&Math.abs(b)0&&m){S(w[n.length-1]);return}if(M&&$<0&&A&&_(),f===null)return;S(w[f+$]);return}S(W)}function x({draggedDistance:b}){if(E===null)return;const _=s==="bottom"||s==="right"?E-b:E+b;(s==="bottom"||s==="right")&&_w[w.length-1]||Ke(r.current,{transform:ut(s)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function y(b,_){if(!n||typeof f!="number"||!w||i===void 0)return null;const R=f===i-1;if(f>=i&&_)return 0;if(R&&!_)return 1;if(!v&&!R)return null;const N=R?f+1:f-1,D=R?w[N]-w[N-1]:w[N+1]-w[N],M=b/Math.abs(D);return R?1-M:M}return{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:v,getPercentageDragged:y,setActiveSnapPoint:u,activeSnapPointIndex:f,onRelease:P,onDrag:x,snapPointsOffset:w}}const tN=.25,nN=100,th=8,$r=16,nh=26,Tu="vaul-dragging";function Pw({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:s=!1,setBackgroundColorOnScale:c=!0,closeThreshold:u=tN,scrollLockTimeout:m=nN,dismissible:v=!0,handleOnly:f=!1,fadeFromIndex:w=l&&l.length-1,activeSnapPoint:E,setActiveSnapPoint:S,fixed:P,modal:x=!0,onClose:y,noBodyStyles:b,direction:_="bottom",preventScrollRestoration:R=!0,disablePreventScroll:A=!1}){var N;const[D=!1,M]=O.useState(!1),[L,W]=O.useState(!1),[V,$]=O.useState(!1),[q,Z]=O.useState(!1),[oe,re]=O.useState(!1),[I,B]=O.useState(!1),ne=O.useRef(null),Y=O.useRef(null),X=O.useRef(null),me=O.useRef(null),pe=O.useRef(null),Me=O.useRef(!1),ce=O.useRef(null),ee=O.useRef(0),xe=O.useRef(!1),je=O.useRef(0),K=O.useRef(null),Se=O.useRef(((N=K.current)==null?void 0:N.getBoundingClientRect().height)||0),ve=O.useRef(0),J=O.useCallback(ae=>{l&&ae===bt.length-1&&(Y.current=new Date)},[]),{activeSnapPoint:be,activeSnapPointIndex:ot,setActiveSnapPoint:ze,onRelease:nt,snapPointsOffset:bt,onDrag:ge,shouldFade:pt,getPercentageDragged:rr}=eN({snapPoints:l,activeSnapPointProp:E,setActiveSnapPointProp:S,drawerRef:K,fadeFromIndex:w,overlayRef:ne,onSnapPointChange:J,direction:_});VR({isDisabled:!D||oe||!x||I||!L||A});const{restorePositionSetting:Rt}=YR({isOpen:D,modal:x,nested:s,hasBeenOpened:L,preventScrollRestoration:R,noBodyStyles:b});function Nt(){return(window.innerWidth-nh)/window.innerWidth}function Q(ae){var ue;!v&&!l||K.current&&!K.current.contains(ae.target)||(Se.current=((ue=K.current)==null?void 0:ue.getBoundingClientRect().height)||0,re(!0),X.current=new Date,xw()&&window.addEventListener("touchend",()=>Me.current=!1,{once:!0}),ae.target.setPointerCapture(ae.pointerId),ee.current=ut(_)?ae.clientY:ae.clientX)}function le(ae,ue){var Te;let z=ae;const de=(Te=window.getSelection())==null?void 0:Te.toString(),fe=K.current?ia(K.current,_):null,Be=new Date;if(z.hasAttribute("data-vaul-no-drag")||z.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(Y.current&&Be.getTime()-Y.current.getTime()<500)return!1;if(fe!==null&&(_==="bottom"?fe>0:fe<0))return!0;if(de&&de.length>0)return!1;if(pe.current&&Be.getTime()-pe.current.getTime()z.clientHeight){if(z.scrollTop!==0)return pe.current=new Date,!1;if(z.getAttribute("role")==="dialog")return!0}z=z.parentNode}return!0}function Ie(ae){if(K.current&&oe){const ue=_==="bottom"||_==="right"?1:-1,Te=(ee.current-(ut(_)?ae.clientY:ae.clientX))*ue,z=Te>0,de=l&&!v&&!z;if(de&&ot===0)return;const fe=Math.abs(Te),Be=document.querySelector("[vaul-drawer-wrapper]");let Fe=fe/Se.current;const Tt=rr(fe,z);if(Tt!==null&&(Fe=Tt),de&&Fe>=1||!Me.current&&!le(ae.target,z))return;if(K.current.classList.add(Tu),Me.current=!0,Ke(K.current,{transition:"none"}),Ke(ne.current,{transition:"none"}),l&&ge({draggedDistance:Te}),z&&!l){const Pn=XR(Te),G=Math.min(Pn*-1,0)*ue;Ke(K.current,{transform:ut(_)?`translate3d(0, ${G}px, 0)`:`translate3d(${G}px, 0, 0)`});return}const At=1-Fe;if((pt||w&&ot===w-1)&&(o==null||o(ae,Fe),Ke(ne.current,{opacity:`${At}`,transition:"none"},!0)),Be&&ne.current&&r){const Pn=Math.min(Nt()+Fe*(1-Nt()),1),G=8-Fe*8,so=Math.max(0,14-Fe*14);Ke(Be,{borderRadius:`${G}px`,transform:ut(_)?`scale(${Pn}) translate3d(0, ${so}px, 0)`:`scale(${Pn}) translate3d(${so}px, 0, 0)`,transition:"none"},!0)}if(!l){const Pn=fe*ue;Ke(K.current,{transform:ut(_)?`translate3d(0, ${Pn}px, 0)`:`translate3d(${Pn}px, 0, 0)`})}}}O.useEffect(()=>()=>{Ut(!1),Rt()},[]),O.useEffect(()=>{var ae;function ue(){if(!K.current)return;const Te=document.activeElement;if(Kc(Te)||xe.current){var z;const de=((z=window.visualViewport)==null?void 0:z.height)||0;let fe=window.innerHeight-de;const Be=K.current.getBoundingClientRect().height||0;ve.current||(ve.current=Be);const Fe=K.current.getBoundingClientRect().top;if(Math.abs(je.current-fe)>60&&(xe.current=!xe.current),l&&l.length>0&&bt&&ot){const Tt=bt[ot]||0;fe+=Tt}if(je.current=fe,Be>de||xe.current){const Tt=K.current.getBoundingClientRect().height;let At=Tt;Tt>de&&(At=de-nh),P?K.current.style.height=`${Tt-Math.max(fe,0)}px`:K.current.style.height=`${Math.max(At,de-Fe)}px`}else K.current.style.height=`${ve.current}px`;l&&l.length>0&&!xe.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(fe,0)}px`}}return(ae=window.visualViewport)==null||ae.addEventListener("resize",ue),()=>{var Te;return(Te=window.visualViewport)==null?void 0:Te.removeEventListener("resize",ue)}},[ot,l,bt]);function Re(){K.current&&(it(),y==null||y(),Ke(K.current,{transform:ut(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`}),Ke(ne.current,{opacity:"0",transition:`opacity ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`}),Ut(!1),setTimeout(()=>{$(!1),M(!1)},300),setTimeout(()=>{l&&ze(l[0])},He.DURATION*1e3))}O.useEffect(()=>{if(!D&&r){const ae=setTimeout(()=>{oa(document.body)},200);return()=>clearTimeout(ae)}},[D,r]),O.useLayoutEffect(()=>{e?(M(!0),W(!0)):Re()},[e]),O.useEffect(()=>{q&&(t==null||t(D))},[D]),O.useEffect(()=>{Z(!0)},[]);function Xe(){if(!K.current)return;const ae=document.querySelector("[vaul-drawer-wrapper]"),ue=ia(K.current,_);Ke(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`}),Ke(ne.current,{transition:`opacity ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`,opacity:"1"}),r&&ue&&ue>0&&D&&Ke(ae,{borderRadius:`${th}px`,overflow:"hidden",...ut(_)?{transform:`scale(${Nt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Nt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${He.DURATION}s`,transitionTimingFunction:`cubic-bezier(${He.EASE.join(",")})`},!0)}function it(){!oe||!K.current||(K.current.classList.remove(Tu),Me.current=!1,re(!1),me.current=new Date)}function mt(ae){if(!oe||!K.current)return;K.current.classList.remove(Tu),Me.current=!1,re(!1),me.current=new Date;const ue=ia(K.current,_);if(!le(ae.target,!1)||!ue||Number.isNaN(ue)||X.current===null)return;const Te=me.current.getTime()-X.current.getTime(),z=ee.current-(ut(_)?ae.clientY:ae.clientX),de=Math.abs(z)/Te;if(de>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),l){nt({draggedDistance:z*(_==="bottom"||_==="right"?1:-1),closeDrawer:Re,velocity:de,dismissible:v}),i==null||i(ae,!0);return}if(_==="bottom"||_==="right"?z>0:z<0){Xe(),i==null||i(ae,!0);return}if(de>_w){Re(),i==null||i(ae,!1);return}var fe;const Be=Math.min((fe=K.current.getBoundingClientRect().height)!=null?fe:0,window.innerHeight);if(ue>=Be*u){Re(),i==null||i(ae,!1);return}i==null||i(ae,!0),Xe()}O.useEffect(()=>{D&&(Ke(document.documentElement,{scrollBehavior:"auto"}),Y.current=new Date,Ut(!0))},[D]),O.useEffect(()=>{if(K.current&&V){var ae;const ue=K==null||(ae=K.current)==null?void 0:ae.querySelectorAll("*");ue==null||ue.forEach(Te=>{const z=Te;(z.scrollHeight>z.clientHeight||z.scrollWidth>z.clientWidth)&&z.classList.add("vaul-scrollable")})}},[V]);function Ut(ae){const ue=document.querySelector("[vaul-drawer-wrapper]");!ue||!r||(ae?(c&&(b||(Ke(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),Ke(document.body,{background:"black"},!0))),Ke(ue,{borderRadius:`${th}px`,overflow:"hidden",...ut(_)?{transform:`scale(${Nt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Nt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${He.DURATION}s`,transitionTimingFunction:`cubic-bezier(${He.EASE.join(",")})`})):(oa(ue,"overflow"),oa(ue,"transform"),oa(ue,"borderRadius"),Ke(ue,{transitionProperty:"transform, border-radius",transitionDuration:`${He.DURATION}s`,transitionTimingFunction:`cubic-bezier(${He.EASE.join(",")})`})))}function dn(ae){const ue=ae?(window.innerWidth-$r)/window.innerWidth:1,Te=ae?-$r:0;ce.current&&window.clearTimeout(ce.current),Ke(K.current,{transition:`transform ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`,transform:`scale(${ue}) translate3d(0, ${Te}px, 0)`}),!ae&&K.current&&(ce.current=setTimeout(()=>{const z=ia(K.current,_);Ke(K.current,{transition:"none",transform:ut(_)?`translate3d(0, ${z}px, 0)`:`translate3d(${z}px, 0, 0)`})},500))}function fn(ae,ue){if(ue<0)return;const Te=ut(_)?window.innerHeight:window.innerWidth,z=(Te-$r)/Te,de=z+ue*(1-z),fe=-$r+ue*$r;Ke(K.current,{transform:ut(_)?`scale(${de}) translate3d(0, ${fe}px, 0)`:`scale(${de}) translate3d(${fe}px, 0, 0)`,transition:"none"})}function kn(ae,ue){const Te=ut(_)?window.innerHeight:window.innerWidth,z=ue?(Te-$r)/Te:1,de=ue?-$r:0;ue&&Ke(K.current,{transition:`transform ${He.DURATION}s cubic-bezier(${He.EASE.join(",")})`,transform:ut(_)?`scale(${z}) translate3d(0, ${de}px, 0)`:`scale(${z}) translate3d(${de}px, 0, 0)`})}return O.createElement(fw,{modal:x,onOpenChange:ae=>{if(e!==void 0){t==null||t(ae);return}ae?(W(!0),M(ae)):Re()},open:D},O.createElement(ww.Provider,{value:{visible:V,activeSnapPoint:be,snapPoints:l,setActiveSnapPoint:ze,drawerRef:K,overlayRef:ne,scaleBackground:Ut,onOpenChange:t,onPress:Q,setVisible:$,onRelease:mt,onDrag:Ie,dismissible:v,handleOnly:f,isOpen:D,isDragging:oe,shouldFade:pt,closeDrawer:Re,onNestedDrag:fn,onNestedOpenChange:dn,onNestedRelease:kn,keyboardIsOpen:xe,openProp:e,modal:x,snapPointsOffset:bt,direction:_}},n))}const rN=250,oN=120,Rw=O.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:s,activeSnapPoint:c,setActiveSnapPoint:u,dismissible:m,handleOnly:v,onPress:f,onDrag:w}=As(),E=O.useRef(null),S=O.useRef(!1);function P(){if(S.current){b();return}window.setTimeout(()=>{x()},oN)}function x(){if(l||e||S.current){b();return}if(b(),(!s||s.length===0)&&m){i();return}if(c===s[s.length-1]&&m){i();return}const R=s.findIndex(N=>N===c);if(R===-1)return;const A=s[R+1];u(A)}function y(){E.current=window.setTimeout(()=>{S.current=!0},rN)}function b(){window.clearTimeout(E.current),S.current=!1}return O.createElement("div",{onClick:P,onDoubleClick:()=>{S.current=!0,i()},onPointerCancel:b,onPointerDown:_=>{v&&f(_),y()},onPointerMove:_=>{v&&w(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},O.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});Rw.displayName="Drawer.Handle";const Nw=O.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:s,visible:c}=As(),u=Ew(n,r),m=o&&o.length>0;return O.createElement(hw,{onMouseUp:i,ref:u,"vaul-drawer-visible":c?"true":"false","vaul-overlay":"","vaul-snap-points":s&&m?"true":"false","vaul-snap-points-overlay":s&&l?"true":"false",...t})});Nw.displayName="Drawer.Overlay";const Tw=O.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:s,onRelease:c,onDrag:u,dismissible:m,keyboardIsOpen:v,snapPointsOffset:f,visible:w,closeDrawer:E,modal:S,openProp:P,onOpenChange:x,setVisible:y,handleOnly:b,direction:_}=As(),R=Ew(i,l),A=O.useRef(null),N=O.useRef(!1),D=(M,L,W=0)=>{if(N.current)return!0;const V=Math.abs(M.y),$=Math.abs(M.x),q=$>V,Z=["bottom","right"].includes(L)?1:-1;if(L==="left"||L==="right"){if(!(M.x*Z<0)&&$>=0&&$<=W)return q}else if(!(M.y*Z<0)&&V>=0&&V<=W)return!q;return N.current=!0,!0};return O.useEffect(()=>{y(!0)},[]),O.createElement(vw,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":w?"true":"false",...o,ref:R,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...r}:r,onOpenAutoFocus:M=>{if(e)e(M);else{var L;M.preventDefault(),(L=l.current)==null||L.focus()}},onPointerDown:M=>{b||(o.onPointerDown==null||o.onPointerDown.call(o,M),A.current={x:M.clientX,y:M.clientY},s(M))},onPointerDownOutside:M=>{if(t==null||t(M),!S||M.defaultPrevented){M.preventDefault();return}v.current&&(v.current=!1),M.preventDefault(),x==null||x(!1),!(!m||P!==void 0)&&E()},onFocusOutside:M=>{if(!S){M.preventDefault();return}},onEscapeKeyDown:M=>{if(!S){M.preventDefault();return}},onPointerMove:M=>{if(b||(o.onPointerMove==null||o.onPointerMove.call(o,M),!A.current))return;const L=M.clientY-A.current.y,W=M.clientX-A.current.x,V=M.pointerType==="touch"?10:2;D({x:W,y:L},_,V)?u(M):(Math.abs(W)>V||Math.abs(L)>V)&&(A.current=null)},onPointerUp:M=>{o.onPointerUp==null||o.onPointerUp.call(o,M),A.current=null,N.current=!1,c(M)}})});Tw.displayName="Drawer.Content";function iN({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=As();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return O.createElement(Pw,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,s)=>{r(l,s),e==null||e(l,s)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const _n={Root:Pw,NestedRoot:iN,Content:Tw,Handle:Rw,Overlay:Nw,Trigger:pw,Portal:mw,Close:xf,Title:gw,Description:yw},Aw=({shouldScaleBackground:e=!0,...t})=>g.jsx(_n.Root,{shouldScaleBackground:e,...t});Aw.displayName="Drawer";const lN=_n.Trigger,aN=_n.Portal,sN=_n.Close,Ow=h.forwardRef(({className:e,...t},n)=>g.jsx(_n.Overlay,{ref:n,className:ke("fixed inset-0 z-50 bg-black/80",e),...t}));Ow.displayName=_n.Overlay.displayName;const Dw=h.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(aN,{children:[g.jsx(Ow,{}),g.jsxs(_n.Content,{ref:r,className:ke("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[g.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Dw.displayName="DrawerContent";const jw=({className:e,...t})=>g.jsx("div",{className:ke("grid gap-1.5 p-4 text-center sm:text-left",e),...t});jw.displayName="DrawerHeader";const Mw=({className:e,...t})=>g.jsx("div",{className:ke("mt-auto flex flex-col gap-2 p-4",e),...t});Mw.displayName="DrawerFooter";const Iw=h.forwardRef(({className:e,...t},n)=>g.jsx(_n.Title,{ref:n,className:ke("text-lg font-semibold leading-none tracking-tight",e),...t}));Iw.displayName=_n.Title.displayName;const Lw=h.forwardRef(({className:e,...t},n)=>g.jsx(_n.Description,{ref:n,className:ke("text-sm text-muted-foreground",e),...t}));Lw.displayName=_n.Description.displayName;function uN(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Sf="ScrollArea",[zw,oT]=Or(Sf),[cN,cn]=zw(Sf),Fw=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...l}=e,[s,c]=h.useState(null),[u,m]=h.useState(null),[v,f]=h.useState(null),[w,E]=h.useState(null),[S,P]=h.useState(null),[x,y]=h.useState(0),[b,_]=h.useState(0),[R,A]=h.useState(!1),[N,D]=h.useState(!1),M=De(t,W=>c(W)),L=Bg(o);return g.jsx(cN,{scope:n,type:r,dir:L,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:m,content:v,onContentChange:f,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:R,onScrollbarXEnabledChange:A,scrollbarY:S,onScrollbarYChange:P,scrollbarYEnabled:N,onScrollbarYEnabledChange:D,onCornerWidthChange:y,onCornerHeightChange:_,children:g.jsx(Ne.div,{dir:L,...l,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});Fw.displayName=Sf;var $w="ScrollAreaViewport",Hw=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=e,l=cn($w,n),s=h.useRef(null),c=De(t,s,l.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),g.jsx(Ne.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Hw.displayName=$w;var Fn="ScrollAreaScrollbar",Ef=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=cn(Fn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,s=e.orientation==="horizontal";return h.useEffect(()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)}),[s,i,l]),o.type==="hover"?g.jsx(dN,{...r,ref:t,forceMount:n}):o.type==="scroll"?g.jsx(fN,{...r,ref:t,forceMount:n}):o.type==="auto"?g.jsx(Bw,{...r,ref:t,forceMount:n}):o.type==="always"?g.jsx(Cf,{...r,ref:t}):null});Ef.displayName=Fn;var dN=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=cn(Fn,e.__scopeScrollArea),[i,l]=h.useState(!1);return h.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const u=()=>{window.clearTimeout(c),l(!0)},m=()=>{c=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",m),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",m)}}},[o.scrollArea,o.scrollHideDelay]),g.jsx(En,{present:n||i,children:g.jsx(Bw,{"data-state":i?"visible":"hidden",...r,ref:t})})}),fN=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=cn(Fn,e.__scopeScrollArea),i=e.orientation==="horizontal",l=Ds(()=>c("SCROLL_END"),100),[s,c]=uN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,c]),h.useEffect(()=>{const u=o.viewport,m=i?"scrollLeft":"scrollTop";if(u){let v=u[m];const f=()=>{const w=u[m];v!==w&&(c("SCROLL"),l()),v=w};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,c,l]),g.jsx(En,{present:n||s!=="hidden",children:g.jsx(Cf,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:we(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:we(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Bw=h.forwardRef((e,t)=>{const n=cn(Fn,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,l]=h.useState(!1),s=e.orientation==="horizontal",c=Ds(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=cn(Fn,e.__scopeScrollArea),i=h.useRef(null),l=h.useRef(0),[s,c]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Gw(s.viewport,s.content),m={...r,sizes:s,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:f=>l.current=f};function v(f,w){return yN(f,l.current,s,w)}return n==="horizontal"?g.jsx(pN,{...m,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,w=rh(f,s,o.dir);i.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=v(f,o.dir))}}):n==="vertical"?g.jsx(mN,{...m,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,w=rh(f,s);i.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=v(f))}}):null}),pN=h.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=cn(Fn,e.__scopeScrollArea),[l,s]=h.useState(),c=h.useRef(null),u=De(t,c,i.onScrollbarXChange);return h.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),g.jsx(Uw,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Os(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,v)=>{if(i.viewport){const f=i.viewport.scrollLeft+m.deltaX;e.onWheelScroll(f),Qw(f,v)&&m.preventDefault()}},onResize:()=>{c.current&&i.viewport&&l&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:rs(l.paddingLeft),paddingEnd:rs(l.paddingRight)}})}})}),mN=h.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=cn(Fn,e.__scopeScrollArea),[l,s]=h.useState(),c=h.useRef(null),u=De(t,c,i.onScrollbarYChange);return h.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),g.jsx(Uw,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Os(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,v)=>{if(i.viewport){const f=i.viewport.scrollTop+m.deltaY;e.onWheelScroll(f),Qw(f,v)&&m.preventDefault()}},onResize:()=>{c.current&&i.viewport&&l&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:rs(l.paddingTop),paddingEnd:rs(l.paddingBottom)}})}})}),[hN,Ww]=zw(Fn),Uw=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:m,onResize:v,...f}=e,w=cn(Fn,n),[E,S]=h.useState(null),P=De(t,M=>S(M)),x=h.useRef(null),y=h.useRef(""),b=w.viewport,_=r.content-r.viewport,R=_t(m),A=_t(c),N=Ds(v,10);function D(M){if(x.current){const L=M.clientX-x.current.left,W=M.clientY-x.current.top;u({x:L,y:W})}}return h.useEffect(()=>{const M=L=>{const W=L.target;(E==null?void 0:E.contains(W))&&R(L,_)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[b,E,_,R]),h.useEffect(A,[r,A]),Ko(E,N),Ko(w.content,N),g.jsx(hN,{scope:n,scrollbar:E,hasThumb:o,onThumbChange:_t(i),onThumbPointerUp:_t(l),onThumbPositionChange:A,onThumbPointerDown:_t(s),children:g.jsx(Ne.div,{...f,ref:P,style:{position:"absolute",...f.style},onPointerDown:we(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),x.current=E.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),D(M))}),onPointerMove:we(e.onPointerMove,D),onPointerUp:we(e.onPointerUp,M=>{const L=M.target;L.hasPointerCapture(M.pointerId)&&L.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=y.current,w.viewport&&(w.viewport.style.scrollBehavior=""),x.current=null})})})}),ns="ScrollAreaThumb",Vw=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ww(ns,e.__scopeScrollArea);return g.jsx(En,{present:n||o.hasThumb,children:g.jsx(vN,{ref:t,...r})})}),vN=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=cn(ns,n),l=Ww(ns,n),{onThumbPositionChange:s}=l,c=De(t,v=>l.onThumbChange(v)),u=h.useRef(),m=Ds(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{const v=i.viewport;if(v){const f=()=>{if(m(),!u.current){const w=wN(v,s);u.current=w,s()}};return s(),v.addEventListener("scroll",f),()=>v.removeEventListener("scroll",f)}},[i.viewport,m,s]),g.jsx(Ne.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:we(e.onPointerDownCapture,v=>{const w=v.target.getBoundingClientRect(),E=v.clientX-w.left,S=v.clientY-w.top;l.onThumbPointerDown({x:E,y:S})}),onPointerUp:we(e.onPointerUp,l.onThumbPointerUp)})});Vw.displayName=ns;var _f="ScrollAreaCorner",qw=h.forwardRef((e,t)=>{const n=cn(_f,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?g.jsx(gN,{...e,ref:t}):null});qw.displayName=_f;var gN=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=cn(_f,n),[i,l]=h.useState(0),[s,c]=h.useState(0),u=!!(i&&s);return Ko(o.scrollbarX,()=>{var v;const m=((v=o.scrollbarX)==null?void 0:v.offsetHeight)||0;o.onCornerHeightChange(m),c(m)}),Ko(o.scrollbarY,()=>{var v;const m=((v=o.scrollbarY)==null?void 0:v.offsetWidth)||0;o.onCornerWidthChange(m),l(m)}),u?g.jsx(Ne.div,{...r,ref:t,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function rs(e){return e?parseInt(e,10):0}function Gw(e,t){const n=e/t;return isNaN(n)?0:n}function Os(e){const t=Gw(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function yN(e,t,n,r="ltr"){const o=Os(n),i=o/2,l=t||i,s=o-l,c=n.scrollbar.paddingStart+l,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,m=n.content-n.viewport,v=r==="ltr"?[0,m]:[m*-1,0];return Kw([c,u],v)(e)}function rh(e,t,n="ltr"){const r=Os(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,s=i-r,c=n==="ltr"?[0,l]:[l*-1,0],u=Pc(e,c);return Kw([0,l],[0,s])(u)}function Kw(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Qw(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,s=n.top!==i.top;(l||s)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Ds(e,t){const n=_t(e),r=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),h.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ko(e,t){const n=_t(t);Pt(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var Yw=Fw,xN=Hw,bN=qw;const Xw=h.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Yw,{ref:r,className:ke("relative overflow-hidden",e),...n,children:[g.jsx(xN,{className:"h-full w-full rounded-[inherit]",children:t}),g.jsx(Zw,{}),g.jsx(bN,{})]}));Xw.displayName=Yw.displayName;const Zw=h.forwardRef(({className:e,orientation:t="vertical",...n},r)=>g.jsx(Ef,{ref:r,orientation:t,className:ke("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:g.jsx(Vw,{className:"relative flex-1 rounded-full bg-border"})}));Zw.displayName=Ef.displayName;var SN="Separator",oh="horizontal",EN=["horizontal","vertical"],Jw=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=oh,...o}=e,i=CN(r)?r:oh,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return g.jsx(Ne.div,{"data-orientation":i,...s,...o,ref:t})});Jw.displayName=SN;function CN(e){return EN.includes(e)}var e1=Jw;const t1=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>g.jsx(e1,{ref:o,decorative:n,orientation:t,className:ke("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));t1.displayName=e1.displayName;const ih="rowsPerPage";function _N(){const{setRowPerPageOrAuto:e,setIsCustomQuery:t,queryHestory:n}=Ar(),[r,o]=h.useState(null),[i,l]=h.useState(!1);h.useEffect(()=>{const m=localStorage.getItem(ih);if(m)if(m==="auto")l(!0);else{const v=Number(m);o(v),e(v)}},[e]);const s=h.useCallback(m=>{const v=Number(m.target.value);isNaN(v)||(o(v),l(!1))},[]),c=h.useCallback(()=>{l(m=>!m)},[]),u=h.useCallback(()=>{if(t(!1),r===null){qc.error("Please provide a number of rows per page or set it to auto.");return}if(r<1){qc.error("Please provide a positive number of rows per page.");return}const m=i?"auto":r.toString();localStorage.setItem(ih,m),e(i?"auto":r)},[r,i,t,e]);return g.jsxs(Aw,{children:[g.jsx(lN,{asChild:!0,children:g.jsx($t,{className:"grow",title:"Open settings drawer",children:g.jsx(PC,{className:"h-5 w-5"})})}),g.jsx(Dw,{children:g.jsxs("div",{className:"mx-auto w-full max-w-md",children:[g.jsxs(jw,{children:[g.jsx(Iw,{children:"Settings"}),g.jsx(Lw,{children:"Personalize your site experience here."})]}),g.jsxs("div",{className:"flex flex-col gap-4 p-4 pb-0",children:[g.jsxs("div",{children:[g.jsx("p",{className:"mb-1 text-sm text-muted-foreground",children:"Rows Per Page"}),g.jsxs("div",{className:"flex items-center justify-center gap-1 rounded border p-2",children:[g.jsx(qd,{value:r||"",onChange:s,disabled:i,placeholder:"Number of rows",type:"number",name:"rowsPerPage"}),g.jsx("span",{className:"h-full text-center text-sm text-muted-foreground",children:"OR"}),g.jsx($t,{className:i?"border border-primary":"",onClick:c,title:"Toggle auto rows per page",variant:"outline",children:"Auto Calculate"})]}),g.jsx($t,{className:"mt-2 w-full",onClick:u,title:"Save rows per page settings",variant:"outline",children:g.jsx("span",{children:"Save"})})]}),g.jsxs("div",{children:[g.jsxs("p",{className:"mb-1 text-sm text-muted-foreground",children:["Query History (",n.length,")"]}),g.jsx(Xw,{className:"h-48 rounded-md border",children:g.jsx("div",{className:"p-4",children:n.map((m,v)=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"text-sm",children:m},v),g.jsx(t1,{className:"my-2"})]}))})})]})]}),g.jsx(Mw,{children:g.jsx(sN,{asChild:!0,children:g.jsx($t,{title:"Close settings drawer",variant:"outline",children:"Close"})})})]})})]})}const lh="darkMode",ah="animate-circular-reveal";function n1(){const[e,t]=h.useState(!1),n=h.useCallback(o=>{t(o),document.body.classList.toggle("dark",o),localStorage.setItem(lh,o.toString()),document.body.classList.add(ah),setTimeout(()=>{document.body.classList.remove(ah)},500)},[]);h.useEffect(()=>{const o=localStorage.getItem(lh),i=o!==null?o==="true":window.matchMedia("(prefers-color-scheme: dark)").matches;n(i);const l=c=>{n(c.matches)},s=window.matchMedia("(prefers-color-scheme: dark)");return s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[n]);const r=h.useCallback(()=>{n(!e)},[e,n]);return g.jsx($t,{className:"relative grow",onClick:r,title:e?"Enable light mode":"Enable dark mode",children:e?g.jsx(RC,{className:"h-5 w-5"}):g.jsx(_C,{className:"h-5 w-5"})})}const kN={"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]},PN={CHINOOK:"https://github.com/vwh/sqlite-viewer/raw/main/db_examples/chinook.db"};function RN(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=Ar(),[o,i]=h.useState([]),l=h.useCallback(async(v,f)=>{if(i([]),t([]),n("0"),v.length>0&&await e(v[0]),f.length>0){const w=f.flatMap(E=>E.errors);i(w)}},[e,t,n]),{getRootProps:s,getInputProps:c}=K0({onDrop:l,multiple:!1,accept:kN}),u=h.useCallback(v=>g.jsxs("div",{className:`flex h-full items-center justify-center gap-2 ${v?"px-[10px]":"px-0"}`,children:[g.jsxs("div",{...s(),className:`flex h-full grow cursor-pointer flex-col items-center justify-center rounded border p-6 text-center ${v?"py-0":"py-32"}`,children:[g.jsx("input",{id:"file-upload",...c()}),g.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),g.jsx("p",{className:"hidden sm:block",children:"Drag and drop a SQLite file here, or click to select one"}),g.jsx("p",{className:"block sm:hidden",children:v?"Click to select a file":"Click to select a SQLite file"}),!v&&g.jsx("a",{href:PN.CHINOOK,className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),v&&g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsx(n1,{}),g.jsx(_N,{})]})]}),[s,c]),m=h.useMemo(()=>u(!!r),[u,r]);return g.jsxs("section",{children:[m,g.jsx(NN,{errors:o})]})}const NN=O.memo(({errors:e})=>(O.useEffect(()=>{e==null||e.forEach(t=>qc(t.message,{position:"bottom-right"}))},[e]),null));function TN(){const[e,t]=h.useState(()=>document.body.classList.contains("dark"));return h.useEffect(()=>{const n=new MutationObserver(()=>{t(document.body.classList.contains("dark"))});return n.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()},[]),e}function AN(){const t=TN()?"/sqlite-dark.webp":"/sqlite-light.webp";return g.jsx("section",{className:"flex justify-center rounded border py-3",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("img",{id:"logo",title:"SQLite Logo",src:t,alt:"SQLite Logo",width:"170",height:"80",draggable:"false"}),g.jsx("p",{className:"text-sm",children:"View SQLite files in the browser"})]})})}var r1="AlertDialog",[ON,iT]=Or(r1,[Y0]),nr=Y0(),o1=e=>{const{__scopeAlertDialog:t,...n}=e,r=nr(t);return g.jsx(fw,{...r,...n,modal:!0})};o1.displayName=r1;var DN="AlertDialogTrigger",jN=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=nr(n);return g.jsx(pw,{...o,...r,ref:t})});jN.displayName=DN;var MN="AlertDialogPortal",i1=e=>{const{__scopeAlertDialog:t,...n}=e,r=nr(t);return g.jsx(mw,{...r,...n})};i1.displayName=MN;var IN="AlertDialogOverlay",l1=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=nr(n);return g.jsx(hw,{...o,...r,ref:t})});l1.displayName=IN;var Lo="AlertDialogContent",[LN,zN]=ON(Lo),a1=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=nr(n),l=h.useRef(null),s=De(t,l),c=h.useRef(null);return g.jsx(MR,{contentName:Lo,titleName:s1,docsSlug:"alert-dialog",children:g.jsx(LN,{scope:n,cancelRef:c,children:g.jsxs(vw,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:we(o.onOpenAutoFocus,u=>{var m;u.preventDefault(),(m=c.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[g.jsx(Lg,{children:r}),g.jsx($N,{contentRef:l})]})})})});a1.displayName=Lo;var s1="AlertDialogTitle",u1=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=nr(n);return g.jsx(gw,{...o,...r,ref:t})});u1.displayName=s1;var c1="AlertDialogDescription",d1=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=nr(n);return g.jsx(yw,{...o,...r,ref:t})});d1.displayName=c1;var FN="AlertDialogAction",f1=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=nr(n);return g.jsx(xf,{...o,...r,ref:t})});f1.displayName=FN;var p1="AlertDialogCancel",m1=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=zN(p1,n),i=nr(n),l=De(t,o);return g.jsx(xf,{...i,...r,ref:l})});m1.displayName=p1;var $N=({contentRef:e})=>{const t=`\`${Lo}\` requires a description for the component to be accessible for screen reader users. - -You can add a description to the \`${Lo}\` by passing a \`${c1}\` component as a child, which also benefits sighted users by adding visible context to the dialog. - -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Lo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. - -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return h.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},HN=o1,BN=i1,h1=l1,v1=a1,g1=f1,y1=m1,w1=u1,x1=d1;const WN=HN,UN=BN,b1=h.forwardRef(({className:e,...t},n)=>g.jsx(h1,{className:ke("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));b1.displayName=h1.displayName;const S1=h.forwardRef(({className:e,...t},n)=>g.jsxs(UN,{children:[g.jsx(b1,{}),g.jsx(v1,{ref:n,className:ke("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));S1.displayName=v1.displayName;const E1=({className:e,...t})=>g.jsx("div",{className:ke("flex flex-col space-y-2 text-left",e),...t});E1.displayName="AlertDialogHeader";const C1=({className:e,...t})=>g.jsx("div",{className:ke("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});C1.displayName="AlertDialogFooter";const _1=h.forwardRef(({className:e,...t},n)=>g.jsx(w1,{ref:n,className:ke("text-lg font-semibold",e),...t}));_1.displayName=w1.displayName;const k1=h.forwardRef(({className:e,...t},n)=>g.jsx(x1,{ref:n,className:ke("text-sm",e),...t}));k1.displayName=x1.displayName;const P1=h.forwardRef(({className:e,...t},n)=>g.jsx(g1,{ref:n,className:ke(Gd(),e),...t}));P1.displayName=g1.displayName;const R1=h.forwardRef(({className:e,...t},n)=>g.jsx(y1,{ref:n,className:ke(Gd({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));R1.displayName=y1.displayName;function VN({showDialog:e,setShowDialog:t,fn:n}){return g.jsx(WN,{open:e,onOpenChange:t,children:g.jsxs(S1,{children:[g.jsxs(E1,{children:[g.jsx(_1,{children:"Retry using a proxy?"}),g.jsx(k1,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),g.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),g.jsxs(C1,{children:[g.jsx(R1,{onClick:()=>t(!1),children:"Cancel"}),g.jsx(P1,{onClick:n,children:"Confirm"})]})]})})}const qN="https://github.com/vwh/sqlite-viewer";function GN(){return g.jsxs("footer",{className:"flex items-center justify-between rounded border p-4",children:[g.jsxs("div",{children:[g.jsx("p",{className:"hidden text-xs sm:block",children:"No file will be uploaded to server. using JavaScript, sql.js"}),g.jsx("p",{className:"block text-xs sm:hidden",children:"No file uploads to server."}),g.jsxs("a",{href:qN,target:"_blank",className:"flex items-center gap-1 text-sm text-link hover:underline",title:"Star on GitHub",children:[g.jsx(yC,{className:"h-4 w-4"}),g.jsx("span",{children:"Star us on GitHub"})]})]}),g.jsx("div",{className:"flex gap-1",children:g.jsx(n1,{})})]})}function KN(){const{db:e,tables:t,isLoading:n,loadDatabase:r,expandPage:o}=Ar(),[i,l]=h.useState(null),[s,c]=h.useState(!1),[u,m]=h.useState(null),[v,f]=h.useState(!1),w=h.useRef(!1),E=h.useCallback(async(x,y=!1)=>{try{f(!0);const b=y?`https://corsproxy.io/?${encodeURIComponent(x)}`:x,_=await fetch(b);if(!_.ok)throw new Error("URL not found or invalid");const R=await _.blob(),A=new File([R],"database.sqlite");await r(A),l(null)}catch(b){y?l(`Error whilefetching, ${b instanceof Error?b.message:String(b)}`):(m(x),c(!0))}finally{f(!1)}},[r]);h.useEffect(()=>{if(w.current)return;const y=new URLSearchParams(window.location.search).get("url");y&&(E(decodeURIComponent(y)),w.current=!0)},[E]);const S=h.useCallback(()=>{u&&(E(u,!0),c(!1))},[u,E]),P=()=>n||v?g.jsxs(S0,{children:[v?"Fetching":"Loading"," SQLite file"]}):i&&!e?g.jsx(Fc,{children:i}):e?t.length>0?g.jsx(aP,{}):g.jsx(Fc,{children:"Your database is empty, no tables found"}):null;return g.jsxs("main",{className:`mx-auto flex h-screen flex-col gap-3 p-4 ${o?"w-full":"container"}`,children:[!e&&g.jsx(AN,{}),g.jsx(RN,{}),P(),g.jsx(VN,{showDialog:s,setShowDialog:c,fn:S}),!e&&g.jsx(GN,{})]})}var sh=["light","dark"],QN="(prefers-color-scheme: dark)",YN=h.createContext(void 0),XN={setTheme:e=>{},themes:[]},ZN=()=>{var e;return(e=h.useContext(YN))!=null?e:XN};h.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,attrs:s,nonce:c})=>{let u=i==="system",m=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(E=>`'${E}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,v=o?sh.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(E,S=!1,P=!0)=>{let x=l?l[E]:E,y=S?E+"|| ''":`'${x}'`,b="";return o&&P&&!S&&sh.includes(E)&&(b+=`d.style.colorScheme = '${E}';`),n==="class"?S||x?b+=`c.add(${y})`:b+="null":x&&(b+=`d[s](n,${y})`),b},w=e?`!function(){${m}${f(e)}}()`:r?`!function(){try{${m}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${QN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${f(l?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${v}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${f(l?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${v}}catch(t){}}();`;return h.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:w}})});const JN=({...e})=>{const{theme:t="system"}=ZN();return g.jsx(NR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-background group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};Au.createRoot(document.getElementById("root")).render(g.jsxs(O.StrictMode,{children:[g.jsx(KN,{}),g.jsx(JN,{})]})); diff --git a/assets/lucide-react-CvnTk8cx.js b/assets/lucide-react-CvnTk8cx.js new file mode 100644 index 0000000..6f47673 --- /dev/null +++ b/assets/lucide-react-CvnTk8cx.js @@ -0,0 +1,126 @@ +import{r as h}from"./react-DmpIMwDM.js";/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),r=(...t)=>t.filter((a,o,n)=>!!a&&n.indexOf(a)===o).join(" ");/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var m={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v=h.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:s="",children:y,iconNode:k,...c},p)=>h.createElement("svg",{ref:p,...m,width:a,height:a,stroke:t,strokeWidth:n?Number(o)*24/Number(a):o,className:r("lucide",s),...c},[...k.map(([d,i])=>h.createElement(d,i)),...Array.isArray(y)?y:[y]]));/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e=(t,a)=>{const o=h.forwardRef(({className:n,...s},y)=>h.createElement(v,{ref:y,iconNode:a,className:r(`lucide-${l(t)}`,n),...s}));return o.displayName=`${t}`,o};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M=e("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x=e("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g=e("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w=e("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f=e("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C=e("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b=e("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L=e("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j=e("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z=e("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q=e("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A=e("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const R=e("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S=e("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H=e("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K=e("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D=e("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T=e("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V=e("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E=e("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $=e("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);export{g as C,L as D,j as G,z as K,R as L,H as M,D as P,T as S,$ as T,w as a,x as b,f as c,M as d,q as e,b as f,C as g,E as h,A as i,S as j,V as k,K as l}; diff --git a/assets/lucide-react-CvnTk8cx.js.gz b/assets/lucide-react-CvnTk8cx.js.gz new file mode 100644 index 0000000..902a5ce Binary files /dev/null and b/assets/lucide-react-CvnTk8cx.js.gz differ diff --git a/assets/next-themes-D3kinvIj.js b/assets/next-themes-D3kinvIj.js new file mode 100644 index 0000000..b733d19 --- /dev/null +++ b/assets/next-themes-D3kinvIj.js @@ -0,0 +1 @@ +import{r as n}from"./react-DmpIMwDM.js";var g=["light","dark"],k="(prefers-color-scheme: dark)",E=n.createContext(void 0),b={setTheme:a=>{},themes:[]},w=()=>{var a;return(a=n.useContext(E))!=null?a:b};n.memo(({forcedTheme:a,storageKey:$,attribute:c,enableSystem:v,enableColorScheme:d,defaultTheme:l,value:e,attrs:y,nonce:S})=>{let u=l==="system",m=c==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${y.map(r=>`'${r}'`).join(",")})`};`:`var d=document.documentElement,n='${c}',s='setAttribute';`,h=d?g.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",t=(r,i=!1,p=!0)=>{let o=e?e[r]:r,f=i?r+"|| ''":`'${o}'`,s="";return d&&p&&!i&&g.includes(r)&&(s+=`d.style.colorScheme = '${r}';`),c==="class"?i||o?s+=`c.add(${f})`:s+="null":o&&(s+=`d[s](n,${f})`),s},x=a?`!function(){${m}${t(a)}}()`:v?`!function(){try{${m}var e=localStorage.getItem('${$}');if('system'===e||(!e&&${u})){var t='${k}',m=window.matchMedia(t);if(m.media!==t||m.matches){${t("dark")}}else{${t("light")}}}else if(e){${e?`var x=${JSON.stringify(e)};`:""}${t(e?"x[e]":"e",!0)}}${u?"":"else{"+t(l,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${$}');if(e){${e?`var x=${JSON.stringify(e)};`:""}${t(e?"x[e]":"e",!0)}}else{${t(l,!1,!1)};}${h}}catch(t){}}();`;return n.createElement("script",{nonce:S,dangerouslySetInnerHTML:{__html:x}})});export{w as j}; diff --git a/assets/next-themes-D3kinvIj.js.gz b/assets/next-themes-D3kinvIj.js.gz new file mode 100644 index 0000000..4dd2fbc Binary files /dev/null and b/assets/next-themes-D3kinvIj.js.gz differ diff --git a/assets/prop-types-psm7UO16.js b/assets/prop-types-psm7UO16.js new file mode 100644 index 0000000..d503092 --- /dev/null +++ b/assets/prop-types-psm7UO16.js @@ -0,0 +1 @@ +import{g as c}from"./attr-accept-BWI1aNlo.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function n(){}function a(){}a.resetWarningCache=n;var T=function(){function e(f,h,l,P,g,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:n};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const R=c(u);export{R as P}; diff --git a/assets/react-DmpIMwDM.js b/assets/react-DmpIMwDM.js new file mode 100644 index 0000000..c4a9013 --- /dev/null +++ b/assets/react-DmpIMwDM.js @@ -0,0 +1,17 @@ +import{g as N}from"./attr-accept-BWI1aNlo.js";function U(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}},v={},O={exports:{}},u={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var y=Symbol.for("react.element"),V=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),H=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Y=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),$=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,P={};function p(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||g}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I(){}I.prototype=p.prototype;function S(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||g}var E=S.prototype=new I;E.constructor=S;C(E,p.prototype);E.isPureReactComponent=!0;var w=Array.isArray,T=Object.prototype.hasOwnProperty,R={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,o={},i=null,c=null;if(t!=null)for(r in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(i=""+t.key),t)T.call(t,r)&&!D.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sl=Object.prototype.hasOwnProperty,ha=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ru={},lu={};function va(e){return Sl.call(lu,e)?!0:Sl.call(ru,e)?!1:ha.test(e)?lu[e]=!0:(ru[e]=!0,!1)}function ga(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ya(e,n,t,r){if(n===null||typeof n>"u"||ga(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ee(e,n,t,r,l,i,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=u}var Y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Y[e]=new ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Y[n]=new ee(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Y[e]=new ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Y[e]=new ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Y[e]=new ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Y[e]=new ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Y[e]=new ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Y[e]=new ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Y[e]=new ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var di=/[\-:]([a-z])/g;function pi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(di,pi);Y[n]=new ee(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(di,pi);Y[n]=new ee(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(di,pi);Y[n]=new ee(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Y[e]=new ee(e,1,!1,e.toLowerCase(),null,!1,!1)});Y.xlinkHref=new ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Y[e]=new ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function mi(e,n,t,r){var l=Y.hasOwnProperty(n)?Y[n]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{Zr=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?lt(e):""}function wa(e){switch(e.tag){case 5:return lt(e.type);case 16:return lt("Lazy");case 13:return lt("Suspense");case 19:return lt("SuspenseList");case 0:case 2:case 15:return e=Jr(e.type,!1),e;case 11:return e=Jr(e.type.render,!1),e;case 1:return e=Jr(e.type,!0),e;default:return""}}function xl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xn:return"Fragment";case Cn:return"Portal";case kl:return"Profiler";case hi:return"StrictMode";case El:return"Suspense";case Cl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case po:return(e.displayName||"Context")+".Consumer";case fo:return(e._context.displayName||"Context")+".Provider";case vi:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gi:return n=e.displayName||null,n!==null?n:xl(e.type)||"Memo";case He:n=e._payload,e=e._init;try{return xl(e(n))}catch{}}return null}function Sa(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xl(n);case 8:return n===hi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ho(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ka(e){var n=ho(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Vt(e){e._valueTracker||(e._valueTracker=ka(e))}function vo(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ho(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function cr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nl(e,n){var t=n.checked;return F({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function uu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=tn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function go(e,n){n=n.checked,n!=null&&mi(e,"checked",n,!1)}function zl(e,n){go(e,n);var t=tn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Pl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Pl(e,n.type,tn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function ou(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Pl(e,n,t){(n!=="number"||cr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var it=Array.isArray;function Fn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=At.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function yt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var st={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ea=["Webkit","ms","Moz","O"];Object.keys(st).forEach(function(e){Ea.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),st[n]=st[e]})});function ko(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||st.hasOwnProperty(e)&&st[e]?(""+n).trim():n+"px"}function Eo(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ko(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Ca=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tl(e,n){if(n){if(Ca[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(v(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(v(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(v(61))}if(n.style!=null&&typeof n.style!="object")throw Error(v(62))}}function Ml(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dl=null;function yi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rl=null,In=null,jn=null;function cu(e){if(e=It(e)){if(typeof Rl!="function")throw Error(v(280));var n=e.stateNode;n&&(n=Ur(n),Rl(e.stateNode,e.type,n))}}function Co(e){In?jn?jn.push(e):jn=[e]:In=e}function xo(){if(In){var e=In,n=jn;if(jn=In=null,cu(e),n)for(e=0;e>>=0,e===0?32:31-(Oa(e)/Fa|0)|0}var Bt=64,Ht=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=ut(o):(i&=u,i!==0&&(r=ut(i)))}else u=t&~l,u!==0?r=ut(u):i!==0&&(r=ut(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Ot(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ee(n),e[n]=t}function Va(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ct),wu=" ",Su=!1;function Wo(e,n){switch(e){case"keyup":return pc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $o(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function hc(e,n){switch(e){case"compositionend":return $o(n);case"keypress":return n.which!==32?null:(Su=!0,wu);case"textInput":return e=n.data,e===wu&&Su?null:e;default:return null}}function vc(e,n){if(Nn)return e==="compositionend"||!zi&&Wo(e,n)?(e=Ho(),nr=Ci=Ke=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xu(t)}}function Go(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Go(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zo(){for(var e=window,n=cr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=cr(e.document)}return n}function Pi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Nc(e){var n=Zo(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Go(t.ownerDocument.documentElement,t)){if(r!==null&&Pi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Nu(t,i);var u=Nu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,zn=null,Vl=null,dt=null,Al=!1;function zu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Al||zn==null||zn!==cr(r)||(r=zn,"selectionStart"in r&&Pi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),dt&&xt(dt,r)||(dt=r,r=gr(Vl,"onSelect"),0Ln||(e.current=Kl[Ln],Kl[Ln]=null,Ln--)}function L(e,n){Ln++,Kl[Ln]=e.current,e.current=n}var rn={},J=un(rn),re=un(!1),hn=rn;function Hn(e,n){var t=e.type.contextTypes;if(!t)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function le(e){return e=e.childContextTypes,e!=null}function wr(){M(re),M(J)}function Ru(e,n,t){if(J.current!==rn)throw Error(v(168));L(J,n),L(re,t)}function is(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(v(108,Sa(e)||"Unknown",l));return F({},t,r)}function Sr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,hn=J.current,L(J,e),L(re,re.current),!0}function Ou(e,n,t){var r=e.stateNode;if(!r)throw Error(v(169));t?(e=is(e,n,hn),r.__reactInternalMemoizedMergedChildContext=e,M(re),M(J),L(J,e)):M(re),L(re,t)}var Me=null,Vr=!1,fl=!1;function us(e){Me===null?Me=[e]:Me.push(e)}function jc(e){Vr=!0,us(e)}function on(){if(!fl&&Me!==null){fl=!0;var e=0,n=_;try{var t=Me;for(_=1;e>=u,l-=u,De=1<<32-Ee(n)+l|t<N?(H=x,x=null):H=x.sibling;var P=p(c,x,f[N],g);if(P===null){x===null&&(x=H);break}e&&x&&P.alternate===null&&n(c,x),a=i(P,a,N),C===null?E=P:C.sibling=P,C=P,x=H}if(N===f.length)return t(c,x),D&&sn(c,N),E;if(x===null){for(;NN?(H=x,x=null):H=x.sibling;var Ae=p(c,x,P.value,g);if(Ae===null){x===null&&(x=H);break}e&&x&&Ae.alternate===null&&n(c,x),a=i(Ae,a,N),C===null?E=Ae:C.sibling=Ae,C=Ae,x=H}if(P.done)return t(c,x),D&&sn(c,N),E;if(x===null){for(;!P.done;N++,P=f.next())P=h(c,P.value,g),P!==null&&(a=i(P,a,N),C===null?E=P:C.sibling=P,C=P);return D&&sn(c,N),E}for(x=r(c,x);!P.done;N++,P=f.next())P=y(x,c,N,P.value,g),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?N:P.key),a=i(P,a,N),C===null?E=P:C.sibling=P,C=P);return e&&x.forEach(function(ca){return n(c,ca)}),D&&sn(c,N),E}function j(c,a,f,g){if(typeof f=="object"&&f!==null&&f.type===xn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Ut:e:{for(var E=f.key,C=a;C!==null;){if(C.key===E){if(E=f.type,E===xn){if(C.tag===7){t(c,C.sibling),a=l(C,f.props.children),a.return=c,c=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===He&&ju(E)===C.type){t(c,C.sibling),a=l(C,f.props),a.ref=nt(c,C,f),a.return=c,c=a;break e}t(c,C);break}else n(c,C);C=C.sibling}f.type===xn?(a=mn(f.props.children,c.mode,g,f.key),a.return=c,c=a):(g=ar(f.type,f.key,f.props,null,c.mode,g),g.ref=nt(c,a,f),g.return=c,c=g)}return u(c);case Cn:e:{for(C=f.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=wl(f,c.mode,g),a.return=c,c=a}return u(c);case He:return C=f._init,j(c,a,C(f._payload),g)}if(it(f))return S(c,a,f,g);if(Zn(f))return k(c,a,f,g);Gt(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=yl(f,c.mode,g),a.return=c,c=a),u(c)):t(c,a)}return j}var Wn=cs(!0),fs=cs(!1),Cr=un(null),xr=null,Dn=null,Mi=null;function Di(){Mi=Dn=xr=null}function Ri(e){var n=Cr.current;M(Cr),e._currentValue=n}function Gl(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Vn(e,n){xr=e,Mi=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(te=!0),e.firstContext=null)}function ve(e){var n=e._currentValue;if(Mi!==e)if(e={context:e,memoizedValue:n,next:null},Dn===null){if(xr===null)throw Error(v(308));Dn=e,xr.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return n}var fn=null;function Oi(e){fn===null?fn=[e]:fn.push(e)}function ds(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,Oi(n)):(t.next=l.next,l.next=t),n.interleaved=t,je(e,r)}function je(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Qe=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ps(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oe(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function qe(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,je(e,t)}return l=r.interleaved,l===null?(n.next=n,Oi(r)):(n.next=l.next,l.next=n),r.interleaved=n,je(e,t)}function rr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Si(e,t)}}function Uu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=u:i=i.next=u,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Nr(e,n,t,r){var l=e.updateQueue;Qe=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var s=o,d=s.next;s.next=null,u===null?i=d:u.next=d,u=s;var m=e.alternate;m!==null&&(m=m.updateQueue,o=m.lastBaseUpdate,o!==u&&(o===null?m.firstBaseUpdate=d:o.next=d,m.lastBaseUpdate=s))}if(i!==null){var h=l.baseState;u=0,m=d=s=null,o=i;do{var p=o.lane,y=o.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:y,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var S=e,k=o;switch(p=n,y=t,k.tag){case 1:if(S=k.payload,typeof S=="function"){h=S.call(y,h,p);break e}h=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=k.payload,p=typeof S=="function"?S.call(y,h,p):S,p==null)break e;h=F({},h,p);break e;case 2:Qe=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[o]:p.push(o))}else y={eventTime:y,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(d=m=y,s=h):m=m.next=y,u|=p;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;p=o,o=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(s=h),l.baseState=s,l.firstBaseUpdate=d,l.lastBaseUpdate=m,n=l.shared.interleaved,n!==null){l=n;do u|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);yn|=u,e.lanes=u,e.memoizedState=h}}function Vu(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=pl.transition;pl.transition={};try{e(!1),n()}finally{_=t,pl.transition=r}}function Ts(){return ge().memoizedState}function Bc(e,n,t){var r=en(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ms(e))Ds(n,t);else if(t=ds(e,n,t,r),t!==null){var l=b();Ce(t,e,r,l),Rs(t,n,r)}}function Hc(e,n,t){var r=en(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ds(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,xe(o,u)){var s=n.interleaved;s===null?(l.next=l,Oi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ds(e,n,l,r),t!==null&&(l=b(),Ce(t,e,r,l),Rs(t,n,r))}}function Ms(e){var n=e.alternate;return e===O||n!==null&&n===O}function Ds(e,n){pt=Pr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Rs(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Si(e,t)}}var _r={readContext:ve,useCallback:X,useContext:X,useEffect:X,useImperativeHandle:X,useInsertionEffect:X,useLayoutEffect:X,useMemo:X,useReducer:X,useRef:X,useState:X,useDebugValue:X,useDeferredValue:X,useTransition:X,useMutableSource:X,useSyncExternalStore:X,useId:X,unstable_isNewReconciler:!1},Qc={readContext:ve,useCallback:function(e,n){return ze().memoizedState=[e,n===void 0?null:n],e},useContext:ve,useEffect:Bu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ir(4194308,4,Ns.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ir(4194308,4,e,n)},useInsertionEffect:function(e,n){return ir(4,2,e,n)},useMemo:function(e,n){var t=ze();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=ze();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Bc.bind(null,O,e),[r.memoizedState,e]},useRef:function(e){var n=ze();return e={current:e},n.memoizedState=e},useState:Au,useDebugValue:Qi,useDeferredValue:function(e){return ze().memoizedState=e},useTransition:function(){var e=Au(!1),n=e[0];return e=Ac.bind(null,e[1]),ze().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=O,l=ze();if(D){if(t===void 0)throw Error(v(407));t=t()}else{if(t=n(),W===null)throw Error(v(349));gn&30||gs(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,Bu(ws.bind(null,r,i,e),[e]),r.flags|=2048,Dt(9,ys.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=ze(),n=W.identifierPrefix;if(D){var t=Re,r=De;t=(r&~(1<<32-Ee(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Tt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Pe]=n,e[Pt]=r,Qs(e,n,!1,!1),n.stateNode=e;e:{switch(u=Ml(t,r),t){case"dialog":T("cancel",e),T("close",e),l=r;break;case"iframe":case"object":case"embed":T("load",e),l=r;break;case"video":case"audio":for(l=0;lYn&&(n.flags|=128,r=!0,tt(i,!1),n.lanes=4194304)}else{if(!r)if(e=zr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),tt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!D)return G(n),null}else 2*U()-i.renderingStartTime>Yn&&t!==1073741824&&(n.flags|=128,r=!0,tt(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=U(),n.sibling=null,t=R.current,L(R,r?t&1|2:t&1),n):(G(n),null);case 22:case 23:return Gi(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ue&1073741824&&(G(n),n.subtreeFlags&6&&(n.flags|=8192)):G(n),null;case 24:return null;case 25:return null}throw Error(v(156,n.tag))}function Jc(e,n){switch(Li(n),n.tag){case 1:return le(n.type)&&wr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return $n(),M(re),M(J),Ui(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ji(n),null;case 13:if(M(R),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(v(340));Qn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(R),null;case 4:return $n(),null;case 10:return Ri(n.type._context),null;case 22:case 23:return Gi(),null;case 24:return null;default:return null}}var Jt=!1,Z=!1,qc=typeof WeakSet=="function"?WeakSet:Set,w=null;function Rn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){I(e,n,r)}else t.current=null}function li(e,n,t){try{t()}catch(r){I(e,n,r)}}var qu=!1;function bc(e,n){if(Bl=hr,e=Zo(),Pi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,m=0,h=e,p=null;n:for(;;){for(var y;h!==t||l!==0&&h.nodeType!==3||(o=u+l),h!==i||r!==0&&h.nodeType!==3||(s=u+r),h.nodeType===3&&(u+=h.nodeValue.length),(y=h.firstChild)!==null;)p=h,h=y;for(;;){if(h===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++m===r&&(s=u),(y=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=y}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Hl={focusedElem:e,selectionRange:t},hr=!1,w=n;w!==null;)if(n=w,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,w=e;else for(;w!==null;){n=w;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,j=S.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:we(n.type,k),j);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(v(163))}}catch(g){I(n,n.return,g)}if(e=n.sibling,e!==null){e.return=n.return,w=e;break}w=n.return}return S=qu,qu=!1,S}function mt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&li(n,t,i)}l=l.next}while(l!==r)}}function Hr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ii(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Ks(e){var n=e.alternate;n!==null&&(e.alternate=null,Ks(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Pe],delete n[Pt],delete n[$l],delete n[Fc],delete n[Ic])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ys(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ys(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ui(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=yr));else if(r!==4&&(e=e.child,e!==null))for(ui(e,n,t),e=e.sibling;e!==null;)ui(e,n,t),e=e.sibling}function oi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oi(e,n,t),e=e.sibling;e!==null;)oi(e,n,t),e=e.sibling}var $=null,Se=!1;function Be(e,n,t){for(t=t.child;t!==null;)Xs(e,n,t),t=t.sibling}function Xs(e,n,t){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(Or,t)}catch{}switch(t.tag){case 5:Z||Rn(t,n);case 6:var r=$,l=Se;$=null,Be(e,n,t),$=r,Se=l,$!==null&&(Se?(e=$,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):$.removeChild(t.stateNode));break;case 18:$!==null&&(Se?(e=$,t=t.stateNode,e.nodeType===8?cl(e.parentNode,t):e.nodeType===1&&cl(e,t),Et(e)):cl($,t.stateNode));break;case 4:r=$,l=Se,$=t.stateNode.containerInfo,Se=!0,Be(e,n,t),$=r,Se=l;break;case 0:case 11:case 14:case 15:if(!Z&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&li(t,n,u),l=l.next}while(l!==r)}Be(e,n,t);break;case 1:if(!Z&&(Rn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){I(t,n,o)}Be(e,n,t);break;case 21:Be(e,n,t);break;case 22:t.mode&1?(Z=(r=Z)||t.memoizedState!==null,Be(e,n,t),Z=r):Be(e,n,t);break;default:Be(e,n,t)}}function eo(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new qc),n.forEach(function(r){var l=af.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ye(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=U()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nf(r/1960))-r,10e?16:e,Ye===null)var r=!1;else{if(e=Ye,Ye=null,Mr=0,z&6)throw Error(v(331));var l=z;for(z|=4,w=e.current;w!==null;){var i=w,u=i.child;if(w.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sU()-Yi?pn(e,0):Ki|=t),ie(e,n)}function ta(e,n){n===0&&(e.mode&1?(n=Ht,Ht<<=1,!(Ht&130023424)&&(Ht=4194304)):n=1);var t=b();e=je(e,n),e!==null&&(Ot(e,n,t),ie(e,t))}function sf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ta(e,t)}function af(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(v(314))}r!==null&&r.delete(n),ta(e,t)}var ra;ra=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||re.current)te=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return te=!1,Gc(e,n,t);te=!!(e.flags&131072)}else te=!1,D&&n.flags&1048576&&os(n,Er,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;ur(e,n),e=n.pendingProps;var l=Hn(n,J.current);Vn(n,t),l=Ai(null,n,r,e,l,t);var i=Bi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,le(r)?(i=!0,Sr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fi(n),l.updater=Br,n.stateNode=l,l._reactInternals=n,Jl(n,r,e,t),n=ei(null,n,r,!0,i,t)):(n.tag=0,D&&i&&_i(n),q(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(ur(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=ff(r),e=we(r,e),l){case 0:n=bl(null,n,r,e,t);break e;case 1:n=Gu(null,n,r,e,t);break e;case 11:n=Yu(null,n,r,e,t);break e;case 14:n=Xu(null,n,r,we(r.type,e),t);break e}throw Error(v(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),bl(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),Gu(e,n,r,l,t);case 3:e:{if(As(n),e===null)throw Error(v(387));r=n.pendingProps,i=n.memoizedState,l=i.element,ps(e,n),Nr(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=Kn(Error(v(423)),n),n=Zu(e,n,r,t,l);break e}else if(r!==l){l=Kn(Error(v(424)),n),n=Zu(e,n,r,t,l);break e}else for(oe=Je(n.stateNode.containerInfo.firstChild),se=n,D=!0,ke=null,t=fs(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Qn(),r===l){n=Ue(e,n,t);break e}q(e,n,r,t)}n=n.child}return n;case 5:return ms(n),e===null&&Xl(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Ql(r,l)?u=null:i!==null&&Ql(r,i)&&(n.flags|=32),Vs(e,n),q(e,n,u,t),n.child;case 6:return e===null&&Xl(n),null;case 13:return Bs(e,n,t);case 4:return Ii(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Wn(n,null,r,t):q(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),Yu(e,n,r,l,t);case 7:return q(e,n,n.pendingProps,t),n.child;case 8:return q(e,n,n.pendingProps.children,t),n.child;case 12:return q(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,L(Cr,r._currentValue),r._currentValue=u,i!==null)if(xe(i.value,u)){if(i.children===l.children&&!re.current){n=Ue(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Oe(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?s.next=s:(s.next=m.next,m.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Gl(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(v(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),Gl(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}q(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Vn(n,t),l=ve(l),r=r(l),n.flags|=1,q(e,n,r,t),n.child;case 14:return r=n.type,l=we(r,n.pendingProps),l=we(r.type,l),Xu(e,n,r,l,t);case 15:return js(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),ur(e,n),n.tag=1,le(r)?(e=!0,Sr(n)):e=!1,Vn(n,t),Os(n,r,l),Jl(n,r,l,t),ei(null,n,r,!0,e,t);case 19:return Hs(e,n,t);case 22:return Us(e,n,t)}throw Error(v(156,n.tag))};function la(e,n){return Mo(e,n)}function cf(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function me(e,n,t,r){return new cf(e,n,t,r)}function Ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ff(e){if(typeof e=="function")return Ji(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vi)return 11;if(e===gi)return 14}return 2}function nn(e,n){var t=e.alternate;return t===null?(t=me(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function ar(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")Ji(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case xn:return mn(t.children,l,i,n);case hi:u=8,l|=8;break;case kl:return e=me(12,t,n,l|2),e.elementType=kl,e.lanes=i,e;case El:return e=me(13,t,n,l),e.elementType=El,e.lanes=i,e;case Cl:return e=me(19,t,n,l),e.elementType=Cl,e.lanes=i,e;case mo:return Wr(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fo:u=10;break e;case po:u=9;break e;case vi:u=11;break e;case gi:u=14;break e;case He:u=16,r=null;break e}throw Error(v(130,e==null?e:typeof e,""))}return n=me(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function mn(e,n,t,r){return e=me(7,e,r,n),e.lanes=t,e}function Wr(e,n,t,r){return e=me(22,e,r,n),e.elementType=mo,e.lanes=t,e.stateNode={isHidden:!1},e}function yl(e,n,t){return e=me(6,e,null,n),e.lanes=t,e}function wl(e,n,t){return n=me(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function df(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=br(0),this.expirationTimes=br(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=br(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function qi(e,n,t,r,l,i,u,o,s){return e=new df(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=me(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(i),e}function pf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sa)}catch(e){console.error(e)}}sa(),ao.exports=ce;var aa=ao.exports;const kf=fa(aa);var so=aa;tu.createRoot=so.createRoot,tu.hydrateRoot=so.hydrateRoot;export{kf as G,tu as c,aa as r}; diff --git a/assets/react-dom-tIxIBQuZ.js.gz b/assets/react-dom-tIxIBQuZ.js.gz new file mode 100644 index 0000000..ece6827 Binary files /dev/null and b/assets/react-dom-tIxIBQuZ.js.gz differ diff --git a/assets/react-dropzone-D-IBOhIS.js b/assets/react-dropzone-D-IBOhIS.js new file mode 100644 index 0000000..c623bc2 --- /dev/null +++ b/assets/react-dropzone-D-IBOhIS.js @@ -0,0 +1,5 @@ +import{r as c,R as Ze}from"./react-DmpIMwDM.js";import{P as l}from"./prop-types-psm7UO16.js";import{f as er}from"./file-selector-CBHVlu32.js";import{_ as rr}from"./attr-accept-BWI1aNlo.js";function Re(e){return or(e)||tr(e)||$e(e)||nr()}function nr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function or(e){if(Array.isArray(e))return se(e)}function Te(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Ie(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,o=new Array(r);nn)return[!1,ke(n)];if(e.sizen)return[!1,ke(n)]}return[!0,null]}function E(e){return e!=null}function gr(e){var r=e.files,n=e.accept,o=e.minSize,a=e.maxSize,u=e.multiple,s=e.maxFiles,p=e.validator;return!u&&r.length>1||u&&s>=1&&r.length>s?!1:r.every(function(m){var j=He(m,n),S=z(j,1),P=S[0],R=Be(m,o,a),T=z(R,1),I=T[0],k=p?p(m):null;return P&&I&&!k})}function q(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Y(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Me(e){e.preventDefault()}function yr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mr(e){return e.indexOf("Edge/")!==-1}function br(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return yr(e)||mr(e)}function h(){for(var e=arguments.length,r=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(r=e.length);for(var n=0,o=new Array(r);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function kr(e,r){if(e==null)return{};var n={},o=Object.keys(e),a,u;for(u=0;u=0)&&(n[a]=e[a]);return n}var ge=c.forwardRef(function(e,r){var n=e.children,o=G(e,Er),a=xr(o),u=a.open,s=G(a,Fr);return c.useImperativeHandle(r,function(){return{open:u}},[u]),Ze.createElement(c.Fragment,null,n(f(f({},s),{},{open:u})))});ge.displayName="Dropzone";var Ye={disabled:!1,getFilesFromEvent:er,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};ge.defaultProps=Ye;ge.propTypes={children:l.func,accept:l.objectOf(l.arrayOf(l.string)),multiple:l.bool,preventDropOnDocument:l.bool,noClick:l.bool,noKeyboard:l.bool,noDrag:l.bool,noDragEventsBubbling:l.bool,minSize:l.number,maxSize:l.number,maxFiles:l.number,disabled:l.bool,getFilesFromEvent:l.func,onFileDialogCancel:l.func,onFileDialogOpen:l.func,useFsAccessApi:l.bool,autoFocus:l.bool,onDragEnter:l.func,onDragLeave:l.func,onDragOver:l.func,onDrop:l.func,onDropAccepted:l.func,onDropRejected:l.func,onError:l.func,validator:l.func};var de={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=f(f({},Ye),e),n=r.accept,o=r.disabled,a=r.getFilesFromEvent,u=r.maxSize,s=r.minSize,p=r.multiple,m=r.maxFiles,j=r.onDragEnter,S=r.onDragLeave,P=r.onDragOver,R=r.onDrop,T=r.onDropAccepted,I=r.onDropRejected,k=r.onFileDialogCancel,J=r.onFileDialogOpen,ye=r.useFsAccessApi,me=r.autoFocus,V=r.preventDropOnDocument,be=r.noClick,Q=r.noKeyboard,ve=r.noDrag,A=r.noDragEventsBubbling,X=r.onError,x=r.validator,M=c.useMemo(function(){return hr(n)},[n]),De=c.useMemo(function(){return Dr(n)},[n]),Z=c.useMemo(function(){return typeof J=="function"?J:ze},[J]),K=c.useMemo(function(){return typeof k=="function"?k:ze},[k]),y=c.useRef(null),D=c.useRef(null),qe=c.useReducer(Mr,de),he=le(qe,2),ee=he[0],b=he[1],Ge=ee.isFocused,Ae=ee.isFileDialogActive,$=c.useRef(typeof window<"u"&&window.isSecureContext&&ye&&vr()),Oe=function(){!$.current&&Ae&&setTimeout(function(){if(D.current){var i=D.current.files;i.length||(b({type:"closeDialog"}),K())}},300)};c.useEffect(function(){return window.addEventListener("focus",Oe,!1),function(){window.removeEventListener("focus",Oe,!1)}},[D,Ae,K,$]);var F=c.useRef([]),Ee=function(i){y.current&&y.current.contains(i.target)||(i.preventDefault(),F.current=[])};c.useEffect(function(){return V&&(document.addEventListener("dragover",Me,!1),document.addEventListener("drop",Ee,!1)),function(){V&&(document.removeEventListener("dragover",Me),document.removeEventListener("drop",Ee))}},[y,V]),c.useEffect(function(){return!o&&me&&y.current&&y.current.focus(),function(){}},[y,me,o]);var O=c.useCallback(function(t){X?X(t):console.error(t)},[X]),Fe=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t),F.current=[].concat(Cr(F.current),[t.target]),Y(t)&&Promise.resolve(a(t)).then(function(i){if(!(q(t)&&!A)){var d=i.length,g=d>0&&gr({files:i,accept:M,minSize:s,maxSize:u,multiple:p,maxFiles:m,validator:x}),v=d>0&&!g;b({isDragAccept:g,isDragReject:v,isDragActive:!0,type:"setDraggedFiles"}),j&&j(t)}}).catch(function(i){return O(i)})},[a,j,O,A,M,s,u,p,m,x]),_e=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t);var i=Y(t);if(i&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch{}return i&&P&&P(t),!1},[P,A]),we=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t);var i=F.current.filter(function(g){return y.current&&y.current.contains(g)}),d=i.indexOf(t.target);d!==-1&&i.splice(d,1),F.current=i,!(i.length>0)&&(b({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Y(t)&&S&&S(t))},[y,S,A]),H=c.useCallback(function(t,i){var d=[],g=[];t.forEach(function(v){var L=He(v,M),C=le(L,2),ne=C[0],te=C[1],oe=Be(v,s,u),U=le(oe,2),ie=U[0],ae=U[1],ue=x?x(v):null;if(ne&&ie&&!ue)d.push(v);else{var ce=[te,ae];ue&&(ce=ce.concat(ue)),g.push({file:v,errors:ce.filter(function(Xe){return Xe})})}}),(!p&&d.length>1||p&&m>=1&&d.length>m)&&(d.forEach(function(v){g.push({file:v,errors:[dr]})}),d.splice(0)),b({acceptedFiles:d,fileRejections:g,type:"setFiles"}),R&&R(d,g,i),g.length>0&&I&&I(g,i),d.length>0&&T&&T(d,i)},[b,p,M,s,u,m,R,T,I,x]),B=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t),F.current=[],Y(t)&&Promise.resolve(a(t)).then(function(i){q(t)&&!A||H(i,t)}).catch(function(i){return O(i)}),b({type:"reset"})},[a,H,O,A]),_=c.useCallback(function(){if($.current){b({type:"openDialog"}),Z();var t={multiple:p,types:De};window.showOpenFilePicker(t).then(function(i){return a(i)}).then(function(i){H(i,null),b({type:"closeDialog"})}).catch(function(i){Ar(i)?(K(i),b({type:"closeDialog"})):Or(i)?($.current=!1,D.current?(D.current.value=null,D.current.click()):O(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):O(i)});return}D.current&&(b({type:"openDialog"}),Z(),D.current.value=null,D.current.click())},[b,Z,K,ye,H,O,De,p]),Ce=c.useCallback(function(t){!y.current||!y.current.isEqualNode(t.target)||(t.key===" "||t.key==="Enter"||t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),_())},[y,_]),je=c.useCallback(function(){b({type:"focus"})},[]),Se=c.useCallback(function(){b({type:"blur"})},[]),Pe=c.useCallback(function(){be||(br()?setTimeout(_,0):_())},[be,_]),w=function(i){return o?null:i},re=function(i){return Q?null:w(i)},W=function(i){return ve?null:w(i)},N=function(i){A&&i.stopPropagation()},Je=c.useMemo(function(){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.refKey,d=i===void 0?"ref":i,g=t.role,v=t.onKeyDown,L=t.onFocus,C=t.onBlur,ne=t.onClick,te=t.onDragEnter,oe=t.onDragOver,U=t.onDragLeave,ie=t.onDrop,ae=G(t,_r);return f(f(pe({onKeyDown:re(h(v,Ce)),onFocus:re(h(L,je)),onBlur:re(h(C,Se)),onClick:w(h(ne,Pe)),onDragEnter:W(h(te,Fe)),onDragOver:W(h(oe,_e)),onDragLeave:W(h(U,we)),onDrop:W(h(ie,B)),role:typeof g=="string"&&g!==""?g:"presentation"},d,y),!o&&!Q?{tabIndex:0}:{}),ae)}},[y,Ce,je,Se,Pe,Fe,_e,we,B,Q,ve,o]),Ve=c.useCallback(function(t){t.stopPropagation()},[]),Qe=c.useMemo(function(){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.refKey,d=i===void 0?"ref":i,g=t.onChange,v=t.onClick,L=G(t,wr),C=pe({accept:M,multiple:p,type:"file",style:{display:"none"},onChange:w(h(g,B)),onClick:w(h(v,Ve)),tabIndex:-1},d,D);return f(f({},C),L)}},[D,n,p,B,o]);return f(f({},ee),{},{isFocused:Ge&&!o,getRootProps:Je,getInputProps:Qe,rootRef:y,inputRef:D,open:w(_)})}function Mr(e,r){switch(r.type){case"focus":return f(f({},e),{},{isFocused:!0});case"blur":return f(f({},e),{},{isFocused:!1});case"openDialog":return f(f({},de),{},{isFileDialogActive:!0});case"closeDialog":return f(f({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return f(f({},e),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return f(f({},e),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections});case"reset":return f({},de);default:return e}}function ze(){}export{xr as u}; diff --git a/assets/react-dropzone-D-IBOhIS.js.gz b/assets/react-dropzone-D-IBOhIS.js.gz new file mode 100644 index 0000000..ee8a661 Binary files /dev/null and b/assets/react-dropzone-D-IBOhIS.js.gz differ diff --git a/assets/react-remove-scroll-BOyN_WUU.js b/assets/react-remove-scroll-BOyN_WUU.js new file mode 100644 index 0000000..23f3475 --- /dev/null +++ b/assets/react-remove-scroll-BOyN_WUU.js @@ -0,0 +1,4 @@ +import{d as z,e as B,b as j}from"./tslib-CuZy2iRz.js";import{r as a}from"./react-DmpIMwDM.js";import{f as O,z as Q,R as p}from"./react-remove-scroll-bar-DZjhPxUV.js";import{c as q,e as G}from"./use-sidecar-D8_hMcUG.js";import{u as J}from"./use-callback-ref-DRzK4jWO.js";import{s as K}from"./react-style-singleton-CpxBwIWS.js";var V=q(),Y=function(){},X=a.forwardRef(function(e,r){var c=a.useRef(null),l=a.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),u=l[0],s=l[1],v=e.forwardProps,o=e.children,m=e.className,g=e.removeScrollBar,w=e.enabled,C=e.shards,y=e.sideCar,b=e.noIsolation,R=e.inert,t=e.allowPinchZoom,n=e.as,f=n===void 0?"div":n,h=e.gapMode,d=z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=y,i=J([c,r]),E=B(B({},d),u);return a.createElement(a.Fragment,null,w&&a.createElement(S,{sideCar:V,removeScrollBar:g,shards:C,noIsolation:b,inert:R,setCallbacks:s,allowPinchZoom:!!t,lockRef:c,gapMode:h}),v?a.cloneElement(a.Children.only(o),B(B({},E),{ref:i})):a.createElement(f,B({},E,{className:m,ref:i}),o))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};X.classNames={fullWidth:O,zeroRight:Q};var D=!1;if(typeof window<"u")try{var N=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch{D=!1}var k=D?{passive:!1}:!1,U=function(e){return e.tagName==="TEXTAREA"},Z=function(e,r){var c=window.getComputedStyle(e);return c[r]!=="hidden"&&!(c.overflowY===c.overflowX&&!U(e)&&c[r]==="visible")},_=function(e){return Z(e,"overflowY")},$=function(e){return Z(e,"overflowX")},I=function(e,r){var c=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var u=F(e,l);if(u){var s=x(e,l),v=s[1],o=s[2];if(v>o)return!0}l=l.parentNode}while(l&&l!==c.body);return!1},ee=function(e){var r=e.scrollTop,c=e.scrollHeight,l=e.clientHeight;return[r,c,l]},re=function(e){var r=e.scrollLeft,c=e.scrollWidth,l=e.clientWidth;return[r,c,l]},F=function(e,r){return e==="v"?_(r):$(r)},x=function(e,r){return e==="v"?ee(r):re(r)},te=function(e,r){return e==="h"&&r==="rtl"?-1:1},ae=function(e,r,c,l,u){var s=te(e,window.getComputedStyle(r).direction),v=s*l,o=c.target,m=r.contains(o),g=!1,w=v>0,C=0,y=0;do{var b=x(e,o),R=b[0],t=b[1],n=b[2],f=t-n-s*R;(R||f)&&F(e,o)&&(C+=f,y+=R),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!m&&o!==document.body||m&&(r.contains(o)||r===o));return(w&&(Math.abs(C)<1||!u)||!w&&(Math.abs(y)<1||!u))&&(g=!0),g},T=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},A=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},ne=function(e,r){return e[0]===r[0]&&e[1]===r[1]},le=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},oe=0,P=[];function ce(e){var r=a.useRef([]),c=a.useRef([0,0]),l=a.useRef(),u=a.useState(oe++)[0],s=a.useState(K)[0],v=a.useRef(e);a.useEffect(function(){v.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var t=j([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return t.forEach(function(n){return n.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),t.forEach(function(n){return n.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var o=a.useCallback(function(t,n){if("touches"in t&&t.touches.length===2)return!v.current.allowPinchZoom;var f=T(t),h=c.current,d="deltaX"in t?t.deltaX:h[0]-f[0],S="deltaY"in t?t.deltaY:h[1]-f[1],i,E=t.target,M=Math.abs(d)>Math.abs(S)?"h":"v";if("touches"in t&&M==="h"&&E.type==="range")return!1;var L=I(M,E);if(!L)return!0;if(L?i=M:(i=M==="v"?"h":"v",L=I(M,E)),!L)return!1;if(!l.current&&"changedTouches"in t&&(d||S)&&(l.current=i),!i)return!0;var W=l.current||i;return ae(W,n,t,W==="h"?d:S,!0)},[]),m=a.useCallback(function(t){var n=t;if(!(!P.length||P[P.length-1]!==s)){var f="deltaY"in n?A(n):T(n),h=r.current.filter(function(i){return i.name===n.type&&(i.target===n.target||n.target===i.shadowParent)&&ne(i.delta,f)})[0];if(h&&h.should){n.cancelable&&n.preventDefault();return}if(!h){var d=(v.current.shards||[]).map(H).filter(Boolean).filter(function(i){return i.contains(n.target)}),S=d.length>0?o(n,d[0]):!v.current.noIsolation;S&&n.cancelable&&n.preventDefault()}}},[]),g=a.useCallback(function(t,n,f,h){var d={name:t,delta:n,target:f,should:h,shadowParent:ie(f)};r.current.push(d),setTimeout(function(){r.current=r.current.filter(function(S){return S!==d})},1)},[]),w=a.useCallback(function(t){c.current=T(t),l.current=void 0},[]),C=a.useCallback(function(t){g(t.type,A(t),t.target,o(t,e.lockRef.current))},[]),y=a.useCallback(function(t){g(t.type,T(t),t.target,o(t,e.lockRef.current))},[]);a.useEffect(function(){return P.push(s),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:y}),document.addEventListener("wheel",m,k),document.addEventListener("touchmove",m,k),document.addEventListener("touchstart",w,k),function(){P=P.filter(function(t){return t!==s}),document.removeEventListener("wheel",m,k),document.removeEventListener("touchmove",m,k),document.removeEventListener("touchstart",w,k)}},[]);var b=e.removeScrollBar,R=e.inert;return a.createElement(a.Fragment,null,R?a.createElement(s,{styles:le(u)}):null,b?a.createElement(p,{gapMode:e.gapMode}):null)}function ie(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const ue=G(V,ce);var se=a.forwardRef(function(e,r){return a.createElement(X,B({},e,{ref:r,sideCar:ue}))});se.classNames=X.classNames;export{se as R}; diff --git a/assets/react-remove-scroll-BOyN_WUU.js.gz b/assets/react-remove-scroll-BOyN_WUU.js.gz new file mode 100644 index 0000000..cae14a4 Binary files /dev/null and b/assets/react-remove-scroll-BOyN_WUU.js.gz differ diff --git a/assets/react-remove-scroll-bar-DZjhPxUV.js b/assets/react-remove-scroll-bar-DZjhPxUV.js new file mode 100644 index 0000000..14fc418 --- /dev/null +++ b/assets/react-remove-scroll-bar-DZjhPxUV.js @@ -0,0 +1,38 @@ +import{r as s}from"./react-DmpIMwDM.js";import{s as f}from"./react-style-singleton-CpxBwIWS.js";var d="right-scroll-bar-position",g="width-before-scroll-bar",p="with-scroll-bars-hidden",h="--removed-body-scroll-bar-size",m={left:0,top:0,right:0,gap:0},l=function(n){return parseInt(n||"",10)||0},b=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],t=r[n==="padding"?"paddingTop":"marginTop"],e=r[n==="padding"?"paddingRight":"marginRight"];return[l(o),l(t),l(e)]},y=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return m;var r=b(n),o=document.documentElement.clientWidth,t=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,t-o+r[2]-r[0])}},w=f(),c="data-scroll-locked",x=function(n,r,o,t){var e=n.left,i=n.top,v=n.right,a=n.gap;return o===void 0&&(o="margin"),` + .`.concat(p,` { + overflow: hidden `).concat(t,`; + padding-right: `).concat(a,"px ").concat(t,`; + } + body[`).concat(c,`] { + overflow: hidden `).concat(t,`; + overscroll-behavior: contain; + `).concat([r&&"position: relative ".concat(t,";"),o==="margin"&&` + padding-left: `.concat(e,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(v,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(t,`; + `),o==="padding"&&"padding-right: ".concat(a,"px ").concat(t,";")].filter(Boolean).join(""),` + } + + .`).concat(d,` { + right: `).concat(a,"px ").concat(t,`; + } + + .`).concat(g,` { + margin-right: `).concat(a,"px ").concat(t,`; + } + + .`).concat(d," .").concat(d,` { + right: 0 `).concat(t,`; + } + + .`).concat(g," .").concat(g,` { + margin-right: 0 `).concat(t,`; + } + + body[`).concat(c,`] { + `).concat(h,": ").concat(a,`px; + } +`)},u=function(){var n=parseInt(document.body.getAttribute(c)||"0",10);return isFinite(n)?n:0},S=function(){s.useEffect(function(){return document.body.setAttribute(c,(u()+1).toString()),function(){var n=u()-1;n<=0?document.body.removeAttribute(c):document.body.setAttribute(c,n.toString())}},[])},A=function(n){var r=n.noRelative,o=n.noImportant,t=n.gapMode,e=t===void 0?"margin":t;S();var i=s.useMemo(function(){return y(e)},[e]);return s.createElement(w,{styles:x(i,!r,e,o?"":"!important")})};export{A as R,g as f,d as z}; diff --git a/assets/react-remove-scroll-bar-DZjhPxUV.js.gz b/assets/react-remove-scroll-bar-DZjhPxUV.js.gz new file mode 100644 index 0000000..000c21a Binary files /dev/null and b/assets/react-remove-scroll-bar-DZjhPxUV.js.gz differ diff --git a/assets/react-style-singleton-CpxBwIWS.js b/assets/react-style-singleton-CpxBwIWS.js new file mode 100644 index 0000000..004e70c --- /dev/null +++ b/assets/react-style-singleton-CpxBwIWS.js @@ -0,0 +1 @@ +import{r as a}from"./react-DmpIMwDM.js";import{g as u}from"./get-nonce-C-Z93AgS.js";function i(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=u();return e&&t.setAttribute("nonce",e),t}function c(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function l(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var s=function(){var t=0,e=null;return{add:function(n){t==0&&(e=i())&&(c(e,n),l(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},d=function(){var t=s();return function(e,n){a.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},y=function(){var t=d(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e};export{y as s}; diff --git a/assets/scheduler-CzFDRTuY.js b/assets/scheduler-CzFDRTuY.js new file mode 100644 index 0000000..e682908 --- /dev/null +++ b/assets/scheduler-CzFDRTuY.js @@ -0,0 +1,9 @@ +var H={exports:{}},J={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(l){function P(n,e){var t=n.length;n.push(e);n:for(;0>>1,r=n[i];if(0>>1;ih(N,t))bh(I,N)?(n[i]=I,n[b]=t,i=b):(n[i]=N,n[v]=t,i=v);else if(bh(I,t))n[i]=I,n[b]=t,i=b;else break n}}return e}function h(n,e){var t=n.sortIndex-e.sortIndex;return t!==0?t:n.id-e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var K=performance;l.unstable_now=function(){return K.now()}}else{var R=Date,O=R.now();l.unstable_now=function(){return R.now()-O}}var f=[],c=[],Q=1,a=null,u=3,m=!1,s=!1,y=!1,j=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(n){for(var e=o(c);e!==null;){if(e.callback===null)_(c);else if(e.startTime<=n)_(c),e.sortIndex=e.expirationTime,P(f,e);else break;e=o(c)}}function E(n){if(y=!1,T(n),!s)if(o(f)!==null)s=!0,M(C);else{var e=o(c);e!==null&&F(E,e.startTime-n)}}function C(n,e){s=!1,y&&(y=!1,B(d),d=-1),m=!0;var t=u;try{for(T(e),a=o(f);a!==null&&(!(a.expirationTime>e)||n&&!A());){var i=a.callback;if(typeof i=="function"){a.callback=null,u=a.priorityLevel;var r=i(a.expirationTime<=e);e=l.unstable_now(),typeof r=="function"?a.callback=r:a===o(f)&&_(f),T(e)}else _(f);a=o(f)}if(a!==null)var w=!0;else{var v=o(c);v!==null&&F(E,v.startTime-e),w=!1}return w}finally{a=null,u=t,m=!1}}var k=!1,p=null,d=-1,q=5,z=-1;function A(){return!(l.unstable_now()-zn||125i?(n.sortIndex=t,P(c,n),o(f)===null&&n===o(c)&&(y?(B(d),d=-1):y=!0,F(E,t-i))):(n.sortIndex=r,P(f,n),s||m||(s=!0,M(C))),n},l.unstable_shouldYield=A,l.unstable_wrapCallback=function(n){var e=u;return function(){var t=u;u=e;try{return n.apply(this,arguments)}finally{u=t}}}})(J);H.exports=J;var U=H.exports;export{U as s}; diff --git a/assets/scheduler-CzFDRTuY.js.gz b/assets/scheduler-CzFDRTuY.js.gz new file mode 100644 index 0000000..0b891cd Binary files /dev/null and b/assets/scheduler-CzFDRTuY.js.gz differ diff --git a/assets/sonner-BJG0sXho.js b/assets/sonner-BJG0sXho.js new file mode 100644 index 0000000..7519c0c --- /dev/null +++ b/assets/sonner-BJG0sXho.js @@ -0,0 +1,2 @@ +import{R as e}from"./react-DmpIMwDM.js";import{G as Rt}from"./react-dom-tIxIBQuZ.js";var Yt=a=>{switch(a){case"success":return Ht;case"info":return Lt;case"warning":return At;case"error":return Dt;default:return null}},jt=Array(12).fill(0),Pt=({visible:a})=>e.createElement("div",{className:"sonner-loading-wrapper","data-visible":a},e.createElement("div",{className:"sonner-spinner"},jt.map((r,o)=>e.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Ht=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),At=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Lt=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Dt=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$t=()=>{let[a,r]=e.useState(document.hidden);return e.useEffect(()=>{let o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),a},ht=1,Ut=class{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{let r=this.subscribers.indexOf(a);this.subscribers.splice(r,1)}),this.publish=a=>{this.subscribers.forEach(r=>r(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var r;let{message:o,...g}=a,v=typeof(a==null?void 0:a.id)=="number"||((r=a.id)==null?void 0:r.length)>0?a.id:ht++,m=this.toasts.find(f=>f.id===v),b=a.dismissible===void 0?!0:a.dismissible;return m?this.toasts=this.toasts.map(f=>f.id===v?(this.publish({...f,...a,id:v,title:o}),{...f,...a,id:v,dismissible:b,title:o}):f):this.addToast({title:o,...g,dismissible:b,id:v}),v},this.dismiss=a=>(a||this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:a,dismiss:!0})),a),this.message=(a,r)=>this.create({...r,message:a}),this.error=(a,r)=>this.create({...r,message:a,type:"error"}),this.success=(a,r)=>this.create({...r,type:"success",message:a}),this.info=(a,r)=>this.create({...r,type:"info",message:a}),this.warning=(a,r)=>this.create({...r,type:"warning",message:a}),this.loading=(a,r)=>this.create({...r,type:"loading",message:a}),this.promise=(a,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:a,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let g=a instanceof Promise?a:a(),v=o!==void 0;return g.then(async m=>{if(Ot(m)&&!m.ok){v=!1;let b=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description;this.create({id:o,type:"error",message:b,description:f})}else if(r.success!==void 0){v=!1;let b=typeof r.success=="function"?await r.success(m):r.success,f=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"success",message:b,description:f})}}).catch(async m=>{if(r.error!==void 0){v=!1;let b=typeof r.error=="function"?await r.error(m):r.error,f=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"error",message:b,description:f})}}).finally(()=>{var m;v&&(this.dismiss(o),o=void 0),(m=r.finally)==null||m.call(r)}),o},this.custom=(a,r)=>{let o=(r==null?void 0:r.id)||ht++;return this.create({jsx:a(o),id:o,...r}),o},this.subscribers=[],this.toasts=[]}},y=new Ut,Vt=(a,r)=>{let o=(r==null?void 0:r.id)||ht++;return y.addToast({title:a,...r,id:o}),o},Ot=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",Wt=Vt,Kt=()=>y.toasts,ne=Object.assign(Wt,{success:y.success,info:y.info,warning:y.warning,error:y.error,custom:y.custom,message:y.message,promise:y.promise,dismiss:y.dismiss,loading:y.loading},{getHistory:Kt});function Ft(a,{insertAt:r}={}){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],g=document.createElement("style");g.type="text/css",r==="top"&&o.firstChild?o.insertBefore(g,o.firstChild):o.appendChild(g),g.styleSheet?g.styleSheet.cssText=a:g.appendChild(document.createTextNode(a))}Ft(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);function tt(a){return a.label!==void 0}var Xt=3,Jt="32px",qt=4e3,Gt=356,Qt=14,Zt=20,_t=200;function te(...a){return a.filter(Boolean).join(" ")}var ee=a=>{var r,o,g,v,m,b,f,S,X,J;let{invert:et,toast:t,unstyled:h,interacting:D,setHeights:k,visibleToasts:at,heights:Y,index:M,toasts:rt,expanded:$,removeToast:w,defaultRichColors:U,closeButton:q,style:G,cancelButtonStyle:nt,actionButtonStyle:ot,className:z="",descriptionClassName:Q="",duration:V,position:st,gap:j,loadingIcon:B,expandByDefault:O,classNames:s,icons:E,closeButtonAriaLabel:it="Close toast",pauseWhenPageIsHidden:i,cn:d}=a,[u,N]=e.useState(!1),[R,p]=e.useState(!1),[lt,W]=e.useState(!1),[K,F]=e.useState(!1),[xt,dt]=e.useState(0),[Et,mt]=e.useState(0),ft=e.useRef(null),P=e.useRef(null),kt=M===0,Nt=M+1<=at,x=t.type,H=t.dismissible!==!1,Tt=t.className||"",Ct=t.descriptionClassName||"",Z=e.useMemo(()=>Y.findIndex(n=>n.toastId===t.id)||0,[Y,t.id]),St=e.useMemo(()=>{var n;return(n=t.closeButton)!=null?n:q},[t.closeButton,q]),pt=e.useMemo(()=>t.duration||V||qt,[t.duration,V]),ct=e.useRef(0),A=e.useRef(0),gt=e.useRef(0),L=e.useRef(null),[vt,Bt]=st.split("-"),bt=e.useMemo(()=>Y.reduce((n,c,l)=>l>=Z?n:n+c.height,0),[Y,Z]),yt=$t(),Mt=t.invert||et,ut=x==="loading";A.current=e.useMemo(()=>Z*j+bt,[Z,bt]),e.useEffect(()=>{N(!0)},[]),e.useLayoutEffect(()=>{if(!u)return;let n=P.current,c=n.style.height;n.style.height="auto";let l=n.getBoundingClientRect().height;n.style.height=c,mt(l),k(T=>T.find(C=>C.toastId===t.id)?T.map(C=>C.toastId===t.id?{...C,height:l}:C):[{toastId:t.id,height:l,position:t.position},...T])},[u,t.title,t.description,k,t.id]);let I=e.useCallback(()=>{p(!0),dt(A.current),k(n=>n.filter(c=>c.toastId!==t.id)),setTimeout(()=>{w(t)},_t)},[t,w,k,A]);e.useEffect(()=>{if(t.promise&&x==="loading"||t.duration===1/0||t.type==="loading")return;let n,c=pt;return $||D||i&&yt?(()=>{if(gt.current{var l;(l=t.onAutoClose)==null||l.call(t,t),I()},c)),()=>clearTimeout(n)},[$,D,O,t,pt,I,t.promise,x,i,yt]),e.useEffect(()=>{let n=P.current;if(n){let c=n.getBoundingClientRect().height;return mt(c),k(l=>[{toastId:t.id,height:c,position:t.position},...l]),()=>k(l=>l.filter(T=>T.toastId!==t.id))}},[k,t.id]),e.useEffect(()=>{t.delete&&I()},[I,t.delete]);function zt(){return E!=null&&E.loading?e.createElement("div",{className:"sonner-loader","data-visible":x==="loading"},E.loading):B?e.createElement("div",{className:"sonner-loader","data-visible":x==="loading"},B):e.createElement(Pt,{visible:x==="loading"})}return e.createElement("li",{"aria-live":t.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:P,className:d(z,Tt,s==null?void 0:s.toast,(r=t==null?void 0:t.classNames)==null?void 0:r.toast,s==null?void 0:s.default,s==null?void 0:s[x],(o=t==null?void 0:t.classNames)==null?void 0:o[x]),"data-sonner-toast":"","data-rich-colors":(g=t.richColors)!=null?g:U,"data-styled":!(t.jsx||t.unstyled||h),"data-mounted":u,"data-promise":!!t.promise,"data-removed":R,"data-visible":Nt,"data-y-position":vt,"data-x-position":Bt,"data-index":M,"data-front":kt,"data-swiping":lt,"data-dismissible":H,"data-type":x,"data-invert":Mt,"data-swipe-out":K,"data-expanded":!!($||O&&u),style:{"--index":M,"--toasts-before":M,"--z-index":rt.length-M,"--offset":`${R?xt:A.current}px`,"--initial-height":O?"auto":`${Et}px`,...G,...t.style},onPointerDown:n=>{ut||!H||(ft.current=new Date,dt(A.current),n.target.setPointerCapture(n.pointerId),n.target.tagName!=="BUTTON"&&(W(!0),L.current={x:n.clientX,y:n.clientY}))},onPointerUp:()=>{var n,c,l,T;if(K||!H)return;L.current=null;let C=Number(((n=P.current)==null?void 0:n.style.getPropertyValue("--swipe-amount").replace("px",""))||0),_=new Date().getTime()-((c=ft.current)==null?void 0:c.getTime()),It=Math.abs(C)/_;if(Math.abs(C)>=Zt||It>.11){dt(A.current),(l=t.onDismiss)==null||l.call(t,t),I(),F(!0);return}(T=P.current)==null||T.style.setProperty("--swipe-amount","0px"),W(!1)},onPointerMove:n=>{var c;if(!L.current||!H)return;let l=n.clientY-L.current.y,T=n.clientX-L.current.x,C=(vt==="top"?Math.min:Math.max)(0,l),_=n.pointerType==="touch"?10:2;Math.abs(C)>_?(c=P.current)==null||c.style.setProperty("--swipe-amount",`${l}px`):Math.abs(T)>_&&(L.current=null)}},St&&!t.jsx?e.createElement("button",{"aria-label":it,"data-disabled":ut,"data-close-button":!0,onClick:ut||!H?()=>{}:()=>{var n;I(),(n=t.onDismiss)==null||n.call(t,t)},className:d(s==null?void 0:s.closeButton,(v=t==null?void 0:t.classNames)==null?void 0:v.closeButton)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,t.jsx||e.isValidElement(t.title)?t.jsx||t.title:e.createElement(e.Fragment,null,x||t.icon||t.promise?e.createElement("div",{"data-icon":"",className:d(s==null?void 0:s.icon,(m=t==null?void 0:t.classNames)==null?void 0:m.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||zt():null,t.type!=="loading"?t.icon||(E==null?void 0:E[x])||Yt(x):null):null,e.createElement("div",{"data-content":"",className:d(s==null?void 0:s.content,(b=t==null?void 0:t.classNames)==null?void 0:b.content)},e.createElement("div",{"data-title":"",className:d(s==null?void 0:s.title,(f=t==null?void 0:t.classNames)==null?void 0:f.title)},t.title),t.description?e.createElement("div",{"data-description":"",className:d(Q,Ct,s==null?void 0:s.description,(S=t==null?void 0:t.classNames)==null?void 0:S.description)},t.description):null),e.isValidElement(t.cancel)?t.cancel:t.cancel&&tt(t.cancel)?e.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||nt,onClick:n=>{var c,l;tt(t.cancel)&&H&&((l=(c=t.cancel).onClick)==null||l.call(c,n),I())},className:d(s==null?void 0:s.cancelButton,(X=t==null?void 0:t.classNames)==null?void 0:X.cancelButton)},t.cancel.label):null,e.isValidElement(t.action)?t.action:t.action&&tt(t.action)?e.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||ot,onClick:n=>{var c,l;tt(t.action)&&(n.defaultPrevented||((l=(c=t.action).onClick)==null||l.call(c,n),I()))},className:d(s==null?void 0:s.actionButton,(J=t==null?void 0:t.classNames)==null?void 0:J.actionButton)},t.action.label):null))};function wt(){if(typeof window>"u"||typeof document>"u")return"ltr";let a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}var oe=a=>{let{invert:r,position:o="bottom-right",hotkey:g=["altKey","KeyT"],expand:v,closeButton:m,className:b,offset:f,theme:S="light",richColors:X,duration:J,style:et,visibleToasts:t=Xt,toastOptions:h,dir:D=wt(),gap:k=Qt,loadingIcon:at,icons:Y,containerAriaLabel:M="Notifications",pauseWhenPageIsHidden:rt,cn:$=te}=a,[w,U]=e.useState([]),q=e.useMemo(()=>Array.from(new Set([o].concat(w.filter(i=>i.position).map(i=>i.position)))),[w,o]),[G,nt]=e.useState([]),[ot,z]=e.useState(!1),[Q,V]=e.useState(!1),[st,j]=e.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=e.useRef(null),O=g.join("+").replace(/Key/g,"").replace(/Digit/g,""),s=e.useRef(null),E=e.useRef(!1),it=e.useCallback(i=>{var d;(d=w.find(u=>u.id===i.id))!=null&&d.delete||y.dismiss(i.id),U(u=>u.filter(({id:N})=>N!==i.id))},[w]);return e.useEffect(()=>y.subscribe(i=>{if(i.dismiss){U(d=>d.map(u=>u.id===i.id?{...u,delete:!0}:u));return}setTimeout(()=>{Rt.flushSync(()=>{U(d=>{let u=d.findIndex(N=>N.id===i.id);return u!==-1?[...d.slice(0,u),{...d[u],...i},...d.slice(u+1)]:[i,...d]})})})}),[]),e.useEffect(()=>{if(S!=="system"){j(S);return}S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:i})=>{j(i?"dark":"light")})},[S]),e.useEffect(()=>{w.length<=1&&z(!1)},[w]),e.useEffect(()=>{let i=d=>{var u,N;g.every(R=>d[R]||d.code===R)&&(z(!0),(u=B.current)==null||u.focus()),d.code==="Escape"&&(document.activeElement===B.current||(N=B.current)!=null&&N.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[g]),e.useEffect(()=>{if(B.current)return()=>{s.current&&(s.current.focus({preventScroll:!0}),s.current=null,E.current=!1)}},[B.current]),w.length?e.createElement("section",{"aria-label":`${M} ${O}`,tabIndex:-1},q.map((i,d)=>{var u;let[N,R]=i.split("-");return e.createElement("ol",{key:i,dir:D==="auto"?wt():D,tabIndex:-1,ref:B,className:b,"data-sonner-toaster":!0,"data-theme":st,"data-y-position":N,"data-x-position":R,style:{"--front-toast-height":`${((u=G[0])==null?void 0:u.height)||0}px`,"--offset":typeof f=="number"?`${f}px`:f||Jt,"--width":`${Gt}px`,"--gap":`${k}px`,...et},onBlur:p=>{E.current&&!p.currentTarget.contains(p.relatedTarget)&&(E.current=!1,s.current&&(s.current.focus({preventScroll:!0}),s.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||E.current||(E.current=!0,s.current=p.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Q||z(!1)},onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||V(!0)},onPointerUp:()=>V(!1)},w.filter(p=>!p.position&&d===0||p.position===i).map((p,lt)=>{var W,K;return e.createElement(ee,{key:p.id,icons:Y,index:lt,toast:p,defaultRichColors:X,duration:(W=h==null?void 0:h.duration)!=null?W:J,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:r,visibleToasts:t,closeButton:(K=h==null?void 0:h.closeButton)!=null?K:m,interacting:Q,position:i,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:it,toasts:w.filter(F=>F.position==p.position),heights:G.filter(F=>F.position==p.position),setHeights:nt,expandByDefault:v,gap:k,loadingIcon:at,expanded:ot,pauseWhenPageIsHidden:rt,cn:$})}))})):null};export{ne as J,oe as T}; diff --git a/assets/sonner-BJG0sXho.js.gz b/assets/sonner-BJG0sXho.js.gz new file mode 100644 index 0000000..305a2e1 Binary files /dev/null and b/assets/sonner-BJG0sXho.js.gz differ diff --git a/assets/sql.js-lzln2bbd.js b/assets/sql.js-lzln2bbd.js new file mode 100644 index 0000000..10cad70 --- /dev/null +++ b/assets/sql.js-lzln2bbd.js @@ -0,0 +1,3 @@ +import{a as rn,g as nn}from"./attr-accept-BWI1aNlo.js";var lr={exports:{}};const on={},an=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),at=rn(an);(function(we,un){var ye=void 0,st=function(ut){return ye||(ye=new Promise(function(hr,cr){var P=typeof ut<"u"?ut:{},ft=P.onAbort;P.onAbort=function(e){cr(new Error(e)),ft&&ft(e)},P.postRun=P.postRun||[],P.postRun.push(function(){hr(P)}),we=void 0;var o;o||(o=typeof P<"u"?P:{}),o.onRuntimeInitialized=function(){function e(a,f){switch(typeof f){case"boolean":en(a,f?1:0);break;case"number":Yr(a,f);break;case"string":Xr(a,f,-1,-1);break;case"object":if(f===null)sr(a);else if(f.length!=null){var h=He(f,Re);Zr(a,h,f.length,-1),je(h)}else De(a,"Wrong API use : tried to return a value of an unknown type ("+f+").",-1);break;default:sr(a)}}function t(a,f){for(var h=[],d=0;d>>0),a!=null){var f=this.filename,h="/",d=f;if(h&&(h=typeof h=="string"?h:le(h),d=f?W(h+"/"+f):h),f=Ot(!0,!0),d=ke(d,(f!==void 0?f:438)&4095|32768,0),a){if(typeof a=="string"){h=Array(a.length);for(var v=0,q=a.length;v(e=Ee(e)?new URL(e):We.normalize(e),Fe.readFileSync(e,t?void 0:"utf8")),ge=e=>(e=Ue(e,!0),e.buffer||(e=new Uint8Array(e)),e),be=(e,t,r,n=!0)=>{e=Ee(e)?new URL(e):We.normalize(e),Fe.readFile(e,n?void 0:"utf8",(i,s)=>{i?r(i):t(n?s.buffer:s)})},!o.thisProgram&&1"[Emscripten Module object]"}else(ht||ie)&&(ie?T=self.location.href:typeof document<"u"&&document.currentScript&&(T=document.currentScript.src),T=T.indexOf("blob:")!==0?T.substr(0,T.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Ue=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ie&&(ge=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),be=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{n.status==200||n.status==0&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var ct=o.print||console.log.bind(console),C=o.printErr||console.error.bind(console);Object.assign(o,lt),lt=null,o.thisProgram&&(Pe=o.thisProgram);var oe;o.wasmBinary&&(oe=o.wasmBinary),typeof WebAssembly!="object"&&U("no native wasm support detected");var qe,pt=!1,I,g,ae,_,M,ze,Je;function mt(){var e=qe.buffer;o.HEAP8=I=new Int8Array(e),o.HEAP16=ae=new Int16Array(e),o.HEAPU8=g=new Uint8Array(e),o.HEAPU16=new Uint16Array(e),o.HEAP32=_=new Int32Array(e),o.HEAPU32=M=new Uint32Array(e),o.HEAPF32=ze=new Float32Array(e),o.HEAPF64=Je=new Float64Array(e)}var dt=[],_t=[],wt=[];function pr(){var e=o.preRun.shift();dt.unshift(e)}var K=0,se=null;function U(e){var t;throw(t=o.onAbort)==null||t.call(o,e),e="Aborted("+e+")",C(e),pt=!0,new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.")}var yt=e=>e.startsWith("data:application/octet-stream;base64,"),Ee=e=>e.startsWith("file://"),X;if(X="sql-wasm.wasm",!yt(X)){var vt=X;X=o.locateFile?o.locateFile(vt,T):T+vt}function bt(e){if(e==X&&oe)return new Uint8Array(oe);if(ge)return ge(e);throw"both async and sync fetching of the wasm failed"}function mr(e){if(!oe&&(ht||ie)){if(typeof fetch=="function"&&!Ee(e))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>bt(e));if(be)return new Promise((t,r)=>{be(e,n=>t(new Uint8Array(n)),r)})}return Promise.resolve().then(()=>bt(e))}function gt(e,t,r){return mr(e).then(n=>WebAssembly.instantiate(n,t)).then(n=>n).then(r,n=>{C(`failed to asynchronously prepare wasm: ${n}`),U(n)})}function dr(e,t){var r=X;oe||typeof WebAssembly.instantiateStreaming!="function"||yt(r)||Ee(r)||ve||typeof fetch!="function"?gt(r,e,t):fetch(r,{credentials:"same-origin"}).then(n=>WebAssembly.instantiateStreaming(n,e).then(t,function(i){return C(`wasm streaming compile failed: ${i}`),C("falling back to ArrayBuffer instantiation"),gt(r,e,t)}))}var p,A,Be=e=>{for(;0>0];case"i8":return I[e>>0];case"i16":return ae[e>>1];case"i32":return _[e>>2];case"i64":U("to do getValue(i64) use WASM_BIGINT");case"float":return ze[e>>2];case"double":return Je[e>>3];case"*":return M[e>>2];default:U(`invalid type for getValue: ${t}`)}}function ue(e){var t="i32";switch(t.endsWith("*")&&(t="*"),t){case"i1":I[e>>0]=0;break;case"i8":I[e>>0]=0;break;case"i16":ae[e>>1]=0;break;case"i32":_[e>>2]=0;break;case"i64":U("to do setValue(i64) use WASM_BIGINT");case"float":ze[e>>2]=0;break;case"double":Je[e>>3]=0;break;case"*":M[e>>2]=0;break;default:U(`invalid type for setValue: ${t}`)}}var qt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,k=(e,t,r)=>{var n=t+r;for(r=t;e[r]&&!(r>=n);)++r;if(16i?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|i&1023))}}else n+=String.fromCharCode(i)}return n},Ce=(e,t)=>e?k(g,e,t):"",Et=(e,t)=>{for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},W=e=>{var t=e.charAt(0)==="/",r=e.substr(-1)==="/";return(e=Et(e.split("/").filter(n=>!!n),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},_r=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?".":(t&&(t=t.substr(0,t.length-1)),e+t)},Me=e=>{if(e==="/")return"/";e=W(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return t===-1?e:e.substr(t+1)},wr=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return r=>crypto.getRandomValues(r);if(ve)try{var e=at;if(e.randomFillSync)return r=>e.randomFillSync(r);var t=e.randomBytes;return r=>(r.set(t(r.byteLength)),r)}catch{}U("initRandomDevice")},Mt=e=>(Mt=wr())(e);function Ae(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if(t=0<=r?arguments[r]:"/",typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t=t.charAt(0)==="/"}return e=Et(e.split("/").filter(n=>!!n),!t).join("/"),(t?"/":"")+e||"."}var Ke=[],Z=e=>{for(var t=0,r=0;r=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},ee=(e,t,r,n)=>{if(!(0=u){var m=e.charCodeAt(++s);u=65536+((u&1023)<<10)|m&1023}if(127>=u){if(r>=n)break;t[r++]=u}else{if(2047>=u){if(r+1>=n)break;t[r++]=192|u>>6}else{if(65535>=u){if(r+2>=n)break;t[r++]=224|u>>12}else{if(r+3>=n)break;t[r++]=240|u>>18,t[r++]=128|u>>12&63}t[r++]=128|u>>6&63}t[r++]=128|u&63}}return t[r]=0,r-i};function At(e,t){var r=Array(Z(e)+1);return e=ee(e,r,0,r.length),t&&(r.length=e),r}var kt=[];function xt(e,t){kt[e]={input:[],output:[],Xa:t},Ye(e,yr)}var yr={open(e){var t=kt[e.node.rdev];if(!t)throw new l(43);e.tty=t,e.seekable=!1},close(e){e.tty.Xa.fsync(e.tty)},fsync(e){e.tty.Xa.fsync(e.tty)},read(e,t,r,n){if(!e.tty||!e.tty.Xa.sb)throw new l(60);for(var i=0,s=0;s=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),r!=0&&(t=Math.max(t,256)),r=e.Ia,e.Ia=new Uint8Array(t),0=e.node.Ma)return 0;if(e=Math.min(e.node.Ma-i,n),8t)throw new l(28);return t},lb(e,t,r){It(e.node,t+r),e.node.Ma=Math.max(e.node.Ma,t+r)},bb(e,t,r,n,i){if((e.node.mode&61440)!==32768)throw new l(43);if(e=e.node.Ia,i&2||e.buffer!==I.buffer){if((0{var r=0;return e&&(r|=365),t&&(r|=146),r},$e=null,St={},fe=[],gr=1,J=null,Gt=!0,l=null,Qe={};function G(e,t={}){if(e=Ae(e),!e)return{path:"",node:null};if(t=Object.assign({qb:!0,kb:0},t),8!!u);for(var r=$e,n="/",i=0;i>>0)%J.length}function Rt(e){var t=Ve(e.parent.id,e.name);if(J[t]===e)J[t]=e.Wa;else for(t=J[t];t;){if(t.Wa===e){t.Wa=e.Wa;break}t=t.Wa}}function $(e,t){var r;if(r=(r=te(e,"x"))?r:e.Ga.lookup?0:2)throw new l(r,e);for(r=J[Ve(e.id,t)];r;r=r.Wa){var n=r.name;if(r.parent.id===e.id&&n===t)return r}return e.Ga.lookup(e,t)}function Ht(e,t,r,n){return e=new Xt(e,t,r,n),t=Ve(e.parent.id,e.name),e.Wa=J[t],J[t]=e}function H(e){return(e&61440)===16384}function Lt(e){var t=["r","w","rw"][e&3];return e&512&&(t+="w"),t}function te(e,t){if(Gt)return 0;if(!t.includes("r")||e.mode&292){if(t.includes("w")&&!(e.mode&146)||t.includes("x")&&!(e.mode&73))return 2}else return 2;return 0}function Nt(e,t){try{return $(e,t),20}catch{}return te(e,"wx")}function jt(e,t,r){try{var n=$(e,t)}catch(i){return i.Ka}if(e=te(e,"wx"))return e;if(r){if(!H(n.mode))return 54;if(n===n.parent||le(n)==="/")return 10}else if(H(n.mode))return 31;return 0}function qr(){for(var e=0;4096>=e;e++)if(!fe[e])return e;throw new l(33)}function S(e){if(e=fe[e],!e)throw new l(8);return e}function Tt(e,t=-1){return pe||(pe=function(){this.$a={}},pe.prototype={},Object.defineProperties(pe.prototype,{object:{get(){return this.node},set(r){this.node=r}},flags:{get(){return this.$a.flags},set(r){this.$a.flags=r}},position:{get(){return this.$a.position},set(r){this.$a.position=r}}})),e=Object.assign(new pe,e),t==-1&&(t=qr()),e.fd=t,fe[t]=e}var Er={open(e){var t,r;e.Ha=St[e.node.rdev].Ha,(r=(t=e.Ha).open)==null||r.call(t,e)},Ta(){throw new l(70)}};function Ye(e,t){St[e]={Ha:t}}function Dt(e,t){var r=t==="/",n=!t;if(r&&$e)throw new l(10);if(!r&&!n){var i=G(t,{qb:!1});if(t=i.path,i=i.node,i.Va)throw new l(10);if(!H(i.mode))throw new l(54)}t={type:e,Pb:{},tb:t,Cb:[]},e=e.Ra(t),e.Ra=t,t.root=e,r?$e=e:i&&(i.Va=t,i.Ra&&i.Ra.Cb.push(t))}function ke(e,t,r){var n=G(e,{parent:!0}).node;if(e=Me(e),!e||e==="."||e==="..")throw new l(28);var i=Nt(n,e);if(i)throw new l(i);if(!n.Ga.ab)throw new l(63);return n.Ga.ab(n,e,t,r)}function D(e,t){return ke(e,(t!==void 0?t:511)&1023|16384,0)}function xe(e,t,r){typeof r>"u"&&(r=t,t=438),ke(e,t|8192,r)}function Xe(e,t){if(!Ae(e))throw new l(44);var r=G(t,{parent:!0}).node;if(!r)throw new l(44);t=Me(t);var n=Nt(r,t);if(n)throw new l(n);if(!r.Ga.symlink)throw new l(63);r.Ga.symlink(r,t,e)}function Pt(e){var t=G(e,{parent:!0}).node;e=Me(e);var r=$(t,e),n=jt(t,e,!0);if(n)throw new l(n);if(!t.Ga.rmdir)throw new l(63);if(r.Va)throw new l(10);t.Ga.rmdir(t,e),Rt(r)}function Ut(e){var t=G(e,{parent:!0}).node;if(!t)throw new l(44);e=Me(e);var r=$(t,e),n=jt(t,e,!1);if(n)throw new l(n);if(!t.Ga.unlink)throw new l(63);if(r.Va)throw new l(10);t.Ga.unlink(t,e),Rt(r)}function Ft(e){if(e=G(e).node,!e)throw new l(44);if(!e.Ga.readlink)throw new l(28);return Ae(le(e.parent),e.Ga.readlink(e))}function he(e,t){if(e=G(e,{Sa:!t}).node,!e)throw new l(44);if(!e.Ga.Pa)throw new l(63);return e.Ga.Pa(e)}function Wt(e){return he(e,!0)}function Ie(e,t){if(e=typeof e=="string"?G(e,{Sa:!0}).node:e,!e.Ga.Oa)throw new l(63);e.Ga.Oa(e,{mode:t&4095|e.mode&-4096,timestamp:Date.now()})}function zt(e,t){if(0>t)throw new l(28);if(e=typeof e=="string"?G(e,{Sa:!0}).node:e,!e.Ga.Oa)throw new l(63);if(H(e.mode))throw new l(31);if((e.mode&61440)!==32768)throw new l(28);var r=te(e,"w");if(r)throw new l(r);e.Ga.Oa(e,{size:t,timestamp:Date.now()})}function re(e,t,r){if(e==="")throw new l(44);if(typeof t=="string"){var n={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(typeof n>"u")throw Error(`Unknown file open mode: ${t}`);t=n}if(r=t&64?(typeof r>"u"?438:r)&4095|32768:0,typeof e=="object")var i=e;else{e=W(e);try{i=G(e,{Sa:!(t&131072)}).node}catch{}}if(n=!1,t&64)if(i){if(t&128)throw new l(20)}else i=ke(e,r,0),n=!0;if(!i)throw new l(44);if((i.mode&61440)===8192&&(t&=-513),t&65536&&!H(i.mode))throw new l(54);if(!n&&(r=i?(i.mode&61440)===40960?32:H(i.mode)&&(Lt(t)!=="r"||t&512)?31:te(i,Lt(t)):44))throw new l(r);return t&512&&!n&&zt(i,0),t&=-131713,i=Tt({node:i,path:le(i),flags:t,seekable:!0,position:0,Ha:i.Ha,Fb:[],error:!1}),i.Ha.open&&i.Ha.open(i),!o.logReadFiles||t&1||(et||(et={}),e in et||(et[e]=1)),i}function Ze(e){if(e.fd===null)throw new l(8);e.hb&&(e.hb=null);try{e.Ha.close&&e.Ha.close(e)}catch(t){throw t}finally{fe[e.fd]=null}e.fd=null}function Jt(e,t,r){if(e.fd===null)throw new l(8);if(!e.seekable||!e.Ha.Ta)throw new l(70);if(r!=0&&r!=1&&r!=2)throw new l(28);e.position=e.Ha.Ta(e,t,r),e.Fb=[]}function Bt(e,t,r,n,i){if(0>n||0>i)throw new l(28);if(e.fd===null)throw new l(8);if((e.flags&2097155)===1)throw new l(8);if(H(e.node.mode))throw new l(31);if(!e.Ha.read)throw new l(28);var s=typeof i<"u";if(!s)i=e.position;else if(!e.seekable)throw new l(70);return t=e.Ha.read(e,t,r,n,i),s||(e.position+=t),t}function Ct(e,t,r,n,i){if(0>n||0>i)throw new l(28);if(e.fd===null)throw new l(8);if(!(e.flags&2097155))throw new l(8);if(H(e.node.mode))throw new l(31);if(!e.Ha.write)throw new l(28);e.seekable&&e.flags&1024&&Jt(e,0,2);var s=typeof i<"u";if(!s)i=e.position;else if(!e.seekable)throw new l(70);return t=e.Ha.write(e,t,r,n,i,void 0),s||(e.position+=t),t}function Mr(e){var t,r=re(e,r||0);e=he(e).size;var n=new Uint8Array(e);return Bt(r,n,0,e,0),t=n,Ze(r),t}function Kt(){l||(l=function(e,t){this.name="ErrnoError",this.node=t,this.Eb=function(r){this.Ka=r},this.Eb(e),this.message="FS error"},l.prototype=Error(),l.prototype.constructor=l,[44].forEach(e=>{Qe[e]=new l(e),Qe[e].stack=""}))}var $t;function ce(e,t,r){e=W("/dev/"+e);var n=Ot(!!t,!!r);Qt||(Qt=64);var i=Qt++<<8|0;Ye(i,{open(s){s.seekable=!1},close(){var s;(s=r==null?void 0:r.buffer)!=null&&s.length&&r(10)},read(s,u,m,b){for(var w=0,x=0;x>2]=n.dev,_[r+4>>2]=n.mode,M[r+8>>2]=n.nlink,_[r+12>>2]=n.uid,_[r+16>>2]=n.gid,_[r+20>>2]=n.rdev,A=[n.size>>>0,(p=n.size,1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[r+24>>2]=A[0],_[r+28>>2]=A[1],_[r+32>>2]=4096,_[r+36>>2]=n.blocks,e=n.atime.getTime(),t=n.mtime.getTime();var i=n.ctime.getTime();return A=[Math.floor(e/1e3)>>>0,(p=Math.floor(e/1e3),1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[r+40>>2]=A[0],_[r+44>>2]=A[1],M[r+48>>2]=e%1e3*1e3,A=[Math.floor(t/1e3)>>>0,(p=Math.floor(t/1e3),1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[r+56>>2]=A[0],_[r+60>>2]=A[1],M[r+64>>2]=t%1e3*1e3,A=[Math.floor(i/1e3)>>>0,(p=Math.floor(i/1e3),1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[r+72>>2]=A[0],_[r+76>>2]=A[1],M[r+80>>2]=i%1e3*1e3,A=[n.ino>>>0,(p=n.ino,1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[r+88>>2]=A[0],_[r+92>>2]=A[1],0}var Se=void 0;function Ge(){var e=_[+Se>>2];return Se+=4,e}var me=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,Ar=[0,31,60,91,121,152,182,213,244,274,305,335],kr=[0,31,59,90,120,151,181,212,243,273,304,334],Vt=e=>{var t=Z(e)+1,r=Ne(t);return r&&ee(e,g,r,t),r},tt={},Yt=()=>{if(!rt){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Pe||"./this.program"},t;for(t in tt)tt[t]===void 0?delete e[t]:e[t]=tt[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);rt=r}return rt},rt,nt=e=>{var t=Z(e)+1,r=B(t);return ee(e,g,r,t),r},xr=(e,t,r,n)=>{var i={string:w=>{var x=0;return w!=null&&w!==0&&(x=nt(w)),x},array:w=>{var x=B(w.length);return I.set(w,x),x}};e=o["_"+e];var s=[],u=0;if(n)for(var m=0;m(t=t==1?B(e.length):Ne(e.length),e.subarray||e.slice||(e=new Uint8Array(e)),g.set(e,t),t),V,it=[],z,ne=e=>{V.delete(z.get(e)),z.set(e,null),it.push(e)},Le=(e,t)=>{if(!V){V=new WeakMap;var r=z.length;if(V)for(var n=0;n<0+r;n++){var i=z.get(n);i&&V.set(i,n)}}if(r=V.get(e)||0)return r;if(it.length)r=it.pop();else{try{z.grow(1)}catch(m){throw m instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":m}r=z.length-1}try{z.set(r,e)}catch(m){if(!(m instanceof TypeError))throw m;if(typeof WebAssembly.Function=="function"){n=WebAssembly.Function,i={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var s={parameters:[],results:t[0]=="v"?[]:[i[t[0]]]},u=1;uu?n.push(u):n.push(u%128|128,u>>7),u=0;ui?t.push(i):t.push(i%128|128,i>>7),t.push.apply(t,n),t.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),t=new WebAssembly.Module(new Uint8Array(t)),t=new WebAssembly.Instance(t,{e:{f:e}}).exports.f}z.set(r,t)}return V.set(e,r),r};function Xt(e,t,r,n){e||(e=this),this.parent=e,this.Ra=e.Ra,this.Va=null,this.id=gr++,this.name=t,this.mode=r,this.Ga={},this.Ha={},this.rdev=n}Object.defineProperties(Xt.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(e){e?this.mode|=146:this.mode&=-147}}}),Kt(),J=Array(4096),Dt(y,"/"),D("/tmp"),D("/home"),D("/home/web_user"),function(){D("/dev"),Ye(259,{read:()=>0,write:(n,i,s,u)=>u}),xe("/dev/null",259),xt(1280,vr),xt(1536,br),xe("/dev/tty",1280),xe("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,r=()=>(t===0&&(t=Mt(e).byteLength),e[--t]);ce("random",r),ce("urandom",r),D("/dev/shm"),D("/dev/shm/tmp")}(),function(){D("/proc");var e=D("/proc/self");D("/proc/self/fd"),Dt({Ra(){var t=Ht(e,"fd",16895,73);return t.Ga={lookup(r,n){var i=S(+n);return r={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>i.path}},r.parent=r}},t}},"/proc/self/fd")}();var Ir={a:(e,t,r,n)=>{U(`Assertion failed: ${e?k(g,e):""}, at: `+[t?t?k(g,t):"":"unknown filename",r,n?n?k(g,n):"":"unknown function"])},h:function(e,t){try{return e=e?k(g,e):"",Ie(e,t),0}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Ka}},H:function(e,t,r){try{if(t=t?k(g,t):"",t=Q(e,t),r&-8)return-28;var n=G(t,{Sa:!0}).node;return n?(e="",r&4&&(e+="r"),r&2&&(e+="w"),r&1&&(e+="x"),e&&te(n,e)?-2:0):-44}catch(i){if(typeof E>"u"||i.name!=="ErrnoError")throw i;return-i.Ka}},i:function(e,t){try{var r=S(e);return Ie(r.node,t),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Ka}},g:function(e){try{var t=S(e).node,r=typeof t=="string"?G(t,{Sa:!0}).node:t;if(!r.Ga.Oa)throw new l(63);return r.Ga.Oa(r,{timestamp:Date.now()}),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Ka}},b:function(e,t,r){Se=r;try{var n=S(e);switch(t){case 0:var i=Ge();if(0>i)return-28;for(;fe[i];)i++;return Tt(n,i).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:return i=Ge(),n.flags|=i,0;case 5:return i=Ge(),ae[i+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return _[Zt()>>2]=28,-1;default:return-28}}catch(s){if(typeof E>"u"||s.name!=="ErrnoError")throw s;return-s.Ka}},f:function(e,t){try{var r=S(e);return Oe(he,r.path,t)}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Ka}},n:function(e,t,r){t=me(t,r);try{if(isNaN(t))return 61;var n=S(e);if(!(n.flags&2097155))throw new l(28);return zt(n.node,t),0}catch(i){if(typeof E>"u"||i.name!=="ErrnoError")throw i;return-i.Ka}},C:function(e,t){try{if(t===0)return-28;var r=Z("/")+1;return t"u"||n.name!=="ErrnoError")throw n;return-n.Ka}},F:function(e,t){try{return e=e?k(g,e):"",Oe(Wt,e,t)}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Ka}},z:function(e,t,r){try{return t=t?k(g,t):"",t=Q(e,t),t=W(t),t[t.length-1]==="/"&&(t=t.substr(0,t.length-1)),D(t,r),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Ka}},E:function(e,t,r,n){try{t=t?k(g,t):"";var i=n&256;return t=Q(e,t,n&4096),Oe(i?Wt:he,t,r)}catch(s){if(typeof E>"u"||s.name!=="ErrnoError")throw s;return-s.Ka}},y:function(e,t,r,n){Se=n;try{t=t?k(g,t):"",t=Q(e,t);var i=n?Ge():0;return re(t,r,i).fd}catch(s){if(typeof E>"u"||s.name!=="ErrnoError")throw s;return-s.Ka}},w:function(e,t,r,n){try{if(t=t?k(g,t):"",t=Q(e,t),0>=n)return-28;var i=Ft(t),s=Math.min(n,Z(i)),u=I[r+s];return ee(i,g,r,n+1),I[r+s]=u,s}catch(m){if(typeof E>"u"||m.name!=="ErrnoError")throw m;return-m.Ka}},v:function(e){try{return e=e?k(g,e):"",Pt(e),0}catch(t){if(typeof E>"u"||t.name!=="ErrnoError")throw t;return-t.Ka}},G:function(e,t){try{return e=e?k(g,e):"",Oe(he,e,t)}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Ka}},r:function(e,t,r){try{return t=t?k(g,t):"",t=Q(e,t),r===0?Ut(t):r===512?Pt(t):U("Invalid flags passed to unlinkat"),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Ka}},q:function(e,t,r){try{if(t=t?k(g,t):"",t=Q(e,t,!0),r){var n=M[r>>2]+4294967296*_[r+4>>2],i=_[r+8>>2];s=1e3*n+i/1e6,r+=16,n=M[r>>2]+4294967296*_[r+4>>2],i=_[r+8>>2],u=1e3*n+i/1e6}else var s=Date.now(),u=s;e=s;var m=G(t,{Sa:!0}).node;return m.Ga.Oa(m,{timestamp:Math.max(e,u)}),0}catch(b){if(typeof E>"u"||b.name!=="ErrnoError")throw b;return-b.Ka}},l:function(e,t,r){e=new Date(1e3*me(e,t)),_[r>>2]=e.getSeconds(),_[r+4>>2]=e.getMinutes(),_[r+8>>2]=e.getHours(),_[r+12>>2]=e.getDate(),_[r+16>>2]=e.getMonth(),_[r+20>>2]=e.getFullYear()-1900,_[r+24>>2]=e.getDay(),t=e.getFullYear(),_[r+28>>2]=(t%4!==0||t%100===0&&t%400!==0?kr:Ar)[e.getMonth()]+e.getDate()-1|0,_[r+36>>2]=-(60*e.getTimezoneOffset()),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();_[r+32>>2]=(t!=n&&e.getTimezoneOffset()==Math.min(n,t))|0},j:function(e,t,r,n,i,s,u,m){i=me(i,s);try{if(isNaN(i))return 61;var b=S(n);if(t&2&&!(r&2)&&(b.flags&2097155)!==2)throw new l(2);if((b.flags&2097155)===1)throw new l(2);if(!b.Ha.bb)throw new l(43);var w=b.Ha.bb(b,e,i,t,r),x=w.Db;return _[u>>2]=w.ub,M[m>>2]=x,0}catch(O){if(typeof E>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},k:function(e,t,r,n,i,s,u){s=me(s,u);try{if(isNaN(s))return 61;var m=S(i);if(r&2){if((m.node.mode&61440)!==32768)throw new l(43);if(!(n&2)){var b=g.slice(e,e+t);m.Ha.cb&&m.Ha.cb(m,b,s,t,n)}}}catch(w){if(typeof E>"u"||w.name!=="ErrnoError")throw w;return-w.Ka}},s:(e,t,r)=>{function n(b){return(b=b.toTimeString().match(/\(([A-Za-z ]+)\)$/))?b[1]:"GMT"}var i=new Date().getFullYear(),s=new Date(i,0,1),u=new Date(i,6,1);i=s.getTimezoneOffset();var m=u.getTimezoneOffset();M[e>>2]=60*Math.max(i,m),_[t>>2]=+(i!=m),e=n(s),t=n(u),e=Vt(e),t=Vt(t),m>2]=e,M[r+4>>2]=t):(M[r>>2]=t,M[r+4>>2]=e)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:e=>{var t=g.length;if(e>>>=0,2147483648=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);var i=Math;n=Math.max(e,n);e:{i=(i.min.call(i,2147483648,n+(65536-n%65536)%65536)-qe.buffer.byteLength+65535)/65536;try{qe.grow(i),mt();var s=1;break e}catch{}s=void 0}if(s)return!0}return!1},A:(e,t)=>{var r=0;return Yt().forEach((n,i)=>{var s=t+r;for(i=M[e+4*i>>2]=s,s=0;s>0]=n.charCodeAt(s);I[i>>0]=0,r+=n.length+1}),0},B:(e,t)=>{var r=Yt();M[e>>2]=r.length;var n=0;return r.forEach(i=>n+=i.length+1),M[t>>2]=n,0},e:function(e){try{var t=S(e);return Ze(t),0}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return r.Ka}},p:function(e,t){try{var r=S(e);return I[t>>0]=r.tty?2:H(r.mode)?3:(r.mode&61440)===40960?7:4,ae[t+2>>1]=0,A=[0,(p=0,1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[t+8>>2]=A[0],_[t+12>>2]=A[1],A=[0,(p=0,1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[t+16>>2]=A[0],_[t+20>>2]=A[1],0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return n.Ka}},x:function(e,t,r,n){try{e:{var i=S(e);e=t;for(var s,u=t=0;u>2],b=M[e+4>>2];e+=8;var w=Bt(i,I,m,b,s);if(0>w){var x=-1;break e}if(t+=w,w>2]=x,0}catch(O){if(typeof E>"u"||O.name!=="ErrnoError")throw O;return O.Ka}},m:function(e,t,r,n,i){t=me(t,r);try{if(isNaN(t))return 61;var s=S(e);return Jt(s,t,n),A=[s.position>>>0,(p=s.position,1<=+Math.abs(p)?0>>0:~~+Math.ceil((p-+(~~p>>>0))/4294967296)>>>0:0)],_[i>>2]=A[0],_[i+4>>2]=A[1],s.hb&&t===0&&n===0&&(s.hb=null),0}catch(u){if(typeof E>"u"||u.name!=="ErrnoError")throw u;return u.Ka}},D:function(e){var r;try{var t=S(e);return(r=t.Ha)!=null&&r.fsync?t.Ha.fsync(t):0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return n.Ka}},u:function(e,t,r,n){try{e:{var i=S(e);e=t;for(var s,u=t=0;u>2],b=M[e+4>>2];e+=8;var w=Ct(i,I,m,b,s);if(0>w){var x=-1;break e}t+=w,typeof s<"u"&&(s+=w)}x=t}return M[n>>2]=x,0}catch(O){if(typeof E>"u"||O.name!=="ErrnoError")throw O;return O.Ka}}},c=function(){var r;function e(n){var i;return c=n.exports,qe=c.I,mt(),z=c.Aa,_t.unshift(c.J),K--,(i=o.monitorRunDependencies)==null||i.call(o,K),K==0&&se&&(n=se,se=null,n()),c}var t={a:Ir};if(K++,(r=o.monitorRunDependencies)==null||r.call(o,K),o.instantiateWasm)try{return o.instantiateWasm(t,e)}catch(n){return C(`Module.instantiateWasm callback failed with error: ${n}`),!1}return dr(t,function(n){e(n.instance)}),{}}();o._sqlite3_free=e=>(o._sqlite3_free=c.K)(e),o._sqlite3_value_text=e=>(o._sqlite3_value_text=c.L)(e);var Zt=()=>(Zt=c.M)();o._sqlite3_prepare_v2=(e,t,r,n,i)=>(o._sqlite3_prepare_v2=c.N)(e,t,r,n,i),o._sqlite3_step=e=>(o._sqlite3_step=c.O)(e),o._sqlite3_reset=e=>(o._sqlite3_reset=c.P)(e),o._sqlite3_exec=(e,t,r,n,i)=>(o._sqlite3_exec=c.Q)(e,t,r,n,i),o._sqlite3_finalize=e=>(o._sqlite3_finalize=c.R)(e),o._sqlite3_column_name=(e,t)=>(o._sqlite3_column_name=c.S)(e,t),o._sqlite3_column_text=(e,t)=>(o._sqlite3_column_text=c.T)(e,t),o._sqlite3_column_type=(e,t)=>(o._sqlite3_column_type=c.U)(e,t),o._sqlite3_errmsg=e=>(o._sqlite3_errmsg=c.V)(e),o._sqlite3_clear_bindings=e=>(o._sqlite3_clear_bindings=c.W)(e),o._sqlite3_value_blob=e=>(o._sqlite3_value_blob=c.X)(e),o._sqlite3_value_bytes=e=>(o._sqlite3_value_bytes=c.Y)(e),o._sqlite3_value_double=e=>(o._sqlite3_value_double=c.Z)(e),o._sqlite3_value_int=e=>(o._sqlite3_value_int=c._)(e),o._sqlite3_value_type=e=>(o._sqlite3_value_type=c.$)(e),o._sqlite3_result_blob=(e,t,r,n)=>(o._sqlite3_result_blob=c.aa)(e,t,r,n),o._sqlite3_result_double=(e,t)=>(o._sqlite3_result_double=c.ba)(e,t),o._sqlite3_result_error=(e,t,r)=>(o._sqlite3_result_error=c.ca)(e,t,r),o._sqlite3_result_int=(e,t)=>(o._sqlite3_result_int=c.da)(e,t),o._sqlite3_result_int64=(e,t,r)=>(o._sqlite3_result_int64=c.ea)(e,t,r),o._sqlite3_result_null=e=>(o._sqlite3_result_null=c.fa)(e),o._sqlite3_result_text=(e,t,r,n)=>(o._sqlite3_result_text=c.ga)(e,t,r,n),o._sqlite3_aggregate_context=(e,t)=>(o._sqlite3_aggregate_context=c.ha)(e,t),o._sqlite3_column_count=e=>(o._sqlite3_column_count=c.ia)(e),o._sqlite3_data_count=e=>(o._sqlite3_data_count=c.ja)(e),o._sqlite3_column_blob=(e,t)=>(o._sqlite3_column_blob=c.ka)(e,t),o._sqlite3_column_bytes=(e,t)=>(o._sqlite3_column_bytes=c.la)(e,t),o._sqlite3_column_double=(e,t)=>(o._sqlite3_column_double=c.ma)(e,t),o._sqlite3_bind_blob=(e,t,r,n,i)=>(o._sqlite3_bind_blob=c.na)(e,t,r,n,i),o._sqlite3_bind_double=(e,t,r)=>(o._sqlite3_bind_double=c.oa)(e,t,r),o._sqlite3_bind_int=(e,t,r)=>(o._sqlite3_bind_int=c.pa)(e,t,r),o._sqlite3_bind_text=(e,t,r,n,i)=>(o._sqlite3_bind_text=c.qa)(e,t,r,n,i),o._sqlite3_bind_parameter_index=(e,t)=>(o._sqlite3_bind_parameter_index=c.ra)(e,t),o._sqlite3_sql=e=>(o._sqlite3_sql=c.sa)(e),o._sqlite3_normalized_sql=e=>(o._sqlite3_normalized_sql=c.ta)(e),o._sqlite3_changes=e=>(o._sqlite3_changes=c.ua)(e),o._sqlite3_close_v2=e=>(o._sqlite3_close_v2=c.va)(e),o._sqlite3_create_function_v2=(e,t,r,n,i,s,u,m,b)=>(o._sqlite3_create_function_v2=c.wa)(e,t,r,n,i,s,u,m,b),o._sqlite3_open=(e,t)=>(o._sqlite3_open=c.xa)(e,t);var Ne=o._malloc=e=>(Ne=o._malloc=c.ya)(e),je=o._free=e=>(je=o._free=c.za)(e);o._RegisterExtensionFunctions=e=>(o._RegisterExtensionFunctions=c.Ba)(e);var er=(e,t)=>(er=c.Ca)(e,t),de=()=>(de=c.Da)(),_e=e=>(_e=c.Ea)(e),B=e=>(B=c.Fa)(e);o.stackAlloc=B,o.stackSave=de,o.stackRestore=_e,o.cwrap=(e,t,r,n)=>{var i=!r||r.every(s=>s==="number"||s==="boolean");return t!=="string"&&i&&!n?o["_"+e]:function(){return xr(e,t,r,arguments)}},o.addFunction=Le,o.removeFunction=ne,o.UTF8ToString=Ce,o.ALLOC_NORMAL=Re,o.allocate=He,o.allocateUTF8OnStack=nt;var Te;se=function e(){Te||tr(),Te||(se=e)};function tr(){function e(){if(!Te&&(Te=!0,o.calledRun=!0,!pt)){if(o.noFSInit||$t||($t=!0,Kt(),o.stdin=o.stdin,o.stdout=o.stdout,o.stderr=o.stderr,o.stdin?ce("stdin",o.stdin):Xe("/dev/tty","/dev/stdin"),o.stdout?ce("stdout",null,o.stdout):Xe("/dev/tty","/dev/stdout"),o.stderr?ce("stderr",null,o.stderr):Xe("/dev/tty1","/dev/stderr"),re("/dev/stdin",0),re("/dev/stdout",1),re("/dev/stderr",1)),Gt=!1,Be(_t),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var t=o.postRun.shift();wt.unshift(t)}Be(wt)}}if(!(0l(n)))==null?void 0:s.classGroupId}const Q=/^\[(.+)\]$/;function se(e){if(Q.test(e)){const r=Q.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function ie(e){const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return ae(Object.entries(e.classGroups),t).forEach(([n,s])=>{_(s,o,n,r)}),o}function _(e,r,t,o){e.forEach(a=>{if(typeof a=="string"){const n=a===""?r:Y(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(le(a)){_(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,s])=>{_(s,Y(r,n),t,o)})})}function Y(e,r){let t=e;return r.split($).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function le(e){return e.isThemeGetter}function ae(e,r){return r?e.map(([t,o])=>{const a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,l])=>[r+s,l])):n);return[t,a]}):e}function ce(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function a(n,s){t.set(n,s),r++,r>e&&(r=0,o=t,t=new Map)}return{get(n){let s=t.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return a(n,s),s},set(n,s){t.has(n)?t.set(n,s):a(n,s)}}}const ee="!";function de(e){const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],n=r.length;function s(l){const u=[];let f=0,p=0,g;for(let b=0;bp?g-p:void 0;return{modifiers:u,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:y}}return t?function(u){return t({className:u,parseClassName:s})}:s}function ue(e){if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r}function pe(e){return{cache:ce(e.cacheSize),parseClassName:de(e),...ne(e)}}const be=/\s+/;function fe(e,r){const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=new Set;return e.trim().split(be).map(s=>{const{modifiers:l,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:p}=t(s);let g=!!p,h=o(g?f.substring(0,p):f);if(!h){if(!g)return{isTailwindClass:!1,originalClassName:s};if(h=o(f),!h)return{isTailwindClass:!1,originalClassName:s};g=!1}const x=ue(l).join(":");return{isTailwindClass:!0,modifierId:u?x+ee:x,classGroupId:h,originalClassName:s,hasPostfixModifier:g}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:l,classGroupId:u,hasPostfixModifier:f}=s,p=l+u;return n.has(p)?!1:(n.add(p),a(u,f).forEach(g=>n.add(l+g)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function ge(){let e=0,r,t,o="";for(;eg(p),e());return t=pe(f),o=t.cache.get,a=t.cache.set,n=l,l(u)}function l(u){const f=o(u);if(f)return f;const p=fe(u,t);return a(u,p),p}return function(){return n(ge.apply(null,arguments))}}function c(e){const r=t=>t[e]||[];return r.isThemeGetter=!0,r}const te=/^\[(?:([a-z-]+):)?(.+)\]$/i,he=/^\d+\/\d+$/,ye=new Set(["px","full","screen"]),xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,we=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ve=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function v(e){return z(e)||ye.has(e)||he.test(e)}function k(e){return A(e,"length",Pe)}function z(e){return!!e&&!Number.isNaN(Number(e))}function j(e){return A(e,"number",z)}function R(e){return!!e&&Number.isInteger(Number(e))}function ze(e){return e.endsWith("%")&&z(e.slice(0,-1))}function i(e){return te.test(e)}function C(e){return xe.test(e)}const Se=new Set(["length","size","percentage"]);function Ae(e){return A(e,Se,oe)}function Me(e){return A(e,"position",oe)}const Ge=new Set(["image","url"]);function Re(e){return A(e,Ge,Ee)}function Ie(e){return A(e,"",Te)}function I(){return!0}function A(e,r,t){const o=te.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function Pe(e){return we.test(e)&&!ve.test(e)}function oe(){return!1}function Te(e){return ke.test(e)}function Ee(e){return Ce.test(e)}function je(){const e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),s=c("borderSpacing"),l=c("borderWidth"),u=c("contrast"),f=c("grayscale"),p=c("hueRotate"),g=c("invert"),h=c("gap"),x=c("gradientColorStops"),S=c("gradientColorStopPositions"),y=c("inset"),b=c("margin"),m=c("opacity"),w=c("padding"),B=c("saturate"),N=c("scale"),U=c("sepia"),F=c("skew"),q=c("space"),J=c("translate"),L=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",i,r],d=()=>[i,r],X=()=>["",v,k],P=()=>["auto",z,i],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",i],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[z,j],E=()=>[z,i];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[v,k],blur:["none","",C,i],brightness:G(),borderColor:[e],borderRadius:["none","","full",C,i],borderSpacing:d(),borderWidth:X(),contrast:G(),grayscale:M(),hueRotate:E(),invert:M(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[ze,k],inset:V(),margin:V(),opacity:G(),padding:d(),saturate:G(),scale:G(),sepia:M(),skew:E(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),i]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,i]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",R,i]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",R,i]},i]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[R,i]},i]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[C]},C]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",C,k]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",z,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",v,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",v,k]}],"underline-offset":[{"underline-offset":["auto",v,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Me]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ae]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Re]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:T()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[v,i]}],"outline-w":[{outline:[v,k]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[v,k]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,Ie]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",C,i]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[B]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[R,i]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[v,k,j]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Ne=me(je);export{Ne as t}; diff --git a/assets/tailwind-merge-BkWO730n.js.gz b/assets/tailwind-merge-BkWO730n.js.gz new file mode 100644 index 0000000..656c158 Binary files /dev/null and b/assets/tailwind-merge-BkWO730n.js.gz differ diff --git a/assets/tslib-CuZy2iRz.js b/assets/tslib-CuZy2iRz.js new file mode 100644 index 0000000..baaef1c --- /dev/null +++ b/assets/tslib-CuZy2iRz.js @@ -0,0 +1 @@ +var y=function(){return y=Object.assign||function(u){for(var r,t=1,a=arguments.length;t0&&e[e.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!e||n[1]>e[0]&&n[1]0)&&!(a=t.next()).done;)e.push(a.value)}catch(o){c={error:o}}finally{try{a&&!a.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return e}function w(l,u,r){if(r||arguments.length===2)for(var t=0,a=u.length,e;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?F:C;j.useSyncExternalStore=f.useSyncExternalStore!==void 0?f.useSyncExternalStore:L;$.exports=j;var M=$.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var v=E,R=M;function W(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var z=typeof Object.is=="function"?Object.is:W,A=R.useSyncExternalStore,B=v.useRef,G=v.useEffect,H=v.useMemo,I=v.useDebugValue;w.useSyncExternalStoreWithSelector=function(e,t,n,i,r){var u=B(null);if(u.current===null){var c={hasValue:!1,value:null};u.current=c}else c=u.current;u=H(function(){function d(o){if(!x){if(x=!0,p=o,o=i(o),r!==void 0&&c.hasValue){var s=c.value;if(r(s,o))return l=s}return l=o}if(s=l,z(p,o))return s;var m=i(o);return r!==void 0&&r(s,m)?s:(p=o,l=m)}var x=!1,p,l,h=n===void 0?null:n;return[function(){return d(t())},h===null?void 0:function(){return d(h())}]},[t,n,i,r]);var a=A(e,u[0],u[1]);return G(function(){c.hasValue=!0,c.value=a},[a]),I(a),a};y.exports=w;var J=y.exports;const P=V(J);export{P as u}; diff --git a/assets/use-sync-external-store-ByYeed7R.js.gz b/assets/use-sync-external-store-ByYeed7R.js.gz new file mode 100644 index 0000000..9e5551a Binary files /dev/null and b/assets/use-sync-external-store-ByYeed7R.js.gz differ diff --git a/assets/vaul-t6qA3T7B.js b/assets/vaul-t6qA3T7B.js new file mode 100644 index 0000000..d6366d5 --- /dev/null +++ b/assets/vaul-t6qA3T7B.js @@ -0,0 +1 @@ +import{O as ct,C as ft,T as dt,P as mt,a as ht,b as wt,D as gt,R as pt}from"./@radix-ui-D_gCN1bM.js";import{R as r,r as Se}from"./react-DmpIMwDM.js";function vt(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}const _e=r.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),de=()=>{const e=r.useContext(_e);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};vt("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const bt=typeof window<"u"?Se.useLayoutEffect:Se.useEffect;function De(...e){return(...n)=>{for(let t of e)typeof t=="function"&&t(...n)}}function yt(){return Re(/^Mac/)}function Et(){return Re(/^iPhone/)}function St(){return Re(/^iPad/)||yt()&&navigator.maxTouchPoints>1}function Ve(){return Et()||St()}function Re(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const be=typeof document<"u"&&window.visualViewport;function He(e){let n=window.getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}function We(e){for(He(e)&&(e=e.parentElement);e&&!He(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Dt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let se=0,ye;function Tt(e={}){let{isDisabled:n}=e;bt(()=>{if(!n)return se++,se===1&&(Ve()?ye=$t():ye=Rt()),()=>{se--,se===0&&ye()}},[n])}function Rt(){return De(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function $t(){let e,n=0,t=g=>{e=We(g.target),!(e===document.documentElement&&e===document.body)&&(n=g.changedTouches[0].pageY)},l=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let d=g.changedTouches[0].pageY,c=e.scrollTop,N=e.scrollHeight-e.clientHeight;N!==0&&((c<=0&&d>n||c>=N&&d{let d=g.target;Te(d)&&d!==document.activeElement&&(g.preventDefault(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""}))},a=g=>{let d=g.target;Te(d)&&(d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",be&&(be.height{Pe(d)}):be.addEventListener("resize",()=>Pe(d),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},h=window.pageXOffset,y=window.pageYOffset,T=De(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let M=De(ne(document,"touchstart",t,{passive:!1,capture:!0}),ne(document,"touchmove",l,{passive:!1,capture:!0}),ne(document,"touchend",i,{passive:!1,capture:!0}),ne(document,"focus",a,!0),ne(window,"scroll",s));return()=>{T(),M(),window.scrollTo(h,y)}}function ke(e,n,t){let l=e.style[n];return e.style[n]=t,()=>{e.style[n]=l}}function ne(e,n,t,l){return e.addEventListener(n,t,l),()=>{e.removeEventListener(n,t,l)}}function Pe(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let t=We(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let l=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const s=t.getBoundingClientRect().bottom;a>s&&(t.scrollTop+=i-l)}e=t.parentElement}}function Te(e){return e instanceof HTMLInputElement&&!Dt.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function xt(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function Ot(...e){return n=>e.forEach(t=>xt(t,n))}function ze(...e){return Se.useCallback(Ot(...e),e)}let re=null;function Ct({isOpen:e,modal:n,nested:t,hasBeenOpened:l,preventScrollRestoration:i,noBodyStyles:a}){const[s,h]=r.useState(()=>typeof window<"u"?window.location.href:""),y=r.useRef(0),T=r.useCallback(()=>{if(re===null&&e&&!a){re={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:d}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-y.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const c=d-window.innerHeight;c&&y.current>=d&&(document.body.style.top=`${-(y.current+c)}px`)}),300)}},[e]),M=r.useCallback(()=>{if(re!==null&&!a){const g=-parseInt(document.body.style.top,10),d=-parseInt(document.body.style.left,10);Object.assign(document.body.style,re),window.requestAnimationFrame(()=>{if(i&&s!==window.location.href){h(window.location.href);return}window.scrollTo(d,g)}),re=null}},[s]);return r.useEffect(()=>{function g(){y.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),r.useEffect(()=>{t||!l||(e?(!window.matchMedia("(display-mode: standalone)").matches&&T(),n||window.setTimeout(()=>{M()},500)):M())},[e,l,s,n,t,T,M]),{restorePositionSetting:M}}const je=new WeakMap;function S(e,n,t=!1){if(!e||!(e instanceof HTMLElement))return;let l={};Object.entries(n).forEach(([i,a])=>{if(i.startsWith("--")){e.style.setProperty(i,a);return}l[i]=e.style[i],e.style[i]=a}),!t&&je.set(e,l)}function ce(e,n){if(!e||!(e instanceof HTMLElement))return;let t=je.get(e);t&&(n?e.style[n]=t[n]:Object.entries(t).forEach(([l,i])=>{e.style[l]=i}))}const A=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function fe(e,n){if(!e)return null;const t=window.getComputedStyle(e),l=t.transform||t.webkitTransform||t.mozTransform;let i=l.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[A(n)?13:12]):(i=l.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[A(n)?5:4]):null)}function At(e){return 8*(Math.log(e+1)-2)}const E={DURATION:.5,EASE:[.32,.72,0,1]},Be=.4;function Ye(e){const n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...t)=>n.current==null?void 0:n.current.call(n,...t),[])}function Mt({defaultProp:e,onChange:n}){const t=r.useState(e),[l]=t,i=r.useRef(l),a=Ye(n);return r.useEffect(()=>{i.current!==l&&(a(l),i.current=l)},[l,i,a]),t}function It({prop:e,defaultProp:n,onChange:t=()=>{}}){const[l,i]=Mt({defaultProp:n,onChange:t}),a=e!==void 0,s=a?e:l,h=Ye(t),y=r.useCallback(T=>{if(a){const g=typeof T=="function"?T(e):T;g!==e&&h(g)}else i(T)},[a,e,i,h]);return[s,y]}function Nt({activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:t,drawerRef:l,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:h="bottom"}){const[y,T]=It({prop:e,defaultProp:t==null?void 0:t[0],onChange:n}),M=r.useMemo(()=>y===(t==null?void 0:t[t.length-1])||null,[t,y]),g=t&&t.length>0&&(a||a===0)&&!Number.isNaN(a)&&t[a]===y||!t,d=r.useMemo(()=>t==null?void 0:t.findIndex(v=>v===y),[t,y]),c=r.useMemo(()=>{var v;return(v=t==null?void 0:t.map(o=>{const b=typeof window<"u",x=typeof o=="string";let O=0;if(x&&(O=parseInt(o,10)),A(h)){const f=x?O:b?o*window.innerHeight:0;return b?h==="bottom"?window.innerHeight-f:-window.innerHeight+f:f}const R=x?O:b?o*window.innerWidth:0;return b?h==="right"?window.innerWidth-R:-window.innerWidth+R:R}))!=null?v:[]},[t]),N=r.useMemo(()=>d!==null?c==null?void 0:c[d]:null,[c,d]),I=r.useCallback(v=>{var o;const b=(o=c==null?void 0:c.findIndex(x=>x===v))!=null?o:null;s(b),S(l.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:A(h)?`translate3d(0, ${v}px, 0)`:`translate3d(${v}px, 0, 0)`}),c&&b!==c.length-1&&b!==a?S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"0"}):S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"1"}),T(b!==null?t==null?void 0:t[b]:null)},[l.current,t,c,a,i,T]);r.useEffect(()=>{if(y||e){var v;const o=(v=t==null?void 0:t.findIndex(b=>b===e||b===y))!=null?v:-1;c&&o!==-1&&typeof c[o]=="number"&&I(c[o])}},[y,e,t,c,I]);function B({draggedDistance:v,closeDrawer:o,velocity:b,dismissible:x}){if(a===void 0)return;const O=h==="bottom"||h==="right"?(N??0)-v:(N??0)+v,R=d===a-1,f=d===0,H=v>0;if(R&&S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),b>2&&!H){x?o():I(c[0]);return}if(b>2&&H&&c&&t){I(c[t.length-1]);return}const V=c==null?void 0:c.reduce((P,k)=>typeof P!="number"||typeof k!="number"?P:Math.abs(k-O)Be&&Math.abs(v)0&&M){I(c[t.length-1]);return}if(f&&P<0&&x&&o(),d===null)return;I(c[d+P]);return}I(V)}function _({draggedDistance:v}){if(N===null)return;const o=h==="bottom"||h==="right"?N-v:N+v;(h==="bottom"||h==="right")&&oc[c.length-1]||S(l.current,{transform:A(h)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}function z(v,o){if(!t||typeof d!="number"||!c||a===void 0)return null;const b=d===a-1;if(d>=a&&o)return 0;if(b&&!o)return 1;if(!g&&!b)return null;const O=b?d+1:d-1,R=b?c[O]-c[O-1]:c[O+1]-c[O],f=v/Math.abs(R);return b?1-f:f}return{isLastSnapPoint:M,activeSnapPoint:y,shouldFade:g,getPercentageDragged:z,setActiveSnapPoint:T,activeSnapPointIndex:d,onRelease:B,onDrag:_,snapPointsOffset:c}}const Ht=.25,Pt=100,Le=8,q=16,Ue=26,Ee="vaul-dragging";function Fe({open:e,onOpenChange:n,children:t,shouldScaleBackground:l,onDrag:i,onRelease:a,snapPoints:s,nested:h=!1,setBackgroundColorOnScale:y=!0,closeThreshold:T=Ht,scrollLockTimeout:M=Pt,dismissible:g=!0,handleOnly:d=!1,fadeFromIndex:c=s&&s.length-1,activeSnapPoint:N,setActiveSnapPoint:I,fixed:B,modal:_=!0,onClose:z,noBodyStyles:v,direction:o="bottom",preventScrollRestoration:b=!0,disablePreventScroll:x=!1}){var O;const[R=!1,f]=r.useState(!1),[H,V]=r.useState(!1),[L,P]=r.useState(!1),[k,oe]=r.useState(!1),[Y,me]=r.useState(!1),[Ke,$e]=r.useState(!1),F=r.useRef(null),ie=r.useRef(null),he=r.useRef(null),we=r.useRef(null),Q=r.useRef(null),Z=r.useRef(!1),ge=r.useRef(null),pe=r.useRef(0),G=r.useRef(!1),xe=r.useRef(0),m=r.useRef(null),Oe=r.useRef(((O=m.current)==null?void 0:O.getBoundingClientRect().height)||0),ve=r.useRef(0),Je=r.useCallback(u=>{s&&u===te.length-1&&(ie.current=new Date)},[]),{activeSnapPoint:Qe,activeSnapPointIndex:ee,setActiveSnapPoint:Ce,onRelease:Ze,snapPointsOffset:te,onDrag:et,shouldFade:Ae,getPercentageDragged:tt}=Nt({snapPoints:s,activeSnapPointProp:N,setActiveSnapPointProp:I,drawerRef:m,fadeFromIndex:c,overlayRef:F,onSnapPointChange:Je,direction:o});Tt({isDisabled:!R||Y||!_||Ke||!H||x});const{restorePositionSetting:nt}=Ct({isOpen:R,modal:_,nested:h,hasBeenOpened:H,preventScrollRestoration:b,noBodyStyles:v});function K(){return(window.innerWidth-Ue)/window.innerWidth}function rt(u){var w;!g&&!s||m.current&&!m.current.contains(u.target)||(Oe.current=((w=m.current)==null?void 0:w.getBoundingClientRect().height)||0,me(!0),he.current=new Date,Ve()&&window.addEventListener("touchend",()=>Z.current=!1,{once:!0}),u.target.setPointerCapture(u.pointerId),pe.current=A(o)?u.clientY:u.clientX)}function Me(u,w){var D;let p=u;const $=(D=window.getSelection())==null?void 0:D.toString(),C=m.current?fe(m.current,o):null,U=new Date;if(p.hasAttribute("data-vaul-no-drag")||p.closest("[data-vaul-no-drag]"))return!1;if(o==="right"||o==="left")return!0;if(ie.current&&U.getTime()-ie.current.getTime()<500)return!1;if(C!==null&&(o==="bottom"?C>0:C<0))return!0;if($&&$.length>0)return!1;if(Q.current&&U.getTime()-Q.current.getTime()p.clientHeight){if(p.scrollTop!==0)return Q.current=new Date,!1;if(p.getAttribute("role")==="dialog")return!0}p=p.parentNode}return!0}function ot(u){if(m.current&&Y){const w=o==="bottom"||o==="right"?1:-1,D=(pe.current-(A(o)?u.clientY:u.clientX))*w,p=D>0,$=s&&!g&&!p;if($&&ee===0)return;const C=Math.abs(D),U=document.querySelector("[vaul-drawer-wrapper]");let W=C/Oe.current;const j=tt(C,p);if(j!==null&&(W=j),$&&W>=1||!Z.current&&!Me(u.target,p))return;if(m.current.classList.add(Ee),Z.current=!0,S(m.current,{transition:"none"}),S(F.current,{transition:"none"}),s&&et({draggedDistance:D}),p&&!s){const X=At(D),ue=Math.min(X*-1,0)*w;S(m.current,{transform:A(o)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`});return}const le=1-W;if((Ae||c&&ee===c-1)&&(i==null||i(u,W),S(F.current,{opacity:`${le}`,transition:"none"},!0)),U&&F.current&&l){const X=Math.min(K()+W*(1-K()),1),ue=8-W*8,Ne=Math.max(0,14-W*14);S(U,{borderRadius:`${ue}px`,transform:A(o)?`scale(${X}) translate3d(0, ${Ne}px, 0)`:`scale(${X}) translate3d(${Ne}px, 0, 0)`,transition:"none"},!0)}if(!s){const X=C*w;S(m.current,{transform:A(o)?`translate3d(0, ${X}px, 0)`:`translate3d(${X}px, 0, 0)`})}}}r.useEffect(()=>()=>{ae(!1),nt()},[]),r.useEffect(()=>{var u;function w(){if(!m.current)return;const D=document.activeElement;if(Te(D)||G.current){var p;const $=((p=window.visualViewport)==null?void 0:p.height)||0;let C=window.innerHeight-$;const U=m.current.getBoundingClientRect().height||0;ve.current||(ve.current=U);const W=m.current.getBoundingClientRect().top;if(Math.abs(xe.current-C)>60&&(G.current=!G.current),s&&s.length>0&&te&&ee){const j=te[ee]||0;C+=j}if(xe.current=C,U>$||G.current){const j=m.current.getBoundingClientRect().height;let le=j;j>$&&(le=$-Ue),B?m.current.style.height=`${j-Math.max(C,0)}px`:m.current.style.height=`${Math.max(le,$-W)}px`}else m.current.style.height=`${ve.current}px`;s&&s.length>0&&!G.current?m.current.style.bottom="0px":m.current.style.bottom=`${Math.max(C,0)}px`}}return(u=window.visualViewport)==null||u.addEventListener("resize",w),()=>{var D;return(D=window.visualViewport)==null?void 0:D.removeEventListener("resize",w)}},[ee,s,te]);function J(){m.current&&(it(),z==null||z(),S(m.current,{transform:A(o)?`translate3d(0, ${o==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${o==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),S(F.current,{opacity:"0",transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),ae(!1),setTimeout(()=>{P(!1),f(!1)},300),setTimeout(()=>{s&&Ce(s[0])},E.DURATION*1e3))}r.useEffect(()=>{if(!R&&l){const u=setTimeout(()=>{ce(document.body)},200);return()=>clearTimeout(u)}},[R,l]),r.useLayoutEffect(()=>{e?(f(!0),V(!0)):J()},[e]),r.useEffect(()=>{k&&(n==null||n(R))},[R]),r.useEffect(()=>{oe(!0)},[]);function Ie(){if(!m.current)return;const u=document.querySelector("[vaul-drawer-wrapper]"),w=fe(m.current,o);S(m.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),S(F.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"1"}),l&&w&&w>0&&R&&S(u,{borderRadius:`${Le}px`,overflow:"hidden",...A(o)?{transform:`scale(${K()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${K()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`},!0)}function it(){!Y||!m.current||(m.current.classList.remove(Ee),Z.current=!1,me(!1),we.current=new Date)}function at(u){if(!Y||!m.current)return;m.current.classList.remove(Ee),Z.current=!1,me(!1),we.current=new Date;const w=fe(m.current,o);if(!Me(u.target,!1)||!w||Number.isNaN(w)||he.current===null)return;const D=we.current.getTime()-he.current.getTime(),p=pe.current-(A(o)?u.clientY:u.clientX),$=Math.abs(p)/D;if($>.05&&($e(!0),setTimeout(()=>{$e(!1)},200)),s){Ze({draggedDistance:p*(o==="bottom"||o==="right"?1:-1),closeDrawer:J,velocity:$,dismissible:g}),a==null||a(u,!0);return}if(o==="bottom"||o==="right"?p>0:p<0){Ie(),a==null||a(u,!0);return}if($>Be){J(),a==null||a(u,!1);return}var C;const U=Math.min((C=m.current.getBoundingClientRect().height)!=null?C:0,window.innerHeight);if(w>=U*T){J(),a==null||a(u,!1);return}a==null||a(u,!0),Ie()}r.useEffect(()=>{R&&(S(document.documentElement,{scrollBehavior:"auto"}),ie.current=new Date,ae(!0))},[R]),r.useEffect(()=>{if(m.current&&L){var u;const w=m==null||(u=m.current)==null?void 0:u.querySelectorAll("*");w==null||w.forEach(D=>{const p=D;(p.scrollHeight>p.clientHeight||p.scrollWidth>p.clientWidth)&&p.classList.add("vaul-scrollable")})}},[L]);function ae(u){const w=document.querySelector("[vaul-drawer-wrapper]");!w||!l||(u?(y&&(v||(S(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),S(document.body,{background:"black"},!0))),S(w,{borderRadius:`${Le}px`,overflow:"hidden",...A(o)?{transform:`scale(${K()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${K()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`})):(ce(w,"overflow"),ce(w,"transform"),ce(w,"borderRadius"),S(w,{transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`})))}function lt(u){const w=u?(window.innerWidth-q)/window.innerWidth:1,D=u?-q:0;ge.current&&window.clearTimeout(ge.current),S(m.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:`scale(${w}) translate3d(0, ${D}px, 0)`}),!u&&m.current&&(ge.current=setTimeout(()=>{const p=fe(m.current,o);S(m.current,{transition:"none",transform:A(o)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`})},500))}function ut(u,w){if(w<0)return;const D=A(o)?window.innerHeight:window.innerWidth,p=(D-q)/D,$=p+w*(1-p),C=-q+w*q;S(m.current,{transform:A(o)?`scale(${$}) translate3d(0, ${C}px, 0)`:`scale(${$}) translate3d(${C}px, 0, 0)`,transition:"none"})}function st(u,w){const D=A(o)?window.innerHeight:window.innerWidth,p=w?(D-q)/D:1,$=w?-q:0;w&&S(m.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:A(o)?`scale(${p}) translate3d(0, ${$}px, 0)`:`scale(${p}) translate3d(${$}px, 0, 0)`})}return r.createElement(pt,{modal:_,onOpenChange:u=>{if(e!==void 0){n==null||n(u);return}u?(V(!0),f(u)):J()},open:R},r.createElement(_e.Provider,{value:{visible:L,activeSnapPoint:Qe,snapPoints:s,setActiveSnapPoint:Ce,drawerRef:m,overlayRef:F,scaleBackground:ae,onOpenChange:n,onPress:rt,setVisible:P,onRelease:at,onDrag:ot,dismissible:g,handleOnly:d,isOpen:R,isDragging:Y,shouldFade:Ae,closeDrawer:J,onNestedDrag:ut,onNestedOpenChange:lt,onNestedRelease:st,keyboardIsOpen:G,openProp:e,modal:_,snapPointsOffset:te,direction:o}},t))}const Lt=250,Ut=120,Xe=r.forwardRef(function({preventCycle:e=!1,children:n,...t},l){const{visible:i,closeDrawer:a,isDragging:s,snapPoints:h,activeSnapPoint:y,setActiveSnapPoint:T,dismissible:M,handleOnly:g,onPress:d,onDrag:c}=de(),N=r.useRef(null),I=r.useRef(!1);function B(){if(I.current){v();return}window.setTimeout(()=>{_()},Ut)}function _(){if(s||e||I.current){v();return}if(v(),(!h||h.length===0)&&M){a();return}if(y===h[h.length-1]&&M){a();return}const b=h.findIndex(O=>O===y);if(b===-1)return;const x=h[b+1];T(x)}function z(){N.current=window.setTimeout(()=>{I.current=!0},Lt)}function v(){window.clearTimeout(N.current),I.current=!1}return r.createElement("div",{onClick:B,onDoubleClick:()=>{I.current=!0,a()},onPointerCancel:v,onPointerDown:o=>{g&&d(o),z()},onPointerMove:o=>{g&&c(o)},ref:l,"vaul-drawer-visible":i?"true":"false","vaul-handle":"","aria-hidden":"true",...t},r.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},n))});Xe.displayName="Drawer.Handle";const qe=r.forwardRef(function({children:e,...n},t){const{overlayRef:l,snapPoints:i,onRelease:a,shouldFade:s,isOpen:h,visible:y}=de(),T=ze(t,l),M=i&&i.length>0;return r.createElement(ct,{onMouseUp:a,ref:T,"vaul-drawer-visible":y?"true":"false","vaul-overlay":"","vaul-snap-points":h&&M?"true":"false","vaul-snap-points-overlay":h&&s?"true":"false",...n})});qe.displayName="Drawer.Overlay";const Ge=r.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:n,onAnimationEnd:t,style:l,...i},a){const{drawerRef:s,onPress:h,onRelease:y,onDrag:T,dismissible:M,keyboardIsOpen:g,snapPointsOffset:d,visible:c,closeDrawer:N,modal:I,openProp:B,onOpenChange:_,setVisible:z,handleOnly:v,direction:o}=de(),b=ze(a,s),x=r.useRef(null),O=r.useRef(!1),R=(f,H,V=0)=>{if(O.current)return!0;const L=Math.abs(f.y),P=Math.abs(f.x),k=P>L,oe=["bottom","right"].includes(H)?1:-1;if(H==="left"||H==="right"){if(!(f.x*oe<0)&&P>=0&&P<=V)return k}else if(!(f.y*oe<0)&&L>=0&&L<=V)return!k;return O.current=!0,!0};return r.useEffect(()=>{z(!0)},[]),r.createElement(ft,{"vaul-drawer":"","vaul-drawer-direction":o,"vaul-drawer-visible":c?"true":"false",...i,ref:b,style:d&&d.length>0?{"--snap-point-height":`${d[0]}px`,...l}:l,onOpenAutoFocus:f=>{if(e)e(f);else{var H;f.preventDefault(),(H=s.current)==null||H.focus()}},onPointerDown:f=>{v||(i.onPointerDown==null||i.onPointerDown.call(i,f),x.current={x:f.clientX,y:f.clientY},h(f))},onPointerDownOutside:f=>{if(n==null||n(f),!I||f.defaultPrevented){f.preventDefault();return}g.current&&(g.current=!1),f.preventDefault(),_==null||_(!1),!(!M||B!==void 0)&&N()},onFocusOutside:f=>{if(!I){f.preventDefault();return}},onEscapeKeyDown:f=>{if(!I){f.preventDefault();return}},onPointerMove:f=>{if(v||(i.onPointerMove==null||i.onPointerMove.call(i,f),!x.current))return;const H=f.clientY-x.current.y,V=f.clientX-x.current.x,L=f.pointerType==="touch"?10:2;R({x:V,y:H},o,L)?T(f):(Math.abs(V)>L||Math.abs(H)>L)&&(x.current=null)},onPointerUp:f=>{i.onPointerUp==null||i.onPointerUp.call(i,f),x.current=null,O.current=!1,y(f)}})});Ge.displayName="Drawer.Content";function _t({onDrag:e,onOpenChange:n,...t}){const{onNestedDrag:l,onNestedOpenChange:i,onNestedRelease:a}=de();if(!l)throw new Error("Drawer.NestedRoot must be placed in another drawer");return r.createElement(Fe,{nested:!0,onClose:()=>{i(!1)},onDrag:(s,h)=>{l(s,h),e==null||e(s,h)},onOpenChange:s=>{s&&i(s),n==null||n(s)},onRelease:a,...t})}const kt={Root:Fe,NestedRoot:_t,Content:Ge,Handle:Xe,Overlay:qe,Trigger:dt,Portal:mt,Close:ht,Title:wt,Description:gt};export{kt as D}; diff --git a/assets/vaul-t6qA3T7B.js.gz b/assets/vaul-t6qA3T7B.js.gz new file mode 100644 index 0000000..9eef74a Binary files /dev/null and b/assets/vaul-t6qA3T7B.js.gz differ diff --git a/assets/zustand-oOA47TU4.js b/assets/zustand-oOA47TU4.js new file mode 100644 index 0000000..3792ff3 --- /dev/null +++ b/assets/zustand-oOA47TU4.js @@ -0,0 +1 @@ +import{R as E}from"./react-DmpIMwDM.js";import{u as m}from"./use-sync-external-store-ByYeed7R.js";var g={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const a=t=>{let e;const o=new Set,n=(s,c)=>{const r=typeof s=="function"?s(e):s;if(!Object.is(r,e)){const S=e;e=c??(typeof r!="object"||r===null)?r:Object.assign({},e,r),o.forEach(b=>b(e,S))}},i=()=>e,u={setState:n,getState:i,getInitialState:()=>p,subscribe:s=>(o.add(s),()=>o.delete(s)),destroy:()=>{(g?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),o.clear()}},p=e=t(n,i,u);return u},y=t=>t?a(t):a;var f={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:v}=E,{useSyncExternalStoreWithSelector:D}=m;let d=!1;const R=t=>t;function h(t,e=R,o){(f?"production":void 0)!=="production"&&o&&!d&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),d=!0);const n=D(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,o);return v(n),n}const l=t=>{(f?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?y(t):t,o=(n,i)=>h(e,n,i);return Object.assign(o,e),o},P=t=>t?l(t):l;export{P as c}; diff --git a/assets/zustand-oOA47TU4.js.gz b/assets/zustand-oOA47TU4.js.gz new file mode 100644 index 0000000..a9b507d Binary files /dev/null and b/assets/zustand-oOA47TU4.js.gz differ diff --git a/favicon-16x16.png b/favicon-16x16.png index 3006913..0181e8f 100644 Binary files a/favicon-16x16.png and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png index fe1c693..5673324 100644 Binary files a/favicon-32x32.png and b/favicon-32x32.png differ diff --git a/icon512_maskable.png b/icon512_maskable.png index 6d9ac30..80a77e2 100644 Binary files a/icon512_maskable.png and b/icon512_maskable.png differ diff --git a/icon512_rounded.png b/icon512_rounded.png index fa382c9..e2e938b 100644 Binary files a/icon512_rounded.png and b/icon512_rounded.png differ diff --git a/index.html b/index.html index 7d8965f..f5a81a3 100644 --- a/index.html +++ b/index.html @@ -86,7 +86,35 @@ font-size: 2rem; } - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html.gz b/index.html.gz new file mode 100644 index 0000000..9a27764 Binary files /dev/null and b/index.html.gz differ diff --git a/preview.png b/preview.png index 994d5ec..b95e00d 100644 Binary files a/preview.png and b/preview.png differ diff --git a/sw.js b/sw.js index ce80371..3c3295e 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),l={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map((e=>l[e]||c(e)))).then((e=>(r(...e),o)))}}define(["./workbox-7cfec069"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-D6dvM9RD.css",revision:null},{url:"assets/index-h-vSbY91.js",revision:null},{url:"index.html",revision:"92dd12c680300be49832cef309cd89cb"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const l=(l,r)=>(l=new URL(l+".js",r).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(r,i)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const t=s=>l(s,n),o={module:{uri:n},exports:u,require:t};e[n]=Promise.all(r.map((s=>o[s]||t(s)))).then((s=>(i(...s),u)))}}define(["./workbox-7cfec069"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/@floating-ui-DGkE6due.js",revision:null},{url:"assets/@radix-ui-D_gCN1bM.js",revision:null},{url:"assets/aria-hidden-DQ5UC2Eg.js",revision:null},{url:"assets/attr-accept-BWI1aNlo.js",revision:null},{url:"assets/class-variance-authority-Bb4qSo10.js",revision:null},{url:"assets/clsx-B-dksMZM.js",revision:null},{url:"assets/detect-node-es-l0sNRNKZ.js",revision:null},{url:"assets/file-saver-DhbZvGod.js",revision:null},{url:"assets/file-selector-CBHVlu32.js",revision:null},{url:"assets/get-nonce-C-Z93AgS.js",revision:null},{url:"assets/index-D0SBxsgt.js",revision:null},{url:"assets/index-D6dvM9RD.css",revision:null},{url:"assets/lucide-react-CvnTk8cx.js",revision:null},{url:"assets/next-themes-D3kinvIj.js",revision:null},{url:"assets/prop-types-psm7UO16.js",revision:null},{url:"assets/react-DmpIMwDM.js",revision:null},{url:"assets/react-dom-tIxIBQuZ.js",revision:null},{url:"assets/react-dropzone-D-IBOhIS.js",revision:null},{url:"assets/react-remove-scroll-bar-DZjhPxUV.js",revision:null},{url:"assets/react-remove-scroll-BOyN_WUU.js",revision:null},{url:"assets/react-style-singleton-CpxBwIWS.js",revision:null},{url:"assets/scheduler-CzFDRTuY.js",revision:null},{url:"assets/sonner-BJG0sXho.js",revision:null},{url:"assets/sql.js-lzln2bbd.js",revision:null},{url:"assets/tailwind-merge-BkWO730n.js",revision:null},{url:"assets/tslib-CuZy2iRz.js",revision:null},{url:"assets/use-callback-ref-DRzK4jWO.js",revision:null},{url:"assets/use-sidecar-D8_hMcUG.js",revision:null},{url:"assets/use-sync-external-store-ByYeed7R.js",revision:null},{url:"assets/vaul-t6qA3T7B.js",revision:null},{url:"assets/zustand-oOA47TU4.js",revision:null},{url:"index.html",revision:"5671f866cf0a624aac4af457a2b88af0"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));