@g4rcez/components 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/core/button.js +40 -0
- package/dist/components/core/polymorph.js +8 -0
- package/dist/components/display/card.js +6 -0
- package/dist/components/floating/dropdown.js +38 -0
- package/dist/components/floating/tooltip.js +32 -0
- package/dist/components/form/autocomplete.js +125 -0
- package/dist/components/form/file-upload.js +61 -0
- package/dist/components/form/form.js +28 -0
- package/dist/components/form/input-field.js +10 -0
- package/dist/components/form/input.js +39 -0
- package/dist/components/form/select.js +30 -0
- package/dist/components/form/switch.js +18 -0
- package/dist/components/index.js +14 -0
- package/dist/components/table/filter.js +79 -0
- package/dist/components/table/group.js +41 -0
- package/dist/components/table/index.js +82 -0
- package/dist/components/table/metadata.js +10 -0
- package/dist/components/table/sort.js +70 -0
- package/dist/components/table/table-lib.js +51 -0
- package/dist/components/table/thead.js +25 -0
- package/dist/hooks/use-form.js +126 -0
- package/dist/hooks/use-previous.js +8 -0
- package/dist/hooks/use-reactive.js +8 -0
- package/dist/index.css +1 -1
- package/dist/index.js +8 -151
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3458 -3324
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +46 -46
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/dom.js +22 -0
- package/dist/lib/fns.js +15 -0
- package/dist/preset/src/styles/theme.d.ts +1 -0
- package/dist/preset/src/styles/theme.d.ts.map +1 -1
- package/dist/preset/src/styles/theme.js +66 -0
- package/dist/styles/design-tokens.js +37 -0
- package/dist/styles/theme.d.ts +1 -0
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +132 -0
- package/dist/types.js +1 -0
- package/package.json +70 -50
- package/dist/next.svg +0 -1
- package/dist/vercel.svg +0 -1
package/dist/index.js
CHANGED
|
@@ -1,151 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var Bv=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Gi=Bv.join(","),kh=typeof Element>"u",Vr=kh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ki=!kh&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Zi=function t(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",s=i||n&&e&&t(e.parentNode);return s},zv=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},Hv=function(e,n,r){if(Zi(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Gi));return n&&Vr.call(e,Gi)&&o.unshift(e),o=o.filter(r),o},Wv=function t(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Zi(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var u=Vr.call(s,Gi);u&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),d=!Zi(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&d){var p=t(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:s,candidates:p})}else i.unshift.apply(i,s.children)}}return o},Dh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Mh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||zv(e))&&!Dh(e)?0:e.tabIndex},Uv=function(e,n){var r=Mh(e);return r<0&&n&&!Dh(e)?0:r},Gv=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},jh=function(e){return e.tagName==="INPUT"},Kv=function(e){return jh(e)&&e.type==="hidden"},Zv=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},qv=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Yv=function(e){if(!e.name)return!0;var n=e.form||Ki(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=qv(o,e.form);return!i||i===e},Xv=function(e){return jh(e)&&e.type==="radio"},Jv=function(e){return Xv(e)&&!Yv(e)},Qv=function(e){var n,r=e&&Ki(e),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,u,f;r=Ki(o),o=(c=r)===null||c===void 0?void 0:c.host,i=!!((u=o)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Fu=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},eb=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Vr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Vr.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=Ki(e);if(l&&!l.shadowRoot&&o(l)===!0)return Fu(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(Qv(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Fu(e);return!1},tb=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Vr.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},nb=function(e,n){return!(n.disabled||Zi(n)||Kv(n)||eb(n,e)||Zv(n)||tb(n))},vl=function(e,n){return!(Jv(n)||Mh(n)<0||!nb(e,n))},rb=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},ob=function t(e){var n=[],r=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=Uv(a,s),c=s?t(o.candidates):a;l===0?s?n.push.apply(n,c):n.push(a):r.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),r.sort(Gv).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Ls=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Wv([e],n.includeContainer,{filter:vl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:rb}):r=Hv(e,n.includeContainer,vl.bind(null,n)),ob(r)},ib=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Vr.call(e,Gi)===!1?!1:vl(n,e)};function Lu(t,e,n){let{reference:r,floating:o}=t;const i=lr(e),s=xc(e),a=bc(s),l=Fn(e),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Jr(e)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const sb=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=Lu(c,r,l),d=r,p={},h=0;for(let m=0;m<a.length;m++){const{name:y,fn:v}=a[m],{x:b,y:g,data:S,reset:x}=await v({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});u=b??u,f=g??f,p={...p,[y]:{...p[y],...S}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):x.rects),{x:u,y:f}=Lu(c,d,l)),m=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};async function wc(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Xr(e,t),h=Ih(p),y=a[d?f==="floating"?"reference":"floating":f],v=Ui(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(g))?await(i.getScale==null?void 0:i.getScale(g))||{x:1,y:1}:{x:1,y:1},x=Ui(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:g,strategy:l}):b);return{top:(v.top-x.top+h.top)/S.y,bottom:(x.bottom-v.bottom+h.bottom)/S.y,left:(v.left-x.left+h.left)/S.x,right:(x.right-v.right+h.right)/S.x}}const ab=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=Xr(t,e)||{};if(c==null)return{};const f=Ih(u),d={x:n,y:r},p=xc(o),h=bc(p),m=await s.getDimensions(c),y=p==="y",v=y?"top":"left",b=y?"bottom":"right",g=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[p]-d[p]-i.floating[h],x=d[p]-i.reference[p],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=T?T[g]:0;(!_||!await(s.isElement==null?void 0:s.isElement(T)))&&(_=a.floating[g]||i.floating[h]);const P=S/2-x/2,I=_/2-m[h]/2-1,k=tn(f[v],I),F=tn(f[b],I),R=k,$=_-m[h]-F,j=_/2-m[h]/2+P,A=gl(R,j,$),D=!l.arrow&&Jr(o)!=null&&j!==A&&i.reference[h]/2-(j<R?k:F)-m[h]/2<0,L=D?j<R?j-R:j-$:0;return{[p]:d[p]+L,data:{[p]:A,centerOffset:j-A-L,...D&&{alignmentOffset:L}},reset:D}}}),lb=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=Xr(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Fn(o),b=lr(a),g=Fn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=d||(g||!m?[Wi(a)]:Lv(a)),T=h!=="none";!d&&T&&x.push(...Vv(a,m,h,S));const _=[a,...x],P=await wc(e,y),I=[];let k=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&I.push(P[v]),f){const j=Fv(o,s,S);I.push(P[j[0]],P[j[1]])}if(k=[...k,{placement:o,overflows:I}],!I.every(j=>j<=0)){var F,R;const j=(((F=i.flip)==null?void 0:F.index)||0)+1,A=_[j];if(A)return{data:{index:j,overflows:k},reset:{placement:A}};let D=(R=k.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:R.placement;if(!D)switch(p){case"bestFit":{var $;const L=($=k.filter(z=>{if(T){const q=lr(z.placement);return q===b||q==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(q=>q>0).reduce((q,C)=>q+C,0)]).sort((z,q)=>z[1]-q[1])[0])==null?void 0:$[0];L&&(D=L);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};async function cb(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Fn(n),a=Jr(n),l=lr(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,f=Xr(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const ub=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=e,l=await cb(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},fb=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...l}=Xr(t,e),c={x:n,y:r},u=await wc(e,l),f=lr(Fn(o)),d=Oh(f);let p=c[d],h=c[f];if(i){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=p+u[y],g=p-u[v];p=gl(b,p,g)}if(s){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=h+u[y],g=h-u[v];h=gl(b,h,g)}const m=a.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},db=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:o,elements:i}=e,{apply:s=()=>{},...a}=Xr(t,e),l=await wc(e,a),c=Fn(n),u=Jr(n),f=lr(n)==="y",{width:d,height:p}=r.floating;let h,m;c==="top"||c==="bottom"?(h=c,m=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h=u==="end"?"top":"bottom");const y=p-l.top-l.bottom,v=d-l.left-l.right,b=tn(p-l[h],y),g=tn(d-l[m],v),S=!e.middlewareData.shift;let x=b,T=g;if(f?T=u||S?tn(g,v):v:x=u||S?tn(b,y):y,S&&!u){const P=Pt(l.left,0),I=Pt(l.right,0),k=Pt(l.top,0),F=Pt(l.bottom,0);f?T=d-2*(P!==0||I!==0?P+I:Pt(l.left,l.right)):x=p-2*(k!==0||F!==0?k+F:Pt(l.top,l.bottom))}await s({...e,availableWidth:T,availableHeight:x});const _=await o.getDimensions(i.floating);return d!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function Fh(t){const e=Dt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Xe(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,a=Hi(n)!==i||Hi(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Sc(t){return Le(t)?t:t.contextElement}function Dr(t){const e=Sc(t);if(!Xe(e))return jn(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Fh(e);let s=(i?Hi(n.width):n.width)/r,a=(i?Hi(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const pb=jn(0);function Lh(t){const e=Rt(t);return!mc()||!e.visualViewport?pb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Rt(t)?!1:e}function cr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Sc(t);let s=jn(1);e&&(r?Le(r)&&(s=Dr(r)):s=Dr(t));const a=hb(i,n,r)?Lh(i):jn(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Rt(i),p=r&&Le(r)?Rt(r):r;let h=d,m=h.frameElement;for(;m&&r&&p!==h;){const y=Dr(m),v=m.getBoundingClientRect(),b=Dt(m),g=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*y.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=g,c+=S,h=Rt(m),m=h.frameElement}}return Ui({width:u,height:f,x:l,y:c})}function mb(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=Sn(r),a=e?js(e.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=jn(1);const u=jn(0),f=Xe(r);if((f||!f&&!i)&&((Bn(r)!=="body"||Qo(s))&&(l=Fs(r)),Xe(r))){const d=cr(r);c=Dr(r),u.x=d.x+r.clientLeft,u.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function gb(t){return Array.from(t.getClientRects())}function Nh(t){return cr(Sn(t)).left+Fs(t).scrollLeft}function yb(t){const e=Sn(t),n=Fs(t),r=t.ownerDocument.body,o=Pt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Pt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Nh(t);const a=-n.scrollTop;return Dt(r).direction==="rtl"&&(s+=Pt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function vb(t,e){const n=Rt(t),r=Sn(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=mc();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function bb(t,e){const n=cr(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Xe(t)?Dr(t):jn(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Nu(t,e,n){let r;if(e==="viewport")r=vb(t,n);else if(e==="document")r=yb(Sn(t));else if(Le(e))r=bb(e,n);else{const o=Lh(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Ui(r)}function Vh(t,e){const n=bn(t);return n===e||!Le(n)||Mn(n)?!1:Dt(n).position==="fixed"||Vh(n,e)}function xb(t,e){const n=e.get(t);if(n)return n;let r=In(t,[],!1).filter(a=>Le(a)&&Bn(a)!=="body"),o=null;const i=Dt(t).position==="fixed";let s=i?bn(t):t;for(;Le(s)&&!Mn(s);){const a=Dt(s),l=hc(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qo(s)&&!l&&Vh(t,s))?r=r.filter(u=>u!==s):o=a,s=bn(s)}return e.set(t,r),r}function wb(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?js(e)?[]:xb(e,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=Nu(e,u,o);return c.top=Pt(f.top,c.top),c.right=tn(f.right,c.right),c.bottom=tn(f.bottom,c.bottom),c.left=Pt(f.left,c.left),c},Nu(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sb(t){const{width:e,height:n}=Fh(t);return{width:e,height:n}}function Tb(t,e,n){const r=Xe(e),o=Sn(e),i=n==="fixed",s=cr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=jn(0);if(r||!r&&!i)if((Bn(e)!=="body"||Qo(o))&&(a=Fs(e)),r){const f=cr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=Nh(o));const c=s.left+a.scrollLeft-l.x,u=s.top+a.scrollTop-l.y;return{x:c,y:u,width:s.width,height:s.height}}function fa(t){return Dt(t).position==="static"}function Vu(t,e){return!Xe(t)||Dt(t).position==="fixed"?null:e?e(t):t.offsetParent}function $h(t,e){const n=Rt(t);if(js(t))return n;if(!Xe(t)){let o=bn(t);for(;o&&!Mn(o);){if(Le(o)&&!fa(o))return o;o=bn(o)}return n}let r=Vu(t,e);for(;r&&_v(r)&&fa(r);)r=Vu(r,e);return r&&Mn(r)&&fa(r)&&!hc(r)?n:r||Pv(t)||n}const Eb=async function(t){const e=this.getOffsetParent||$h,n=this.getDimensions,r=await n(t.floating);return{reference:Tb(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cb(t){return Dt(t).direction==="rtl"}const Rb={convertOffsetParentRelativeRectToViewportRelativeRect:mb,getDocumentElement:Sn,getClippingRect:wb,getOffsetParent:$h,getElementRects:Eb,getClientRects:gb,getDimensions:Sb,getScale:Dr,isElement:Le,isRTL:Cb};function Ab(t,e){let n=null,r;const o=Sn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const p=Ar(u),h=Ar(o.clientWidth-(c+f)),m=Ar(o.clientHeight-(u+d)),y=Ar(c),b={rootMargin:-p+"px "+-h+"px "+-m+"px "+-y+"px",threshold:Pt(0,tn(1,l))||1};let g=!0;function S(x){const T=x[0].intersectionRatio;if(T!==l){if(!g)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(t)}return s(!0),i}function Tc(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Sc(t),u=o||i?[...c?In(c):[],...In(e)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=c&&a?Ab(c,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(e)})),n()}),c&&!l&&p.observe(c),p.observe(e));let h,m=l?cr(t):null;l&&y();function y(){const v=cr(t);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,h=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const _b=ub,Pb=fb,Ob=lb,Ib=db,$u=ab,kb=(t,e,n)=>{const r=new Map,o={platform:Rb,...n},i={...o.platform,_c:r};return sb(t,e,{...o,platform:i})};var Ii=typeof document<"u"?w.useLayoutEffect:w.useEffect;function qi(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,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!qi(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!qi(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Bh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bu(t,e){const n=Bh(t);return Math.round(e*n)/n}function zu(t){const e=M.useRef(t);return Ii(()=>{e.current=t}),e}function Db(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,f]=M.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,p]=M.useState(r);qi(d,r)||p(r);const[h,m]=M.useState(null),[y,v]=M.useState(null),b=M.useCallback(L=>{L!==T.current&&(T.current=L,m(L))},[]),g=M.useCallback(L=>{L!==_.current&&(_.current=L,v(L))},[]),S=i||h,x=s||y,T=M.useRef(null),_=M.useRef(null),P=M.useRef(u),I=l!=null,k=zu(l),F=zu(o),R=M.useCallback(()=>{if(!T.current||!_.current)return;const L={placement:e,strategy:n,middleware:d};F.current&&(L.platform=F.current),kb(T.current,_.current,L).then(z=>{const q={...z,isPositioned:!0};$.current&&!qi(P.current,q)&&(P.current=q,Sh.flushSync(()=>{f(q)}))})},[d,e,n,F]);Ii(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[c]);const $=M.useRef(!1);Ii(()=>($.current=!0,()=>{$.current=!1}),[]),Ii(()=>{if(S&&(T.current=S),x&&(_.current=x),S&&x){if(k.current)return k.current(S,x,R);R()}},[S,x,R,k,I]);const j=M.useMemo(()=>({reference:T,floating:_,setReference:b,setFloating:g}),[b,g]),A=M.useMemo(()=>({reference:S,floating:x}),[S,x]),D=M.useMemo(()=>{const L={position:n,left:0,top:0};if(!A.floating)return L;const z=Bu(A.floating,u.x),q=Bu(A.floating,u.y);return a?{...L,transform:"translate("+z+"px, "+q+"px)",...Bh(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:q}},[n,a,A.floating,u.x,u.y]);return M.useMemo(()=>({...u,update:R,refs:j,elements:A,floatingStyles:D}),[u,R,j,A,D])}const Mb=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?$u({element:r.current,padding:o}).fn(n):{}:r?$u({element:r,padding:o}).fn(n):{}}}},Ec=(t,e)=>({..._b(t),options:[t,e]}),zh=(t,e)=>({...Pb(t),options:[t,e]}),Hh=(t,e)=>({...Ob(t),options:[t,e]}),jb=(t,e)=>({...Ib(t),options:[t,e]}),Wh=(t,e)=>({...Mb(t),options:[t,e]}),Uh={...M},Fb=Uh.useInsertionEffect,Lb=Fb||(t=>t());function Ot(t){const e=M.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Lb(()=>{e.current=t}),M.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.current==null?void 0:e.current(...r)},[])}const Cc="ArrowUp",ei="ArrowDown",$r="ArrowLeft",Qr="ArrowRight";function gi(t,e,n){return Math.floor(t/e)!==n}function bo(t,e){return e<0||e>=t.current.length}function da(t,e){return ft(t,{disabledIndices:e})}function Hu(t,e){return ft(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function ft(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current;let a=n;do a+=r?-i:i;while(a>=0&&a<=s.length-1&&ki(s,a,o));return a}function Nb(t,e){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:u=!1}=e,f=c;if(n.key===Cc){if(u&&vt(n),c===-1)f=l;else if(f=ft(t,{startingIndex:f,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||f<0)){const d=c%i,p=l%i,h=l-(p-d);p===d?f=l:f=p>d?h:h-i}bo(t,f)&&(f=c)}if(n.key===ei&&(u&&vt(n),c===-1?f=a:(f=ft(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(f=ft(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),bo(t,f)&&(f=c)),r==="both"){const d=Ar(c/i);n.key===Qr&&(u&&vt(n),c%i!==i-1?(f=ft(t,{startingIndex:c,disabledIndices:s}),o&&gi(f,i,d)&&(f=ft(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(f=ft(t,{startingIndex:c-c%i-1,disabledIndices:s})),gi(f,i,d)&&(f=c)),n.key===$r&&(u&&vt(n),c%i!==0?(f=ft(t,{startingIndex:c,decrement:!0,disabledIndices:s}),o&&gi(f,i,d)&&(f=ft(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(f=ft(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),gi(f,i,d)&&(f=c));const p=Ar(l/i)===d;bo(t,f)&&(o&&p?f=n.key===$r?l:ft(t,{startingIndex:c-c%i-1,disabledIndices:s}):f=c)}return f}function Vb(t,e,n){const r=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(n&&(o=0);!c;){const u=[];for(let f=0;f<a;f++)for(let d=0;d<l;d++)u.push(o+f+d*e);o%e+a<=e&&u.every(f=>r[f]==null)?(u.forEach(f=>{r[f]=s}),c=!0):o++}}),[...r]}function $b(t,e,n,r,o){if(t===-1)return-1;const i=n.indexOf(t),s=e[t];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(t)}}function Bb(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}function ki(t,e,n){if(n)return n.includes(e);const r=t[e];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}let Wu=0;function fn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=e;r&&cancelAnimationFrame(Wu);const i=()=>t==null?void 0:t.focus({preventScroll:n});o?i():Wu=requestAnimationFrame(i)}var $e=typeof document<"u"?w.useLayoutEffect:w.useEffect;function jo(){return jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jo.apply(this,arguments)}let Uu=!1,zb=0;const Gu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+zb++;function Hb(){const[t,e]=M.useState(()=>Uu?Gu():void 0);return $e(()=>{t==null&&e(Gu())},[]),M.useEffect(()=>{Uu=!0},[]),t}const Wb=Uh.useId,ti=Wb||Hb;let Fo;process.env.NODE_ENV!=="production"&&(Fo=new Set);function Di(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((t=Fo)!=null&&t.has(o))){var i;(i=Fo)==null||i.add(o),console.warn(o)}}function Ub(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((t=Fo)!=null&&t.has(o))){var i;(i=Fo)==null||i.add(o),console.error(o)}}const Gh=M.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:s=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:f,d,style:{transform:p,...h}={},...m}=e;process.env.NODE_ENV!=="production"&&(n||Di("The `ref` prop is required for `FloatingArrow`."));const y=ti(),[v,b]=M.useState(!1);if($e(()=>{if(!o)return;Dt(o).direction==="rtl"&&b(!0)},[o]),!o)return null;const g=c*2,S=g/2,x=s/2*(l/-8+1),T=a/2*l/4,[_,P]=r.split("-"),I=!!d,k=_==="top"||_==="bottom",F=u&&P==="end"?"bottom":"top";let R=u&&P==="end"?"right":"left";u&&v&&(R=P==="end"?"left":"right");const $=(i==null?void 0:i.x)!=null?u||i.x:"",j=(i==null?void 0:i.y)!=null?u||i.y:"",A=d||"M0,0"+(" H"+s)+(" L"+(s-x)+","+(a-T))+(" Q"+s/2+","+a+" "+x+","+(a-T))+" Z",D={top:I?"rotate(180deg)":"",left:I?"rotate(90deg)":"rotate(-90deg)",bottom:I?"":"rotate(180deg)",right:I?"rotate(-90deg)":"rotate(90deg)"}[_];return M.createElement("svg",jo({},m,{"aria-hidden":!0,ref:n,width:I?s:s+g,height:s,viewBox:"0 0 "+s+" "+(a>s?a:s),style:{position:"absolute",pointerEvents:"none",[R]:$,[F]:j,[_]:k||I?"100%":"calc(100% - "+g/2+"px)",transform:""+D+(p??""),...h}}),g>0&&M.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:f,strokeWidth:g+(d?0:1),d:A}),M.createElement("path",{stroke:g&&!d?m.fill:"none",d:A}),M.createElement("clipPath",{id:y},M.createElement("rect",{x:-S,y:S*(I?-1:1),width:s+g,height:s})))});function Gb(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(o=>o(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(o=>o!==n))||[])}}}const Kb=M.createContext(null),Zb=M.createContext(null),Ns=()=>{var t;return((t=M.useContext(Kb))==null?void 0:t.id)||null},ni=()=>M.useContext(Zb);function ur(t){return"data-floating-ui-"+t}function bt(t){const e=w.useRef(t);return $e(()=>{e.current=t}),e}const Ku=ur("safe-polygon");function pa(t,e,n){return n&&!Mo(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function qb(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=t,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:f=0,move:d=!0}=e,p=ni(),h=Ns(),m=bt(c),y=bt(l),v=bt(n),b=M.useRef(),g=M.useRef(-1),S=M.useRef(),x=M.useRef(-1),T=M.useRef(!0),_=M.useRef(!1),P=M.useRef(()=>{}),I=M.useCallback(()=>{var A;const D=(A=o.current.openEvent)==null?void 0:A.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[o]);M.useEffect(()=>{if(!a)return;function A(D){let{open:L}=D;L||(clearTimeout(g.current),clearTimeout(x.current),T.current=!0)}return i.on("openchange",A),()=>{i.off("openchange",A)}},[a,i]),M.useEffect(()=>{if(!a||!m.current||!n)return;function A(L){I()&&r(!1,L,"hover")}const D=at(s.floating).documentElement;return D.addEventListener("mouseleave",A),()=>{D.removeEventListener("mouseleave",A)}},[s.floating,n,r,a,m,I]);const k=M.useCallback(function(A,D,L){D===void 0&&(D=!0),L===void 0&&(L="hover");const z=pa(y.current,"close",b.current);z&&!S.current?(clearTimeout(g.current),g.current=window.setTimeout(()=>r(!1,A,L),z)):D&&(clearTimeout(g.current),r(!1,A,L))},[y,r]),F=Ot(()=>{P.current(),S.current=void 0}),R=Ot(()=>{if(_.current){const A=at(s.floating).body;A.style.pointerEvents="",A.removeAttribute(Ku),_.current=!1}});M.useEffect(()=>{if(!a)return;function A(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function D(C){if(clearTimeout(g.current),T.current=!1,u&&!Mo(b.current)||f>0&&!pa(y.current,"open"))return;const V=pa(y.current,"open",b.current);V?g.current=window.setTimeout(()=>{v.current||r(!0,C,"hover")},V):r(!0,C,"hover")}function L(C){if(A())return;P.current();const V=at(s.floating);if(clearTimeout(x.current),m.current&&o.current.floatingContext){n||clearTimeout(g.current),S.current=m.current({...o.current.floatingContext,tree:p,x:C.clientX,y:C.clientY,onClose(){R(),F(),k(C,!0,"safe-polygon")}});const re=S.current;V.addEventListener("mousemove",re),P.current=()=>{V.removeEventListener("mousemove",re)};return}(b.current==="touch"?!st(s.floating,C.relatedTarget):!0)&&k(C)}function z(C){A()||o.current.floatingContext&&(m.current==null||m.current({...o.current.floatingContext,tree:p,x:C.clientX,y:C.clientY,onClose(){R(),F(),k(C)}})(C))}if(Le(s.domReference)){var q;const C=s.domReference;return n&&C.addEventListener("mouseleave",z),(q=s.floating)==null||q.addEventListener("mouseleave",z),d&&C.addEventListener("mousemove",D,{once:!0}),C.addEventListener("mouseenter",D),C.addEventListener("mouseleave",L),()=>{var V;n&&C.removeEventListener("mouseleave",z),(V=s.floating)==null||V.removeEventListener("mouseleave",z),d&&C.removeEventListener("mousemove",D),C.removeEventListener("mouseenter",D),C.removeEventListener("mouseleave",L)}}},[s,a,t,u,f,d,k,F,R,r,n,v,p,y,m,o]),$e(()=>{var A;if(a&&n&&(A=m.current)!=null&&A.__options.blockPointerEvents&&I()){const L=at(s.floating).body;L.setAttribute(Ku,""),L.style.pointerEvents="none",_.current=!0;const z=s.floating;if(Le(s.domReference)&&z){var D;const q=s.domReference,C=p==null||(D=p.nodesRef.current.find(V=>V.id===h))==null||(D=D.context)==null?void 0:D.elements.floating;return C&&(C.style.pointerEvents=""),q.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{q.style.pointerEvents="",z.style.pointerEvents=""}}}},[a,n,h,s,p,m,I]),$e(()=>{n||(b.current=void 0,F(),R())},[n,F,R]),M.useEffect(()=>()=>{F(),clearTimeout(g.current),clearTimeout(x.current),R()},[a,s.domReference,F,R]);const $=M.useMemo(()=>{function A(D){b.current=D.pointerType}return{onPointerDown:A,onPointerEnter:A,onMouseMove(D){const{nativeEvent:L}=D;function z(){!T.current&&!v.current&&r(!0,L,"hover")}u&&!Mo(b.current)||n||f===0||(clearTimeout(x.current),b.current==="touch"?z():x.current=window.setTimeout(z,f))}}},[u,r,n,v,f]),j=M.useMemo(()=>({onMouseEnter(){clearTimeout(g.current)},onMouseLeave(A){k(A.nativeEvent,!1)}}),[k]);return M.useMemo(()=>a?{reference:$,floating:j}:{},[a,$,j])}function Yb(t,e){var n;let r=[],o=(n=t.find(i=>i.id===e))==null?void 0:n.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}function Mr(t,e){let n=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=t.filter(o=>{var i;return(i=r)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),n=n.concat(r);return n}function Xb(t,e){let n,r=-1;function o(i,s){s>r&&(n=i,r=s),Mr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===n)}let xr=new WeakMap,yi=new WeakSet,vi={},ha=0;const Jb=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Kh=t=>t&&(t.host||Kh(t.parentNode)),Qb=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=Kh(n);return t.contains(r)?r:null}).filter(n=>n!=null);function ex(t,e,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=Qb(e,t),a=new Set,l=new Set(s),c=[];vi[o]||(vi[o]=new WeakMap);const u=vi[o];s.forEach(f),d(e),a.clear();function f(p){!p||a.has(p)||(a.add(p),p.parentNode&&f(p.parentNode))}function d(p){!p||l.has(p)||[].forEach.call(p.children,h=>{if(Bn(h)!=="script")if(a.has(h))d(h);else{const m=i?h.getAttribute(i):null,y=m!==null&&m!=="false",v=(xr.get(h)||0)+1,b=(u.get(h)||0)+1;xr.set(h,v),u.set(h,b),c.push(h),v===1&&y&&yi.add(h),b===1&&h.setAttribute(o,""),!y&&i&&h.setAttribute(i,"true")}})}return ha++,()=>{c.forEach(p=>{const h=(xr.get(p)||0)-1,m=(u.get(p)||0)-1;xr.set(p,h),u.set(p,m),h||(!yi.has(p)&&i&&p.removeAttribute(i),yi.delete(p)),m||p.removeAttribute(o)}),ha--,ha||(xr=new WeakMap,xr=new WeakMap,yi=new WeakSet,vi={})}}function Zu(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=at(t[0]).body;return ex(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const Lo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Zh(t,e){const n=Ls(t,Lo());e==="prev"&&n.reverse();const r=n.indexOf($t(at(t)));return n.slice(r+1)[0]}function qh(){return Zh(document.body,"next")}function Yh(){return Zh(document.body,"prev")}function xo(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!st(n,r)}function tx(t){Ls(t,Lo()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function nx(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Rc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let rx;function qu(t){t.key==="Tab"&&(t.target,clearTimeout(rx))}const Yi=M.forwardRef(function(e,n){const[r,o]=M.useState();$e(()=>(yc()&&o("button"),document.addEventListener("keydown",qu),()=>{document.removeEventListener("keydown",qu)}),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ur("focus-guard")]:"",style:Rc};return M.createElement("span",jo({},e,i))}),Xh=M.createContext(null),Yu=ur("portal");function ox(t){t===void 0&&(t={});const{id:e,root:n}=t,r=ti(),o=Qh(),[i,s]=M.useState(null),a=M.useRef(null);return $e(()=>()=>{i==null||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),$e(()=>{if(!r||a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=r,c.setAttribute(Yu,""),l.appendChild(c),a.current=c,s(c)},[e,r]),$e(()=>{if(!r||a.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Le(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const u=document.createElement("div");u.id=r,u.setAttribute(Yu,""),l=c||l,l.appendChild(u),a.current=u,s(u)},[e,n,r,o]),i}function Jh(t){const{children:e,id:n,root:r=null,preserveTabOrder:o=!0}=t,i=ox({id:n,root:r}),[s,a]=M.useState(null),l=M.useRef(null),c=M.useRef(null),u=M.useRef(null),f=M.useRef(null),d=!!s&&!s.modal&&s.open&&o&&!!(r||i);return M.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function p(h){i&&xo(h)&&(h.type==="focusin"?nx:tx)(i)}return i.addEventListener("focusin",p,!0),i.addEventListener("focusout",p,!0),()=>{i.removeEventListener("focusin",p,!0),i.removeEventListener("focusout",p,!0)}},[i,o,s==null?void 0:s.modal]),M.createElement(Xh.Provider,{value:M.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:f,portalNode:i,setFocusManagerState:a}),[o,i])},d&&i&&M.createElement(Yi,{"data-type":"outside",ref:l,onFocus:p=>{if(xo(p,i)){var h;(h=u.current)==null||h.focus()}else{const m=Yh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),d&&i&&M.createElement("span",{"aria-owns":i.id,style:Rc}),i&&Sh.createPortal(e,i),d&&i&&M.createElement(Yi,{"data-type":"outside",ref:c,onFocus:p=>{if(xo(p,i)){var h;(h=f.current)==null||h.focus()}else{const m=qh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,p.nativeEvent))}}}))}const Qh=()=>M.useContext(Xh),Xu=20;let Zn=[];function ma(t){Zn=Zn.filter(n=>n.isConnected);let e=t;if(!(!e||Bn(e)==="body")){if(!ib(e,Lo())){const n=Ls(e,Lo())[0];n&&(e=n)}Zn.push(e),Zn.length>Xu&&(Zn=Zn.slice(-Xu))}}function Ju(){return Zn.slice().reverse().find(t=>t.isConnected)}const ix=M.forwardRef(function(e,n){return M.createElement("button",jo({},e,{type:"button",ref:n,tabIndex:-1,style:Rc}))});function em(t){const{context:e,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:f=!0}=t,{open:d,refs:p,nodeId:h,onOpenChange:m,events:y,dataRef:v,floatingId:b,elements:{domReference:g,floating:S}}=e,x=typeof s=="number"&&s<0,T=Ph(g)&&x,_=Jb()?i:!0,P=bt(o),I=bt(s),k=bt(a),F=ni(),R=Qh(),$=M.useRef(null),j=M.useRef(null),A=M.useRef(!1),D=M.useRef(!1),L=M.useRef(-1),z=R!=null,q=S==null?void 0:S.firstElementChild,C=(q==null?void 0:q.id)===b?q:S,V=Ot(function(H){return H===void 0&&(H=C),H?Ls(H,Lo()):[]}),Y=Ot(H=>{const O=V(H);return P.current.map(N=>g&&N==="reference"?g:C&&N==="floating"?C:O).filter(Boolean).flat()});M.useEffect(()=>{if(r||!c)return;function H(N){if(N.key==="Tab"){st(C,$t(at(C)))&&V().length===0&&!T&&vt(N);const W=Y(),K=_n(N);P.current[0]==="reference"&&K===g&&(vt(N),N.shiftKey?fn(W[W.length-1]):fn(W[1])),P.current[1]==="floating"&&K===C&&N.shiftKey&&(vt(N),fn(W[0]))}}const O=at(C);return O.addEventListener("keydown",H),()=>{O.removeEventListener("keydown",H)}},[r,g,C,c,P,T,V,Y]),M.useEffect(()=>{if(r||!S)return;function H(O){const N=_n(O),K=V().indexOf(N);K!==-1&&(L.current=K)}return S.addEventListener("focusin",H),()=>{S.removeEventListener("focusin",H)}},[r,S,V]),M.useEffect(()=>{if(r||!f)return;function H(){D.current=!0,setTimeout(()=>{D.current=!1})}function O(N){const W=N.relatedTarget;queueMicrotask(()=>{const K=!(st(g,W)||st(S,W)||st(W,S)||st(R==null?void 0:R.portalNode,W)||W!=null&&W.hasAttribute(ur("focus-guard"))||F&&(Mr(F.nodesRef.current,h).find(X=>{var le,B;return st((le=X.context)==null?void 0:le.elements.floating,W)||st((B=X.context)==null?void 0:B.elements.domReference,W)})||Yb(F.nodesRef.current,h).find(X=>{var le,B;return((le=X.context)==null?void 0:le.elements.floating)===W||((B=X.context)==null?void 0:B.elements.domReference)===W})));if(l&&K&&$t(at(C))===at(C).body){Xe(C)&&(C==null||C.focus());const X=L.current,le=V(),B=le[X]||le[le.length-1]||C;Xe(B)&&B.focus()}(T||!c)&&W&&K&&!D.current&&W!==Ju()&&(A.current=!0,m(!1,N))})}if(S&&Xe(g))return g.addEventListener("focusout",O),g.addEventListener("pointerdown",H),S.addEventListener("focusout",O),()=>{g.removeEventListener("focusout",O),g.removeEventListener("pointerdown",H),S.removeEventListener("focusout",O)}},[r,g,S,C,c,h,F,R,m,f,l,V,T]),M.useEffect(()=>{var H;if(r)return;const O=Array.from((R==null||(H=R.portalNode)==null?void 0:H.querySelectorAll("["+ur("portal")+"]"))||[]);if(S){const N=[S,...O,$.current,j.current,P.current.includes("reference")||T?g:null].filter(K=>K!=null),W=c||T?Zu(N,_,!_):Zu(N);return()=>{W()}}},[r,g,S,c,P,R,T,_]),$e(()=>{if(r||!Xe(C))return;const H=at(C),O=$t(H);queueMicrotask(()=>{const N=Y(C),W=I.current,K=(typeof W=="number"?N[W]:W.current)||C,X=st(C,O);!x&&!X&&d&&fn(K,{preventScroll:K===C})})},[r,d,C,x,Y,I]),$e(()=>{if(r||!C)return;let H=!1;const O=at(C),N=$t(O);let K=v.current.openEvent;ma(N);function X(le){let{open:B,reason:_e,event:Ve,nested:Ze}=le;B&&(K=Ve),_e==="escape-key"&&p.domReference.current&&ma(p.domReference.current),_e==="hover"&&Ve.type==="mouseleave"&&(A.current=!0),_e==="outside-press"&&(Ze?(A.current=!1,H=!0):A.current=!(Ah(Ve)||gc(Ve)))}return y.on("openchange",X),()=>{y.off("openchange",X);const le=$t(O),B=st(S,le)||F&&Mr(F.nodesRef.current,h).some(Ze=>{var se;return st((se=Ze.context)==null?void 0:se.elements.floating,le)});(B||K&&["click","mousedown"].includes(K.type))&&p.domReference.current&&ma(p.domReference.current);const Ve=Ju();k.current&&!A.current&&Xe(Ve)&&(!(Ve!==le&&le!==O.body)||B)&&fn(Ve,{cancelPrevious:!1,preventScroll:H})}},[r,S,C,k,v,p,y,F,h]),$e(()=>{if(!r&&R)return R.setFocusManagerState({modal:c,closeOnFocusOut:f,open:d,onOpenChange:m,refs:p}),()=>{R.setFocusManagerState(null)}},[r,R,c,d,m,p,f]),$e(()=>{if(r||!C||typeof MutationObserver!="function"||x)return;const H=()=>{const N=C.getAttribute("tabindex"),W=V(),K=$t(at(S)),X=W.indexOf(K);X!==-1&&(L.current=X),P.current.includes("floating")||K!==p.domReference.current&&W.length===0?N!=="0"&&C.setAttribute("tabindex","0"):N!=="-1"&&C.setAttribute("tabindex","-1")};H();const O=new MutationObserver(H);return O.observe(C,{childList:!0,subtree:!0,attributes:!0}),()=>{O.disconnect()}},[r,S,C,p,P,V,x]);function re(H){return r||!u||!c?null:M.createElement(ix,{ref:H==="start"?$:j,onClick:O=>m(!1,O.nativeEvent)},typeof u=="string"?u:"Dismiss")}const ee=!r&&_&&(c?!T:!0)&&(z||c);return M.createElement(M.Fragment,null,ee&&M.createElement(Yi,{"data-type":"inside",ref:R==null?void 0:R.beforeInsideRef,onFocus:H=>{if(c){const N=Y();fn(o[0]==="reference"?N[0]:N[N.length-1])}else if(R!=null&&R.preserveTabOrder&&R.portalNode)if(A.current=!1,xo(H,R.portalNode)){const N=qh()||g;N==null||N.focus()}else{var O;(O=R.beforeOutsideRef.current)==null||O.focus()}}}),!T&&re("start"),n,re("end"),ee&&M.createElement(Yi,{"data-type":"inside",ref:R==null?void 0:R.afterInsideRef,onFocus:H=>{if(c)fn(Y()[0]);else if(R!=null&&R.preserveTabOrder&&R.portalNode)if(f&&(A.current=!0),xo(H,R.portalNode)){const N=Yh()||g;N==null||N.focus()}else{var O;(O=R.afterOutsideRef.current)==null||O.focus()}}}))}function Qu(t){return Xe(t.target)&&t.target.tagName==="BUTTON"}function ef(t){return vc(t)}function sx(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0}=e,f=M.useRef(),d=M.useRef(!1),p=M.useMemo(()=>({onPointerDown(h){f.current=h.pointerType},onMouseDown(h){const m=f.current;h.button===0&&a!=="click"&&(Mo(m,!0)&&c||(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,h.nativeEvent,"click"):(h.preventDefault(),r(!0,h.nativeEvent,"click"))))},onClick(h){const m=f.current;if(a==="mousedown"&&f.current){f.current=void 0;return}Mo(m,!0)&&c||(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){f.current=void 0,!(h.defaultPrevented||!u||Qu(h))&&(h.key===" "&&!ef(i)&&(h.preventDefault(),d.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!u||Qu(h)||ef(i)||h.key===" "&&d.current&&(d.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,l]);return M.useMemo(()=>s?{reference:p}:{},[s,p])}const ax={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},lx={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},tf=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function Ac(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=t,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=e,m=ni(),y=Ot(typeof l=="function"?l:()=>!1),v=typeof l=="function"?y:l,b=M.useRef(!1),g=M.useRef(!1),{escapeKey:S,outsidePress:x}=tf(p),{escapeKey:T,outsidePress:_}=tf(h),P=Ot(j=>{var A;if(!n||!s||!a||j.key!=="Escape")return;const D=(A=i.current.floatingContext)==null?void 0:A.nodeId,L=m?Mr(m.nodesRef.current,D):[];if(!S&&(j.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(q=>{var C;if((C=q.context)!=null&&C.open&&!q.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}r(!1,Iv(j)?j.nativeEvent:j,"escape-key")}),I=Ot(j=>{var A;const D=()=>{var L;P(j),(L=_n(j))==null||L.removeEventListener("keydown",D)};(A=_n(j))==null||A.addEventListener("keydown",D)}),k=Ot(j=>{var A;const D=b.current;b.current=!1;const L=g.current;if(g.current=!1,c==="click"&&L||D||typeof v=="function"&&!v(j))return;const z=_n(j),q="["+ur("inert")+"]",C=at(o.floating).querySelectorAll(q);let V=Le(z)?z:null;for(;V&&!Mn(V);){const H=bn(V);if(Mn(H)||!Le(H))break;V=H}if(C.length&&Le(z)&&!kv(z)&&!st(z,o.floating)&&Array.from(C).every(H=>!st(V,H)))return;if(Xe(z)&&$){const H=z.clientWidth>0&&z.scrollWidth>z.clientWidth,O=z.clientHeight>0&&z.scrollHeight>z.clientHeight;let N=O&&j.offsetX>z.clientWidth;if(O&&Dt(z).direction==="rtl"&&(N=j.offsetX<=z.offsetWidth-z.clientWidth),N||H&&j.offsetY>z.clientHeight)return}const Y=(A=i.current.floatingContext)==null?void 0:A.nodeId,re=m&&Mr(m.nodesRef.current,Y).some(H=>{var O;return ua(j,(O=H.context)==null?void 0:O.elements.floating)});if(ua(j,o.floating)||ua(j,o.domReference)||re)return;const ee=m?Mr(m.nodesRef.current,Y):[];if(ee.length>0){let H=!0;if(ee.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}r(!1,j,"outside-press")}),F=Ot(j=>{var A;const D=()=>{var L;k(j),(L=_n(j))==null||L.removeEventListener(c,D)};(A=_n(j))==null||A.addEventListener(c,D)});M.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=S,i.current.__outsidePressBubbles=x;function j(L){r(!1,L,"ancestor-scroll")}const A=at(o.floating);a&&A.addEventListener("keydown",T?I:P,T),v&&A.addEventListener(c,_?F:k,_);let D=[];return d&&(Le(o.domReference)&&(D=In(o.domReference)),Le(o.floating)&&(D=D.concat(In(o.floating))),!Le(o.reference)&&o.reference&&o.reference.contextElement&&(D=D.concat(In(o.reference.contextElement)))),D=D.filter(L=>{var z;return L!==((z=A.defaultView)==null?void 0:z.visualViewport)}),D.forEach(L=>{L.addEventListener("scroll",j,{passive:!0})}),()=>{a&&A.removeEventListener("keydown",T?I:P,T),v&&A.removeEventListener(c,_?F:k,_),D.forEach(L=>{L.removeEventListener("scroll",j)})}},[i,o,a,v,c,n,r,d,s,S,x,P,T,I,k,_,F]),M.useEffect(()=>{b.current=!1},[v,c]);const R=M.useMemo(()=>({onKeyDown:P,[ax[f]]:j=>{u&&r(!1,j.nativeEvent,"reference-press")}}),[P,r,u,f]),$=M.useMemo(()=>({onKeyDown:P,onMouseDown(){g.current=!0},onMouseUp(){g.current=!0},[lx[c]]:()=>{b.current=!0}}),[P,c]);return M.useMemo(()=>s?{reference:R,floating:$}:{},[s,R,$])}function cx(t){const{open:e=!1,onOpenChange:n,elements:r}=t,o=ti(),i=M.useRef({}),[s]=M.useState(()=>Gb()),a=Ns()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!Le(p)&&Ub("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=M.useState(r.reference),u=Ot((p,h,m)=>{i.current.openEvent=p?h:void 0,s.emit("openchange",{open:p,event:h,reason:m,nested:a}),n==null||n(p,h,m)}),f=M.useMemo(()=>({setPositionReference:c}),[]),d=M.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return M.useMemo(()=>({dataRef:i,open:e,onOpenChange:u,elements:d,events:s,floatingId:o,refs:f}),[e,u,d,s,o,f])}function _c(t){t===void 0&&(t={});const{nodeId:e}=t,n=cx({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,o=r.elements,[i,s]=M.useState(null),[a,l]=M.useState(null),u=(o==null?void 0:o.reference)||i,f=M.useRef(null),d=ni();$e(()=>{u&&(f.current=u)},[u]);const p=Db({...t,elements:{...o,...a&&{reference:a}}}),h=M.useCallback(g=>{const S=Le(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;l(S),p.refs.setReference(S)},[p.refs]),m=M.useCallback(g=>{(Le(g)||g===null)&&(f.current=g,s(g)),(Le(p.refs.reference.current)||p.refs.reference.current===null||g!==null&&!Le(g))&&p.refs.setReference(g)},[p.refs]),y=M.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),v=M.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),b=M.useMemo(()=>({...p,...r,refs:y,elements:v,nodeId:e}),[p,y,v,e,r]);return $e(()=>{r.dataRef.current.floatingContext=b;const g=d==null?void 0:d.nodesRef.current.find(S=>S.id===e);g&&(g.context=b)}),M.useMemo(()=>({...p,context:b,refs:y,elements:v}),[p,y,v,b])}function ux(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=M.useRef(!1),u=M.useRef(),f=M.useRef(!0);M.useEffect(()=>{if(!a)return;const p=Rt(s.domReference);function h(){!n&&Xe(s.domReference)&&s.domReference===$t(at(s.domReference))&&(c.current=!0)}function m(){f.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[s.domReference,n,a]),M.useEffect(()=>{if(!a)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(c.current=!0)}return o.on("openchange",p),()=>{o.off("openchange",p)}},[o,a]),M.useEffect(()=>()=>{clearTimeout(u.current)},[]);const d=M.useMemo(()=>({onPointerDown(p){gc(p.nativeEvent)||(f.current=!1)},onMouseLeave(){c.current=!1},onFocus(p){if(c.current)return;const h=_n(p.nativeEvent);if(l&&Le(h))try{if(yc()&&_h())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!f.current&&!vc(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){c.current=!1;const h=p.relatedTarget,m=p.nativeEvent,y=Le(h)&&h.hasAttribute(ur("focus-guard"))&&h.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var v;const b=$t(s.domReference?s.domReference.ownerDocument:document);!h&&b===s.domReference||st((v=i.current.floatingContext)==null?void 0:v.refs.floating.current,b)||st(s.domReference,b)||y||r(!1,m,"focus")})}}),[i,s.domReference,r,l]);return M.useMemo(()=>a?{reference:d}:{},[a,d])}const nf="active",rf="selected";function ga(t,e,n){const r=new Map,o=n==="item";let i=t;if(o&&t){const{[nf]:s,[rf]:a,...l}=t;i=l}return{...n==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[n]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,u]=l;if(!(o&&[nf,rf].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var f;(f=r.get(c))==null||f.push(u),s[c]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(c))==null?void 0:d.map(y=>y(...h)).find(y=>y!==void 0)}}}else s[c]=u}),s),{})}}function Pc(t){t===void 0&&(t=[]);const e=t.map(a=>a==null?void 0:a.reference),n=t.map(a=>a==null?void 0:a.floating),r=t.map(a=>a==null?void 0:a.item),o=M.useCallback(a=>ga(a,t,"reference"),e),i=M.useCallback(a=>ga(a,t,"floating"),n),s=M.useCallback(a=>ga(a,t,"item"),r);return M.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let of=!1;function Vs(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function sf(t,e){return Vs(e,t===Cc||t===ei,t===$r||t===Qr)}function ya(t,e,n){return Vs(e,t===ei,n?t===$r:t===Qr)||t==="Enter"||t===" "||t===""}function fx(t,e,n){return Vs(e,n?t===$r:t===Qr,t===ei)}function af(t,e,n){return Vs(e,n?t===Qr:t===$r,t===Cc)}function dx(t,e){const{open:n,onOpenChange:r,elements:o}=t,{listRef:i,activeIndex:s,onNavigate:a=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:f=!1,nested:d=!1,rtl:p=!1,virtual:h=!1,focusItemOnOpen:m="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:v=!0,disabledIndices:b=void 0,orientation:g="vertical",cols:S=1,scrollItemIntoView:x=!0,virtualItemRef:T,itemSizes:_,dense:P=!1}=e;process.env.NODE_ENV!=="production"&&(u&&(f||Di("`useListNavigation` looping must be enabled to allow escaping."),h||Di("`useListNavigation` must be virtual to allow escaping.")),g==="vertical"&&S>1&&Di("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const I=Ns(),k=ni(),F=Ot(a),R=M.useRef(m),$=M.useRef(c??-1),j=M.useRef(null),A=M.useRef(!0),D=M.useRef(F),L=M.useRef(!!o.floating),z=M.useRef(!1),q=M.useRef(!1),C=bt(b),V=bt(n),Y=bt(x),re=bt(o.floating),ee=bt(c),[H,O]=M.useState(),[N,W]=M.useState(),K=Ot(function(se,Ce,xe){xe===void 0&&(xe=!1);function Te(Re){h?(O(Re.id),k==null||k.events.emit("virtualfocus",Re),T&&(T.current=Re)):fn(Re,{preventScroll:!0,sync:_h()&&yc()?of||z.current:!1})}const he=se.current[Ce.current];he&&Te(he),requestAnimationFrame(()=>{const Re=se.current[Ce.current]||he;if(!Re)return;he||Te(Re);const Je=Y.current;Je&&le&&(xe||!A.current)&&(Re.scrollIntoView==null||Re.scrollIntoView(typeof Je=="boolean"?{block:"nearest",inline:"nearest"}:Je))})});$e(()=>{document.createElement("div").focus({get preventScroll(){return of=!0,!1}})},[]),$e(()=>{l&&(n&&o.floating?R.current&&c!=null&&(q.current=!0,$.current=c,F(c)):L.current&&($.current=-1,D.current(null)))},[l,n,o.floating,c,F]),$e(()=>{if(l&&n&&o.floating)if(s==null){if(z.current=!1,ee.current!=null)return;if(L.current&&($.current=-1,K(i,$)),!L.current&&R.current&&(j.current!=null||R.current===!0&&j.current==null)){let se=0;const Ce=()=>{i.current[0]==null?(se<2&&(se?requestAnimationFrame:queueMicrotask)(Ce),se++):($.current=j.current==null||ya(j.current,g,p)||d?da(i,C.current):Hu(i,C.current),j.current=null,F($.current))};Ce()}}else bo(i,s)||($.current=s,K(i,$,q.current),q.current=!1)},[l,n,o.floating,s,ee,d,i,g,p,F,K,C]),$e(()=>{var se;if(!l||o.floating||!k||h||!L.current)return;const Ce=k.nodesRef.current,xe=(se=Ce.find(Re=>Re.id===I))==null||(se=se.context)==null?void 0:se.elements.floating,Te=$t(at(o.floating)),he=Ce.some(Re=>Re.context&&st(Re.context.elements.floating,Te));xe&&!he&&A.current&&xe.focus({preventScroll:!0})},[l,o.floating,k,I,h]),$e(()=>{if(!l||!k||!h||I)return;function se(Ce){W(Ce.id),T&&(T.current=Ce)}return k.events.on("virtualfocus",se),()=>{k.events.off("virtualfocus",se)}},[l,k,h,I,T]),$e(()=>{D.current=F,L.current=!!o.floating}),$e(()=>{n||(j.current=null)},[n]);const X=s!=null,le=M.useMemo(()=>{function se(xe){if(!n)return;const Te=i.current.indexOf(xe);Te!==-1&&F(Te)}return{onFocus(xe){let{currentTarget:Te}=xe;se(Te)},onClick:xe=>{let{currentTarget:Te}=xe;return Te.focus({preventScroll:!0})},...y&&{onMouseMove(xe){let{currentTarget:Te}=xe;se(Te)},onPointerLeave(xe){let{pointerType:Te}=xe;!A.current||Te==="touch"||($.current=-1,K(i,$),F(null),h||fn(re.current,{preventScroll:!0}))}}}},[n,re,K,y,i,F,h]),B=Ot(se=>{if(A.current=!1,z.current=!0,!V.current&&se.currentTarget===re.current)return;if(d&&af(se.key,g,p)){vt(se),r(!1,se.nativeEvent,"list-navigation"),Xe(o.domReference)&&!h&&o.domReference.focus();return}const Ce=$.current,xe=da(i,b),Te=Hu(i,b);if(se.key==="Home"&&(vt(se),$.current=xe,F($.current)),se.key==="End"&&(vt(se),$.current=Te,F($.current)),S>1){const he=_||Array.from({length:i.current.length},()=>({width:1,height:1})),Re=Vb(he,S,P),Je=Re.findIndex(Z=>Z!=null&&!ki(i.current,Z,b)),gt=Re.reduce((Z,oe,Me)=>oe!=null&&!ki(i.current,oe,b)?Me:Z,-1);if($.current=Re[Nb({current:Re.map(Z=>Z!=null?i.current[Z]:null)},{event:se,orientation:g,loop:f,cols:S,disabledIndices:Bb([...b||i.current.map((Z,oe)=>ki(i.current,oe)?oe:void 0),void 0],Re),minIndex:Je,maxIndex:gt,prevIndex:$b($.current>Te?xe:$.current,he,Re,S,se.key===ei?"bl":se.key===Qr?"tr":"tl"),stopEvent:!0})],F($.current),g==="both")return}if(sf(se.key,g)){if(vt(se),n&&!h&&$t(se.currentTarget.ownerDocument)===se.currentTarget){$.current=ya(se.key,g,p)?xe:Te,F($.current);return}ya(se.key,g,p)?f?$.current=Ce>=Te?u&&Ce!==i.current.length?-1:xe:ft(i,{startingIndex:Ce,disabledIndices:b}):$.current=Math.min(Te,ft(i,{startingIndex:Ce,disabledIndices:b})):f?$.current=Ce<=xe?u&&Ce!==-1?i.current.length:Te:ft(i,{startingIndex:Ce,decrement:!0,disabledIndices:b}):$.current=Math.max(xe,ft(i,{startingIndex:Ce,decrement:!0,disabledIndices:b})),bo(i,$.current)?F(null):F($.current)}}),_e=M.useMemo(()=>h&&n&&X&&{"aria-activedescendant":N||H},[h,n,X,N,H]),Ve=M.useMemo(()=>({"aria-orientation":g==="both"?void 0:g,...!Ph(o.domReference)&&_e,onKeyDown:B,onPointerMove(){A.current=!0}}),[_e,B,o.domReference,g]),Ze=M.useMemo(()=>{const se=C.current,Ce=i.current.find(he=>(he==null?void 0:he.id)===H);function xe(he){m==="auto"&&Ah(he.nativeEvent)&&(R.current=!0)}function Te(he){R.current=m,m==="auto"&&gc(he.nativeEvent)&&(R.current=!0)}return{..._e,onKeyDown(he){A.current=!1;const Re=he.key.indexOf("Arrow")===0,Je=fx(he.key,g,p),gt=af(he.key,g,p),Z=sf(he.key,g),oe=(d?Je:Z)||he.key==="Enter"||he.key.trim()==="";if(h&&n){const Kt=k==null?void 0:k.nodesRef.current.find(Zt=>Zt.parentId==null),Qe=k&&Kt?Xb(k.nodesRef.current,Kt.id):null;if(Re&&Qe&&T){const Zt=new KeyboardEvent("keydown",{key:he.key,bubbles:!0});if(Je||gt){var Me,We;const lo=((Me=Qe.context)==null?void 0:Me.elements.domReference)===he.currentTarget,br=gt&&!lo?(We=Qe.context)==null?void 0:We.elements.domReference:Je?Ce:null;br&&(vt(he),br.dispatchEvent(Zt),W(void 0))}if(Z&&Qe.context&&Qe.context.open&&Qe.parentId&&he.currentTarget!==Qe.context.elements.domReference){var ot;vt(he),(ot=Qe.context.elements.domReference)==null||ot.dispatchEvent(Zt);return}}return B(he)}if(!(!n&&!v&&Re)){if(oe&&(j.current=d&&Z?null:he.key),d){Je&&(vt(he),n?($.current=da(i,se),F($.current)):r(!0,he.nativeEvent,"list-navigation"));return}Z&&(c!=null&&($.current=c),vt(he),!n&&v?r(!0,he.nativeEvent,"list-navigation"):B(he),n&&F($.current))}},onFocus(){n&&!h&&F(null)},onPointerDown:Te,onMouseDown:xe,onClick:xe}},[H,_e,B,C,m,i,d,F,r,n,v,g,p,c,k,h,T]);return M.useMemo(()=>l?{reference:Ze,floating:Ve,item:le}:{},[l,Ze,Ve,le])}const px=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Oc(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(n=px.get(s))!=null?n:s,l=ti(),u=Ns()!=null,f=M.useMemo(()=>a==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&u&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[a,o,u,r,l,s]),d=M.useMemo(()=>{const h={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?h:{...h,...a==="menu"&&{"aria-labelledby":l}}},[a,o,l,s]),p=M.useCallback(h=>{let{active:m,selected:y}=h;const v={role:"option",...m&&{id:o+"-option"}};switch(s){case"select":return{...v,"aria-selected":m&&y};case"combobox":return{...v,...m&&{"aria-selected":!0}}}return{}},[o,s]);return M.useMemo(()=>i?{reference:f,floating:d,item:p}:{},[i,f,d,p])}const lf=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,n)=>(n?"-":"")+e.toLowerCase());function wr(t,e){return typeof t=="function"?t(e):t}function hx(t,e){const[n,r]=M.useState(t);return t&&!n&&r(!0),M.useEffect(()=>{if(!t&&n){const o=setTimeout(()=>r(!1),e);return()=>clearTimeout(o)}},[t,n,e]),n}function mx(t,e){e===void 0&&(e={});const{open:n,elements:{floating:r}}=t,{duration:o=250}=e,s=(typeof o=="number"?o:o.close)||0,[a,l]=M.useState("unmounted"),c=hx(n,s);return!c&&a==="close"&&l("unmounted"),$e(()=>{if(r){if(n){l("initial");const u=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(u)}}l("close")}},[n,r]),{isMounted:c,status:a}}function gx(t,e){e===void 0&&(e={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:s=250}=e,a=t.placement,l=a.split("-")[0],c=M.useMemo(()=>({side:l,placement:a}),[l,a]),u=typeof s=="number",f=(u?s:s.open)||0,d=(u?s:s.close)||0,[p,h]=M.useState(()=>({...wr(i,c),...wr(n,c)})),{isMounted:m,status:y}=mx(t,{duration:s}),v=bt(n),b=bt(r),g=bt(o),S=bt(i);return $e(()=>{const x=wr(v.current,c),T=wr(g.current,c),_=wr(S.current,c),P=wr(b.current,c)||Object.keys(x).reduce((I,k)=>(I[k]="",I),{});if(y==="initial"&&h(I=>({transitionProperty:I.transitionProperty,..._,...x})),y==="open"&&h({transitionProperty:Object.keys(P).map(lf).join(","),transitionDuration:f+"ms",..._,...P}),y==="close"){const I=T||x;h({transitionProperty:Object.keys(I).map(lf).join(","),transitionDuration:d+"ms",..._,...I})}},[d,g,v,b,S,f,y,c]),{isMounted:m,styles:p}}class Xi{static getDescendantProperty(e,n,r=[]){let o,i,s,a,l,c;if(n){if(s=n.indexOf("."),s===-1?o=n:(o=n.slice(0,s),i=n.slice(s+1)),a=e[o],a!==null&&typeof a<"u")if(!i&&(typeof a=="string"||typeof a=="number"))r.push(a);else if(Object.prototype.toString.call(a)==="[object Array]")for(l=0,c=a.length;l<c;l++)Xi.getDescendantProperty(a[l],i,r);else i&&Xi.getDescendantProperty(a,i,r)}else r.push(e);return r}}class _r{constructor(e=[],n=[],r={}){Array.isArray(n)||(r=n,n=[]),this.haystack=e,this.keys=n,this.options=Object.assign({caseSensitive:!1,sort:!1},r)}search(e=""){if(e==="")return this.haystack;const n=[];for(let r=0;r<this.haystack.length;r++){const o=this.haystack[r];if(this.keys.length===0){const i=_r.isMatch(o,e,this.options.caseSensitive);i&&n.push({item:o,score:i})}else for(let i=0;i<this.keys.length;i++){const s=Xi.getDescendantProperty(o,this.keys[i]);let a=!1;for(let l=0;l<s.length;l++){const c=_r.isMatch(s[l],e,this.options.caseSensitive);if(c){a=!0,n.push({item:o,score:c});break}}if(a)break}}return this.options.sort&&n.sort((r,o)=>r.score-o.score),n.map(r=>r.item)}static isMatch(e,n,r){e=String(e),n=String(n),r||(e=e.toLocaleLowerCase(),n=n.toLocaleLowerCase());const o=_r.nearestIndexesFor(e,n);return o?e===n?1:o.length>1?2+(o[o.length-1]-o[0]):2+o[0]:!1}static nearestIndexesFor(e,n){const r=n.split("");let o=[];return _r.indexesOfFirstLetter(e,n).forEach((s,a)=>{let l=s+1;o[a]=[s];for(let c=1;c<r.length;c++){const u=r[c];if(l=e.indexOf(u,l),l===-1){o[a]=!1;break}o[a].push(l),l++}}),o=o.filter(s=>s!==!1),o.length?o.sort((s,a)=>s.length===1?s[0]-a[0]:(s=s[s.length-1]-s[0],a=a[a.length-1]-a[0],s-a))[0]:!1}static indexesOfFirstLetter(e,n){const r=n[0];return e.split("").map((o,i)=>o!==r?!1:i).filter(o=>o!==!1)}}/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*/const yx=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tm=(...t)=>t.filter((e,n,r)=>!!e&&r.indexOf(e)===n).join(" ");/**
|
|
10
|
-
* @license lucide-react v0.400.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/var vx={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"};/**
|
|
15
|
-
* @license lucide-react v0.400.0 - ISC
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the ISC license.
|
|
18
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/const bx=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>w.createElement("svg",{ref:l,...vx,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:tm("lucide",o),...a},[...s.map(([c,u])=>w.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
|
|
20
|
-
* @license lucide-react v0.400.0 - ISC
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the ISC license.
|
|
23
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/const Vt=(t,e)=>{const n=w.forwardRef(({className:r,...o},i)=>w.createElement(bx,{ref:i,iconNode:e,className:tm(`lucide-${yx(t)}`,r),...o}));return n.displayName=`${t}`,n};/**
|
|
25
|
-
* @license lucide-react v0.400.0 - ISC
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the ISC license.
|
|
28
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/const nm=Vt("ArrowUpNarrowWide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]);/**
|
|
30
|
-
* @license lucide-react v0.400.0 - ISC
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the ISC license.
|
|
33
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/const Ic=Vt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
35
|
-
* @license lucide-react v0.400.0 - ISC
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the ISC license.
|
|
38
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const xx=Vt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
40
|
-
* @license lucide-react v0.400.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/const wx=Vt("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
45
|
-
* @license lucide-react v0.400.0 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const Sx=Vt("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
50
|
-
* @license lucide-react v0.400.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const Tx=Vt("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|
55
|
-
* @license lucide-react v0.400.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const Ex=Vt("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
60
|
-
* @license lucide-react v0.400.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const Cx=Vt("Group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]);/**
|
|
65
|
-
* @license lucide-react v0.400.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const kc=Vt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
70
|
-
* @license lucide-react v0.400.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const rm=Vt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
75
|
-
* @license lucide-react v0.400.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const No=Vt("Trash2",[["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"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
80
|
-
* @license lucide-react v0.400.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const Rx=Vt("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function om(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=om(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ax(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=om(t))&&(r&&(r+=" "),r+=e);return r}const Dc="-";function _x(t){const e=Ox(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function o(s){const a=s.split(Dc);return a[0]===""&&a.length!==1&&a.shift(),im(a,e)||Px(s)}function i(s,a){const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function im(t,e){var s;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),o=r?im(t.slice(1),r):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Dc);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const cf=/^\[(.+)\]$/;function Px(t){if(cf.test(t)){const e=cf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Ox(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return kx(Object.entries(t.classGroups),n).forEach(([i,s])=>{bl(s,r,i,e)}),r}function bl(t,e,n,r){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:uf(e,o);i.classGroupId=n;return}if(typeof o=="function"){if(Ix(o)){bl(o(r),e,n,r);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{bl(s,uf(e,i),n,r)})})}function uf(t,e){let n=t;return e.split(Dc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ix(t){return t.isThemeGetter}function kx(t,e){return e?t.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[e+s,a])):i);return[n,o]}):t}function Dx(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function o(i,s){n.set(i,s),e++,e>t&&(e=0,r=n,n=new Map)}return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}}const sm="!";function Mx(t){const e=t.separator,n=e.length===1,r=e[0],o=e.length;return function(s){const a=[];let l=0,c=0,u;for(let m=0;m<s.length;m++){let y=s[m];if(l===0){if(y===r&&(n||s.slice(m,m+o)===e)){a.push(s.slice(c,m)),c=m+o;continue}if(y==="/"){u=m;continue}}y==="["?l++:y==="]"&&l--}const f=a.length===0?s:s.substring(c),d=f.startsWith(sm),p=d?f.substring(1):f,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}}}function jx(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function Fx(t){return{cache:Dx(t.cacheSize),splitModifiers:Mx(t),..._x(t)}}const Lx=/\s+/;function Nx(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(Lx).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(s);let f=r(u?c.substring(0,u):c),d=!!u;if(!f){if(!u)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};d=!1}const p=jx(a).join(":");return{isTailwindClass:!0,modifierId:l?p+sm:p,classGroupId:f,originalClassName:s,hasPostfixModifier:d}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=s,u=a+l;return i.has(u)?!1:(i.add(u),o(l,c).forEach(f=>i.add(a+f)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function Vx(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=am(e))&&(r&&(r+=" "),r+=n);return r}function am(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=am(t[r]))&&(n&&(n+=" "),n+=e);return n}function $x(t,...e){let n,r,o,i=s;function s(l){const c=e.reduce((u,f)=>f(u),t());return n=Fx(c),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Nx(l,n);return o(l,u),u}return function(){return i(Vx.apply(null,arguments))}}function Ne(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const lm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bx=/^\d+\/\d+$/,zx=new Set(["px","full","screen"]),Hx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wx=/\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$/,Ux=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Gx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function cn(t){return nr(t)||zx.has(t)||Bx.test(t)}function Tn(t){return eo(t,"length",t0)}function nr(t){return!!t&&!Number.isNaN(Number(t))}function bi(t){return eo(t,"number",nr)}function co(t){return!!t&&Number.isInteger(Number(t))}function Zx(t){return t.endsWith("%")&&nr(t.slice(0,-1))}function ge(t){return lm.test(t)}function En(t){return Hx.test(t)}const qx=new Set(["length","size","percentage"]);function Yx(t){return eo(t,qx,cm)}function Xx(t){return eo(t,"position",cm)}const Jx=new Set(["image","url"]);function Qx(t){return eo(t,Jx,r0)}function e0(t){return eo(t,"",n0)}function uo(){return!0}function eo(t,e,n){const r=lm.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function t0(t){return Wx.test(t)&&!Ux.test(t)}function cm(){return!1}function n0(t){return Gx.test(t)}function r0(t){return Kx.test(t)}function o0(){const t=Ne("colors"),e=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),o=Ne("borderColor"),i=Ne("borderRadius"),s=Ne("borderSpacing"),a=Ne("borderWidth"),l=Ne("contrast"),c=Ne("grayscale"),u=Ne("hueRotate"),f=Ne("invert"),d=Ne("gap"),p=Ne("gradientColorStops"),h=Ne("gradientColorStopPositions"),m=Ne("inset"),y=Ne("margin"),v=Ne("opacity"),b=Ne("padding"),g=Ne("saturate"),S=Ne("scale"),x=Ne("sepia"),T=Ne("skew"),_=Ne("space"),P=Ne("translate"),I=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",ge,e],R=()=>[ge,e],$=()=>["",cn,Tn],j=()=>["auto",nr,ge],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",ge],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[nr,bi],Y=()=>[nr,ge];return{cacheSize:500,separator:":",theme:{colors:[uo],spacing:[cn,Tn],blur:["none","",En,ge],brightness:V(),borderColor:[t],borderRadius:["none","","full",En,ge],borderSpacing:R(),borderWidth:$(),contrast:V(),grayscale:q(),hueRotate:Y(),invert:q(),gap:R(),gradientColorStops:[t],gradientColorStopPositions:[Zx,Tn],inset:F(),margin:F(),opacity:V(),padding:R(),saturate:V(),scale:V(),sepia:q(),skew:Y(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[En]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:[...A(),ge]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",co,ge]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",co,ge]}],"grid-cols":[{"grid-cols":[uo]}],"col-start-end":[{col:["auto",{span:["full",co,ge]},ge]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[uo]}],"row-start-end":[{row:["auto",{span:[co,ge]},ge]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,e]}],"min-w":[{"min-w":[ge,e,"min","max","fit"]}],"max-w":[{"max-w":[ge,e,"none","full","min","max","fit","prose",{screen:[En]},En]}],h:[{h:[ge,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,e,"auto","min","max","fit"]}],"font-size":[{text:["base",En,Tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bi]}],"font-family":[{font:[uo]}],"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",ge]}],"line-clamp":[{"line-clamp":["none",nr,bi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cn,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cn,Tn]}],"underline-offset":[{"underline-offset":["auto",cn,ge]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],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",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),Xx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qx]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"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:["",...D()]}],"outline-offset":[{"outline-offset":[cn,ge]}],"outline-w":[{outline:[cn,Tn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[cn,Tn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",En,e0]}],"shadow-color":[{shadow:[uo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",En,ge]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"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",ge]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[co,ge]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",t]}],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",ge]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",ge]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[cn,Tn,bi]}],stroke:[{stroke:[t,"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 i0=$x(o0),Mc=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n!==null&&(n.current=e)})},s0=t=>t.$$typeof===Symbol.for("react.forward_ref")||t.$$typeof===Symbol.for("react.fragment")?!0:t.$$typeof===Symbol.for("react.element"),Wt=(...t)=>i0(Ax(t)),um=({reportStatus:t,hideLeft:e=!1,className:n,children:r,title:o})=>E.jsxs("div",{className:Wt("w-full justify-between",e&&r===null?"hidden":"flex",n),children:[e?null:E.jsxs("span",{className:"flex items-center gap-1 group-hover:text-primary group-focus-within:text-primary transition-colors group-error:text-danger",children:[o,t?E.jsxs("span",{className:"flex aspect-square h-4 w-4 items-center justify-center",children:[E.jsx(wx,{className:"hidden aspect-square h-3 w-3 opacity-0 transition-opacity group-assert:block group-assert:text-success group-assert:opacity-100","aria-hidden":"true",size:16,strokeWidth:1,absoluteStrokeWidth:!0}),E.jsx(Sx,{className:"hidden aspect-square h-3 w-3 opacity-0 transition-opacity group-error:block group-error:opacity-100","aria-hidden":"true",size:16,strokeWidth:1,absoluteStrokeWidth:!0})]}):null]}),r]}),$s=({optionalText:t="Optional",left:e,rightLabel:n,container:r,right:o,children:i,error:s,form:a,id:l,name:c,title:u,placeholder:f,hideLeft:d,required:p})=>{const h=l??c;return E.jsxs("fieldset",{"data-error":!!s,form:a,className:Wt("group inline-block w-full",r),children:[E.jsxs("label",{form:a,htmlFor:h,className:"inline-flex w-full cursor-text flex-row flex-wrap justify-between gap-1 text-sm transition-colors empty:hidden group-error:text-danger group-hover:border-primary",children:[!d&&!n?E.jsx(um,{hideLeft:d,reportStatus:!0,title:u,placeholder:f,children:t||n?E.jsxs(w.Fragment,{children:[p?null:E.jsx("span",{className:"text-opacity-70",children:t}),n?E.jsx(w.Fragment,{children:n}):null]}):null}):null,E.jsxs("div",{className:"relative group flex w-full flex-row flex-nowrap items-center gap-x-2 gap-y-1 rounded-md border border-input-border bg-transparent transition-colors group-focus-within:border-primary group-hover:border-primary group-error:border-danger",children:[e?E.jsx("span",{className:"absolute left-0 flex flex-nowrap gap-1 whitespace-nowrap pl-2",children:e}):null,i,o?E.jsx("span",{className:"absolute right-0 flex flex-nowrap gap-2 whitespace-nowrap pr-1",children:o}):null]})]}),E.jsx("p",{className:"mt-1 text-xs group-error:block group-error:text-danger",children:s})]})},fm=t=>{const e=w.useRef();return w.useEffect(()=>{e.current=t},[t]),e.current},dm=w.forwardRef(({selected:t,active:e,onClick:n,option:r,...o},i)=>E.jsx("li",{...o,ref:i,role:"option","aria-selected":t,className:"w-full",children:E.jsx("button",{type:"button",onClick:n,"aria-selected":t,className:`p-2 w-full text-left cursor-pointer ${t?"bg-primary text-primary-foreground":""} ${e?"bg-primary-subtle text-primary-foreground":""}`,children:r.label??r.value})})),a0={duration:300,initial:{transform:"scaleY(0)",opacity:.2},open:{transform:"scaleY(1)",opacity:1},close:{transform:"scaleY(0)",opacity:0}},l0={caseSensitive:!1,sort:!1},c0=[],u0=w.forwardRef(({options:t,required:e=!0,...n},r)=>{const[o,i]=w.useState(!1),[s,a]=w.useState(""),[l,c]=w.useState(n.value??n.defaultValue??""),[u,f]=w.useState(null),d=w.useRef(c0),p=fm(u),h=new _r(t,["value"],l0).search(s),{x:m,y,strategy:v,refs:b,context:g}=_c({open:o,transform:!0,onOpenChange:i,whileElementsMounted:Tc,middleware:[Ec(4),jb({padding:10,apply(R){Object.assign(R.elements.floating.style,{width:`${R.rects.reference.width}px`,maxHeight:`${Math.min(480,R.availableHeight)}px`})}})]});w.useImperativeHandle(r,()=>{var R;return(R=b.domReference)==null?void 0:R.current},[b]);const S=gx(g,a0),{getReferenceProps:x,getFloatingProps:T,getItemProps:_}=Pc([Oc(g,{role:"listbox"}),Ac(g),dx(g,{listRef:d,loop:!0,activeIndex:u,allowEscape:!0,focusItemOnOpen:"auto",openOnArrowKeyDown:!0,scrollItemIntoView:!0,selectedIndex:u,virtual:!0,onNavigate:R=>{const $=h.length-1;if(R===null&&p===0)return f($);if(R===null&&p===$)return f(0);const j=R??p??null;return j===null?void 0:f(j)}})]),P=R=>{c(R.value),i(!1),a("")},I=R=>{var j;const $=R.target.value;return a($),!o&&$===""||$?i(!0):(j=n.onChange)==null?void 0:j.call(n,R)},k=()=>{i(!0),a("")},F=()=>{a(""),c(""),i(!1)};return E.jsxs("fieldset",{className:"relative w-auto",children:[E.jsx($s,{...n,required:e,right:E.jsxs("span",{className:"flex items-center gap-0.5",children:[E.jsx(Ic,{size:20}),l?E.jsx("button",{type:"button",onClick:F,className:"link:text-danger transition-colors",children:E.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}):null]}),children:E.jsx("input",{...x({...n,onChange:I,onFocus:k,ref:b.setReference,onClick:R=>R.currentTarget.focus(),onKeyDown(R){if(R.key==="Escape")return R.currentTarget.blur(),i(!1);if(R.key==="Enter"){if(u!==null&&h[u])return R.preventDefault(),P(h[u]);if(h.length===1)return R.preventDefault(),P(h[0])}}}),required:e,value:o?s:l,"aria-autocomplete":"list",autoComplete:"off",className:Wt("input text-foreground group h-10 w-full flex-1 rounded-md bg-transparent p-2 placeholder-input-mask outline-none transition-colors group-error:text-danger group-error:placeholder-input-mask-error",n.right||s?"pe-12":"",n.left?"ps-8":"",n.className)})}),E.jsx(Jh,{preserveTabOrder:!0,children:E.jsx(em,{closeOnFocusOut:!0,guards:!0,returnFocus:!0,context:g,initialFocus:-1,visuallyHiddenDismiss:!0,children:E.jsx("ul",{...T({ref:b.setFloating,style:{position:v,left:m??0,top:y??0,...S.styles}}),"data-floating":"true",className:"bg-floating-background shadow-floating text-foreground list-none p-0 m-0 rounded-b-lg overflow-auto origin-[top_center] overflow-y-auto z-floating",children:h.map((R,$)=>w.createElement(dm,{..._({onClick:()=>P(R),ref:j=>void(d.current[$]=j)}),key:`${R.value}-option`,option:R,selected:u===$,active:l===R.value}))})})})]})});var ct=function(){return ct=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ct.apply(this,arguments)};function jc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function xl(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}var Vo=function(t){return t.replace(new RegExp(" ","g")," ")},pm=function(t,e){var n=t.length,r=e+1;if(n>=r)return t;var o="0".repeat(r-n);return"".concat(o).concat(t)},f0=function(t){return t.replace(/^0+([0-9]+)/,"$1")},hm=function(t,e,n){var r=t.length-2,o=f0(t.substring(0,r)),i=t.substring(r);return o.split(/(?=(?:\d{3})*$)/).join(e)+n+i},mm=function(t){return t===void 0&&(t=""),t.replace(/(-(?!\d))|[^0-9|-]/g,"")||""},gm=function(t){return Number.parseFloat(t.replace(/,/g,".").replace(/(.*)\./,function(e){return"".concat(e.replace(/\./g,""),".")}).replace(/[^0-9.]/g,""))},d0=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},va=function(t){var e=w.useRef(t);return w.useEffect(function(){e.current=t},[t]),e},p0=function(t){return t==="money"||t==="currency"},h0=function(t,e,n){return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:n}).formatToParts(1e3).reduce(function(r,o){var i;return ct(ct({},r),(i={},i[o.type]=o.value,i))},{currency:"",currencyDisplay:"",decimal:",",fraction:"",group:"",integer:"",literal:""})},ba=function(t,e){var n=pm(mm(t),e.fraction.length),r="".concat(e.currency).concat(hm(n,e.group,e.decimal));return Vo(r)},m0=w.forwardRef(function(t,e){var n=t.locale,r=n===void 0?"pt-BR":n,o=t.currency,i=o===void 0?"BRL":o,s=t.currencyDisplay,a=s===void 0?"symbol":s;t.mask;var l=t.onChange,c=jc(t,["locale","currency","currencyDisplay","mask","onChange"]),u=w.useRef(null);w.useImperativeHandle(e,function(){return u.current});var f=w.useMemo(function(){var h=h0(r,i,a);return h.currency=Vo("".concat(h.currency.trim()," ")),h.literal=Vo(h.literal.trim()),h},[r,i]),d=function(h){var m=ba(h.target.value,f),y=gm(m);h.target.value=m,h.target.setAttribute("data-number",y.toString()),l==null||l(h),y!==0&&(u.current.selectionEnd=m.length)},p=c.defaultValue?ba(c.defaultValue,f):void 0;return w.createElement("input",ct({},c,{value:typeof c.value=="string"?ba(c.value,f):c.value,defaultValue:p,type:"text",ref:u,onChange:d,inputMode:"decimal"}))}),g0=1,y0=function(t){return t==="percentage"||t==="percent"||t==="percentual"},v0=function(t){return new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:2}).formatToParts(1e3).reduce(function(e,n){var r;return ct(ct({},e),(r={},r[n.type]=n.value,r))},{decimal:"",fraction:"",group:"",integer:"",percentSign:"",type:"",value:""})},xa=function(t,e){var n=pm(mm(t),e.fraction.length),r="".concat(hm(n,e.group,e.decimal)," ").concat(e.percentSign);return Vo(r)},b0=w.forwardRef(function(t,e){var n=t.locale,r=n===void 0?"pt-BR":n;t.mask;var o=t.onChange,i=t.onKeyUp,s=jc(t,["locale","mask","onChange","onKeyUp"]),a=w.useRef(null),l=xl(w.useState(function(){var v,b;return(b=(v=s.value)===null||v===void 0?void 0:v.toString())!==null&&b!==void 0?b:""}),2),c=l[0],u=l[1];w.useImperativeHandle(e,function(){return a.current}),w.useEffect(function(){var v,b=Number.parseFloat("".concat((v=s.value)!==null&&v!==void 0?v:"0")).toFixed(f.fraction.length);u(xa(b,f))},[s.value]);var f=w.useMemo(function(){var v=v0(r);return v.percentSign=Vo("".concat(v.percentSign)),v},[r]),d=c.length-f.percentSign.length-g0,p=function(v){var b,g=a.current;g&&(g.setSelectionRange(d,d),v&&((b=s.onFocus)===null||b===void 0||b.call(s,v)))},h=function(v){var b=v.currentTarget;if(b.selectionStart!==null){var g=b.selectionStart,S=b.selectionEnd,x=g!==S,T=d<g;!x&&T&&p()}i==null||i(v)},m=function(v){var b=xa(v.target.value,f),g=gm(b);u(b),v.target.value=b,v.target.setAttribute("data-number",g.toString()),o==null||o(v)};w.useEffect(function(){return p()},[c]);var y=s.defaultValue?xa(s.defaultValue,f):void 0;return w.createElement("input",ct({},s,{defaultValue:y,inputMode:"decimal",onChange:m,onFocus:p,onKeyUp:h,ref:a,type:"text"}))}),ho={dots:/\./g,openParenthesis:/\(/g,closeParenthesis:/\)/g,leadingBars:/\\\\/g,escape:/[.*+?^${}()|[\]\\]/g},x0=function(t){for(var e,n=t.length,r=[],o=0;o<n;o++){var i=t[o],s=Ji[i];s===void 0?r.push(i.replace(ho.dots,"\\.").replace(ho.openParenthesis,"\\(").replace(ho.closeParenthesis,"\\)")):r.push((e=s.regex)===null||e===void 0?void 0:e.source)}return r.join("").replace(ho.leadingBars,"\\")},wo=function(t,e,n){var r=typeof t=="function",o=r?"":t;if(r&&(o=t(e)),Array.isArray(o))return wl(o,n);var i=x0(o);return n?"^".concat(i,"$"):i},w0=function(t){return t.replace(ho.escape,"\\$&")},wl=function(t,e){var n=t.map(function(r){return typeof r=="string"?w0(r):r.source}).join("");return new RegExp(e?"^".concat(n,"$"):n).source},Ji={A:{regex:/[a-zA-Z]/,parse:function(t){return t.toLocaleUpperCase()}},H:{regex:/[a-fA-F0-9]/},X:{regex:/[0-9a-zA-Z]/},a:{regex:/[a-zA-Z]/,parse:function(t){return t.toLocaleLowerCase()}},d:{regex:/\d/,escape:!0},x:{regex:/[a-zA-Z]/}},S0=/\d/,ff="(dd) 9dddd-dddd",df="(dd) dddd-dddd",pf="ddd.ddd.ddd-dd",hf="dd.ddd.ddd/dddd-dd",Mi=function(t){return t.replace(/\D/g,"")},T0=["2",/[0-3]/,":",/[0-5]/,/\d/],E0=[/[012]/,/\d/,":",/[0-5]/,/[0-9]/],Tt={cep:"ddddd-ddd",date:"dd/dd/dddd",cpf:pf,isoDate:"dddd-dd-dd",cnpj:hf,telephone:df,cellphone:ff,creditCard:"dddd dddd dddd dddd",uuid:"HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH",color:function(t){return t.length>4?"#HHHHHH":"#HHH"},cpfCnpj:function(t){return Mi(t).length<=11?pf:hf},int:function(t){return t===void 0&&(t=""),S0.test(t.toString().slice(-1))?"d".repeat(Math.max(t.length,0)):"d".repeat(Math.max(t.length-1,0))},cellTelephone:function(t){var e=Mi(t);return e.length<11?df:ff},time:function(t){var e=Mi(t),n=e[0];return n==="2"?T0:E0}},Et=function(t,e,n){var r;return n===void 0&&(n={}),ct({mask:t,inputMode:e,strict:!0,pattern:((r=n.pattern)!==null&&r!==void 0?r:typeof t=="function")?void 0:wo(t,"",!0),infinity:n.infinity},n)},ht={cellTelephone:Et(Tt.cellTelephone,"tel"),cellphone:Et(Tt.cellphone,"tel"),cep:Et(Tt.cep,"decimal"),cnpj:Et(Tt.cnpj,"decimal"),color:Et(Tt.color,"decimal",{pattern:"#[a-fA-F0-9]{3}([a-fA-F0-9]{3})?"}),cpf:Et(Tt.cpf,"decimal"),cpfCnpj:Et(Tt.cpfCnpj,"decimal",{transform:Mi}),creditCard:Et(Tt.creditCard,"decimal",{pattern:"[0-9]{4} [0-9]{4} [0-9]{4} [0-9]{3,4}"}),date:Et(Tt.date,"decimal"),int:Et(Tt.int,"decimal",{pattern:"[0-9]+"}),isoDate:Et(Tt.isoDate,"decimal"),telephone:Et(Tt.telephone,"tel"),time:Et(Tt.time,"decimal",{pattern:"[0-9]{2}:[0-9]{2}"}),uuid:Et(Tt.uuid,"decimal",{pattern:"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"})};function mf(t,e,n,r){var o,i;r===void 0&&(r=Ji);for(var s=n(t),a="",l=0,c=0;l<e.length&&c<s.length;){var u=e[l],f=u instanceof RegExp?u:r[u],d=s[c];if(f===void 0){a+=u,d===u&&(c+=1),l+=1;continue}var p=f instanceof RegExp?{regex:f}:f;p.regex.test(d)&&(a+=(i=(o=p.parse)===null||o===void 0?void 0:o.call(p,d))!==null&&i!==void 0?i:d),c+=1,l+=1}return a}var gf=function(t){return t},C0=function(t,e,n){if(!t||!n)return!1;var r=new RegExp(wo(t,n,e));return r.test(n)};function R0(t){var e=w.useRef(t);return w.useEffect(function(){e.current=t},[t]),e.current}var A0=w.forwardRef(function(t,e){var n=t.infinity,r=n===void 0?!1:n,o=t.strict,i=o===void 0?!0:o,s=t.transform,a=t.onChange,l=t.pattern,c=t.tokens,u=t.mask,f=t.onChangeText,d=t.as,p=jc(t,["infinity","strict","transform","onChange","pattern","tokens","mask","onChangeText","as"]),h=w.useRef(null);w.useImperativeHandle(e,function(){return h.current});var m=va(a),y=va(f),v=va(u),b=w.useRef(C0(u,i,p.value||p.defaultValue)),g=d??"input",S=xl(w.useState(""),2),x=S[0],T=S[1],_=R0(x),P=w.useCallback(function(A,D){var L,z,q=(L=A??D)!==null&&L!==void 0?L:"";if(u===void 0)return q;var C=(z=q==null?void 0:q.toString())!==null&&z!==void 0?z:"";return mf(C,typeof u=="function"?u(C):u,s??gf,c??Ji)},[s,u,c]),I=xl(w.useState(function(){return P(p.value,p.defaultValue)}),2),k=I[0],F=I[1],R=P(p.defaultValue,p.defaultValue),$=w.useMemo(function(){if(l||u===void 0)return l;if(typeof u=="function"){var A=u(k);return Array.isArray(A)?wl(A,i):wo(u,k,i)}return typeof u=="string"?wo(u,k,i):wl(u,i)},[l,k,i,u]);w.useEffect(function(){if(p.value!==void 0){var A=P(p.value,p.defaultValue);F(A),h.current!==null&&(h.current.value=A)}},[p.value,u,s,p.defaultValue]);var j=function(A){var D,L,z,q,C,V=A.currentTarget,Y=A.target.value;if(v.current===void 0)return F(Y),(D=y.current)===null||D===void 0||D.call(y,Y),(L=m.current)===null||L===void 0||L.call(m,A),f==null?void 0:f(Y);var re=new RegExp(wo(v.current,Y,i)),ee=(z=V.selectionEnd)!==null&&z!==void 0?z:0,H=function(X,le,B){if(X.type!=="number")return X.setSelectionRange(le,B)};if(r&&b.current&&Y.length>=k.length)return V.value=k,H(V,ee-1,ee-1);var O=!1;Y.length<_.length&&(b.current=!1,O=!0),re.test(Y)&&(b.current=!0);var N=ee,W=Y[N-1],K=mf(Y,typeof v.current=="function"?v.current(Y):v.current,s??gf,c??Ji);for(V.value=K,F(K);N<K.length&&K.charAt(N-1)!==W;)N+=1;O?H(V,ee,ee):H(V,N,N),A.target.value=K,T(K),(q=y.current)===null||q===void 0||q.call(y,K),(C=m.current)===null||C===void 0||C.call(m,A)};return w.createElement(g,ct({},p,{ref:h,pattern:$,onChange:j,defaultValue:yf(p.defaultValue)?R:void 0,value:yf(p.value)?P(p.value,p.value):p.value}))}),yf=function(t){return typeof t=="string"},ym=w.forwardRef(function(t,e){return p0(t.mask)?w.createElement(m0,ct({},t,{mask:void 0,ref:e})):y0(t.mask)?w.createElement(b0,ct({},t,{mask:void 0,ref:e})):w.createElement(A0,ct({},t,{ref:e}))}),_t=function(t){return function(e){return w.createElement(ym,ct({},t,e))}};_t(ht.cellTelephone);_t(ht.cellphone);_t(ht.cep);_t(ht.cnpj);_t(ht.color);_t(ht.cpf);_t(ht.cpfCnpj);_t(ht.creditCard);_t(ht.date);_t(ht.int);_t(ht.isoDate);_t(ht.telephone);_t(ht.time);_t(ht.uuid);var _0=w.forwardRef(function(e,n){var r=w.useMemo(function(){if(e.mask)return typeof e.mask=="string"&&d0(ht,e.mask)?ht[e.mask]:{mask:e.mask}},[e.mask]),o=ct(ct({},e),r);return w.createElement(ym,ct({},o,{ref:n}))});const Fc=w.forwardRef(({type:t="text",container:e,next:n,rightLabel:r,optionalText:o,hideLeft:i=!1,right:s,left:a,...l},c)=>{const u=l.id??l.name,f=w.useRef(null);return w.useEffect(()=>{if(f.current===null)return;const d=f.current,p=()=>d.setAttribute("data-initialized","true"),h=m=>{const y=m;if(y.key==="Enter"&&d.enterKeyHint==="next"){const v=d.getAttribute("data-next");if(v){const b=document.getElementById(v);if(b)return b.focus(),void y.preventDefault()}}};return d.addEventListener("keydown",h),d.addEventListener("focus",p),()=>{d.removeEventListener("keydown",h),d.removeEventListener("focus",p)}},[]),E.jsx($s,{...l,right:s,left:a,hideLeft:i,rightLabel:r,optionalText:o,container:Wt("group inline-block w-full",e),children:E.jsx(_0,{...l,type:t,"data-next":n,ref:Mc(c,f),id:u,name:u,className:Wt("input text-foreground group h-10 w-full flex-1 rounded-md bg-transparent p-2 placeholder-input-mask outline-none transition-colors group-error:text-danger group-error:placeholder-input-mask-error",s?"pe-4":"",a?"ps-4":"",l.className)})})}),fr=w.forwardRef(({container:t,required:e=!0,options:n,...r},o)=>{const i=w.useRef(null),s=r.id??r.name;return w.useEffect(()=>{if(i.current===null)return;const a=i.current,l=()=>a.setAttribute("data-initialized","true"),c=()=>a.setAttribute("data-selected","true");return a.addEventListener("focus",l),a.addEventListener("change",c),()=>{a.removeEventListener("focus",l),a.removeEventListener("change",c)}},[]),E.jsx($s,{...r,required:e,container:Wt("group inline-block w-full",t),right:E.jsx(Ic,{size:20}),children:E.jsxs("select",{...r,ref:Mc(o,i),id:s,name:s,required:e,"data-selected":!!r.value||!1,className:Wt("input bg-transparent text-foreground select group h-10 w-full flex-1 rounded-md p-2 placeholder-input-placeholder outline-none transition-colors group-error:text-danger group-error:placeholder-input-mask-error","data-[selected=false]:text-input-placeholder",r.className),children:[E.jsx("option",{value:"",hidden:!0,disabled:!0,children:r.placeholder}),n.map(a=>E.jsx("option",{...a,children:a.label??a.value},`${s}-select-option-${a.value}`))]})})}),P0=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],O0=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],I0=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],k0=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vf=(t,e,n)=>{let r=t;return typeof e=="string"||Array.isArray(e)?r=t.toLocaleString(e,n):(e===!0||n!==void 0)&&(r=t.toLocaleString(void 0,n)),r};function bf(t,e){if(!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);e={bits:!1,binary:!1,space:!0,...e};const n=e.bits?e.binary?k0:I0:e.binary?O0:P0,r=e.space?" ":"";if(e.signed&&t===0)return` 0${r}${n[0]}`;const o=t<0,i=o?"-":e.signed?"+":"";o&&(t=-t);let s;if(e.minimumFractionDigits!==void 0&&(s={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(s={maximumFractionDigits:e.maximumFractionDigits,...s}),t<1){const u=vf(t,e.locale,s);return i+u+r+n[0]}const a=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),n.length-1);t/=(e.binary?1024:1e3)**a,s||(t=t.toPrecision(3));const l=vf(Number(t),e.locale,s),c=n[a];return i+l+r+c}var xf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function D0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function M0(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var Sl={exports:{}},xi={exports:{}},Pe={};/** @license React v16.13.1
|
|
85
|
-
* react-is.production.min.js
|
|
86
|
-
*
|
|
87
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the MIT license found in the
|
|
90
|
-
* LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/var wf;function j0(){if(wf)return Pe;wf=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(x){if(typeof x=="object"&&x!==null){var T=x.$$typeof;switch(T){case e:switch(x=x.type,x){case l:case c:case r:case i:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case a:case u:case h:case p:case s:return x;default:return T}}case n:return T}}}function S(x){return g(x)===c}return Pe.AsyncMode=l,Pe.ConcurrentMode=c,Pe.ContextConsumer=a,Pe.ContextProvider=s,Pe.Element=e,Pe.ForwardRef=u,Pe.Fragment=r,Pe.Lazy=h,Pe.Memo=p,Pe.Portal=n,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=f,Pe.isAsyncMode=function(x){return S(x)||g(x)===l},Pe.isConcurrentMode=S,Pe.isContextConsumer=function(x){return g(x)===a},Pe.isContextProvider=function(x){return g(x)===s},Pe.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Pe.isForwardRef=function(x){return g(x)===u},Pe.isFragment=function(x){return g(x)===r},Pe.isLazy=function(x){return g(x)===h},Pe.isMemo=function(x){return g(x)===p},Pe.isPortal=function(x){return g(x)===n},Pe.isProfiler=function(x){return g(x)===i},Pe.isStrictMode=function(x){return g(x)===o},Pe.isSuspense=function(x){return g(x)===f},Pe.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===i||x===o||x===f||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===u||x.$$typeof===y||x.$$typeof===v||x.$$typeof===b||x.$$typeof===m)},Pe.typeOf=g,Pe}var Oe={};/** @license React v16.13.1
|
|
92
|
-
* react-is.development.js
|
|
93
|
-
*
|
|
94
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the MIT license found in the
|
|
97
|
-
* LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/var Sf;function F0(){return Sf||(Sf=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(B){return typeof B=="string"||typeof B=="function"||B===r||B===c||B===i||B===o||B===f||B===d||typeof B=="object"&&B!==null&&(B.$$typeof===h||B.$$typeof===p||B.$$typeof===s||B.$$typeof===a||B.$$typeof===u||B.$$typeof===y||B.$$typeof===v||B.$$typeof===b||B.$$typeof===m)}function S(B){if(typeof B=="object"&&B!==null){var _e=B.$$typeof;switch(_e){case e:var Ve=B.type;switch(Ve){case l:case c:case r:case i:case o:case f:return Ve;default:var Ze=Ve&&Ve.$$typeof;switch(Ze){case a:case u:case h:case p:case s:return Ze;default:return _e}}case n:return _e}}}var x=l,T=c,_=a,P=s,I=e,k=u,F=r,R=h,$=p,j=n,A=i,D=o,L=f,z=!1;function q(B){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(B)||S(B)===l}function C(B){return S(B)===c}function V(B){return S(B)===a}function Y(B){return S(B)===s}function re(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function ee(B){return S(B)===u}function H(B){return S(B)===r}function O(B){return S(B)===h}function N(B){return S(B)===p}function W(B){return S(B)===n}function K(B){return S(B)===i}function X(B){return S(B)===o}function le(B){return S(B)===f}Oe.AsyncMode=x,Oe.ConcurrentMode=T,Oe.ContextConsumer=_,Oe.ContextProvider=P,Oe.Element=I,Oe.ForwardRef=k,Oe.Fragment=F,Oe.Lazy=R,Oe.Memo=$,Oe.Portal=j,Oe.Profiler=A,Oe.StrictMode=D,Oe.Suspense=L,Oe.isAsyncMode=q,Oe.isConcurrentMode=C,Oe.isContextConsumer=V,Oe.isContextProvider=Y,Oe.isElement=re,Oe.isForwardRef=ee,Oe.isFragment=H,Oe.isLazy=O,Oe.isMemo=N,Oe.isPortal=W,Oe.isProfiler=K,Oe.isStrictMode=X,Oe.isSuspense=le,Oe.isValidElementType=g,Oe.typeOf=S}()),Oe}var Tf;function vm(){return Tf||(Tf=1,process.env.NODE_ENV==="production"?xi.exports=j0():xi.exports=F0()),xi.exports}/*
|
|
99
|
-
object-assign
|
|
100
|
-
(c) Sindre Sorhus
|
|
101
|
-
@license MIT
|
|
102
|
-
*/var wa,Ef;function L0(){if(Ef)return wa;Ef=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wa=o()?Object.assign:function(i,s){for(var a,l=r(i),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var f in a)e.call(a,f)&&(l[f]=a[f]);if(t){c=t(a);for(var d=0;d<c.length;d++)n.call(a,c[d])&&(l[c[d]]=a[c[d]])}}return l},wa}var Sa,Cf;function Lc(){if(Cf)return Sa;Cf=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sa=t,Sa}var Ta,Rf;function bm(){return Rf||(Rf=1,Ta=Function.call.bind(Object.prototype.hasOwnProperty)),Ta}var Ea,Af;function N0(){if(Af)return Ea;Af=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Lc(),n={},r=bm();t=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var f;try{if(typeof i[u]!="function"){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[u](s,u,l,a,null,e)}catch(h){f=h}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=c?c():"";t("Failed "+a+" type: "+f.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ea=o,Ea}var Ca,_f;function V0(){if(_f)return Ca;_f=1;var t=vm(),e=L0(),n=Lc(),r=bm(),o=N0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Ca=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(C){var V=C&&(c&&C[c]||C[u]);if(typeof V=="function")return V}var d="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:b(),arrayOf:g,element:S(),elementType:x(),instanceOf:T,node:k(),objectOf:P,oneOf:_,oneOfType:I,shape:R,exact:$};function h(C,V){return C===V?C!==0||1/C===1/V:C!==C&&V!==V}function m(C,V){this.message=C,this.data=V&&typeof V=="object"?V:{},this.stack=""}m.prototype=Error.prototype;function y(C){if(process.env.NODE_ENV!=="production")var V={},Y=0;function re(H,O,N,W,K,X,le){if(W=W||d,X=X||N,le!==n){if(l){var B=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 B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=W+":"+N;!V[_e]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[_e]=!0,Y++)}}return O[N]==null?H?O[N]===null?new m("The "+K+" `"+X+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new m("The "+K+" `"+X+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:C(O,N,W,K,X)}var ee=re.bind(null,!1);return ee.isRequired=re.bind(null,!0),ee}function v(C){function V(Y,re,ee,H,O,N){var W=Y[re],K=D(W);if(K!==C){var X=L(W);return new m("Invalid "+H+" `"+O+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return y(V)}function b(){return y(s)}function g(C){function V(Y,re,ee,H,O){if(typeof C!="function")return new m("Property `"+O+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var N=Y[re];if(!Array.isArray(N)){var W=D(N);return new m("Invalid "+H+" `"+O+"` of type "+("`"+W+"` supplied to `"+ee+"`, expected an array."))}for(var K=0;K<N.length;K++){var X=C(N,K,ee,H,O+"["+K+"]",n);if(X instanceof Error)return X}return null}return y(V)}function S(){function C(V,Y,re,ee,H){var O=V[Y];if(!a(O)){var N=D(O);return new m("Invalid "+ee+" `"+H+"` of type "+("`"+N+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return y(C)}function x(){function C(V,Y,re,ee,H){var O=V[Y];if(!t.isValidElementType(O)){var N=D(O);return new m("Invalid "+ee+" `"+H+"` of type "+("`"+N+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return y(C)}function T(C){function V(Y,re,ee,H,O){if(!(Y[re]instanceof C)){var N=C.name||d,W=q(Y[re]);return new m("Invalid "+H+" `"+O+"` of type "+("`"+W+"` supplied to `"+ee+"`, expected ")+("instance of `"+N+"`."))}return null}return y(V)}function _(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function V(Y,re,ee,H,O){for(var N=Y[re],W=0;W<C.length;W++)if(h(N,C[W]))return null;var K=JSON.stringify(C,function(le,B){var _e=L(B);return _e==="symbol"?String(B):B});return new m("Invalid "+H+" `"+O+"` of value `"+String(N)+"` "+("supplied to `"+ee+"`, expected one of "+K+"."))}return y(V)}function P(C){function V(Y,re,ee,H,O){if(typeof C!="function")return new m("Property `"+O+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var N=Y[re],W=D(N);if(W!=="object")return new m("Invalid "+H+" `"+O+"` of type "+("`"+W+"` supplied to `"+ee+"`, expected an object."));for(var K in N)if(r(N,K)){var X=C(N,K,ee,H,O+"."+K,n);if(X instanceof Error)return X}return null}return y(V)}function I(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var V=0;V<C.length;V++){var Y=C[V];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(Y)+" at index "+V+"."),s}function re(ee,H,O,N,W){for(var K=[],X=0;X<C.length;X++){var le=C[X],B=le(ee,H,O,N,W,n);if(B==null)return null;B.data&&r(B.data,"expectedType")&&K.push(B.data.expectedType)}var _e=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new m("Invalid "+N+" `"+W+"` supplied to "+("`"+O+"`"+_e+"."))}return y(re)}function k(){function C(V,Y,re,ee,H){return j(V[Y])?null:new m("Invalid "+ee+" `"+H+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return y(C)}function F(C,V,Y,re,ee){return new m((C||"React class")+": "+V+" type `"+Y+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function R(C){function V(Y,re,ee,H,O){var N=Y[re],W=D(N);if(W!=="object")return new m("Invalid "+H+" `"+O+"` of type `"+W+"` "+("supplied to `"+ee+"`, expected `object`."));for(var K in C){var X=C[K];if(typeof X!="function")return F(ee,H,O,K,L(X));var le=X(N,K,ee,H,O+"."+K,n);if(le)return le}return null}return y(V)}function $(C){function V(Y,re,ee,H,O){var N=Y[re],W=D(N);if(W!=="object")return new m("Invalid "+H+" `"+O+"` of type `"+W+"` "+("supplied to `"+ee+"`, expected `object`."));var K=e({},Y[re],C);for(var X in K){var le=C[X];if(r(C,X)&&typeof le!="function")return F(ee,H,O,X,L(le));if(!le)return new m("Invalid "+H+" `"+O+"` key `"+X+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(Y[re],null," ")+`
|
|
103
|
-
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var B=le(N,X,ee,H,O+"."+X,n);if(B)return B}return null}return y(V)}function j(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(j);if(C===null||a(C))return!0;var V=f(C);if(V){var Y=V.call(C),re;if(V!==C.entries){for(;!(re=Y.next()).done;)if(!j(re.value))return!1}else for(;!(re=Y.next()).done;){var ee=re.value;if(ee&&!j(ee[1]))return!1}}else return!1;return!0;default:return!1}}function A(C,V){return C==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function D(C){var V=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":A(V,C)?"symbol":V}function L(C){if(typeof C>"u"||C===null)return""+C;var V=D(C);if(V==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return V}function z(C){var V=L(C);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function q(C){return!C.constructor||!C.constructor.name?d:C.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Ca}var Ra,Pf;function $0(){if(Pf)return Ra;Pf=1;var t=Lc();function e(){}function n(){}return n.resetWarningCache=e,Ra=function(){function r(s,a,l,c,u,f){if(f!==t){var d=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 d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},Ra}if(process.env.NODE_ENV!=="production"){var B0=vm(),z0=!0;Sl.exports=V0()(B0.isElement,z0)}else Sl.exports=$0()();var H0=Sl.exports;const je=D0(H0);function to(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function no(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Of(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function If(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var W0=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 ri(t,e){var n=U0(t);if(typeof n.path!="string"){var r=t.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof e=="string"?e:typeof r=="string"&&r.length>0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}function U0(t){var e=t.name,n=e&&e.lastIndexOf(".")!==-1;if(n&&!t.type){var r=e.split(".").pop().toLowerCase(),o=W0.get(r);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}var G0=[".DS_Store","Thumbs.db"];function K0(t){return to(this,void 0,void 0,function(){return no(this,function(e){return Qi(t)&&Z0(t.dataTransfer)?[2,J0(t.dataTransfer,t.type)]:q0(t)?[2,Y0(t)]:Array.isArray(t)&&t.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,X0(t)]:[2,[]]})})}function Z0(t){return Qi(t)}function q0(t){return Qi(t)&&Qi(t.target)}function Qi(t){return typeof t=="object"&&t!==null}function Y0(t){return Tl(t.target.files).map(function(e){return ri(e)})}function X0(t){return to(this,void 0,void 0,function(){var e;return no(this,function(n){switch(n.label){case 0:return[4,Promise.all(t.map(function(r){return r.getFile()}))];case 1:return e=n.sent(),[2,e.map(function(r){return ri(r)})]}})})}function J0(t,e){return to(this,void 0,void 0,function(){var n,r;return no(this,function(o){switch(o.label){case 0:return t.items?(n=Tl(t.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,n]:[4,Promise.all(n.map(Q0))]):[3,2];case 1:return r=o.sent(),[2,kf(xm(r))];case 2:return[2,kf(Tl(t.files).map(function(i){return ri(i)}))]}})})}function kf(t){return t.filter(function(e){return G0.indexOf(e.name)===-1})}function Tl(t){if(t===null)return[];for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}function Q0(t){if(typeof t.webkitGetAsEntry!="function")return Df(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?wm(e):Df(t)}function xm(t){return t.reduce(function(e,n){return If(If([],Of(e),!1),Of(Array.isArray(n)?xm(n):[n]),!1)},[])}function Df(t){var e=t.getAsFile();if(!e)return Promise.reject("".concat(t," is not a File"));var n=ri(e);return Promise.resolve(n)}function ew(t){return to(this,void 0,void 0,function(){return no(this,function(e){return[2,t.isDirectory?wm(t):tw(t)]})})}function wm(t){var e=t.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;e.readEntries(function(a){return to(s,void 0,void 0,function(){var l,c,u;return no(this,function(f){switch(f.label){case 0:if(a.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=f.sent(),n(l),[3,4];case 3:return c=f.sent(),r(c),[3,4];case 4:return[3,6];case 5:u=Promise.all(a.map(ew)),o.push(u),i(),f.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function tw(t){return to(this,void 0,void 0,function(){return no(this,function(e){return[2,new Promise(function(n,r){t.file(function(o){var i=ri(o,t.fullPath);n(i)},function(o){r(o)})})]})})}var nw=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),r=t.name||"",o=(t.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0};function Mf(t){return iw(t)||ow(t)||Tm(t)||rw()}function rw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
104
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ow(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function iw(t){if(Array.isArray(t))return El(t)}function jf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jf(Object(n),!0).forEach(function(r){Sm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $o(t,e){return lw(t)||aw(t,e)||Tm(t,e)||sw()}function sw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
105
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tm(t,e){if(t){if(typeof t=="string")return El(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return El(t,e)}}function El(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function aw(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(t);!(o=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));o=!0);}catch(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function lw(t){if(Array.isArray(t))return t}var cw="file-invalid-type",uw="file-too-large",fw="file-too-small",dw="too-many-files",pw=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var n=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:cw,message:"File type must be ".concat(n)}},Lf=function(e){return{code:uw,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},Nf=function(e){return{code:fw,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},hw={code:dw,message:"Too many files"};function Em(t,e){var n=t.type==="application/x-moz-file"||nw(t,e);return[n,n?null:pw(e)]}function Cm(t,e,n){if(Jn(t.size))if(Jn(e)&&Jn(n)){if(t.size>n)return[!1,Lf(n)];if(t.size<e)return[!1,Nf(e)]}else{if(Jn(e)&&t.size<e)return[!1,Nf(e)];if(Jn(n)&&t.size>n)return[!1,Lf(n)]}return[!0,null]}function Jn(t){return t!=null}function mw(t){var e=t.files,n=t.accept,r=t.minSize,o=t.maxSize,i=t.multiple,s=t.maxFiles,a=t.validator;return!i&&e.length>1||i&&s>=1&&e.length>s?!1:e.every(function(l){var c=Em(l,n),u=$o(c,1),f=u[0],d=Cm(l,r,o),p=$o(d,1),h=p[0],m=a?a(l):null;return f&&h&&!m})}function es(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function wi(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function Vf(t){t.preventDefault()}function gw(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function yw(t){return t.indexOf("Edge/")!==-1}function vw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return gw(t)||yw(t)}function qt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return e.some(function(a){return!es(r)&&a&&a.apply(void 0,[r].concat(i)),es(r)})}}function bw(){return"showOpenFilePicker"in window}function xw(t){if(Jn(t)){var e=Object.entries(t).filter(function(n){var r=$o(n,2),o=r[0],i=r[1],s=!0;return Rm(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(Am))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=$o(r,2),i=o[0],s=o[1];return Ff(Ff({},n),{},Sm({},i,s))},{});return[{description:"Files",accept:e}]}return t}function ww(t){if(Jn(t))return Object.entries(t).reduce(function(e,n){var r=$o(n,2),o=r[0],i=r[1];return[].concat(Mf(e),[o],Mf(i))},[]).filter(function(e){return Rm(e)||Am(e)}).join(",")}function Sw(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function Tw(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function Rm(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}function Am(t){return/^.*\.[\w]+$/.test(t)}var Ew=["children"],Cw=["open"],Rw=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Aw=["refKey","onChange","onClick"];function _w(t){return Iw(t)||Ow(t)||_m(t)||Pw()}function Pw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ow(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Iw(t){if(Array.isArray(t))return Cl(t)}function Aa(t,e){return Mw(t)||Dw(t,e)||_m(t,e)||kw()}function kw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
107
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _m(t,e){if(t){if(typeof t=="string")return Cl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cl(t,e)}}function Cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Dw(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(t);!(o=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));o=!0);}catch(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Mw(t){if(Array.isArray(t))return t}function $f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$f(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Rl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ts(t,e){if(t==null)return{};var n=jw(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function jw(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Nc=w.forwardRef(function(t,e){var n=t.children,r=ts(t,Ew),o=Om(r),i=o.open,s=ts(o,Cw);return w.useImperativeHandle(e,function(){return{open:i}},[i]),w.createElement(w.Fragment,null,n(Ue(Ue({},s),{},{open:i})))});Nc.displayName="Dropzone";var Pm={disabled:!1,getFilesFromEvent:K0,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};Nc.defaultProps=Pm;Nc.propTypes={children:je.func,accept:je.objectOf(je.arrayOf(je.string)),multiple:je.bool,preventDropOnDocument:je.bool,noClick:je.bool,noKeyboard:je.bool,noDrag:je.bool,noDragEventsBubbling:je.bool,minSize:je.number,maxSize:je.number,maxFiles:je.number,disabled:je.bool,getFilesFromEvent:je.func,onFileDialogCancel:je.func,onFileDialogOpen:je.func,useFsAccessApi:je.bool,autoFocus:je.bool,onDragEnter:je.func,onDragLeave:je.func,onDragOver:je.func,onDrop:je.func,onDropAccepted:je.func,onDropRejected:je.func,onError:je.func,validator:je.func};var Al={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Om(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Ue(Ue({},Pm),t),n=e.accept,r=e.disabled,o=e.getFilesFromEvent,i=e.maxSize,s=e.minSize,a=e.multiple,l=e.maxFiles,c=e.onDragEnter,u=e.onDragLeave,f=e.onDragOver,d=e.onDrop,p=e.onDropAccepted,h=e.onDropRejected,m=e.onFileDialogCancel,y=e.onFileDialogOpen,v=e.useFsAccessApi,b=e.autoFocus,g=e.preventDropOnDocument,S=e.noClick,x=e.noKeyboard,T=e.noDrag,_=e.noDragEventsBubbling,P=e.onError,I=e.validator,k=w.useMemo(function(){return ww(n)},[n]),F=w.useMemo(function(){return xw(n)},[n]),R=w.useMemo(function(){return typeof y=="function"?y:Bf},[y]),$=w.useMemo(function(){return typeof m=="function"?m:Bf},[m]),j=w.useRef(null),A=w.useRef(null),D=w.useReducer(Fw,Al),L=Aa(D,2),z=L[0],q=L[1],C=z.isFocused,V=z.isFileDialogActive,Y=w.useRef(typeof window<"u"&&window.isSecureContext&&v&&bw()),re=function(){!Y.current&&V&&setTimeout(function(){if(A.current){var oe=A.current.files;oe.length||(q({type:"closeDialog"}),$())}},300)};w.useEffect(function(){return window.addEventListener("focus",re,!1),function(){window.removeEventListener("focus",re,!1)}},[A,V,$,Y]);var ee=w.useRef([]),H=function(oe){j.current&&j.current.contains(oe.target)||(oe.preventDefault(),ee.current=[])};w.useEffect(function(){return g&&(document.addEventListener("dragover",Vf,!1),document.addEventListener("drop",H,!1)),function(){g&&(document.removeEventListener("dragover",Vf),document.removeEventListener("drop",H))}},[j,g]),w.useEffect(function(){return!r&&b&&j.current&&j.current.focus(),function(){}},[j,b,r]);var O=w.useCallback(function(Z){P?P(Z):console.error(Z)},[P]),N=w.useCallback(function(Z){Z.preventDefault(),Z.persist(),he(Z),ee.current=[].concat(_w(ee.current),[Z.target]),wi(Z)&&Promise.resolve(o(Z)).then(function(oe){if(!(es(Z)&&!_)){var Me=oe.length,We=Me>0&&mw({files:oe,accept:k,minSize:s,maxSize:i,multiple:a,maxFiles:l,validator:I}),ot=Me>0&&!We;q({isDragAccept:We,isDragReject:ot,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Z)}}).catch(function(oe){return O(oe)})},[o,c,O,_,k,s,i,a,l,I]),W=w.useCallback(function(Z){Z.preventDefault(),Z.persist(),he(Z);var oe=wi(Z);if(oe&&Z.dataTransfer)try{Z.dataTransfer.dropEffect="copy"}catch{}return oe&&f&&f(Z),!1},[f,_]),K=w.useCallback(function(Z){Z.preventDefault(),Z.persist(),he(Z);var oe=ee.current.filter(function(We){return j.current&&j.current.contains(We)}),Me=oe.indexOf(Z.target);Me!==-1&&oe.splice(Me,1),ee.current=oe,!(oe.length>0)&&(q({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),wi(Z)&&u&&u(Z))},[j,u,_]),X=w.useCallback(function(Z,oe){var Me=[],We=[];Z.forEach(function(ot){var Kt=Em(ot,k),Qe=Aa(Kt,2),Zt=Qe[0],lo=Qe[1],br=Cm(ot,s,i),mi=Aa(br,2),sa=mi[0],aa=mi[1],la=I?I(ot):null;if(Zt&&sa&&!la)Me.push(ot);else{var ca=[lo,aa];la&&(ca=ca.concat(la)),We.push({file:ot,errors:ca.filter(function(Av){return Av})})}}),(!a&&Me.length>1||a&&l>=1&&Me.length>l)&&(Me.forEach(function(ot){We.push({file:ot,errors:[hw]})}),Me.splice(0)),q({acceptedFiles:Me,fileRejections:We,type:"setFiles"}),d&&d(Me,We,oe),We.length>0&&h&&h(We,oe),Me.length>0&&p&&p(Me,oe)},[q,a,k,s,i,l,d,p,h,I]),le=w.useCallback(function(Z){Z.preventDefault(),Z.persist(),he(Z),ee.current=[],wi(Z)&&Promise.resolve(o(Z)).then(function(oe){es(Z)&&!_||X(oe,Z)}).catch(function(oe){return O(oe)}),q({type:"reset"})},[o,X,O,_]),B=w.useCallback(function(){if(Y.current){q({type:"openDialog"}),R();var Z={multiple:a,types:F};window.showOpenFilePicker(Z).then(function(oe){return o(oe)}).then(function(oe){X(oe,null),q({type:"closeDialog"})}).catch(function(oe){Sw(oe)?($(oe),q({type:"closeDialog"})):Tw(oe)?(Y.current=!1,A.current?(A.current.value=null,A.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 <input> was provided."))):O(oe)});return}A.current&&(q({type:"openDialog"}),R(),A.current.value=null,A.current.click())},[q,R,$,v,X,O,F,a]),_e=w.useCallback(function(Z){!j.current||!j.current.isEqualNode(Z.target)||(Z.key===" "||Z.key==="Enter"||Z.keyCode===32||Z.keyCode===13)&&(Z.preventDefault(),B())},[j,B]),Ve=w.useCallback(function(){q({type:"focus"})},[]),Ze=w.useCallback(function(){q({type:"blur"})},[]),se=w.useCallback(function(){S||(vw()?setTimeout(B,0):B())},[S,B]),Ce=function(oe){return r?null:oe},xe=function(oe){return x?null:Ce(oe)},Te=function(oe){return T?null:Ce(oe)},he=function(oe){_&&oe.stopPropagation()},Re=w.useMemo(function(){return function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=Z.refKey,Me=oe===void 0?"ref":oe,We=Z.role,ot=Z.onKeyDown,Kt=Z.onFocus,Qe=Z.onBlur,Zt=Z.onClick,lo=Z.onDragEnter,br=Z.onDragOver,mi=Z.onDragLeave,sa=Z.onDrop,aa=ts(Z,Rw);return Ue(Ue(Rl({onKeyDown:xe(qt(ot,_e)),onFocus:xe(qt(Kt,Ve)),onBlur:xe(qt(Qe,Ze)),onClick:Ce(qt(Zt,se)),onDragEnter:Te(qt(lo,N)),onDragOver:Te(qt(br,W)),onDragLeave:Te(qt(mi,K)),onDrop:Te(qt(sa,le)),role:typeof We=="string"&&We!==""?We:"presentation"},Me,j),!r&&!x?{tabIndex:0}:{}),aa)}},[j,_e,Ve,Ze,se,N,W,K,le,x,T,r]),Je=w.useCallback(function(Z){Z.stopPropagation()},[]),gt=w.useMemo(function(){return function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=Z.refKey,Me=oe===void 0?"ref":oe,We=Z.onChange,ot=Z.onClick,Kt=ts(Z,Aw),Qe=Rl({accept:k,multiple:a,type:"file",style:{display:"none"},onChange:Ce(qt(We,le)),onClick:Ce(qt(ot,Je)),tabIndex:-1},Me,A);return Ue(Ue({},Qe),Kt)}},[A,n,a,le,r]);return Ue(Ue({},z),{},{isFocused:C&&!r,getRootProps:Re,getInputProps:gt,rootRef:j,inputRef:A,open:Ce(B)})}function Fw(t,e){switch(e.type){case"focus":return Ue(Ue({},t),{},{isFocused:!0});case"blur":return Ue(Ue({},t),{},{isFocused:!1});case"openDialog":return Ue(Ue({},Al),{},{isFileDialogActive:!0});case"closeDialog":return Ue(Ue({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ue(Ue({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Ue(Ue({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Ue({},Al);default:return t}}function Bf(){}function Im(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=Im(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Lw(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=Im(t))&&(r&&(r+=" "),r+=e);return r}const zf=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,Hf=Lw,Nw=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return Hf(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=e,s=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],f=i==null?void 0:i[c];if(u===null)return null;const d=zf(u)||zf(f);return o[c][d]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,d]=u;return d===void 0||(c[f]=d),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:d,...p}=u;return Object.entries(p).every(h=>{let[m,y]=h;return Array.isArray(y)?y.includes({...i,...a}[m]):{...i,...a}[m]===y})?[...c,f,d]:c},[]);return Hf(t,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},Bs=w.forwardRef(function({as:e,...n},r){const o=e||"span";return E.jsx(o,{...n,ref:r})}),Vw=Nw("inline-flex gap-1.5 text-main-foreground border-2 border-transparent items-center justify-center align-middle cursor-pointer whitespace-nowrap font-medium transition-colors ease-in disabled:cursor-not-allowed disabled:bg-opacity-50 disabled:text-opacity-60 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring",{variants:{size:{default:"h-10 px-4 py-2",big:"h-12 px-6 py-4",small:"h-10 p-2 text-sm",icon:"p-1"},rounded:{rough:"rounded-sm",default:"rounded-md",squared:"rounded-none",circle:"rounded-full aspect-square"},theme:{raw:"",main:"bg-primary hover:bg-primary-hover text-primary-foreground",loading:"animate-pulse bg-disabled duration-700 opacity-70",disabled:"bg-disabled duration-700 opacity-70"}},defaultVariants:{theme:"main",size:"default",rounded:"default"}}),ns=w.forwardRef(function({className:e,icon:n,loading:r,theme:o,type:i="button",size:s,rounded:a,...l},c){const u=r||l.disabled;return E.jsxs(Bs,{...l,ref:c,type:i,"data-theme":o,disabled:u,as:l.as??"button",onClick:u?void 0:l.onClick,className:Wt(Vw({size:s,rounded:a,theme:r?"loading":u?"disabled":o}),e),children:[l.children,n]})}),$w=t=>E.jsx("ul",{className:"border-main-bg text-main-foreground flex w-full flex-row rounded-md border-2",children:t.buttons.map(e=>E.jsx("li",{className:"flex flex-1",children:E.jsx("button",{...e,type:e.type||"button","data-active":t.active===e.name?"true":"false",className:Wt("border-main-bg flex flex-1 items-center gap-1.5 rounded-sm border-r-2 px-4 py-2 last:border-r-0","hover:text-main cursor-pointer justify-center whitespace-nowrap align-middle font-medium","focus-visible:ring-ring shadow-sm focus-visible:outline-none focus-visible:ring-2 disabled:text-opacity-80","data-[active=true]:bg-main-bg text-body data-[active=true]:text-main transition-colors ease-in disabled:cursor-not-allowed disabled:bg-opacity-50")})},`button-group-${e.name}`))}),Bw={isImage:t=>t.type.includes("image")},zw=t=>{const[e,n]=w.useState({url:"",type:"",size:""});return w.useEffect(()=>{if(Bw.isImage(t.file)){const r=URL.createObjectURL(t.file);return n({url:r,type:"img",size:bf(t.file.size)}),()=>{URL.revokeObjectURL(r)}}n({url:"",type:t.file.type,size:bf(t.file.size)})},[t.file]),e.type==="img"?E.jsxs("div",{className:"flex flex-row gap-jade-200 items-center justify-between w-full",children:[E.jsxs("header",{className:"flex flex-row gap-jade-200 items-center",children:[E.jsx("img",{src:e.url,className:"size-jade-500 rounded-jade-xsmall",alt:`Miniatura do arquivo ${t.file.name}`}),E.jsxs("div",{className:"flex flex-col",children:[E.jsx("span",{children:t.file.name}),E.jsx("span",{children:e.size})]})]}),E.jsx(ns,{className:"isolate",type:"button",theme:"raw",onClick:r=>{var o;r.stopPropagation(),(o=t.onDeleteFile)==null||o.call(t,t.file)},children:E.jsx(No,{})})]}):E.jsxs("div",{className:"flex flex-row gap-jade-200 items-center justify-between w-full",children:[E.jsxs("header",{className:"flex flex-row gap-4 items-center",children:[E.jsx(Tx,{size:48}),E.jsxs("div",{className:"flex flex-col text-left justify-start items-start",children:[E.jsx("span",{children:t.file.name}),E.jsx("span",{children:e.size})]})]}),E.jsx(ns,{className:"isolate",type:"button",theme:"raw",onClick:r=>{var o;r.stopPropagation(),(o=t.onDeleteFile)==null||o.call(t,t.file)},children:E.jsx(No,{className:"text-danger"})})]})},Hw=t=>E.jsx("ul",{className:"w-full space-y-jade-200",children:t.files.map(e=>E.jsx(zw,{onDeleteFile:t.onDeleteFile,file:e},e.name))}),Ww=t=>t.isDragActive?E.jsx("p",{children:"Solte os arquivos selecionados"}):t.files.length>0?E.jsx(Hw,{onDeleteFile:t.onDeleteFile,files:t.files}):E.jsx(w.Fragment,{children:t.idle}),Uw=E.jsxs("div",{className:"flex flex-col gap-4 justify-center items-center",children:[E.jsx(Rx,{size:64}),E.jsxs("p",{children:["You can drag your files or"," ",E.jsx("button",{className:"text-primary underline",type:"button",children:"drag to here"})]})]}),Gw=({idle:t=Uw,onDeleteFile:e,onDrop:n,...r})=>{var u;const[o,i]=w.useState([]),s=f=>{n==null||n(f),i(f)},{getRootProps:a,getInputProps:l,isDragActive:c}=Om({onDrop:s});return E.jsxs("div",{...a(),"data-active":(u=r.files)!=null&&u.length?r.files.length>0:!1,className:"flex text-foreground flex-col items-center justify-center border-2 rounded-lg p-6 border-card-border data-[active=true]:bg-card-background data-[active=true]:border-solid data-[active=false]:border-dashed",children:[E.jsx("input",{...l(r),name:r.name,id:r.name}),E.jsx(Ww,{onDeleteFile:e,isDragActive:c,idle:t,files:r.files??o})]})},Kw=["INPUT","SELECT"],km=t=>{if(!t)return;Array.from(t.elements).forEach(n=>{Kw.includes(n.tagName)&&(n.tagName==="INPUT"&&(n.value=n.defaultValue),n.tagName==="SELECT"&&(n.value=""),n.setAttribute("data-initialized","false"))})},Zw=t=>{const e=n=>{var r;n.persist(),n.preventDefault(),(r=t.onSubmit)==null||r.call(t,n)};return E.jsx("form",{...t,onSubmit:e})},qw=({children:t,...e})=>{const n=w.useId(),[r,o]=w.useState(!1),i=e.checked??r,s=a=>{var u;const c=a.target.dataset.checked!=="true";o(c),(u=e==null?void 0:e.onCheck)==null||u.call(e,c)};return E.jsxs("div",{className:"flex items-center",children:[E.jsx("input",{...e,hidden:!0,type:"checkbox",checked:i,onChange:a=>o(a.target.checked)}),E.jsx("button",{type:"button",role:"switch",onClick:s,"aria-checked":i,"data-checked":i,"aria-labelledby":`${n}-label`,className:"relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent data-[checked=false]:bg-input-switch-bg data-[checked=true]:bg-primary transition-colors ease-in-out focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",children:E.jsx("span",{"aria-hidden":"true","data-checked":i,className:"data-[checked=false]:bg-disabled data-[checked=true]:bg-input-switch pointer-events-none inline-block size-5 aspect-square data-[checked=false]translate-x-0 data-[checked=true]:translate-x-5 transform rounded-full shadow ring-0 transition ease-in-out"})}),E.jsx("span",{className:"ml-3 text-sm",id:`${n}-label`,children:E.jsx("span",{className:"font-medium text-foreground",children:t})})]})},Yw=t=>E.jsx(Bs,{...t,as:"div",className:Wt("rounded-lg bg-card-background p-8 border-card-border border shadow",t.className)}),oi=t=>{const[e,n]=w.useState(t.open),r=w.useRef(null),o=w.useMemo(()=>[Ec(10),Hh({fallbackAxisSideDirection:"end"}),zh(),Wh({padding:5,element:r})],[t.arrow]),{refs:i,floatingStyles:s,context:a}=_c({open:e,transform:!0,whileElementsMounted:Tc,middleware:o,onOpenChange:(h,m)=>{var v;const y=m==null?void 0:m.relatedTarget;y&&y.dataset.floating==="true"&&!h||(n(h),(v=t.onChange)==null||v.call(t,h))}}),l=sx(a),c=Ac(a),u=Oc(a),{getReferenceProps:f,getFloatingProps:d}=Pc([l,c,u]),p=ti();return E.jsxs(w.Fragment,{children:[E.jsx("button",{ref:i.setReference,...f(),children:t.trigger}),e&&E.jsx(em,{returnFocus:!0,visuallyHiddenDismiss:!0,restoreFocus:!0,context:a,modal:!1,children:E.jsxs("div",{className:"bg-floating-background isolate z-floating border shadow-2xl p-6 border-floating-border rounded-lg",ref:i.setFloating,style:s,"aria-labelledby":p,...d(),children:[E.jsx(Gh,{ref:r,context:a,strokeWidth:.1,className:"fill-floating-background stroke-floating-border"}),E.jsx("header",{className:"mb-2",children:E.jsx("h3",{className:"leading-snug font-medium text-2xl tracking-tight text-left",children:t.title})}),t.children]})})]})},Xw=({children:t,as:e,title:n,...r})=>{const[o,i]=w.useState(!1),s=w.useRef(null),a=e||"div",{refs:l,floatingStyles:c,context:u}=_c({open:o,onOpenChange:i,whileElementsMounted:Tc,transform:!0,middleware:[Ec(5),Hh({fallbackAxisSideDirection:"start"}),zh(),Wh({element:s,padding:5})]}),f=qb(u,{move:!1}),d=ux(u),p=Ac(u),h=Oc(u,{role:"tooltip"}),{getReferenceProps:m,getFloatingProps:y}=Pc([f,d,p,h]);return E.jsxs(w.Fragment,{children:[E.jsx(a,{ref:l.setReference,...m(r),children:n}),E.jsx(Jh,{children:o&&E.jsxs(Bs,{ref:l.setFloating,style:c,...y(),className:"bg-tooltip-background text-foreground border border-tooltip-border p-4 rounded-lg",children:[E.jsx(Gh,{ref:s,context:u,strokeWidth:.1,className:"fill-tooltip-background stroke-tooltip-border"}),t]})})]})},zs=w.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Hs=w.createContext({}),Ws=w.createContext(null),Vc=typeof document<"u",Us=Vc?w.useLayoutEffect:w.useEffect,Dm=w.createContext({strict:!1}),$c=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jw="framerAppearId",Mm="data-"+$c(Jw),Qw={skipAnimations:!1,useManualTiming:!1};class Wf{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function eS(t){let e=new Wf,n=new Wf,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const f=u&&o,d=f?e:n;return c&&s.add(l),d.add(l)&&f&&o&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let c=0;c<r;c++){const u=e.order[c];s.has(u)&&(a.schedule(u),t()),u(l)}o=!1,i&&(i=!1,a.process(l))}};return a}const Si=["read","resolveKeyframes","update","preRender","render","postRender"],tS=40;function jm(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Si.reduce((f,d)=>(f[d]=eS(()=>n=!0),f),{}),s=f=>{i[f].process(o)},a=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,tS),1),o.timestamp=f,o.isProcessing=!0,Si.forEach(s),o.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,o.isProcessing||t(a)};return{schedule:Si.reduce((f,d)=>{const p=i[d];return f[d]=(h,m=!1,y=!1)=>(n||l(),p.schedule(h,m,y)),f},{}),cancel:f=>Si.forEach(d=>i[d].cancel(f)),state:o,steps:i}}const{schedule:Bc,cancel:vI}=jm(queueMicrotask,!1);function Pr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Fm=w.createContext({});let Uf=!1;function nS(t,e,n,r,o){const{visualElement:i}=w.useContext(Hs),s=w.useContext(Dm),a=w.useContext(Ws),l=w.useContext(zs).reducedMotion,c=w.useRef();r=r||s.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,f=w.useContext(Fm);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&oS(c.current,n,o,f),w.useInsertionEffect(()=>{u&&u.update(n,a)});const d=w.useRef(!!(n[Mm]&&!window.HandoffComplete));return Us(()=>{u&&(u.updateFeatures(),Bc.render(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,Uf||(Uf=!0,queueMicrotask(rS))))}),u}function rS(){window.HandoffComplete=!0}function oS(t,e,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Lm(t.parent)),t.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Pr(a),visualElement:t,scheduleRender:()=>t.scheduleRender(),animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Lm(t){if(t)return t.options.allowProjection!==!1?t.projection:Lm(t.parent)}function iS(t,e,n){return w.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Pr(n)&&(n.current=r))},[e])}function Bo(t){return typeof t=="string"||Array.isArray(t)}function Gs(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const zc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hc=["initial",...zc];function Ks(t){return Gs(t.animate)||Hc.some(e=>Bo(t[e]))}function Nm(t){return!!(Ks(t)||t.variants)}function sS(t,e){if(Ks(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Bo(n)?n:void 0,animate:Bo(r)?r:void 0}}return t.inherit!==!1?e:{}}function aS(t){const{initial:e,animate:n}=sS(t,w.useContext(Hs));return w.useMemo(()=>({initial:e,animate:n}),[Gf(e),Gf(n)])}function Gf(t){return Array.isArray(t)?t.join(" "):t}const Kf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Br={};for(const t in Kf)Br[t]={isEnabled:e=>Kf[t].some(n=>!!e[n])};function lS(t){for(const e in t)Br[e]={...Br[e],...t[e]}}const zo=w.createContext({}),cS=Symbol.for("motionComponentSymbol"),ut=t=>t;let ro=ut,Ut=ut;process.env.NODE_ENV!=="production"&&(ro=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Ut=(t,e)=>{if(!t)throw new Error(e)});function uS({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:o}){t&&lS(t);function i(a,l){let c;const u={...w.useContext(zs),...a,layoutId:fS(a)},{isStatic:f}=u,d=aS(a),p=r(a,f);if(!f&&Vc){dS(u,t);const h=pS(u);c=h.MeasureLayout,d.visualElement=nS(o,p,u,e,h.ProjectionNode)}return E.jsxs(Hs.Provider,{value:d,children:[c&&d.visualElement?E.jsx(c,{visualElement:d.visualElement,...u}):null,n(o,a,iS(p,d.visualElement,l),p,f,d.visualElement)]})}const s=w.forwardRef(i);return s[cS]=o,s}function fS({layoutId:t}){const e=w.useContext(zo).id;return e&&t!==void 0?e+"-"+t:t}function dS(t,e){const n=w.useContext(Dm).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ro(!1,r):Ut(!1,r)}}function pS(t){const{drag:e,layout:n}=Br;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function hS(t){function e(r,o={}){return uS(t(r,o))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const mS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wc(t){return typeof t!="string"||t.includes("-")?!1:!!(mS.indexOf(t)>-1||/[A-Z]/u.test(t))}const rs={};function gS(t){Object.assign(rs,t)}const ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gr=new Set(ii);function Vm(t,{layout:e,layoutId:n}){return gr.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rs[t]||t==="opacity")}const lt=t=>!!(t&&t.getVelocity),yS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vS=ii.length;function bS(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<vS;s++){const a=ii[s];if(t[a]!==void 0){const l=yS[a]||a;i+=`${l}(${t[a]}) `}}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}const $m=t=>e=>typeof e=="string"&&e.startsWith(t),Bm=$m("--"),xS=$m("var(--"),Uc=t=>xS(t)?wS.test(t.split("/*")[0].trim()):!1,wS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,SS=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ln=(t,e,n)=>n>e?e:n<t?t:n,oo={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},So={...oo,transform:t=>Ln(0,1,t)},Ti={...oo,default:1},To=t=>Math.round(t*1e5)/1e5,Gc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,TS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ES=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function si(t){return typeof t=="string"}function CS(t){return t==null}const ai=t=>({test:e=>si(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Cn=ai("deg"),rn=ai("%"),ce=ai("px"),RS=ai("vh"),AS=ai("vw"),Zf={...rn,parse:t=>rn.parse(t)/100,transform:t=>rn.transform(t*100)},qf={...oo,transform:Math.round},zm={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,radius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,size:ce,top:ce,right:ce,bottom:ce,left:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,rotate:Cn,rotateX:Cn,rotateY:Cn,rotateZ:Cn,scale:Ti,scaleX:Ti,scaleY:Ti,scaleZ:Ti,skew:Cn,skewX:Cn,skewY:Cn,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:So,originX:Zf,originY:Zf,originZ:ce,zIndex:qf,backgroundPositionX:ce,backgroundPositionY:ce,fillOpacity:So,strokeOpacity:So,numOctaves:qf};function Kc(t,e,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const f in e){const d=e[f];if(Bm(f)){i[f]=d;continue}const p=zm[f],h=SS(d,p);if(gr.has(f)){if(l=!0,s[f]=h,!u)continue;d!==(p.default||0)&&(u=!1)}else f.startsWith("origin")?(c=!0,a[f]=h):o[f]=h}if(e.transform||(l||r?o.transform=bS(t.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:d="50%",originZ:p=0}=a;o.transformOrigin=`${f} ${d} ${p}`}}const Zc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hm(t,e,n){for(const r in e)!lt(e[r])&&!Vm(r,n)&&(t[r]=e[r])}function _S({transformTemplate:t},e,n){return w.useMemo(()=>{const r=Zc();return Kc(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function PS(t,e,n){const r=t.style||{},o={};return Hm(o,r,t),Object.assign(o,_S(t,e,n)),o}function OS(t,e,n){const r={},o=PS(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const IS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function os(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||IS.has(t)}let Wm=t=>!os(t);function kS(t){t&&(Wm=e=>e.startsWith("on")?!os(e):t(e))}try{kS(require("@emotion/is-prop-valid").default)}catch{}function DS(t,e,n){const r={};for(const o in t)o==="values"&&typeof t.values=="object"||(Wm(o)||n===!0&&os(o)||!e&&!os(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}function Yf(t,e,n){return typeof t=="string"?t:ce.transform(e+n*t)}function MS(t,e,n){const r=Yf(e,t.x,t.width),o=Yf(n,t.y,t.height);return`${r} ${o}`}const jS={offset:"stroke-dashoffset",array:"stroke-dasharray"},FS={offset:"strokeDashoffset",array:"strokeDasharray"};function LS(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?jS:FS;t[i.offset]=ce.transform(-r);const s=ce.transform(e),a=ce.transform(n);t[i.array]=`${s} ${a}`}function qc(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f,d){if(Kc(t,c,u,d),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:h,dimensions:m}=t;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=MS(m,o!==void 0?o:.5,i!==void 0?i:.5)),e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&LS(p,s,a,l,!1)}const Um=()=>({...Zc(),attrs:{}}),Yc=t=>typeof t=="string"&&t.toLowerCase()==="svg";function NS(t,e,n,r){const o=w.useMemo(()=>{const i=Um();return qc(i,e,{enableHardwareAcceleration:!1},Yc(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};Hm(i,t.style,t),o.style={...i,...o.style}}return o}function VS(t=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Wc(n)?NS:OS)(r,i,s,n),c=DS(r,typeof n=="string",t),u=n!==w.Fragment?{...c,...l,ref:o}:{},{children:f}=r,d=w.useMemo(()=>lt(f)?f.get():f,[f]);return w.createElement(n,{...u,children:d})}}function Gm(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const i in n)t.style.setProperty(i,n[i])}const Km=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zm(t,e,n,r){Gm(t,e,void 0,r);for(const o in e.attrs)t.setAttribute(Km.has(o)?o:$c(o),e.attrs[o])}function Xc(t,e,n){var r;const{style:o}=t,i={};for(const s in o)(lt(o[s])||e.style&<(e.style[s])||Vm(s,t)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function qm(t,e,n){const r=Xc(t,e,n);for(const o in t)if(lt(t[o])||lt(e[o])){const i=ii.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=t[o]}return r}function Xf(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Jc(t,e,n,r){if(typeof e=="function"){const[o,i]=Xf(r);e=e(n!==void 0?n:t.custom,o,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,i]=Xf(r);e=e(n!==void 0?n:t.custom,o,i)}return e}function yr(t){const e=w.useRef(null);return e.current===null&&(e.current=t()),e.current}const _l=t=>Array.isArray(t),$S=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),BS=t=>_l(t)?t[t.length-1]||0:t;function ji(t){const e=lt(t)?t.get():t;return $S(e)?e.toValue():e}function zS({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const s={latestValues:HS(r,o,i,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const Ym=t=>(e,n)=>{const r=w.useContext(Hs),o=w.useContext(Ws),i=()=>zS(t,e,r,o);return n?i():yr(i)};function HS(t,e,n,r){const o={},i=r(t,{});for(const d in i)o[d]=ji(i[d]);let{initial:s,animate:a}=t;const l=Ks(t),c=Nm(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;return f&&typeof f!="boolean"&&!Gs(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const h=Jc(t,p);if(!h)return;const{transitionEnd:m,transition:y,...v}=h;for(const b in v){let g=v[b];if(Array.isArray(g)){const S=u?g.length-1:0;g=g[S]}g!==null&&(o[b]=g)}for(const b in m)o[b]=m[b]}),o}const{schedule:Ae,cancel:on,state:it,steps:_a}=jm(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),WS={useVisualState:Ym({scrapeMotionValuesFromProps:qm,createRenderState:Um,onMount:(t,e,{renderState:n,latestValues:r})=>{Ae.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ae.render(()=>{qc(n,r,{enableHardwareAcceleration:!1},Yc(e.tagName),t.transformTemplate),Zm(e,n)})}})},US={useVisualState:Ym({scrapeMotionValuesFromProps:Xc,createRenderState:Zc})};function GS(t,{forwardMotionProps:e=!1},n,r){return{...Wc(t)?WS:US,preloadedFeatures:n,useRender:VS(e),createVisualElement:r,Component:t}}function dn(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Xm=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Zs(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const KS=t=>e=>Xm(e)&&t(e,Zs(e));function hn(t,e,n,r){return dn(t,e,KS(n),r)}const ZS=(t,e)=>n=>e(t(n)),mn=(...t)=>t.reduce(ZS);function Jm(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Jf=Jm("dragHorizontal"),Qf=Jm("dragVertical");function Qm(t){let e=!1;if(t==="y")e=Qf();else if(t==="x")e=Jf();else{const n=Jf(),r=Qf();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function eg(){const t=Qm(!0);return t?(t(),!1):!0}class zn{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ed(t,e){const n=e?"pointerenter":"pointerleave",r=e?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||eg())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[r];l&&Ae.postRender(()=>l(i,s))};return hn(t.current,n,o,{passive:!t.getProps()[r]})}class qS extends zn{mount(){this.unmount=mn(ed(this.node,!0),ed(this.node,!1))}unmount(){}}class YS extends zn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mn(dn(this.node.current,"focus",()=>this.onFocus()),dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const tg=(t,e)=>e?t===e?!0:tg(t,e.parentElement):!1;function Pa(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Zs(n))}class XS extends zn{constructor(){super(...arguments),this.removeStartListeners=ut,this.removeEndListeners=ut,this.removeAccessibleListeners=ut,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=hn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps(),d=!f&&!tg(this.node.current,a.target)?u:c;d&&Ae.update(()=>d(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=hn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=mn(i,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Pa("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Ae.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=dn(this.node.current,"keyup",s),Pa("down",(a,l)=>{this.startPress(a,l)})},n=dn(this.node.current,"keydown",e),r=()=>{this.isPressing&&Pa("cancel",(i,s)=>this.cancelPress(i,s))},o=dn(this.node.current,"blur",r);this.removeAccessibleListeners=mn(n,o)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ae.postRender(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eg()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ae.postRender(()=>r(e,n))}mount(){const e=this.node.getProps(),n=hn(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=dn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Pl=new WeakMap,Oa=new WeakMap,JS=t=>{const e=Pl.get(t.target);e&&e(t)},QS=t=>{t.forEach(JS)};function eT({root:t,...e}){const n=t||document;Oa.has(n)||Oa.set(n,{});const r=Oa.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(QS,{root:t,...e})),r[o]}function tT(t,e,n){const r=eT(e);return Pl.set(t,n),r.observe(t),()=>{Pl.delete(t),r.unobserve(t)}}const nT={some:0,all:1};class rT extends zn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:nT[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return tT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(oT(e,n))&&this.startObserver()}unmount(){}}function oT({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const iT={inView:{Feature:rT},tap:{Feature:XS},focus:{Feature:YS},hover:{Feature:qS}};function ng(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function qs(t,e,n){const r=t.getProps();return Jc(r,e,n!==void 0?n:r.custom,t)}const gn=t=>t*1e3,yn=t=>t/1e3,sT={type:"spring",stiffness:500,damping:25,restSpeed:10},aT=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),lT={type:"keyframes",duration:.8},cT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uT=(t,{keyframes:e})=>e.length>2?lT:gr.has(t)?t.startsWith("scale")?aT(e[1]):sT:cT;function fT({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Qc(t,e){return t[e]||t.default||t}const dT=t=>t!==null;function Ys(t,{repeat:e,repeatType:n="loop"},r){const o=t.filter(dT),i=e&&n!=="loop"&&e%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let Fi;function pT(){Fi=void 0}const kn={now:()=>(Fi===void 0&&kn.set(it.isProcessing||Qw.useManualTiming?it.timestamp:performance.now()),Fi),set:t=>{Fi=t,queueMicrotask(pT)}},rg=t=>/^0[^.\s]+$/u.test(t);function hT(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||rg(t):!0}const og=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),mT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gT(t){const e=mT.exec(t);if(!e)return[,];const[,n,r,o]=e;return[`--${n??r}`,o]}const yT=4;function ig(t,e,n=1){Ut(n<=yT,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=gT(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const s=i.trim();return og(s)?parseFloat(s):s}return Uc(o)?ig(o,e,n+1):o}const vT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),td=t=>t===oo||t===ce,nd=(t,e)=>parseFloat(t.split(", ")[e]),rd=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return nd(o[1],e);{const i=r.match(/^matrix\((.+)\)$/u);return i?nd(i[1],t):0}},bT=new Set(["x","y","z"]),xT=ii.filter(t=>!bT.has(t));function wT(t){const e=[];return xT.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const zr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:rd(4,13),y:rd(5,14)};zr.translateX=zr.x;zr.translateY=zr.y;const sg=t=>e=>e.test(t),ST={test:t=>t==="auto",parse:t=>t},ag=[oo,ce,rn,Cn,AS,RS,ST],od=t=>ag.find(sg(t)),ir=new Set;let Ol=!1,Il=!1;function lg(){if(Il){const t=Array.from(ir).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const o=wT(r);o.length&&(n.set(r,o),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Il=!1,Ol=!1,ir.forEach(t=>t.complete()),ir.clear()}function cg(){ir.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Il=!0)})}function TT(){cg(),lg()}class eu{constructor(e,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ir.add(this),Ol||(Ol=!0,Ae.read(cg),Ae.resolveKeyframes(lg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:o}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){const s=o==null?void 0:o.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),o&&s===void 0&&o.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ir.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ir.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const tu=(t,e)=>n=>!!(si(n)&&ES.test(n)&&n.startsWith(t)||e&&!CS(n)&&Object.prototype.hasOwnProperty.call(n,e)),ug=(t,e,n)=>r=>{if(!si(r))return r;const[o,i,s,a]=r.match(Gc);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ET=t=>Ln(0,255,t),Ia={...oo,transform:t=>Math.round(ET(t))},rr={test:tu("rgb","red"),parse:ug("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Ia.transform(t)+", "+Ia.transform(e)+", "+Ia.transform(n)+", "+To(So.transform(r))+")"};function CT(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const kl={test:tu("#"),parse:CT,transform:rr.transform},Or={test:tu("hsl","hue"),parse:ug("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+rn.transform(To(e))+", "+rn.transform(To(n))+", "+To(So.transform(r))+")"},dt={test:t=>rr.test(t)||kl.test(t)||Or.test(t),parse:t=>rr.test(t)?rr.parse(t):Or.test(t)?Or.parse(t):kl.parse(t),transform:t=>si(t)?t:t.hasOwnProperty("red")?rr.transform(t):Or.transform(t)};function RT(t){var e,n;return isNaN(t)&&si(t)&&(((e=t.match(Gc))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(TS))===null||n===void 0?void 0:n.length)||0)>0}const fg="number",dg="color",AT="var",_T="var(",id="${}",PT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ho(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=e.replace(PT,l=>(dt.test(l)?(r.color.push(i),o.push(dg),n.push(dt.parse(l))):l.startsWith(_T)?(r.var.push(i),o.push(AT),n.push(l)):(r.number.push(i),o.push(fg),n.push(parseFloat(l))),++i,id)).split(id);return{values:n,split:a,indexes:r,types:o}}function pg(t){return Ho(t).values}function hg(t){const{split:e,types:n}=Ho(t),r=e.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=e[s],o[s]!==void 0){const a=n[s];a===fg?i+=To(o[s]):a===dg?i+=dt.transform(o[s]):i+=o[s]}return i}}const OT=t=>typeof t=="number"?0:t;function IT(t){const e=pg(t);return hg(t)(e.map(OT))}const Nn={test:RT,parse:pg,createTransformer:hg,getAnimatableNone:IT},kT=new Set(["brightness","contrast","saturate","opacity"]);function DT(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Gc)||[];if(!r)return t;const o=n.replace(r,"");let i=kT.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const MT=/\b([a-z-]*)\(.*?\)/gu,Dl={...Nn,getAnimatableNone:t=>{const e=t.match(MT);return e?e.map(DT).join(" "):t}},jT={...zm,color:dt,backgroundColor:dt,outlineColor:dt,fill:dt,stroke:dt,borderColor:dt,borderTopColor:dt,borderRightColor:dt,borderBottomColor:dt,borderLeftColor:dt,filter:Dl,WebkitFilter:Dl},nu=t=>jT[t];function mg(t,e){let n=nu(t);return n!==Dl&&(n=Nn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const FT=new Set(["auto","none","0"]);function LT(t,e,n){let r=0,o;for(;r<t.length&&!o;){const i=t[r];typeof i=="string"&&!FT.has(i)&&Ho(i).values.length&&(o=t[r]),r++}if(o&&n)for(const i of e)t[i]=mg(n,o)}class gg extends eu{constructor(e,n,r,o){super(e,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Uc(c))){const u=ig(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!vT.has(r)||e.length!==2)return;const[o,i]=e,s=od(o),a=od(i);if(s!==a)if(td(s)&&td(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let o=0;o<e.length;o++)hT(e[o])&&r.push(o);r.length&<(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zr[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(r,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=zr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function yg(t){let e;return()=>(e===void 0&&(e=t()),e)}const sd=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nn.test(t)||t==="0")&&!t.startsWith("url("));function NT(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function VT(t,e,n,r){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],s=sd(o,e),a=sd(i,e);return ro(s===a,`You are trying to animate ${e} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!a?!1:NT(t)||n==="spring"&&r}class vg{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&TT(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!VT(e,r,o,i))if(s)this.options.duration=0;else{l==null||l(Ys(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function bg(t,e){return e?t*(1e3/e):0}const $T=5;function xg(t,e,n){const r=Math.max(e-$T,0);return bg(n-t(r),e-r)}const ka=.001,BT=.01,ad=10,zT=.05,HT=1;function WT({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;ro(t<=gn(ad),"Spring duration must be 10 seconds or less");let s=1-e;s=Ln(zT,HT,s),t=Ln(BT,ad,yn(t)),s<1?(o=c=>{const u=c*s,f=u*t,d=u-n,p=Ml(c,s),h=Math.exp(-f);return ka-d/p*h},i=c=>{const f=c*s*t,d=f*n+n,p=Math.pow(s,2)*Math.pow(c,2)*t,h=Math.exp(-f),m=Ml(Math.pow(c,2),s);return(-o(c)+ka>0?-1:1)*((d-p)*h)/m}):(o=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-ka+u*f},i=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=GT(o,i,a);if(t=gn(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const UT=12;function GT(t,e,n){let r=n;for(let o=1;o<UT;o++)r=r-t(r)/e(r);return r}function Ml(t,e){return t*Math.sqrt(1-e*e)}const KT=["duration","bounce"],ZT=["stiffness","damping","mass"];function ld(t,e){return e.some(n=>t[n]!==void 0)}function qT(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ld(t,ZT)&&ld(t,KT)){const n=WT(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function wg({keyframes:t,restDelta:e,restSpeed:n,...r}){const o=t[0],i=t[t.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=qT({...r,velocity:-yn(r.velocity||0)}),p=f||0,h=l/(2*Math.sqrt(a*c)),m=i-o,y=yn(Math.sqrt(a/c)),v=Math.abs(m)<5;n||(n=v?.01:2),e||(e=v?.005:.5);let b;if(h<1){const g=Ml(y,h);b=S=>{const x=Math.exp(-h*y*S);return i-x*((p+h*y*m)/g*Math.sin(g*S)+m*Math.cos(g*S))}}else if(h===1)b=g=>i-Math.exp(-y*g)*(m+(p+y*m)*g);else{const g=y*Math.sqrt(h*h-1);b=S=>{const x=Math.exp(-h*y*S),T=Math.min(g*S,300);return i-x*((p+h*y*m)*Math.sinh(T)+g*m*Math.cosh(T))/g}}return{calculatedDuration:d&&u||null,next:g=>{const S=b(g);if(d)s.done=g>=u;else{let x=p;g!==0&&(h<1?x=xg(b,g,S):x=0);const T=Math.abs(x)<=n,_=Math.abs(i-S)<=e;s.done=T&&_}return s.value=s.done?i:S,s}}}function cd({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},p=P=>a!==void 0&&P<a||l!==void 0&&P>l,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let m=n*e;const y=f+m,v=s===void 0?y:s(y);v!==y&&(m=v-f);const b=P=>-m*Math.exp(-P/r),g=P=>v+b(P),S=P=>{const I=b(P),k=g(P);d.done=Math.abs(I)<=c,d.value=d.done?v:k};let x,T;const _=P=>{p(d.value)&&(x=P,T=wg({keyframes:[d.value,h(d.value)],velocity:xg(g,P,d.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:P=>{let I=!1;return!T&&x===void 0&&(I=!0,S(P),_(P)),x!==void 0&&P>=x?T.next(P-x):(!I&&S(P),d)}}}const Sg=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,YT=1e-7,XT=12;function JT(t,e,n,r,o){let i,s,a=0;do s=e+(n-e)/2,i=Sg(s,r,o)-t,i>0?n=s:e=s;while(Math.abs(i)>YT&&++a<XT);return s}function li(t,e,n,r){if(t===e&&n===r)return ut;const o=i=>JT(i,0,1,t,n);return i=>i===0||i===1?i:Sg(o(i),e,r)}const QT=li(.42,0,1,1),eE=li(0,0,.58,1),Tg=li(.42,0,.58,1),tE=t=>Array.isArray(t)&&typeof t[0]!="number",Eg=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Cg=t=>e=>1-t(1-e),ru=t=>1-Math.sin(Math.acos(t)),Rg=Cg(ru),nE=Eg(ru),Ag=li(.33,1.53,.69,.99),ou=Cg(Ag),rE=Eg(ou),oE=t=>(t*=2)<1?.5*ou(t):.5*(2-Math.pow(2,-10*(t-1))),ud={linear:ut,easeIn:QT,easeInOut:Tg,easeOut:eE,circIn:ru,circInOut:nE,circOut:Rg,backIn:ou,backInOut:rE,backOut:Ag,anticipate:oE},fd=t=>{if(Array.isArray(t)){Ut(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return li(e,n,r,o)}else if(typeof t=="string")return Ut(ud[t]!==void 0,`Invalid easing type '${t}'`),ud[t];return t},Wo=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Be=(t,e,n)=>t+(e-t)*n;function Da(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function iE({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let o=0,i=0,s=0;if(!e)o=i=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;o=Da(l,a,t+1/3),i=Da(l,a,t),s=Da(l,a,t-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function is(t,e){return n=>n>0?e:t}const Ma=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},sE=[kl,rr,Or],aE=t=>sE.find(e=>e.test(t));function dd(t){const e=aE(t);if(ro(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Or&&(n=iE(n)),n}const pd=(t,e)=>{const n=dd(t),r=dd(e);if(!n||!r)return is(t,e);const o={...n};return i=>(o.red=Ma(n.red,r.red,i),o.green=Ma(n.green,r.green,i),o.blue=Ma(n.blue,r.blue,i),o.alpha=Be(n.alpha,r.alpha,i),rr.transform(o))},jl=new Set(["none","hidden"]);function lE(t,e){return jl.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function cE(t,e){return n=>Be(t,e,n)}function iu(t){return typeof t=="number"?cE:typeof t=="string"?Uc(t)?is:dt.test(t)?pd:dE:Array.isArray(t)?_g:typeof t=="object"?dt.test(t)?pd:uE:is}function _g(t,e){const n=[...t],r=n.length,o=t.map((i,s)=>iu(i)(i,e[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function uE(t,e){const n={...t,...e},r={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(r[o]=iu(t[o])(t[o],e[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function fE(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const s=e.types[i],a=t.indexes[s][o[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}const dE=(t,e)=>{const n=Nn.createTransformer(e),r=Ho(t),o=Ho(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jl.has(t)&&!o.values.length||jl.has(e)&&!r.values.length?lE(t,e):mn(_g(fE(r,o),o.values),n):(ro(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),is(t,e))};function Pg(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Be(t,e,n):iu(t)(t,e)}function pE(t,e,n){const r=[],o=n||Pg,i=t.length-1;for(let s=0;s<i;s++){let a=o(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ut:e;a=mn(l,a)}r.push(a)}return r}function Og(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(Ut(i===e.length,"Both input and output ranges must be the same length"),i===1)return()=>e[0];if(i===2&&t[0]===t[1])return()=>e[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=pE(e,r,o),a=s.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const f=Wo(t[u],t[u+1],c);return s[u](f)};return n?c=>l(Ln(t[0],t[i-1],c)):l}function hE(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=Wo(0,e,r);t.push(Be(n,1,o))}}function mE(t){const e=[0];return hE(e,t.length-1),e}function gE(t,e){return t.map(n=>n*e)}function yE(t,e){return t.map(()=>e||Tg).splice(0,t.length-1)}function ss({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=tE(r)?r.map(fd):fd(r),i={done:!1,value:e[0]},s=gE(n&&n.length===e.length?n:mE(e),t),a=Og(s,e,{ease:Array.isArray(o)?o:yE(e,o)});return{calculatedDuration:t,next:l=>(i.value=a(l),i.done=l>=t,i)}}const hd=2e4;function vE(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<hd;)e+=n,r=t.next(e);return e>=hd?1/0:e}const bE=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ae.update(e,!0),stop:()=>on(e),now:()=>it.isProcessing?it.timestamp:kn.now()}},xE={decay:cd,inertia:cd,tween:ss,keyframes:ss,spring:wg},wE=t=>t/100;class su extends vg{constructor({KeyframeResolver:e=eu,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new e(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=xE[n]||ss;let l,c;a!==ss&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ut(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=mn(wE,Pg(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});i==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=vE(u));const{calculatedDuration:f}=u,d=f+o,p=d*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:m,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let g=this.currentTime,S=i;if(p){const P=Math.min(this.currentTime,u)/f;let I=Math.floor(P),k=P%1;!k&&P>=1&&(k=1),k===1&&I--,I=Math.min(I,p+1),!!(I%2)&&(h==="reverse"?(k=1-k,m&&(k-=m/f)):h==="mirror"&&(S=s)),g=Ln(0,1,k)*f}const x=b?{done:!1,value:l[0]}:S.next(g);a&&(x.value=a(x.value));let{done:T}=x;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return _&&o!==void 0&&(x.value=Ys(l,this.options,o)),y&&y(x.value),_&&this.finish(),x}get duration(){const{resolved:e}=this;return e?yn(e.calculatedDuration):0}get time(){return yn(this.currentTime)}set time(e){e=gn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=bE,onPlay:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Ig=t=>Array.isArray(t)&&typeof t[0]=="number";function kg(t){return!!(!t||typeof t=="string"&&t in au||Ig(t)||Array.isArray(t)&&t.every(kg))}const mo=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,au={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mo([0,.65,.55,1]),circOut:mo([.55,0,1,.45]),backIn:mo([.31,.01,.66,-.59]),backOut:mo([.33,1.53,.69,.99])};function SE(t){return Dg(t)||au.easeOut}function Dg(t){if(t)return Ig(t)?mo(t):Array.isArray(t)?t.map(SE):au[t]}function TE(t,e,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=Dg(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const EE=yg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),CE=new Set(["opacity","clipPath","filter","transform"]),as=10,RE=2e4;function AE(t){return t.type==="spring"||t.name==="backgroundColor"||!kg(t.ease)}function _E(t,e){const n=new su({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const o=[];let i=0;for(;!r.done&&i<RE;)r=n.sample(i),o.push(r.value),i+=as;return{times:void 0,keyframes:o,duration:i-as,ease:"linear"}}class md extends vg{constructor(e){super(e);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new gg(o,(i,s)=>this.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(e,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(AE(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,...h}=this.options,m=_E(e,h);e=m.keyframes,e.length===1&&(e[1]=e[0]),o=m.duration,i=m.times,s=m.ease,a="keyframes"}const u=TE(l.owner.current,c,e,{...this.options,duration:o,times:i,ease:s});return u.startTime=kn.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ys(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:i,type:a,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return yn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return yn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=gn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ut;const{animation:r}=n;r.timeline=e,r.onfinish=null}return ut}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=e;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:c,onComplete:u,...f}=this.options,d=new su({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),p=gn(this.time);l.setWithVelocity(d.sample(p-as).value,d.sample(p).value,as)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=e;return EE()&&r&&CE.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function PE(t,e){let n;const r=()=>{const{currentTime:o}=e,s=(o===null?0:o.value)/100;n!==s&&t(s),n=s};return Ae.update(r,!0),()=>on(r)}const OE=yg(()=>window.ScrollTimeline!==void 0);class IE{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e){const n=this.animations.map(r=>{if(OE()&&r.attachTimeline)r.attachTimeline(e);else return r.pause(),PE(o=>{r.time=r.duration*o},e)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const lu=(t,e,n,r={},o,i)=>s=>{const a=Qc(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-gn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:o};fT(a)||(u={...u,...uT(t,u)}),u.duration&&(u.duration=gn(u.duration)),u.repeatDelay&&(u.repeatDelay=gn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!i&&e.get()!==void 0){const d=Ys(u.keyframes,a);if(d!==void 0)return Ae.update(()=>{u.onUpdate(d),u.onComplete()}),new IE([])}return!i&&md.supports(u)?new md(u):new su(u)};function ls(t){return!!(lt(t)&&t.add)}function cu(t,e){t.indexOf(e)===-1&&t.push(e)}function uu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function kE([...t],e,n){const r=e<0?t.length+e:e;if(r>=0&&r<t.length){const o=n<0?t.length+n:n,[i]=t.splice(e,1);t.splice(o,0,i)}return t}class fu{constructor(){this.subscriptions=[]}add(e){return cu(this.subscriptions,e),()=>uu(this.subscriptions,e)}notify(e,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gd=new Set;function du(t,e,n){t||gd.has(e)||(console.warn(e),gd.add(e))}const yd=30,DE=t=>!isNaN(parseFloat(t)),Eo={current:void 0};class ME{constructor(e,n={}){this.version="11.2.13",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=kn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=DE(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&du(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new fu);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Eo.current&&Eo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>yd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yd);return bg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hr(t,e){return new ME(t,e)}function jE(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Hr(n))}function FE(t,e){const n=qs(t,e);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=BS(i[s]);jE(t,s,a)}}function Mg(t){return t.getProps()[Mm]}function LE({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function jg(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;const c=t.getValue("willChange");r&&(s=r);const u=[],f=o&&t.animationState&&t.animationState.getState()[o];for(const d in l){const p=t.getValue(d,(i=t.latestValues[d])!==null&&i!==void 0?i:null),h=l[d];if(h===void 0||f&&LE(f,d))continue;const m={delay:n,elapsed:0,...Qc(s||{},d)};let y=!1;if(window.HandoffAppearAnimations){const b=Mg(t);if(b){const g=window.HandoffAppearAnimations(b,d,p,Ae);g!==null&&(m.elapsed=g,y=!0)}}p.start(lu(d,p,h,t.shouldReduceMotion&&gr.has(d)?{type:!1}:m,t,y));const v=p.animation;v&&(ls(c)&&(c.add(d),v.then(()=>c.remove(d))),u.push(v))}return a&&Promise.all(u).then(()=>{Ae.update(()=>{a&&FE(t,a)})}),u}function Fl(t,e,n={}){var r;const o=qs(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(jg(t,o,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return NE(t,e,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function NE(t,e,n=0,r=0,o=1,i){const s=[],a=(t.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(VE).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(Fl(c,e,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function VE(t,e){return t.sortNodePosition(e)}function $E(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const o=e.map(i=>Fl(t,i,n));r=Promise.all(o)}else if(typeof e=="string")r=Fl(t,e,n);else{const o=typeof e=="function"?qs(t,e,n.custom):e;r=Promise.all(jg(t,o,n))}return r.then(()=>{Ae.postRender(()=>{t.notify("AnimationComplete",e)})})}const BE=[...zc].reverse(),zE=zc.length;function HE(t){return e=>Promise.all(e.map(({animation:n,options:r})=>$E(t,n,r)))}function WE(t){let e=HE(t),n=vd(),r=!0;const o=l=>(c,u)=>{var f;const d=qs(t,u,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:h,...m}=d;c={...c,...m,...h}}return c};function i(l){e=l(t)}function s(l){const c=t.getProps(),u=t.getVariantContext(!0)||{},f=[],d=new Set;let p={},h=1/0;for(let y=0;y<zE;y++){const v=BE[y],b=n[v],g=c[v]!==void 0?c[v]:u[v],S=Bo(g),x=v===l?b.isActive:null;x===!1&&(h=y);let T=g===u[v]&&g!==c[v]&&S;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),b.protectedKeys={...p},!b.isActive&&x===null||!g&&!b.prevProp||Gs(g)||typeof g=="boolean")continue;let P=UE(b.prevProp,g)||v===l&&b.isActive&&!T&&S||y>h&&S,I=!1;const k=Array.isArray(g)?g:[g];let F=k.reduce(o(v),{});x===!1&&(F={});const{prevResolvedValues:R={}}=b,$={...R,...F},j=A=>{P=!0,d.has(A)&&(I=!0,d.delete(A)),b.needsAnimating[A]=!0;const D=t.getValue(A);D&&(D.liveStyle=!1)};for(const A in $){const D=F[A],L=R[A];if(p.hasOwnProperty(A))continue;let z=!1;_l(D)&&_l(L)?z=!ng(D,L):z=D!==L,z?D!=null?j(A):d.add(A):D!==void 0&&d.has(A)?j(A):b.protectedKeys[A]=!0}b.prevProp=g,b.prevResolvedValues=F,b.isActive&&(p={...p,...F}),r&&t.blockInitialAnimation&&(P=!1),P&&(!T||I)&&f.push(...k.map(A=>({animation:A,options:{type:v}})))}if(d.size){const y={};d.forEach(v=>{const b=t.getBaseTarget(v),g=t.getValue(v);g&&(g.liveStyle=!0),y[v]=b??null}),f.push({animation:y})}let m=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(m=!1),r=!1,m?e(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=vd(),r=!0}}}function UE(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ng(e,t):!1}function Kn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vd(){return{animate:Kn(!0),whileInView:Kn(),whileHover:Kn(),whileTap:Kn(),whileDrag:Kn(),whileFocus:Kn(),exit:Kn()}}class GE extends zn{constructor(e){super(e),e.animationState||(e.animationState=WE(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Gs(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let KE=0;class ZE extends zn{constructor(){super(...arguments),this.id=KE++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const qE={animation:{Feature:GE},exit:{Feature:ZE}},bd=(t,e)=>Math.abs(t-e);function YE(t,e){const n=bd(t.x,e.x),r=bd(t.y,e.y);return Math.sqrt(n**2+r**2)}class Fg{constructor(e,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Fa(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=YE(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:h}=f,{timestamp:m}=it;this.history.push({...h,timestamp:m});const{onStart:y,onMove:v}=this.handlers;d||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ja(d,this.transformPagePoint),Ae.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Fa(f.type==="pointercancel"?this.lastMoveEventInfo:ja(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,y),h&&h(f,y)},!Xm(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Zs(e),a=ja(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=it;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Fa(a,this.history)),this.removeListeners=mn(hn(this.contextWindow,"pointermove",this.handlePointerMove),hn(this.contextWindow,"pointerup",this.handlePointerUp),hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),on(this.updatePoint)}}function ja(t,e){return e?{point:e(t.point)}:t}function xd(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Fa({point:t},e){return{point:t,delta:xd(t,Lg(e)),offset:xd(t,XE(e)),velocity:JE(e,.1)}}function XE(t){return t[0]}function Lg(t){return t[t.length-1]}function JE(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=Lg(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>gn(e)));)n--;if(!r)return{x:0,y:0};const i=yn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Mt(t){return t.max-t.min}function Ll(t,e=0,n=.01){return Math.abs(t-e)<=n}function wd(t,e,n,r=.5){t.origin=r,t.originPoint=Be(e.min,e.max,t.origin),t.scale=Mt(n)/Mt(e),(Ll(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Be(n.min,n.max,t.origin)-t.originPoint,(Ll(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Co(t,e,n,r){wd(t.x,e.x,n.x,r?r.originX:void 0),wd(t.y,e.y,n.y,r?r.originY:void 0)}function Sd(t,e,n){t.min=n.min+e.min,t.max=t.min+Mt(e)}function QE(t,e,n){Sd(t.x,e.x,n.x),Sd(t.y,e.y,n.y)}function Td(t,e,n){t.min=e.min-n.min,t.max=t.min+Mt(e)}function Ro(t,e,n){Td(t.x,e.x,n.x),Td(t.y,e.y,n.y)}function e1(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Be(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Be(n,t,r.max):Math.min(t,n)),t}function Ed(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function t1(t,{top:e,left:n,bottom:r,right:o}){return{x:Ed(t.x,n,o),y:Ed(t.y,e,r)}}function Cd(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function n1(t,e){return{x:Cd(t.x,e.x),y:Cd(t.y,e.y)}}function r1(t,e){let n=.5;const r=Mt(t),o=Mt(e);return o>r?n=Wo(e.min,e.max-r,t.min):r>o&&(n=Wo(t.min,t.max-o,e.min)),Ln(0,1,n)}function o1(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Nl=.35;function i1(t=Nl){return t===!1?t=0:t===!0&&(t=Nl),{x:Rd(t,"left","right"),y:Rd(t,"top","bottom")}}function Rd(t,e,n){return{min:Ad(t,e),max:Ad(t,n)}}function Ad(t,e){return typeof t=="number"?t:t[e]||0}const _d=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ir=()=>({x:_d(),y:_d()}),Pd=()=>({min:0,max:0}),Ye=()=>({x:Pd(),y:Pd()});function Ft(t){return[t("x"),t("y")]}function Ng({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function s1({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function a1(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function La(t){return t===void 0||t===1}function Vl({scale:t,scaleX:e,scaleY:n}){return!La(t)||!La(e)||!La(n)}function qn(t){return Vl(t)||Vg(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Vg(t){return Od(t.x)||Od(t.y)}function Od(t){return t&&t!=="0%"}function cs(t,e,n){const r=t-n,o=e*r;return n+o}function Id(t,e,n,r,o){return o!==void 0&&(t=cs(t,o,r)),cs(t,n,r)+e}function $l(t,e=0,n=1,r,o){t.min=Id(t.min,e,n,r,o),t.max=Id(t.max,e,n,r,o)}function $g(t,{x:e,y:n}){$l(t.x,e.translate,e.scale,e.originPoint),$l(t.y,n.translate,n.scale,n.originPoint)}function l1(t,e,n,r=!1){const o=n.length;if(!o)return;e.x=e.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&kr(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,$g(t,s)),r&&qn(i.latestValues)&&kr(t,i.latestValues))}e.x=kd(e.x),e.y=kd(e.y)}function kd(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Rn(t,e){t.min=t.min+e,t.max=t.max+e}function Dd(t,e,[n,r,o]){const i=e[o]!==void 0?e[o]:.5,s=Be(t.min,t.max,i);$l(t,e[n],e[r],s,e.scale)}const c1=["x","scaleX","originX"],u1=["y","scaleY","originY"];function kr(t,e){Dd(t.x,e,c1),Dd(t.y,e,u1)}function Bg(t,e){return Ng(a1(t.getBoundingClientRect(),e))}function f1(t,e,n){const r=Bg(t,n),{scroll:o}=e;return o&&(Rn(r.x,o.offset.x),Rn(r.y,o.offset.y)),r}const zg=({current:t})=>t?t.ownerDocument.defaultView:null,d1=new WeakMap;class p1{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ye(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zs(u,"page").point)},i=(u,f)=>{const{drag:d,dragPropagation:p,onDragStart:h}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Qm(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ft(y=>{let v=this.getAxisMotionValue(y).get()||0;if(rn.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const g=b.layout.layoutBox[y];g&&(v=Mt(g)*(parseFloat(v)/100))}}this.originPoint[y]=v}),h&&Ae.postRender(()=>h(u,f));const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=f;if(p&&this.currentDirection===null){this.currentDirection=h1(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),m&&m(u,f)},a=(u,f)=>this.stop(u,f),l=()=>Ft(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Fg(e,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:zg(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ae.postRender(()=>i(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:o}=this.getProps();if(!r||!Ei(e,o,this.currentDirection))return;const i=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=e1(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,i=this.constraints;n&&Pr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=t1(o.layoutBox,n):this.constraints=!1,this.elastic=i1(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ft(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=o1(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Pr(e))return!1;const r=e.current;Ut(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=f1(r,o.root,this.visualElement.getTransformPagePoint());let s=n1(o.layout.layoutBox,i);if(n){const a=n(s1(s));this.hasMutatedConstraints=!!a,a&&(s=Ng(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Ft(u=>{if(!Ei(u,n,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});const d=o?200:1e6,p=o?40:1e7,h={type:"inertia",velocity:r?e[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,h)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(lu(e,r,0,n,this.visualElement))}stopAnimation(){Ft(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ft(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ft(n=>{const{drag:r}=this.getProps();if(!Ei(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(e[n]-Be(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ft(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=r1({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ft(s=>{if(!Ei(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Be(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;d1.set(this.visualElement,this);const e=this.visualElement.current,n=hn(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Pr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ae.read(r);const s=dn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ft(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Nl,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ei(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function h1(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class m1 extends zn{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new p1(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Md=t=>(e,n)=>{t&&Ae.postRender(()=>t(e,n))};class g1 extends zn{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new Fg(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zg(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Md(e),onStart:Md(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Ae.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=hn(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function y1(){const t=w.useContext(Ws);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,o=w.useId();return w.useEffect(()=>r(o),[]),!e&&n?[!1,()=>n&&n(o)]:[!0]}const Li={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function jd(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const fo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ce.test(t))t=parseFloat(t);else return t;const n=jd(t,e.target.x),r=jd(t,e.target.y);return`${n}% ${r}%`}},v1={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=Nn.parse(t);if(o.length>5)return r;const i=Nn.createTransformer(t),s=typeof o[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;o[0+s]/=a,o[1+s]/=l;const c=Be(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};class b1 extends w.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=e;gS(x1),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Li.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||Ae.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Bc.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Hg(t){const[e,n]=y1(),r=w.useContext(zo);return E.jsx(b1,{...t,layoutGroup:r,switchLayoutGroup:w.useContext(Fm),isPresent:e,safeToRemove:n})}const x1={borderRadius:{...fo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:v1},Wg=["TopLeft","TopRight","BottomLeft","BottomRight"],w1=Wg.length,Fd=t=>typeof t=="string"?parseFloat(t):t,Ld=t=>typeof t=="number"||ce.test(t);function S1(t,e,n,r,o,i){o?(t.opacity=Be(0,n.opacity!==void 0?n.opacity:1,T1(r)),t.opacityExit=Be(e.opacity!==void 0?e.opacity:1,0,E1(r))):i&&(t.opacity=Be(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<w1;s++){const a=`border${Wg[s]}Radius`;let l=Nd(e,a),c=Nd(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ld(l)===Ld(c)?(t[a]=Math.max(Be(Fd(l),Fd(c),r),0),(rn.test(c)||rn.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=Be(e.rotate||0,n.rotate||0,r))}function Nd(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const T1=Ug(0,.5,Rg),E1=Ug(.5,.95,ut);function Ug(t,e,n){return r=>r<t?0:r>e?1:n(Wo(t,e,r))}function Vd(t,e){t.min=e.min,t.max=e.max}function jt(t,e){Vd(t.x,e.x),Vd(t.y,e.y)}function $d(t,e,n,r,o){return t-=e,t=cs(t,1/n,r),o!==void 0&&(t=cs(t,1/o,r)),t}function C1(t,e=0,n=1,r=.5,o,i=t,s=t){if(rn.test(e)&&(e=parseFloat(e),e=Be(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=Be(i.min,i.max,r);t===i&&(a-=e),t.min=$d(t.min,e,n,a,o),t.max=$d(t.max,e,n,a,o)}function Bd(t,e,[n,r,o],i,s){C1(t,e[n],e[r],e[o],e.scale,i,s)}const R1=["x","scaleX","originX"],A1=["y","scaleY","originY"];function zd(t,e,n,r){Bd(t.x,e,R1,n?n.x:void 0,r?r.x:void 0),Bd(t.y,e,A1,n?n.y:void 0,r?r.y:void 0)}function Hd(t){return t.translate===0&&t.scale===1}function Gg(t){return Hd(t.x)&&Hd(t.y)}function _1(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Kg(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Wd(t){return Mt(t.x)/Mt(t.y)}class P1{constructor(){this.members=[]}add(e){cu(this.members,e),e.scheduleRender()}remove(e){if(uu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ud(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:p,skewY:h}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const O1=(t,e)=>t.depth-e.depth;class I1{constructor(){this.children=[],this.isDirty=!1}add(e){cu(this.children,e),this.isDirty=!0}remove(e){uu(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(O1),this.isDirty=!1,this.children.forEach(e)}}function k1(t,e){const n=kn.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(on(r),t(i-e))};return Ae.read(r,!0),()=>on(r)}function D1(t){window.MotionDebug&&window.MotionDebug.record(t)}function M1(t){return t instanceof SVGElement&&t.tagName!=="svg"}function j1(t,e,n){const r=lt(t)?t:Hr(t);return r.start(lu("",r,e,n)),r.animation}const Na=["","X","Y","Z"],F1={visibility:"hidden"},Gd=1e3;let L1=0;const Yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Va(t,e,n,r){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Zg(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?Mg(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?Zg(t.parent):!1:!1}function qg({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=e==null?void 0:e()){this.id=L1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yn.totalNodes=Yn.resolvedTargetDeltas=Yn.recalculatedProjection=0,this.nodes.forEach($1),this.nodes.forEach(U1),this.nodes.forEach(G1),this.nodes.forEach(B1),D1(Yn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new I1)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new fu),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=M1(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let f;const d=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=k1(d,250),Li.hasAnimatedSinceResize&&(Li.hasAnimatedSinceResize=!1,this.nodes.forEach(Zd))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||X1,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!Kg(this.targetLayout,h)||p,g=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,g);const S={...Qc(m,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||Zd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,on(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(K1),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Zg(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kd);return}this.isUpdating||this.nodes.forEach(H1),this.isUpdating=!1,this.nodes.forEach(W1),this.nodes.forEach(N1),this.nodes.forEach(V1),this.clearAllSnapshots();const a=kn.now();it.delta=Ln(0,1e3/60,a-it.timestamp),it.timestamp=a,it.isProcessing=!0,_a.update.process(it),_a.preRender.process(it),_a.render.process(it),it.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(z1),this.sharedNodes.forEach(Z1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ae.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ae.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ye(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Gg(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||qn(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),J1(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ye();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Rn(a.x,l.offset.x),Rn(a.y,l.offset.y)),a}removeElementScroll(s){const a=Ye();jt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){jt(a,s);const{scroll:d}=this.root;d&&(Rn(a.x,-d.offset.x),Rn(a.y,-d.offset.y))}Rn(a.x,u.offset.x),Rn(a.y,u.offset.y)}}return a}applyTransform(s,a=!1){const l=Ye();jt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&kr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),qn(u.latestValues)&&kr(l,u.latestValues)}return qn(this.latestValues)&&kr(l,this.latestValues),l}removeTransform(s){const a=Ye();jt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!qn(c.latestValues))continue;Vl(c.latestValues)&&c.updateSnapshot();const u=Ye(),f=c.measurePageBox();jt(u,f),zd(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return qn(this.latestValues)&&zd(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==it.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=it.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),Ro(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),jt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ye(),this.targetWithTransforms=Ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):jt(this.target,this.layout.layoutBox),$g(this.target,this.targetDelta)):jt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),Ro(this.relativeTargetOrigin,this.target,p.target),jt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Vl(this.parent.latestValues)||Vg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===it.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;jt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;l1(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ye());const{target:h}=a;if(!h){this.projectionTransform&&(this.projectionDelta=Ir(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ir(),this.projectionDeltaWithTransform=Ir());const m=this.projectionTransform;Co(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=Ud(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==d||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),Yn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Ir();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Ye(),p=l?l.source:void 0,h=this.layout?this.layout.source:void 0,m=p!==h,y=this.getStack(),v=!y||y.members.length<=1,b=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(Y1));this.animationProgress=0;let g;this.mixTargetDelta=S=>{const x=S/1e3;qd(f.x,s.x,x),qd(f.y,s.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ro(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),q1(this.relativeTarget,this.relativeTargetOrigin,d,x),g&&_1(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Ye()),jt(g,this.relativeTarget)),m&&(this.animationValues=u,S1(u,c,this.latestValues,x,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(on(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ae.update(()=>{Li.hasAnimatedSinceResize=!0,this.currentAnimation=j1(0,Gd,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Yg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ye();const f=Mt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Mt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}jt(a,l),kr(a,u),Co(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new P1),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Va("z",s,c,this.animationValues);for(let u=0;u<Na.length;u++)Va(`rotate${Na[u]}`,s,c,this.animationValues),Va(`skew${Na[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F1;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ji(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=ji(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!qn(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Ud(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:p,y:h}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in rs){if(d[m]===void 0)continue;const{correct:y,applyTo:v}=rs[m],b=c.transform==="none"?d[m]:y(d[m],f);if(v){const g=v.length;for(let S=0;S<g;S++)c[v[S]]=b}else c[m]=b}return this.options.layoutId&&(c.pointerEvents=f===this?ji(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Kd),this.root.sharedNodes.clear()}}}function N1(t){t.updateLayout()}function V1(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=t.layout,{animationType:i}=t.options,s=n.source!==t.layout.source;i==="size"?Ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Mt(d);d.min=r[f].min,d.max=d.min+p}):Yg(i,n.layoutBox,r)&&Ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Mt(r[f]);d.max=d.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+p)});const a=Ir();Co(a,r,n.layoutBox);const l=Ir();s?Co(l,t.applyTransform(o,!0),n.measuredBox):Co(l,r,n.layoutBox);const c=!Gg(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const h=Ye();Ro(h,n.layoutBox,d.layoutBox);const m=Ye();Ro(m,r,p.layoutBox),Kg(h,m)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=h,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function $1(t){Yn.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function B1(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function z1(t){t.clearSnapshot()}function Kd(t){t.clearMeasurements()}function H1(t){t.isLayoutDirty=!1}function W1(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Zd(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function U1(t){t.resolveTargetDelta()}function G1(t){t.calcProjection()}function K1(t){t.resetSkewAndRotation()}function Z1(t){t.removeLeadSnapshot()}function qd(t,e,n){t.translate=Be(e.translate,0,n),t.scale=Be(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Yd(t,e,n,r){t.min=Be(e.min,n.min,r),t.max=Be(e.max,n.max,r)}function q1(t,e,n,r){Yd(t.x,e.x,n.x,r),Yd(t.y,e.y,n.y,r)}function Y1(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const X1={duration:.45,ease:[.4,0,.1,1]},Xd=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Jd=Xd("applewebkit/")&&!Xd("chrome/")?Math.round:ut;function Qd(t){t.min=Jd(t.min),t.max=Jd(t.max)}function J1(t){Qd(t.x),Qd(t.y)}function Yg(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ll(Wd(e),Wd(n),.2)}const Q1=qg({attachResizeListener:(t,e)=>dn(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$a={current:void 0},Xg=qg({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!$a.current){const t=new Q1({});t.mount(window),t.setOptions({layoutScroll:!0}),$a.current=t}return $a.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),eC={pan:{Feature:g1},drag:{Feature:m1,ProjectionNode:Xg,MeasureLayout:Hg}},Bl={current:null},Jg={current:!1};function tC(){if(Jg.current=!0,!!Vc)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Bl.current=t.matches;t.addListener(e),e()}else Bl.current=!1}function nC(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],s=n[o];if(lt(i))t.addValue(o,i),ls(r)&&r.add(o),process.env.NODE_ENV==="development"&&du(i.version==="11.2.13",`Attempting to mix Framer Motion versions ${i.version} with 11.2.13 may not work as expected.`);else if(lt(s))t.addValue(o,Hr(i,{owner:t})),ls(r)&&r.remove(o);else if(s!==i)if(t.hasValue(o)){const a=t.getValue(o);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(o);t.addValue(o,Hr(a!==void 0?a:i,{owner:t}))}}for(const o in n)e[o]===void 0&&t.removeValue(o);return e}const ep=new WeakMap,rC=[...ag,dt,Nn],oC=t=>rC.find(sg(t)),tp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iC=Hc.length;class sC{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.resolveKeyframes=(d,p,h,m)=>new this.KeyframeResolver(d,p,h,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ae.render(this.render,!1,!0);const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Ks(n),this.isVariantNode=Nm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];l[d]!==void 0&<(p)&&(p.set(l[d],!1),ls(u)&&u.add(d))}}mount(e){this.current=e,ep.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jg.current||tC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bl.current,process.env.NODE_ENV!=="production"&&du(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ep.delete(this.current),this.projection&&this.projection.unmount(),on(this.notifyUpdate),on(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const r=gr.has(e),o=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&Ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Br){const n=Br[e];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[e]&&o&&r(this.props)&&(this.features[e]=new o(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ye()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<tp.length;r++){const o=tp[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=e[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=nC(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<iC;r++){const o=Hc[r],i=this.props[o];(Bo(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Hr(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(og(o)||rg(o))?o=parseFloat(o):!oC(o)&&Nn.test(n)&&(o=mg(e,n)),this.setBaseTarget(e,lt(o)?o.get():o)),lt(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Jc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[e])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!lt(i)?i:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new fu),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Qg extends sC{constructor(){super(...arguments),this.KeyframeResolver=gg}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}}function aC(t){return window.getComputedStyle(t)}class lC extends Qg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(gr.has(n)){const r=nu(n);return r&&r.default||0}else{const r=aC(e),o=(Bm(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Bg(e,n)}build(e,n,r,o){Kc(e,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Xc(e,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;lt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,o){Gm(e,n,r,o)}}class cC extends Qg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(gr.has(n)){const r=nu(n);return r&&r.default||0}return n=Km.has(n)?n:$c(n),e.getAttribute(n)}measureInstanceViewportBox(){return Ye()}scrapeMotionValuesFromProps(e,n,r){return qm(e,n,r)}build(e,n,r,o){qc(e,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(e,n,r,o){Zm(e,n,r,o)}mount(e){this.isSVGTag=Yc(e.tagName),super.mount(e)}}const uC=(t,e)=>Wc(t)?new cC(e,{enableHardwareAcceleration:!1}):new lC(e,{allowProjection:t!==w.Fragment,enableHardwareAcceleration:!0}),fC={layout:{ProjectionNode:Xg,MeasureLayout:Hg}},dC={...qE,...iT,...eC,...fC},pu=hS((t,e)=>GS(t,e,dC,uC));function ey(){const t=w.useRef(!1);return Us(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function ty(){const t=ey(),[e,n]=w.useState(0),r=w.useCallback(()=>{t.current&&n(e+1)},[e]);return[w.useCallback(()=>Ae.postRender(r),[r]),e]}class pC extends M.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function hC({children:t,isPresent:e}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=w.useContext(zs);return w.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=o.current;if(e||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
108
|
-
[data-motion-pop-id="${n}"] {
|
|
109
|
-
position: absolute !important;
|
|
110
|
-
width: ${s}px !important;
|
|
111
|
-
height: ${a}px !important;
|
|
112
|
-
top: ${l}px !important;
|
|
113
|
-
left: ${c}px !important;
|
|
114
|
-
}
|
|
115
|
-
`),()=>{document.head.removeChild(u)}},[e]),E.jsx(pC,{isPresent:e,childRef:r,sizeRef:o,children:M.cloneElement(t,{ref:r})})}const Ba=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=yr(mC),l=w.useId(),c=w.useMemo(()=>({id:l,initial:e,isPresent:n,custom:o,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?[Math.random()]:[n]);return w.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[n]),M.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(t=E.jsx(hC,{isPresent:n,children:t})),E.jsx(Ws.Provider,{value:c,children:t})};function mC(){return new Map}function gC(t){return w.useEffect(()=>()=>t(),[])}const Xn=t=>t.key||"";function yC(t,e){t.forEach(n=>{const r=Xn(n);e.set(r,n)})}function vC(t){const e=[];return w.Children.forEach(t,n=>{w.isValidElement(n)&&e.push(n)}),e}const ny=({children:t,custom:e,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{Ut(!o,"Replace exitBeforeEnter with mode='wait'");const a=w.useContext(zo).forceRender||ty()[0],l=ey(),c=vC(t);let u=c;const f=w.useRef(new Map).current,d=w.useRef(u),p=w.useRef(new Map).current,h=w.useRef(!0);if(Us(()=>{h.current=!1,yC(c,p),d.current=u}),gC(()=>{h.current=!0,p.clear(),f.clear()}),h.current)return E.jsx(E.Fragment,{children:u.map(b=>E.jsx(Ba,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:b},Xn(b)))});u=[...u];const m=d.current.map(Xn),y=c.map(Xn),v=m.length;for(let b=0;b<v;b++){const g=m[b];y.indexOf(g)===-1&&!f.has(g)&&f.set(g,void 0)}return s==="wait"&&f.size&&(u=[]),f.forEach((b,g)=>{if(y.indexOf(g)!==-1)return;const S=p.get(g);if(!S)return;const x=m.indexOf(g);let T=b;if(!T){const _=()=>{f.delete(g);const P=Array.from(p.keys()).filter(I=>!y.includes(I));if(P.forEach(I=>p.delete(I)),d.current=c.filter(I=>{const k=Xn(I);return k===g||P.includes(k)}),!f.size){if(l.current===!1)return;a(),r&&r()}};T=E.jsx(Ba,{isPresent:!1,onExitComplete:_,custom:e,presenceAffectsLayout:i,mode:s,children:S},Xn(S)),f.set(g,T)}u.splice(x,0,T)}),u=u.map(b=>{const g=b.key;return f.has(g)?b:E.jsx(Ba,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:b},Xn(b))}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),E.jsx(E.Fragment,{children:f.size?u:u.map(b=>w.cloneElement(b))})},bC=w.createContext(null),xC=t=>!t.isLayoutDirty&&t.willUpdate(!1);function np(){const t=new Set,e=new WeakMap,n=()=>t.forEach(xC);return{add:r=>{t.add(r),e.set(r,r.addEventListener("willUpdate",n))},remove:r=>{t.delete(r);const o=e.get(r);o&&(o(),e.delete(r)),n()},dirty:n}}const ry=t=>t===!0,wC=t=>ry(t===!0)||t==="id",SC=({children:t,id:e,inherit:n=!0})=>{const r=w.useContext(zo),o=w.useContext(bC),[i,s]=ty(),a=w.useRef(null),l=r.id||o;a.current===null&&(wC(n)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:ry(n)&&r.group||np()});const c=w.useMemo(()=>({...a.current,forceRender:i}),[s]);return E.jsx(zo.Provider,{value:c,children:t})},oy=w.createContext(null);function TC(t,e,n,r){if(!r)return t;const o=t.findIndex(u=>u.value===e);if(o===-1)return t;const i=r>0?1:-1,s=t[o+i];if(!s)return t;const a=t[o],l=s.layout,c=Be(l.min,l.max,.5);return i===1&&a.layout.max+n>c||i===-1&&a.layout.min+n<c?kE(t,o,o+i):t}function EC({children:t,as:e="ul",axis:n="y",onReorder:r,values:o,...i},s){const a=yr(()=>pu(e)),l=[],c=w.useRef(!1);Ut(!!o,"Reorder.Group must be provided a values prop");const u={axis:n,registerItem:(f,d)=>{const p=l.findIndex(h=>f===h.value);p!==-1?l[p].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(AC)},updateOrder:(f,d,p)=>{if(c.current)return;const h=TC(l,f,d,p);l!==h&&(c.current=!0,r(h.map(RC).filter(m=>o.indexOf(m)!==-1)))}};return w.useEffect(()=>{c.current=!1}),E.jsx(a,{...i,ref:s,ignoreStrict:!0,children:E.jsx(oy.Provider,{value:u,children:t})})}const CC=w.forwardRef(EC);function RC(t){return t.value}function AC(t,e){return t.layout.min-e.layout.min}function hu(t){const e=yr(()=>Hr(t)),{isStatic:n}=w.useContext(zs);if(n){const[,r]=w.useState(t);w.useEffect(()=>e.on("change",r),[])}return e}const _C=t=>t&&typeof t=="object"&&t.mix,PC=t=>_C(t)?t.mix:void 0;function OC(...t){const e=!Array.isArray(t[0]),n=e?0:-1,r=t[0+n],o=t[1+n],i=t[2+n],s=t[3+n],a=Og(o,i,{mixer:PC(i[0]),...s});return e?a(r):a}function iy(t,e){const n=hu(e()),r=()=>n.set(e());return r(),Us(()=>{const o=()=>Ae.preRender(r,!1,!0),i=t.map(s=>s.on("change",o));return()=>{i.forEach(s=>s()),on(r)}}),n}function IC(t){Eo.current=[],t();const e=iy(Eo.current,t);return Eo.current=void 0,e}function kC(t,e,n,r){if(typeof t=="function")return IC(t);const o=typeof e=="function"?e:OC(e,n,r);return Array.isArray(t)?rp(t,o):rp([t],([i])=>o(i))}function rp(t,e){const n=yr(()=>[]);return iy(t,()=>{n.length=0;const r=t.length;for(let o=0;o<r;o++)n[o]=t[o].get();return e(n)})}function op(t,e=0){return lt(t)?t:hu(e)}function DC({children:t,style:e={},value:n,as:r="li",onDrag:o,layout:i=!0,...s},a){const l=yr(()=>pu(r)),c=w.useContext(oy),u={x:op(e.x),y:op(e.y)},f=kC([u.x,u.y],([m,y])=>m||y?1:"unset");Ut(!!c,"Reorder.Item must be a child of Reorder.Group");const{axis:d,registerItem:p,updateOrder:h}=c;return E.jsx(l,{drag:d,...s,dragSnapToOrigin:!0,style:{...e,x:u.x,y:u.y,zIndex:f},layout:i,onDrag:(m,y)=>{const{velocity:v}=y;v[d]&&h(n,u[d].get(),v[d]),o&&o(m,y)},onLayoutMeasure:m=>p(n,m),ref:a,ignoreStrict:!0,children:t})}const MC=w.forwardRef(DC),Xs={Group:CC,Item:MC};class jC{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,n){this.componentControls.forEach(r=>{r.start(e.nativeEvent||e,n)})}}const FC=()=>new jC;function LC(){return yr(FC)}var NC=Object.defineProperty,ip=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,sp=(t,e,n)=>e in t?NC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,BC=(t,e)=>{for(var n in e||(e={}))VC.call(e,n)&&sp(t,n,e[n]);if(ip)for(var n of ip(e))$C.call(e,n)&&sp(t,n,e[n]);return t},mu=(t,e)=>{const n=t.length;for(let r=0;r<n;r++)if(e(t[r],r,t))return!0;return!1},zC=(t,e,n,r)=>Js(mu,t,e,n,r),Wr=t=>typeof t=="object",Dn=(t,e)=>{if(t===e)return!0;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(!t||!e||!Wr(t)&&!Wr(e))return t===e;if(t.prototype!==e.prototype)return!1;const n=Object.keys(t);return n.length!==Object.keys(e).length?!1:n.every(r=>Dn(t[r],e[r]))},HC=(t,e)=>(Wr(t)||Array.isArray(t))&&e?t[e]:t,WC=t=>(e,n)=>e[t]===n[t]?0:e[t]>n[t]?1:-1,us=t=>/[0-9.]+/.test(t),ap=t=>["string","number"].includes(typeof t),lp=t=>t==null||(t==null?void 0:t.length)===0||t==="",cp={eq:Dn,is:Object.is,"!=":(t,e)=>t!=e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,"<=":(t,e)=>t<=e,"==":(t,e)=>t==e,"===":(t,e)=>t===e,">":(t,e)=>t>e,">=":(t,e)=>t>=e,includes:(t,e)=>`${t}`.includes(e),notIncludes:(t,e)=>!`${t}`.includes(e),startsWith:(t,e)=>`${t}`.startsWith(e),endsWith:(t,e)=>`${t}`.endsWith(e),like:(t,e)=>new RegExp(`.*${e}.*`,"gi").test(`${t}`),alphabetical:(t,e)=>t.toString().localeCompare(e.toString()),empty:lp,notEmpty:t=>!lp(t),in:(t,e)=>mu(e,n=>Dn(t,n)),notIn:(t,e)=>sy(e,n=>!Dn(t,n))},UC=t=>{if(t in cp)return cp[t];throw new Error("Linq - Symbol not found")},jr=(t,e)=>{const n=[],r=t.length;for(let o=0;o<r;o++)e(t[o],o,t)&&n.push(t[o]);return n},Js=(t,e,n,r,o)=>{if(typeof n=="function")return t(e,n);const i=UC(r);return n&&r&&o!==void 0?t(e,s=>i(s[n],o)):t(e,s=>i(s,o))},GC=(t,e,n,r)=>Js(jr,t,e,n,r),sy=(t,e)=>{for(let n=0;n<t.length;n++)if(!e(t[n],n,t))return!1;return!0},KC=(t,e,n,r)=>Js(sy,t,e,n,r),ay=t=>{if(t===null)return null;const e=BC({},t);return Object.keys(e).forEach(n=>e[n]=Wr(t[n])?ay(t[n]):t[n]),Array.isArray(t)&&t.length?(e.length=t.length)&&Array.from(e):Array.isArray(t)?Array.from(t):e},up=(t,e)=>{if(Wr(e)){for(let n=0;n<t.length;n++){const r=t[n];if(Dn(e,r))return!0}return!1}for(let n=0;n<t.length;n++){const r=t[n];if(Dn(e,r))return!0}return!1},ZC=(t,e)=>{const n=new Map(t.map(r=>[r[e],r]));return Object.fromEntries(n.entries())},qC=t=>jr(t,(e,n,r)=>Wr(e)?n===r.findIndex(o=>Dn(o,e)):n===r.indexOf(e)),YC=(t,e)=>{const n=t.length;for(let r=0;r<n;r++)if(e(t[r],r,t))return t[r]},ly=(t,e)=>{const n=new Map;return t.forEach(r=>{const o=e(r),i=n.get(o)||[];i.push(r),n.set(o,i)}),Object.fromEntries(n.entries())},XC=(t,e)=>ly(t,n=>n[e]),fp=(t,e)=>{const n=[];let r=0;const o=t.length;for(r;r<o;r++){const i=e(t[r],r,t);n.push(i)}return n},JC=(t,e)=>{let n=Number.parseInt(t,10),r=Number.parseInt(e,10);return n>r?[r,n]:[n,r]},QC=(t,e,n=1)=>{const r=[];let o=t.charCodeAt(0);const i=e.charCodeAt(0);for(;o<=i;o+=n)r.push(String.fromCharCode(o));return us(t)&&us(e)?r.map(s=>Number.parseInt(s)):r},za=(t,e,n=1)=>{let r=Math.abs(n);if((t.length>1||e.length>1)&&us(t)&&us(e)){const o=[],[i,s]=JC(t,e);for(let a=i;a<=s;a+=r)o.push(a);return o}return QC(t,e,r)},eR=(t,e,n=1)=>{if(e===void 0){const[r,o,i]=t.split("..");return i===void 0?za(r,o,1):za(r,i,Number.parseInt(o,10))}return ap(t)&&ap(e)?za(`${t}`,`${e}`,n):Array.from({length:t},(r,o)=>o*Math.abs(e))},Ha=(t,e,n)=>{let r=e;const o=n.length;for(let i=0;i<o;i++){const s=n[i];r=t(r,s,i,n)}return r},dp=t=>{const e=Array.from(t.values());let n=null,r=null,o=e.length;for(n=0;n<o/2;n+=1){r=o-1-n;let i=e[n];e[n]=e[r],e[r]=i}return e},tR=(t,e)=>{if(typeof e=="number")return t.slice(e);let n=t.length;for(let r=0;r<n;r++){const o=t[r];if(e(o,r,t))return t.slice(r)}return t.slice(0)},nR=(t,e,n,r)=>Js(tR,t,e,n,r),pp=(t,e)=>{const n=[...t];return e===void 0?n.sort():typeof e=="function"?n.toSorted(e):n.toSorted(WC(e))},rR=t=>(e,n)=>t.reduce((r,o)=>{const i=o.type==="desc"?-1:1,s=o.key,a=e[s]>n[s]?i:e[s]<n[s]?-i:0;return r!==0?r:a},0),oR=(t,e)=>t.sort(rR(e)),iR=(t,e)=>{if(e===void 0)return[...new Set(t).values()];const n=new Set;return Array.isArray(e)?[...new Set(e)]:jr(t,r=>{const o=e?n.has(r[e]):n.has(e);return e&&(o||n.add(r[e])),!o})},sR=class zl{constructor(e=[]){this.array=e}static Range(...e){return eR(...e)}static New(e){return new zl(e)}Where(e,n,r){return this.array=GC(this.array,e,n,r),this}Some(e,n,r){return zC(this.array,e,n,r)}All(e,n,r){return KC(this.array,e,n,r)}Reverse(){return this.array=dp(this.array),this}Add(e){return this.array=Array.isArray(e)?this.array.concat(e):this.array.concat([e]),this}Prepend(e){return this.array=Array.isArray(e)?e.concat(this.array):[e].concat(this.array),this}Select(e){return e===void 0?this.array:this.array.map(e)}Take(e,n){return n!==void 0?this.array=this.array.slice(e,Math.max(0,n)):this.array=this.array.slice(e),this}Head(){return this.array[0]}Tail(){return this.Skip(1)}Skip(e,n,r){return this.array=nR(this.array,e,n,r),this}Distinct(){return this.array=qC(this.array),this}First(e){return e===void 0?this.array[0]:YC(this.array,e)||null}Last(e){const n=this.array.length;if(e===void 0)return this.array[n-1];for(let r=n;r!==0;r--)if(e(this.array[r],r,this.array))return this.array[r]}Sum(e){return e===void 0?Ha((n,r)=>n+r,0,this.array):Ha((n,r)=>n+HC(r,e),0,this.array)}Average(e){return this.Sum(e)/this.array.length}GroupBy(e){return XC(this.array,e)}GroupWith(e){return ly(this.array,e)}Except(e){return jr(this.array,n=>!up(e,n))}Intersect(e){return jr(this.array,n=>up(e,n))}OrderBy(e,n){let r;return r=e?pp(this.array,e):this.array.toSorted(),this.array=n==="desc"?dp(r):r,this}Includes(e){return mu(this.array,n=>Dn(n,e))}In(e){const n=e.length;for(let r=0;r<n;r++){const o=e[r];if(this.Includes(o))return!0}return!1}Reduce(e,n){return Ha(e,n??this.array[0],this.array)}Empty(){return this.array.length===0}ToMap(e){return new Map(fp(this.array,n=>[e,n]))}Zip(e,n){return fp(this.array,(r,o)=>n(r,e[o]))}Count(e){return e===void 0?this.array.length:jr(this.array,e).length}Get(e){return this.array[e]}Clone(){return new zl(ay(this.array))}ToObject(e){return ZC(this.array,e)}Sort(e){return Array.isArray(e)?oR(this.array,e):pp(this.array,e)}Unique(e){return iR(this.array,e)}},cy=sR;const Qs=0,Hn=1,io=2,uy=4;function fs(t,e){return n=>t(e(n))}function aR(t,e){return e(t)}function fy(t,e){return n=>t(e,n)}function hp(t,e){return()=>t(e)}function ea(t,e){return e(t),t}function He(...t){return t}function lR(t){t()}function mp(t){return()=>t}function cR(...t){return()=>{t.map(lR)}}function gu(t){return t!==void 0}function ci(){}function ke(t,e){return t(Hn,e)}function ye(t,e){t(Qs,e)}function yu(t){t(io)}function pt(t){return t(uy)}function ae(t,e){return ke(t,fy(e,Qs))}function sn(t,e){const n=t(Hn,r=>{n(),e(r)});return n}function Se(){const t=[];return(e,n)=>{switch(e){case io:t.splice(0,t.length);return;case Hn:return t.push(n),()=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)};case Qs:t.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${e}`)}}}function J(t){let e=t;const n=Se();return(r,o)=>{switch(r){case Hn:o(e);break;case Qs:e=o;break;case uy:return e}return n(r,o)}}function uR(t){let e,n;const r=()=>e&&e();return function(o,i){switch(o){case Hn:return i?n===i?void 0:(r(),n=i,e=ke(t,i),e):(r(),ci);case io:r(),n=null;return;default:throw new Error(`unrecognized action ${o}`)}}}function kt(t){return ea(Se(),e=>ae(t,e))}function xt(t,e){return ea(J(e),n=>ae(t,n))}function fR(...t){return e=>t.reduceRight(aR,e)}function U(t,...e){const n=fR(...e);return(r,o)=>{switch(r){case Hn:return ke(t,n(o));case io:yu(t);return}}}function dy(t,e){return t===e}function ze(t=dy){let e;return n=>r=>{t(e,r)||(e=r,n(r))}}function fe(t){return e=>n=>{t(n)&&e(n)}}function ne(t){return e=>fs(e,t)}function Qt(t){return e=>()=>e(t)}function nn(t,e){return n=>r=>n(e=t(e,r))}function Ur(t){return e=>n=>{t>0?t--:e(n)}}function Pn(t){let e=null,n;return r=>o=>{e=o,!n&&(n=setTimeout(()=>{n=void 0,r(e)},t))}}function gp(t){let e,n;return r=>o=>{e=o,n&&clearTimeout(n),n=setTimeout(()=>{r(e)},t)}}function ve(...t){const e=new Array(t.length);let n=0,r=null;const o=Math.pow(2,t.length)-1;return t.forEach((i,s)=>{const a=Math.pow(2,s);ke(i,l=>{const c=n;n=n|a,e[s]=l,c!==o&&n===o&&r&&(r(),r=null)})}),i=>s=>{const a=()=>i([s].concat(e));n===o?a():r=a}}function yp(...t){return function(e,n){switch(e){case Hn:return cR(...t.map(r=>ke(r,n)));case io:return;default:throw new Error(`unrecognized action ${e}`)}}}function pe(t,e=dy){return U(t,ze(e))}function rt(...t){const e=Se(),n=new Array(t.length);let r=0;const o=Math.pow(2,t.length)-1;return t.forEach((i,s)=>{const a=Math.pow(2,s);ke(i,l=>{n[s]=l,r=r|a,r===o&&ye(e,n)})}),function(i,s){switch(i){case Hn:return r===o&&s(n),ke(e,s);case io:return yu(e);default:throw new Error(`unrecognized action ${i}`)}}}function De(t,e=[],{singleton:n}={singleton:!0}){return{id:dR(),constructor:t,dependencies:e,singleton:n}}const dR=()=>Symbol();function pR(t){const e=new Map,n=({id:r,constructor:o,dependencies:i,singleton:s})=>{if(s&&e.has(r))return e.get(r);const a=o(i.map(l=>n(l)));return s&&e.set(r,a),a};return n(t)}function hR(t,e){const n={},r={};let o=0;const i=t.length;for(;o<i;)r[t[o]]=1,o+=1;for(const s in e)r.hasOwnProperty(s)||(n[s]=e[s]);return n}const Ci=typeof document<"u"?w.useLayoutEffect:w.useEffect;function py(t,e,n){const r=Object.keys(e.required||{}),o=Object.keys(e.optional||{}),i=Object.keys(e.methods||{}),s=Object.keys(e.events||{}),a=w.createContext({});function l(v,b){v.propsReady&&ye(v.propsReady,!1);for(const g of r){const S=v[e.required[g]];ye(S,b[g])}for(const g of o)if(g in b){const S=v[e.optional[g]];ye(S,b[g])}v.propsReady&&ye(v.propsReady,!0)}function c(v){return i.reduce((b,g)=>(b[g]=S=>{const x=v[e.methods[g]];ye(x,S)},b),{})}function u(v){return s.reduce((b,g)=>(b[g]=uR(v[e.events[g]]),b),{})}const f=w.forwardRef((v,b)=>{const{children:g,...S}=v,[x]=w.useState(()=>ea(pR(t),_=>l(_,S))),[T]=w.useState(hp(u,x));return Ci(()=>{for(const _ of s)_ in S&&ke(T[_],S[_]);return()=>{Object.values(T).map(yu)}},[S,T,x]),Ci(()=>{l(x,S)}),w.useImperativeHandle(b,mp(c(x))),w.createElement(a.Provider,{value:x},n?w.createElement(n,hR([...r,...o,...s],S),g):g)}),d=v=>w.useCallback(fy(ye,w.useContext(a)[v]),[v]),p=v=>{const g=w.useContext(a)[v],S=w.useCallback(x=>ke(g,x),[g]);return w.useSyncExternalStore(S,()=>pt(g),()=>pt(g))},h=v=>{const g=w.useContext(a)[v],[S,x]=w.useState(hp(pt,g));return Ci(()=>ke(g,T=>{T!==S&&x(mp(T))}),[g,S]),S},m=w.version.startsWith("18")?p:h;return{Component:f,usePublisher:d,useEmitterValue:m,useEmitter:(v,b)=>{const S=w.useContext(a)[v];Ci(()=>ke(S,b),[b,S])}}}const mR=typeof document<"u"?w.useLayoutEffect:w.useEffect,gR=mR;var Lt=(t=>(t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t))(Lt||{});const yR={0:"debug",1:"log",2:"warn",3:"error"},vR=()=>typeof globalThis>"u"?window:globalThis,Wn=De(()=>{const t=J(3);return{log:J((n,r,o=1)=>{var i;const s=(i=vR().VIRTUOSO_LOG_LEVEL)!=null?i:pt(t);o>=s&&console[yR[o]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:t}},[],{singleton:!0});function vu(t,e=!0){const n=w.useRef(null);let r=o=>{};if(typeof ResizeObserver<"u"){const o=w.useMemo(()=>new ResizeObserver(i=>{requestAnimationFrame(()=>{const s=i[0].target;s.offsetParent!==null&&t(s)})}),[t]);r=i=>{i&&e?(o.observe(i),n.current=i):(n.current&&o.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function dr(t,e=!0){return vu(t,e).callbackRef}function bR(t,e,n,r,o,i,s){const a=w.useCallback(l=>{const c=xR(l.children,e,"offsetHeight",o);let u=l.parentElement;for(;!u.dataset.virtuosoScroller;)u=u.parentElement;const f=u.lastElementChild.dataset.viewportType==="window",d=s?s.scrollTop:f?window.pageYOffset||document.documentElement.scrollTop:u.scrollTop,p=s?s.scrollHeight:f?document.documentElement.scrollHeight:u.scrollHeight,h=s?s.offsetHeight:f?window.innerHeight:u.offsetHeight;r({scrollTop:Math.max(d,0),scrollHeight:p,viewportHeight:h}),c!==null&&t(c)},[t,e,o,i,s,r]);return vu(a,n)}function xR(t,e,n,r){const o=t.length;if(o===0)return null;const i=[];for(let s=0;s<o;s++){const a=t.item(s);if(!a||a.dataset.index===void 0)continue;const l=parseInt(a.dataset.index),c=parseFloat(a.dataset.knownSize),u=e(a,n);if(u===0&&r("Zero-sized element, this should not happen",{child:a},Lt.ERROR),u===c)continue;const f=i[i.length-1];i.length===0||f.size!==u||f.endIndex!==l-1?i.push({startIndex:l,endIndex:l,size:u}):i[i.length-1].endIndex++}return i}function Vn(t,e){return Math.round(t.getBoundingClientRect()[e])}function hy(t,e){return Math.abs(t-e)<1.01}function my(t,e,n,r=ci,o){const i=w.useRef(null),s=w.useRef(null),a=w.useRef(null),l=w.useCallback(f=>{const d=f.target,p=d===window||d===document,h=p?window.pageYOffset||document.documentElement.scrollTop:d.scrollTop,m=p?document.documentElement.scrollHeight:d.scrollHeight,y=p?window.innerHeight:d.offsetHeight,v=()=>{t({scrollTop:Math.max(h,0),scrollHeight:m,viewportHeight:y})};f.suppressFlushSync?v():xh.flushSync(v),s.current!==null&&(h===s.current||h<=0||h===m-y)&&(s.current=null,e(!0),a.current&&(clearTimeout(a.current),a.current=null))},[t,e]);w.useEffect(()=>{const f=o||i.current;return r(o||i.current),l({target:f,suppressFlushSync:!0}),f.addEventListener("scroll",l,{passive:!0}),()=>{r(null),f.removeEventListener("scroll",l)}},[i,l,n,r,o]);function c(f){const d=i.current;if(!d||"offsetHeight"in d&&d.offsetHeight===0)return;const p=f.behavior==="smooth";let h,m,y;d===window?(m=Math.max(Vn(document.documentElement,"height"),document.documentElement.scrollHeight),h=window.innerHeight,y=document.documentElement.scrollTop):(m=d.scrollHeight,h=Vn(d,"height"),y=d.scrollTop);const v=m-h;if(f.top=Math.ceil(Math.max(Math.min(v,f.top),0)),hy(h,m)||f.top===y){t({scrollTop:y,scrollHeight:m,viewportHeight:h}),p&&e(!0);return}p?(s.current=f.top,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{a.current=null,s.current=null,e(!0)},1e3)):s.current=null,d.scrollTo(f)}function u(f){i.current.scrollBy(f)}return{scrollerRef:i,scrollByCallback:u,scrollToCallback:c}}const St=De(()=>{const t=Se(),e=Se(),n=J(0),r=Se(),o=J(0),i=Se(),s=Se(),a=J(0),l=J(0),c=J(0),u=J(0),f=Se(),d=Se(),p=J(!1);return ae(U(t,ne(({scrollTop:h})=>h)),e),ae(U(t,ne(({scrollHeight:h})=>h)),s),ae(e,o),{scrollContainerState:t,scrollTop:e,viewportHeight:i,headerHeight:a,fixedHeaderHeight:l,fixedFooterHeight:c,footerHeight:u,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:f,scrollBy:d,statefulScrollTop:o,deviation:n,scrollingInProgress:p}},[],{singleton:!0}),Uo={lvl:0};function gy(t,e,n,r=Uo,o=Uo){return{k:t,v:e,lvl:n,l:r,r:o}}function Fe(t){return t===Uo}function Fr(){return Uo}function Hl(t,e){if(Fe(t))return Uo;const{k:n,l:r,r:o}=t;if(e===n){if(Fe(r))return o;if(Fe(o))return r;{const[i,s]=yy(r);return Ni(tt(t,{k:i,v:s,l:vy(r)}))}}else return e<n?Ni(tt(t,{l:Hl(r,e)})):Ni(tt(t,{r:Hl(o,e)}))}function Go(t,e){if(!Fe(t))return e===t.k?t.v:e<t.k?Go(t.l,e):Go(t.r,e)}function Gt(t,e,n="k"){if(Fe(t))return[-1/0,void 0];if(Number(t[n])===e)return[t.k,t.v];if(Number(t[n])<e){const r=Gt(t.r,e,n);return r[0]===-1/0?[t.k,t.v]:r}return Gt(t.l,e,n)}function It(t,e,n){return Fe(t)?gy(e,n,1):e===t.k?tt(t,{k:e,v:n}):e<t.k?vp(tt(t,{l:It(t.l,e,n)})):vp(tt(t,{r:It(t.r,e,n)}))}function Wl(t,e,n){if(Fe(t))return[];const{k:r,v:o,l:i,r:s}=t;let a=[];return r>e&&(a=a.concat(Wl(i,e,n))),r>=e&&r<=n&&a.push({k:r,v:o}),r<=n&&(a=a.concat(Wl(s,e,n))),a}function or(t){return Fe(t)?[]:[...or(t.l),{k:t.k,v:t.v},...or(t.r)]}function yy(t){return Fe(t.r)?[t.k,t.v]:yy(t.r)}function vy(t){return Fe(t.r)?t.l:Ni(tt(t,{r:vy(t.r)}))}function tt(t,e){return gy(e.k!==void 0?e.k:t.k,e.v!==void 0?e.v:t.v,e.lvl!==void 0?e.lvl:t.lvl,e.l!==void 0?e.l:t.l,e.r!==void 0?e.r:t.r)}function Wa(t){return Fe(t)||t.lvl>t.r.lvl}function vp(t){return Ul(xy(t))}function Ni(t){const{l:e,r:n,lvl:r}=t;if(n.lvl>=r-1&&e.lvl>=r-1)return t;if(r>n.lvl+1){if(Wa(e))return xy(tt(t,{lvl:r-1}));if(!Fe(e)&&!Fe(e.r))return tt(e.r,{l:tt(e,{r:e.r.l}),r:tt(t,{l:e.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(Wa(t))return Ul(tt(t,{lvl:r-1}));if(!Fe(n)&&!Fe(n.l)){const o=n.l,i=Wa(o)?n.lvl-1:n.lvl;return tt(o,{l:tt(t,{r:o.l,lvl:r-1}),r:Ul(tt(n,{l:o.r,lvl:i})),lvl:o.lvl+1})}else throw new Error("Unexpected empty nodes")}}function ta(t,e,n){if(Fe(t))return[];const r=Gt(t,e)[0];return wR(Wl(t,r,n))}function by(t,e){const n=t.length;if(n===0)return[];let{index:r,value:o}=e(t[0]);const i=[];for(let s=1;s<n;s++){const{index:a,value:l}=e(t[s]);i.push({start:r,end:a-1,value:o}),r=a,o=l}return i.push({start:r,end:1/0,value:o}),i}function wR(t){return by(t,({k:e,v:n})=>({index:e,value:n}))}function Ul(t){const{r:e,lvl:n}=t;return!Fe(e)&&!Fe(e.r)&&e.lvl===n&&e.r.lvl===n?tt(e,{l:tt(t,{r:e.l}),lvl:n+1}):t}function xy(t){const{l:e}=t;return!Fe(e)&&e.lvl===t.lvl?tt(e,{r:tt(t,{l:e.r})}):t}function ds(t,e,n,r=0){let o=t.length-1;for(;r<=o;){const i=Math.floor((r+o)/2),s=t[i],a=n(s,e);if(a===0)return i;if(a===-1){if(o-r<2)return i-1;o=i-1}else{if(o===r)return i;r=i+1}}throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`)}function wy(t,e,n){return t[ds(t,e,n)]}function SR(t,e,n,r){const o=ds(t,e,r),i=ds(t,n,r,o);return t.slice(o,i+1)}const bu=De(()=>({recalcInProgress:J(!1)}),[],{singleton:!0});function TR(t){const{size:e,startIndex:n,endIndex:r}=t;return o=>o.start===n&&(o.end===r||o.end===1/0)&&o.value===e}function bp(t,e){let n=0,r=0;for(;n<t;)n+=e[r+1]-e[r]-1,r++;return r-(n===t?0:1)}function ER(t,e){let n=Fe(t)?0:1/0;for(const r of e){const{size:o,startIndex:i,endIndex:s}=r;if(n=Math.min(n,i),Fe(t)){t=It(t,0,o);continue}const a=ta(t,i-1,s+1);if(a.some(TR(r)))continue;let l=!1,c=!1;for(const{start:u,end:f,value:d}of a)l?(s>=u||o===d)&&(t=Hl(t,u)):(c=d!==o,l=!0),f>s&&s>=u&&d!==o&&(t=It(t,s+1,d));c&&(t=It(t,i,o))}return[t,n]}function CR(){return{offsetTree:[],sizeTree:Fr(),groupOffsetTree:Fr(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function xu({index:t},e){return e===t?0:e<t?-1:1}function RR({offset:t},e){return e===t?0:e<t?-1:1}function AR(t){return{index:t.index,value:t}}function _R(t,e,n,r=0){return r>0&&(e=Math.max(e,wy(t,r,xu).offset)),by(SR(t,e,n,RR),AR)}function Gl(t,e,n,r){let o=t,i=0,s=0,a=0,l=0;if(e!==0){l=ds(o,e-1,xu),a=o[l].offset;const u=Gt(n,e-1);i=u[0],s=u[1],o.length&&o[l].size===Gt(n,e)[1]&&(l-=1),o=o.slice(0,l+1)}else o=[];for(const{start:c,value:u}of ta(n,e,1/0)){const f=c-i,d=f*s+a+f*r;o.push({offset:d,size:u,index:c}),i=c,a=d,s=u}return{offsetTree:o,lastIndex:i,lastOffset:a,lastSize:s}}function PR(t,[e,n,r,o]){e.length>0&&r("received item sizes",e,Lt.DEBUG);const i=t.sizeTree;let s=i,a=0;if(n.length>0&&Fe(i)&&e.length===2){const d=e[0].size,p=e[1].size;s=n.reduce((h,m)=>It(It(h,m,d),m+1,p),s)}else[s,a]=ER(s,e);if(s===i)return t;const{offsetTree:l,lastIndex:c,lastSize:u,lastOffset:f}=Gl(t.offsetTree,a,s,o);return{sizeTree:s,offsetTree:l,lastIndex:c,lastOffset:f,lastSize:u,groupOffsetTree:n.reduce((d,p)=>It(d,p,Ko(p,l,o)),Fr()),groupIndices:n}}function Ko(t,e,n){if(e.length===0)return 0;const{offset:r,index:o,size:i}=wy(e,t,xu),s=t-o,a=i*s+(s-1)*n+r;return a>0?a+n:a}function OR(t){return typeof t.groupIndex<"u"}function Sy(t,e,n){if(OR(t))return e.groupIndices[t.groupIndex]+1;{const r=t.index==="LAST"?n:t.index;let o=Ty(r,e);return o=Math.max(0,o,Math.min(n,o)),o}}function Ty(t,e){if(!na(e))return t;let n=0;for(;e.groupIndices[n]<=t+n;)n++;return t+n}function na(t){return!Fe(t.groupOffsetTree)}function IR(t){return or(t).map(({k:e,v:n},r,o)=>{const i=o[r+1],s=i?i.k-1:1/0;return{startIndex:e,endIndex:s,size:n}})}const kR={offsetHeight:"height",offsetWidth:"width"},ln=De(([{log:t},{recalcInProgress:e}])=>{const n=Se(),r=Se(),o=xt(r,0),i=Se(),s=Se(),a=J(0),l=J([]),c=J(void 0),u=J(void 0),f=J((x,T)=>Vn(x,kR[T])),d=J(void 0),p=J(0),h=CR(),m=xt(U(n,ve(l,t,p),nn(PR,h),ze()),h),y=xt(U(l,ze(),nn((x,T)=>({prev:x.current,current:T}),{prev:[],current:[]}),ne(({prev:x})=>x)),[]);ae(U(l,fe(x=>x.length>0),ve(m,p),ne(([x,T,_])=>{const P=x.reduce((I,k,F)=>It(I,k,Ko(k,T.offsetTree,_)||F),Fr());return{...T,groupIndices:x,groupOffsetTree:P}})),m),ae(U(r,ve(m),fe(([x,{lastIndex:T}])=>x<T),ne(([x,{lastIndex:T,lastSize:_}])=>[{startIndex:x,endIndex:T,size:_}])),n),ae(c,u);const v=xt(U(c,ne(x=>x===void 0)),!0);ae(U(u,fe(x=>x!==void 0&&Fe(pt(m).sizeTree)),ne(x=>[{startIndex:0,endIndex:0,size:x}])),n);const b=kt(U(n,ve(m),nn(({sizes:x},[T,_])=>({changed:_!==x,sizes:_}),{changed:!1,sizes:h}),ne(x=>x.changed)));ke(U(a,nn((x,T)=>({diff:x.prev-T,prev:T}),{diff:0,prev:0}),ne(x=>x.diff)),x=>{const{groupIndices:T}=pt(m);if(x>0)ye(e,!0),ye(i,x+bp(x,T));else if(x<0){const _=pt(y);_.length>0&&(x-=bp(-x,_)),ye(s,x)}}),ke(U(a,ve(t)),([x,T])=>{x<0&&T("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Lt.ERROR)});const g=kt(i);ae(U(i,ve(m),ne(([x,T])=>{const _=T.groupIndices.length>0,P=[],I=T.lastSize;if(_){const k=Go(T.sizeTree,0);let F=0,R=0;for(;F<x;){const A=T.groupIndices[R],D=T.groupIndices.length===R+1?1/0:T.groupIndices[R+1]-A-1;P.push({startIndex:A,endIndex:A,size:k}),P.push({startIndex:A+1,endIndex:A+1+D-1,size:I}),R++,F+=D+1}const $=or(T.sizeTree);return F!==x&&$.shift(),$.reduce((A,{k:D,v:L})=>{let z=A.ranges;return A.prevSize!==0&&(z=[...A.ranges,{startIndex:A.prevIndex,endIndex:D+x-1,size:A.prevSize}]),{ranges:z,prevIndex:D+x,prevSize:L}},{ranges:P,prevIndex:x,prevSize:0}).ranges}return or(T.sizeTree).reduce((k,{k:F,v:R})=>({ranges:[...k.ranges,{startIndex:k.prevIndex,endIndex:F+x-1,size:k.prevSize}],prevIndex:F+x,prevSize:R}),{ranges:[],prevIndex:0,prevSize:I}).ranges})),n);const S=kt(U(s,ve(m,p),ne(([x,{offsetTree:T},_])=>{const P=-x;return Ko(P,T,_)})));return ae(U(s,ve(m,p),ne(([x,T,_])=>{if(T.groupIndices.length>0){if(Fe(T.sizeTree))return T;let I=Fr();const k=pt(y);let F=0,R=0,$=0;for(;F<-x;){$=k[R];const A=k[R+1]-$-1;R++,F+=A+1}if(I=or(T.sizeTree).reduce((A,{k:D,v:L})=>It(A,Math.max(0,D+x),L),I),F!==-x){const A=Go(T.sizeTree,$);I=It(I,0,A);const D=Gt(T.sizeTree,-x+1)[1];I=It(I,1,D)}return{...T,sizeTree:I,...Gl(T.offsetTree,0,I,_)}}else{const I=or(T.sizeTree).reduce((k,{k:F,v:R})=>It(k,Math.max(0,F+x),R),Fr());return{...T,sizeTree:I,...Gl(T.offsetTree,0,I,_)}}})),m),{data:d,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:u,fixedItemSize:c,unshiftWith:i,shiftWith:s,shiftWithOffset:S,beforeUnshiftWith:g,firstItemIndex:a,gap:p,sizes:m,listRefresh:b,statefulTotalCount:o,trackItemSizes:v,itemSize:f}},He(Wn,bu),{singleton:!0}),DR=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Ey(t){const e=typeof t=="number"?{index:t}:t;return e.align||(e.align="start"),(!e.behavior||!DR)&&(e.behavior="auto"),e.offset||(e.offset=0),e}const ui=De(([{sizes:t,totalCount:e,listRefresh:n,gap:r},{scrollingInProgress:o,viewportHeight:i,scrollTo:s,smoothScrollTargetReached:a,headerHeight:l,footerHeight:c,fixedHeaderHeight:u,fixedFooterHeight:f},{log:d}])=>{const p=Se(),h=Se(),m=J(0);let y=null,v=null,b=null;function g(){y&&(y(),y=null),b&&(b(),b=null),v&&(clearTimeout(v),v=null),ye(o,!1)}return ae(U(p,ve(t,i,e,m,l,c,d),ve(r,u,f),ne(([[S,x,T,_,P,I,k,F],R,$,j])=>{const A=Ey(S),{align:D,behavior:L,offset:z}=A,q=_-1,C=Sy(A,x,q);let V=Ko(C,x.offsetTree,R)+I;D==="end"?(V+=$+Gt(x.sizeTree,C)[1]-T+j,C===q&&(V+=k)):D==="center"?V+=($+Gt(x.sizeTree,C)[1]-T+j)/2:V-=P,z&&(V+=z);const Y=re=>{g(),re?(F("retrying to scroll to",{location:S},Lt.DEBUG),ye(p,S)):(ye(h,!0),F("list did not change, scroll successful",{},Lt.DEBUG))};if(g(),L==="smooth"){let re=!1;b=ke(n,ee=>{re=re||ee}),y=sn(a,()=>{Y(re)})}else y=sn(U(n,MR(150)),Y);return v=setTimeout(()=>{g()},1200),ye(o,!0),F("scrolling from index to",{index:C,top:V,behavior:L},Lt.DEBUG),{top:V,behavior:L}})),s),{scrollToIndex:p,scrollTargetReached:h,topListHeight:m}},He(ln,St,Wn),{singleton:!0});function MR(t){return e=>{const n=setTimeout(()=>{e(!1)},t);return r=>{r&&(e(!0),clearTimeout(n))}}}const Zo="up",Ao="down",jR="none",FR={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},LR=0,fi=De(([{scrollContainerState:t,scrollTop:e,viewportHeight:n,headerHeight:r,footerHeight:o,scrollBy:i}])=>{const s=J(!1),a=J(!0),l=Se(),c=Se(),u=J(4),f=J(LR),d=xt(U(yp(U(pe(e),Ur(1),Qt(!0)),U(pe(e),Ur(1),Qt(!1),gp(100))),ze()),!1),p=xt(U(yp(U(i,Qt(!0)),U(i,Qt(!1),gp(200))),ze()),!1);ae(U(rt(pe(e),pe(f)),ne(([b,g])=>b<=g),ze()),a),ae(U(a,Pn(50)),c);const h=kt(U(rt(t,pe(n),pe(r),pe(o),pe(u)),nn((b,[{scrollTop:g,scrollHeight:S},x,T,_,P])=>{const I=g+x-S>-P,k={viewportHeight:x,scrollTop:g,scrollHeight:S};if(I){let R,$;return g>b.state.scrollTop?(R="SCROLLED_DOWN",$=b.state.scrollTop-g):(R="SIZE_DECREASED",$=b.state.scrollTop-g||b.scrollTopDelta),{atBottom:!0,state:k,atBottomBecause:R,scrollTopDelta:$}}let F;return k.scrollHeight>b.state.scrollHeight?F="SIZE_INCREASED":x<b.state.viewportHeight?F="VIEWPORT_HEIGHT_DECREASING":g<b.state.scrollTop?F="SCROLLING_UPWARDS":F="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:F,state:k}},FR),ze((b,g)=>b&&b.atBottom===g.atBottom))),m=xt(U(t,nn((b,{scrollTop:g,scrollHeight:S,viewportHeight:x})=>{if(hy(b.scrollHeight,S))return{scrollTop:g,scrollHeight:S,jump:0,changed:!1};{const T=S-(g+x)<1;return b.scrollTop!==g&&T?{scrollHeight:S,scrollTop:g,jump:b.scrollTop-g,changed:!0}:{scrollHeight:S,scrollTop:g,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),fe(b=>b.changed),ne(b=>b.jump)),0);ae(U(h,ne(b=>b.atBottom)),s),ae(U(s,Pn(50)),l);const y=J(Ao);ae(U(t,ne(({scrollTop:b})=>b),ze(),nn((b,g)=>pt(p)?{direction:b.direction,prevScrollTop:g}:{direction:g<b.prevScrollTop?Zo:Ao,prevScrollTop:g},{direction:Ao,prevScrollTop:0}),ne(b=>b.direction)),y),ae(U(t,Pn(50),Qt(jR)),y);const v=J(0);return ae(U(d,fe(b=>!b),Qt(0)),v),ae(U(e,Pn(100),ve(d),fe(([b,g])=>!!g),nn(([b,g],[S])=>[g,S],[0,0]),ne(([b,g])=>g-b)),v),{isScrolling:d,isAtTop:a,isAtBottom:s,atBottomState:h,atTopStateChange:c,atBottomStateChange:l,scrollDirection:y,atBottomThreshold:u,atTopThreshold:f,scrollVelocity:v,lastJumpDueToItemResize:m}},He(St)),Un=De(([{log:t}])=>{const e=J(!1),n=kt(U(e,fe(r=>r),ze()));return ke(e,r=>{r&&pt(t)("props updated",{},Lt.DEBUG)}),{propsReady:e,didMount:n}},He(Wn),{singleton:!0});function wu(t,e){t==0?e():requestAnimationFrame(()=>wu(t-1,e))}function Su(t,e){const n=e-1;return typeof t=="number"?t:t.index==="LAST"?n:t.index}const di=De(([{sizes:t,listRefresh:e,defaultItemSize:n},{scrollTop:r},{scrollToIndex:o,scrollTargetReached:i},{didMount:s}])=>{const a=J(!0),l=J(0),c=J(!0);return ae(U(s,ve(l),fe(([u,f])=>!!f),Qt(!1)),a),ae(U(s,ve(l),fe(([u,f])=>!!f),Qt(!1)),c),ke(U(rt(e,s),ve(a,t,n,c),fe(([[,u],f,{sizeTree:d},p,h])=>u&&(!Fe(d)||gu(p))&&!f&&!h),ve(l)),([,u])=>{sn(i,()=>{ye(c,!0)}),wu(4,()=>{sn(r,()=>{ye(a,!0)}),ye(o,u)})}),{scrolledToInitialItem:a,initialTopMostItemIndex:l,initialItemFinalLocationReached:c}},He(ln,St,ui,Un),{singleton:!0});function xp(t){return t?t==="smooth"?"smooth":"auto":!1}const NR=(t,e)=>typeof t=="function"?xp(t(e)):e&&xp(t),VR=De(([{totalCount:t,listRefresh:e},{isAtBottom:n,atBottomState:r},{scrollToIndex:o},{scrolledToInitialItem:i},{propsReady:s,didMount:a},{log:l},{scrollingInProgress:c}])=>{const u=J(!1),f=Se();let d=null;function p(m){ye(o,{index:"LAST",align:"end",behavior:m})}ke(U(rt(U(pe(t),Ur(1)),a),ve(pe(u),n,i,c),ne(([[m,y],v,b,g,S])=>{let x=y&&g,T="auto";return x&&(T=NR(v,b||S),x=x&&!!T),{totalCount:m,shouldFollow:x,followOutputBehavior:T}}),fe(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:y})=>{d&&(d(),d=null),d=sn(e,()=>{pt(l)("following output to ",{totalCount:m},Lt.DEBUG),p(y),d=null})});function h(m){const y=sn(r,v=>{m&&!v.atBottom&&v.notAtBottomBecause==="SIZE_INCREASED"&&!d&&(pt(l)("scrolling to bottom due to increased size",{},Lt.DEBUG),p("auto"))});setTimeout(y,100)}return ke(U(rt(pe(u),t,s),fe(([m,,y])=>m&&y),nn(({value:m},[,y])=>({refreshed:m===y,value:y}),{refreshed:!1,value:0}),fe(({refreshed:m})=>m),ve(u,t)),([,m])=>{pt(i)&&h(m!==!1)}),ke(f,()=>{h(pt(u)!==!1)}),ke(rt(pe(u),r),([m,y])=>{m&&!y.atBottom&&y.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&p("auto")}),{followOutput:u,autoscrollToBottom:f}},He(ln,fi,ui,di,Un,Wn,St));function $R(t){return t.reduce((e,n)=>(e.groupIndices.push(e.totalCount),e.totalCount+=n+1,e),{totalCount:0,groupIndices:[]})}const Cy=De(([{totalCount:t,groupIndices:e,sizes:n},{scrollTop:r,headerHeight:o}])=>{const i=Se(),s=Se(),a=kt(U(i,ne($R)));return ae(U(a,ne(l=>l.totalCount)),t),ae(U(a,ne(l=>l.groupIndices)),e),ae(U(rt(r,n,o),fe(([l,c])=>na(c)),ne(([l,c,u])=>Gt(c.groupOffsetTree,Math.max(l-u,0),"v")[0]),ze(),ne(l=>[l])),s),{groupCounts:i,topItemsIndexes:s}},He(ln,St));function qo(t,e){return!!(t&&t[0]===e[0]&&t[1]===e[1])}function Ry(t,e){return!!(t&&t.startIndex===e.startIndex&&t.endIndex===e.endIndex)}const ps="top",hs="bottom",wp="none";function Sp(t,e,n){return typeof t=="number"?n===Zo&&e===ps||n===Ao&&e===hs?t:0:n===Zo?e===ps?t.main:t.reverse:e===hs?t.main:t.reverse}function Tp(t,e){return typeof t=="number"?t:t[e]||0}const Tu=De(([{scrollTop:t,viewportHeight:e,deviation:n,headerHeight:r,fixedHeaderHeight:o}])=>{const i=Se(),s=J(0),a=J(0),l=J(0),c=xt(U(rt(pe(t),pe(e),pe(r),pe(i,qo),pe(l),pe(s),pe(o),pe(n),pe(a)),ne(([u,f,d,[p,h],m,y,v,b,g])=>{const S=u-b,x=y+v,T=Math.max(d-S,0);let _=wp;const P=Tp(g,ps),I=Tp(g,hs);return p-=b,p+=d+v,h+=d+v,h-=b,p>u+x-P&&(_=Zo),h<u-T+f+I&&(_=Ao),_!==wp?[Math.max(S-d-Sp(m,ps,_)-P,0),S-T-v+f+Sp(m,hs,_)+I]:null}),fe(u=>u!=null),ze(qo)),[0,0]);return{listBoundary:i,overscan:l,topListHeight:s,increaseViewportBy:a,visibleRange:c}},He(St),{singleton:!0});function BR(t,e,n){if(na(e)){const r=Ty(t,e);return[{index:Gt(e.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:t,size:0,offset:0,data:n&&n[0]}]}const Ua={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Ep(t,e,n){if(t.length===0)return[];if(!na(e))return t.map(c=>({...c,index:c.index+n,originalIndex:c.index}));const r=t[0].index,o=t[t.length-1].index,i=[],s=ta(e.groupOffsetTree,r,o);let a,l=0;for(const c of t){(!a||a.end<c.index)&&(a=s.shift(),l=e.groupIndices.indexOf(a.start));let u;c.index===a.start?u={type:"group",index:l}:u={index:c.index-(l+1)+n,groupIndex:l},i.push({...u,size:c.size,offset:c.offset,originalIndex:c.index,data:c.data})}return i}function Vi(t,e,n,r,o,i){const{lastSize:s,lastOffset:a,lastIndex:l}=o;let c=0,u=0;if(t.length>0){c=t[0].offset;const m=t[t.length-1];u=m.offset+m.size}const f=n-l,d=a+f*s+(f-1)*r,p=c,h=d-u;return{items:Ep(t,o,i),topItems:Ep(e,o,i),topListHeight:e.reduce((m,y)=>y.size+m,0),offsetTop:c,offsetBottom:h,top:p,bottom:u,totalCount:n,firstItemIndex:i}}function Ay(t,e,n,r,o,i){let s=0;if(n.groupIndices.length>0)for(const u of n.groupIndices){if(u-s>=t)break;s++}const a=t+s,l=Su(e,a),c=Array.from({length:a}).map((u,f)=>({index:f+l,size:0,offset:0,data:i[f+l]}));return Vi(c,[],a,o,n,r)}const vr=De(([{sizes:t,totalCount:e,data:n,firstItemIndex:r,gap:o},i,{visibleRange:s,listBoundary:a,topListHeight:l},{scrolledToInitialItem:c,initialTopMostItemIndex:u},{topListHeight:f},d,{didMount:p},{recalcInProgress:h}])=>{const m=J([]),y=J(0),v=Se();ae(i.topItemsIndexes,m);const b=xt(U(rt(p,h,pe(s,qo),pe(e),pe(t),pe(u),c,pe(m),pe(r),pe(o),n),fe(([T,_,,P,,,,,,,I])=>{const k=I&&I.length!==P;return T&&!_&&!k}),ne(([,,[T,_],P,I,k,F,R,$,j,A])=>{const D=I,{sizeTree:L,offsetTree:z}=D,q=pt(y);if(P===0)return{...Ua,totalCount:P};if(T===0&&_===0)return q===0?{...Ua,totalCount:P}:Ay(q,k,I,$,j,A||[]);if(Fe(L))return q>0?null:Vi(BR(Su(k,P),D,A),[],P,j,D,$);const C=[];if(R.length>0){const H=R[0],O=R[R.length-1];let N=0;for(const W of ta(L,H,O)){const K=W.value,X=Math.max(W.start,H),le=Math.min(W.end,O);for(let B=X;B<=le;B++)C.push({index:B,size:K,offset:N,data:A&&A[B]}),N+=K}}if(!F)return Vi([],C,P,j,D,$);const V=R.length>0?R[R.length-1]+1:0,Y=_R(z,T,_,V);if(Y.length===0)return null;const re=P-1,ee=ea([],H=>{for(const O of Y){const N=O.value;let W=N.offset,K=O.start;const X=N.size;if(N.offset<T){K+=Math.floor((T-N.offset+j)/(X+j));const B=K-O.start;W+=B*X+B*j}K<V&&(W+=(V-K)*X,K=V);const le=Math.min(O.end,re);for(let B=K;B<=le&&!(W>=_);B++)H.push({index:B,size:X,offset:W,data:A&&A[B]}),W+=X+j}});return Vi(ee,C,P,j,D,$)}),fe(T=>T!==null),ze()),Ua);ae(U(n,fe(gu),ne(T=>T==null?void 0:T.length)),e),ae(U(b,ne(T=>T.topListHeight)),f),ae(f,l),ae(U(b,ne(T=>[T.top,T.bottom])),a),ae(U(b,ne(T=>T.items)),v);const g=kt(U(b,fe(({items:T})=>T.length>0),ve(e,n),fe(([{items:T},_])=>T[T.length-1].originalIndex===_-1),ne(([,T,_])=>[T-1,_]),ze(qo),ne(([T])=>T))),S=kt(U(b,Pn(200),fe(({items:T,topItems:_})=>T.length>0&&T[0].originalIndex===_.length),ne(({items:T})=>T[0].index),ze())),x=kt(U(b,fe(({items:T})=>T.length>0),ne(({items:T})=>{let _=0,P=T.length-1;for(;T[_].type==="group"&&_<P;)_++;for(;T[P].type==="group"&&P>_;)P--;return{startIndex:T[_].index,endIndex:T[P].index}}),ze(Ry)));return{listState:b,topItemsIndexes:m,endReached:g,startReached:S,rangeChanged:x,itemsRendered:v,initialItemCount:y,...d}},He(ln,Cy,Tu,di,ui,fi,Un,bu),{singleton:!0}),zR=De(([{sizes:t,firstItemIndex:e,data:n,gap:r},{initialTopMostItemIndex:o},{initialItemCount:i,listState:s},{didMount:a}])=>(ae(U(a,ve(i),fe(([,l])=>l!==0),ve(o,t,e,r,n),ne(([[,l],c,u,f,d,p=[]])=>Ay(l,c,u,f,d,p))),s),{}),He(ln,di,vr,Un),{singleton:!0}),_y=De(([{scrollVelocity:t}])=>{const e=J(!1),n=Se(),r=J(!1);return ae(U(t,ve(r,e,n),fe(([o,i])=>!!i),ne(([o,i,s,a])=>{const{exit:l,enter:c}=i;if(s){if(l(o,a))return!1}else if(c(o,a))return!0;return s}),ze()),e),ke(U(rt(e,t,n),ve(r)),([[o,i,s],a])=>o&&a&&a.change&&a.change(i,s)),{isSeeking:e,scrollSeekConfiguration:r,scrollVelocity:t,scrollSeekRangeChanged:n}},He(fi),{singleton:!0}),HR=De(([{topItemsIndexes:t}])=>{const e=J(0);return ae(U(e,fe(n=>n>0),ne(n=>Array.from({length:n}).map((r,o)=>o))),t),{topItemCount:e}},He(vr)),Py=De(([{footerHeight:t,headerHeight:e,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:o}])=>{const i=Se(),s=xt(U(rt(t,r,e,n,o),ne(([a,l,c,u,f])=>a+l+c+u+f.offsetBottom+f.bottom)),0);return ae(pe(s),i),{totalListHeight:s,totalListHeightChanged:i}},He(St,vr),{singleton:!0});function Oy(t){let e=!1,n;return()=>(e||(e=!0,n=t()),n)}const WR=Oy(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),UR=De(([{scrollBy:t,scrollTop:e,deviation:n,scrollingInProgress:r},{isScrolling:o,isAtBottom:i,scrollDirection:s,lastJumpDueToItemResize:a},{listState:l},{beforeUnshiftWith:c,shiftWithOffset:u,sizes:f,gap:d},{log:p},{recalcInProgress:h}])=>{const m=kt(U(l,ve(a),nn(([,v,b,g],[{items:S,totalCount:x,bottom:T,offsetBottom:_},P])=>{const I=T+_;let k=0;return b===x&&v.length>0&&S.length>0&&(S[0].originalIndex===0&&v[0].originalIndex===0||(k=I-g,k!==0&&(k+=P))),[k,S,x,I]},[0,[],0,0]),fe(([v])=>v!==0),ve(e,s,r,i,p,h),fe(([,v,b,g,,,S])=>!S&&!g&&v!==0&&b===Zo),ne(([[v],,,,,b])=>(b("Upward scrolling compensation",{amount:v},Lt.DEBUG),v))));function y(v){v>0?(ye(t,{top:-v,behavior:"auto"}),ye(n,0)):(ye(n,0),ye(t,{top:-v,behavior:"auto"}))}return ke(U(m,ve(n,o)),([v,b,g])=>{g&&WR()?ye(n,b-v):y(-v)}),ke(U(rt(xt(o,!1),n,h),fe(([v,b,g])=>!v&&!g&&b!==0),ne(([v,b])=>b),Pn(1)),y),ae(U(u,ne(v=>({top:-v}))),t),ke(U(c,ve(f,d),ne(([v,{lastSize:b,groupIndices:g,sizeTree:S},x])=>{function T(_){return _*(b+x)}if(g.length===0)return T(v);{let _=0;const P=Go(S,0);let I=0,k=0;for(;I<v;){I++,_+=P;let F=g.length===k+1?1/0:g[k+1]-g[k]-1;I+F>v&&(_-=P,F=v-I+1),I+=F,_+=T(F),k++}return _}})),v=>{ye(n,v),requestAnimationFrame(()=>{ye(t,{top:v}),requestAnimationFrame(()=>{ye(n,0),ye(h,!1)})})}),{deviation:n}},He(St,fi,vr,ln,Wn,bu)),GR=De(([{didMount:t},{scrollTo:e},{listState:n}])=>{const r=J(0);return ke(U(t,ve(r),fe(([,o])=>o!==0),ne(([,o])=>({top:o}))),o=>{sn(U(n,Ur(1),fe(i=>i.items.length>1)),()=>{requestAnimationFrame(()=>{ye(e,o)})})}),{initialScrollTop:r}},He(Un,St,vr),{singleton:!0}),KR=De(([{viewportHeight:t},{totalListHeight:e}])=>{const n=J(!1),r=xt(U(rt(n,t,e),fe(([o])=>o),ne(([,o,i])=>Math.max(0,o-i)),Pn(0),ze()),0);return{alignToBottom:n,paddingTopAddition:r}},He(St,Py),{singleton:!0}),Eu=De(([{scrollTo:t,scrollContainerState:e}])=>{const n=Se(),r=Se(),o=Se(),i=J(!1),s=J(void 0);return ae(U(rt(n,r),ne(([{viewportHeight:a,scrollTop:l,scrollHeight:c},{offsetTop:u}])=>({scrollTop:Math.max(0,l-u),scrollHeight:c,viewportHeight:a}))),e),ae(U(t,ve(r),ne(([a,{offsetTop:l}])=>({...a,top:a.top+l}))),o),{useWindowScroll:i,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:o}},He(St)),ZR=({itemTop:t,itemBottom:e,viewportTop:n,viewportBottom:r,locationParams:{behavior:o,align:i,...s}})=>t<n?{...s,behavior:o,align:i??"start"}:e>r?{...s,behavior:o,align:i??"end"}:null,qR=De(([{sizes:t,totalCount:e,gap:n},{scrollTop:r,viewportHeight:o,headerHeight:i,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:l},{scrollToIndex:c}])=>{const u=Se();return ae(U(u,ve(t,o,e,i,s,a,r),ve(n),ne(([[f,d,p,h,m,y,v,b],g])=>{const{done:S,behavior:x,align:T,calculateViewLocation:_=ZR,...P}=f,I=Sy(f,d,h-1),k=Ko(I,d.offsetTree,g)+m+y,F=k+Gt(d.sizeTree,I)[1],R=b+y,$=b+p-v,j=_({itemTop:k,itemBottom:F,viewportTop:R,viewportBottom:$,locationParams:{behavior:x,align:T,...P}});return j?S&&sn(U(l,fe(A=>A===!1),Ur(pt(l)?1:2)),S):S&&S(),j}),fe(f=>f!==null)),c),{scrollIntoView:u}},He(ln,St,ui,vr,Wn),{singleton:!0}),YR=De(([{sizes:t,sizeRanges:e},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:o},{useWindowScroll:i,windowScrollContainerState:s,windowViewportRect:a}])=>{const l=Se(),c=J(void 0),u=J(null),f=J(null);return ae(s,u),ae(a,f),ke(U(l,ve(t,n,i,u,f)),([d,p,h,m,y,v])=>{const b=IR(p.sizeTree);m&&y!==null&&v!==null&&(h=y.scrollTop-v.offsetTop),d({ranges:b,scrollTop:h})}),ae(U(c,fe(gu),ne(XR)),r),ae(U(o,ve(c),fe(([,d])=>d!==void 0),ze(),ne(([,d])=>d.ranges)),e),{getState:l,restoreStateFrom:c}},He(ln,St,di,Un,Eu));function XR(t){return{offset:t.scrollTop,index:0,align:"start"}}const JR=De(([t,e,n,r,o,i,s,a,l,c])=>({...t,...e,...n,...r,...o,...i,...s,...a,...l,...c}),He(Tu,zR,Un,_y,Py,GR,KR,Eu,qR,Wn)),QR=De(([{totalCount:t,sizeRanges:e,fixedItemSize:n,defaultItemSize:r,trackItemSizes:o,itemSize:i,data:s,firstItemIndex:a,groupIndices:l,statefulTotalCount:c,gap:u,sizes:f},{initialTopMostItemIndex:d,scrolledToInitialItem:p,initialItemFinalLocationReached:h},m,y,v,{listState:b,topItemsIndexes:g,...S},{scrollToIndex:x},T,{topItemCount:_},{groupCounts:P},I])=>(ae(S.rangeChanged,I.scrollSeekRangeChanged),ae(U(I.windowViewportRect,ne(k=>k.visibleHeight)),m.viewportHeight),{totalCount:t,data:s,firstItemIndex:a,sizeRanges:e,initialTopMostItemIndex:d,scrolledToInitialItem:p,initialItemFinalLocationReached:h,topItemsIndexes:g,topItemCount:_,groupCounts:P,fixedItemHeight:n,defaultItemHeight:r,gap:u,...v,statefulTotalCount:c,listState:b,scrollToIndex:x,trackItemSizes:o,itemSize:i,groupIndices:l,...S,...I,...m,sizes:f,...y}),He(ln,di,St,YR,VR,vr,ui,UR,HR,Cy,JR)),Ga="-webkit-sticky",Cp="sticky",Iy=Oy(()=>{if(typeof document>"u")return Cp;const t=document.createElement("div");return t.style.position=Ga,t.style.position===Ga?Ga:Cp});function ky(t,e){const n=w.useRef(null),r=w.useCallback(a=>{if(a===null||!a.offsetParent)return;const l=a.getBoundingClientRect(),c=l.width;let u,f;if(e){const d=e.getBoundingClientRect(),p=l.top-d.top;u=d.height-Math.max(0,p),f=p+e.scrollTop}else u=window.innerHeight-Math.max(0,l.top),f=l.top+window.pageYOffset;n.current={offsetTop:f,visibleHeight:u,visibleWidth:c},t(n.current)},[t,e]),{callbackRef:o,ref:i}=vu(r),s=w.useCallback(()=>{r(i.current)},[r,i]);return w.useEffect(()=>{if(e){e.addEventListener("scroll",s);const a=new ResizeObserver(()=>{requestAnimationFrame(s)});return a.observe(e),()=>{e.removeEventListener("scroll",s),a.unobserve(e)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,e]),o}const Dy=w.createContext(void 0),My=w.createContext(void 0);function jy(t){return t}Iy();const eA={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},ra=t=>({width:"100%",height:"100%",position:"absolute",top:0});Iy();function Ct(t,e){if(typeof t!="string")return{context:e}}function tA(t,e){return{item:typeof t=="string"?void 0:e}}function Fy({usePublisher:t,useEmitter:e,useEmitterValue:n}){return w.memo(function({style:i,children:s,...a}){const l=t("scrollContainerState"),c=n("ScrollerComponent"),u=t("smoothScrollTargetReached"),f=n("scrollerRef"),d=n("context"),{scrollerRef:p,scrollByCallback:h,scrollToCallback:m}=my(l,u,c,f);return e("scrollTo",m),e("scrollBy",h),w.createElement(c,{ref:p,style:{...eA,...i},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...Ct(c,d)},s)})}function Ly({usePublisher:t,useEmitter:e,useEmitterValue:n}){return w.memo(function({style:i,children:s,...a}){const l=t("windowScrollContainerState"),c=n("ScrollerComponent"),u=t("smoothScrollTargetReached"),f=n("totalListHeight"),d=n("deviation"),p=n("customScrollParent"),h=n("context"),{scrollerRef:m,scrollByCallback:y,scrollToCallback:v}=my(l,u,c,ci,p);return gR(()=>(m.current=p||window,()=>{m.current=null}),[m,p]),e("windowScrollTo",v),e("scrollBy",y),w.createElement(c,{style:{position:"relative",...i,...f!==0?{height:f+d}:{}},"data-virtuoso-scroller":!0,...a,...Ct(c,h)},s)})}const Rp={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},nA={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Ap,ceil:_p,floor:ms,min:Ka,max:_o}=Math;function rA(t){return{...nA,items:t}}function Pp(t,e,n){return Array.from({length:e-t+1}).map((r,o)=>{const i=n===null?null:n[o+t];return{index:o+t,data:i}})}function oA(t,e){return t&&t.column===e.column&&t.row===e.row}function Ri(t,e){return t&&t.width===e.width&&t.height===e.height}const iA=De(([{overscan:t,visibleRange:e,listBoundary:n},{scrollTop:r,viewportHeight:o,scrollBy:i,scrollTo:s,smoothScrollTargetReached:a,scrollContainerState:l,footerHeight:c,headerHeight:u},f,d,{propsReady:p,didMount:h},{windowViewportRect:m,useWindowScroll:y,customScrollParent:v,windowScrollContainerState:b,windowScrollTo:g},S])=>{const x=J(0),T=J(0),_=J(Rp),P=J({height:0,width:0}),I=J({height:0,width:0}),k=Se(),F=Se(),R=J(0),$=J(null),j=J({row:0,column:0}),A=Se(),D=Se(),L=J(!1),z=J(0),q=J(!0),C=J(!1);ke(U(h,ve(z),fe(([O,N])=>!!N)),()=>{ye(q,!1),ye(T,0)}),ke(U(rt(h,q,I,P,z,C),fe(([O,N,W,K,,X])=>O&&!N&&W.height!==0&&K.height!==0&&!X)),([,,,,O])=>{ye(C,!0),wu(1,()=>{ye(k,O)}),sn(U(r),()=>{ye(n,[0,0]),ye(q,!0)})}),ae(U(D,fe(O=>O!=null&&O.scrollTop>0),Qt(0)),T),ke(U(h,ve(D),fe(([,O])=>O!=null)),([,O])=>{O&&(ye(P,O.viewport),ye(I,O==null?void 0:O.item),ye(j,O.gap),O.scrollTop>0&&(ye(L,!0),sn(U(r,Ur(1)),N=>{ye(L,!1)}),ye(s,{top:O.scrollTop})))}),ae(U(P,ne(({height:O})=>O)),o),ae(U(rt(pe(P,Ri),pe(I,Ri),pe(j,(O,N)=>O&&O.column===N.column&&O.row===N.row),pe(r)),ne(([O,N,W,K])=>({viewport:O,item:N,gap:W,scrollTop:K}))),A),ae(U(rt(pe(x),e,pe(j,oA),pe(I,Ri),pe(P,Ri),pe($),pe(T),pe(L),pe(q),pe(z)),fe(([,,,,,,,O])=>!O),ne(([O,[N,W],K,X,le,B,_e,,Ve,Ze])=>{const{row:se,column:Ce}=K,{height:xe,width:Te}=X,{width:he}=le;if(_e===0&&(O===0||he===0))return Rp;if(Te===0){const Qe=Su(Ze,O),Zt=Qe===0?Math.max(_e-1,0):Qe;return rA(Pp(Qe,Zt,B))}const Re=Ny(he,Te,Ce);let Je,gt;Ve?N===0&&W===0&&_e>0?(Je=0,gt=_e-1):(Je=Re*ms((N+se)/(xe+se)),gt=Re*_p((W+se)/(xe+se))-1,gt=Ka(O-1,_o(gt,Re-1)),Je=Ka(gt,_o(0,Je))):(Je=0,gt=-1);const Z=Pp(Je,gt,B),{top:oe,bottom:Me}=Op(le,K,X,Z),We=_p(O/Re),Kt=We*xe+(We-1)*se-Me;return{items:Z,offsetTop:oe,offsetBottom:Kt,top:oe,bottom:Me,itemHeight:xe,itemWidth:Te}})),_),ae(U($,fe(O=>O!==null),ne(O=>O.length)),x),ae(U(rt(P,I,_,j),fe(([O,N,{items:W}])=>W.length>0&&N.height!==0&&O.height!==0),ne(([O,N,{items:W},K])=>{const{top:X,bottom:le}=Op(O,K,N,W);return[X,le]}),ze(qo)),n);const V=J(!1);ae(U(r,ve(V),ne(([O,N])=>N||O!==0)),V);const Y=kt(U(pe(_),fe(({items:O})=>O.length>0),ve(x,V),fe(([{items:O},N,W])=>W&&O[O.length-1].index===N-1),ne(([,O])=>O-1),ze())),re=kt(U(pe(_),fe(({items:O})=>O.length>0&&O[0].index===0),Qt(0),ze())),ee=kt(U(pe(_),ve(L),fe(([{items:O},N])=>O.length>0&&!N),ne(([{items:O}])=>({startIndex:O[0].index,endIndex:O[O.length-1].index})),ze(Ry),Pn(0)));ae(ee,d.scrollSeekRangeChanged),ae(U(k,ve(P,I,x,j),ne(([O,N,W,K,X])=>{const le=Ey(O),{align:B,behavior:_e,offset:Ve}=le;let Ze=le.index;Ze==="LAST"&&(Ze=K-1),Ze=_o(0,Ze,Ka(K-1,Ze));let se=Kl(N,X,W,Ze);return B==="end"?se=Ap(se-N.height+W.height):B==="center"&&(se=Ap(se-N.height/2+W.height/2)),Ve&&(se+=Ve),{top:se,behavior:_e}})),s);const H=xt(U(_,ne(O=>O.offsetBottom+O.bottom)),0);return ae(U(m,ne(O=>({width:O.visibleWidth,height:O.visibleHeight}))),P),{data:$,totalCount:x,viewportDimensions:P,itemDimensions:I,scrollTop:r,scrollHeight:F,overscan:t,scrollBy:i,scrollTo:s,scrollToIndex:k,smoothScrollTargetReached:a,windowViewportRect:m,windowScrollTo:g,useWindowScroll:y,customScrollParent:v,windowScrollContainerState:b,deviation:R,scrollContainerState:l,footerHeight:c,headerHeight:u,initialItemCount:T,gap:j,restoreStateFrom:D,...d,initialTopMostItemIndex:z,gridState:_,totalListHeight:H,...f,startReached:re,endReached:Y,rangeChanged:ee,stateChanged:A,propsReady:p,stateRestoreInProgress:L,...S}},He(Tu,St,fi,_y,Un,Eu,Wn));function Op(t,e,n,r){const{height:o}=n;if(o===void 0||r.length===0)return{top:0,bottom:0};const i=Kl(t,e,n,r[0].index),s=Kl(t,e,n,r[r.length-1].index)+o;return{top:i,bottom:s}}function Kl(t,e,n,r){const o=Ny(t.width,n.width,e.column),i=ms(r/o),s=i*n.height+_o(0,i-1)*e.row;return s>0?s+e.row:s}function Ny(t,e,n){return _o(1,ms((t+n)/(ms(e)+n)))}const sA=De(()=>{const t=J(c=>`Item ${c}`),e=J({}),n=J(null),r=J("virtuoso-grid-item"),o=J("virtuoso-grid-list"),i=J(jy),s=J("div"),a=J(ci),l=(c,u=null)=>xt(U(e,ne(f=>f[c]),ze()),u);return{context:n,itemContent:t,components:e,computeItemKey:i,itemClassName:r,listClassName:o,headerFooterTag:s,scrollerRef:a,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),aA=De(([t,e])=>({...t,...e}),He(iA,sA)),lA=w.memo(function(){const e=Ge("gridState"),n=Ge("listClassName"),r=Ge("itemClassName"),o=Ge("itemContent"),i=Ge("computeItemKey"),s=Ge("isSeeking"),a=Bt("scrollHeight"),l=Ge("ItemComponent"),c=Ge("ListComponent"),u=Ge("ScrollSeekPlaceholder"),f=Ge("context"),d=Bt("itemDimensions"),p=Bt("gap"),h=Ge("log"),m=Ge("stateRestoreInProgress"),y=dr(v=>{const b=v.parentElement.parentElement.scrollHeight;a(b);const g=v.firstChild;if(g){const{width:S,height:x}=g.getBoundingClientRect();d({width:S,height:x})}p({row:Ip("row-gap",getComputedStyle(v).rowGap,h),column:Ip("column-gap",getComputedStyle(v).columnGap,h)})});return m?null:w.createElement(c,{ref:y,className:n,...Ct(c,f),style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-testid":"virtuoso-item-list"},e.items.map(v=>{const b=i(v.index,v.data,f);return s?w.createElement(u,{key:b,...Ct(u,f),index:v.index,height:e.itemHeight,width:e.itemWidth}):w.createElement(l,{...Ct(l,f),className:r,"data-index":v.index,key:b},o(v.index,v.data,f))}))}),cA=w.memo(function(){const e=Ge("HeaderComponent"),n=Bt("headerHeight"),r=Ge("headerFooterTag"),o=dr(s=>n(Vn(s,"height"))),i=Ge("context");return e?w.createElement(r,{ref:o},w.createElement(e,Ct(e,i))):null}),uA=w.memo(function(){const e=Ge("FooterComponent"),n=Bt("footerHeight"),r=Ge("headerFooterTag"),o=dr(s=>n(Vn(s,"height"))),i=Ge("context");return e?w.createElement(r,{ref:o},w.createElement(e,Ct(e,i))):null}),fA=({children:t})=>{const e=w.useContext(My),n=Bt("itemDimensions"),r=Bt("viewportDimensions"),o=dr(i=>{r(i.getBoundingClientRect())});return w.useEffect(()=>{e&&(r({height:e.viewportHeight,width:e.viewportWidth}),n({height:e.itemHeight,width:e.itemWidth}))},[e,r,n]),w.createElement("div",{style:ra(),ref:o},t)},dA=({children:t})=>{const e=w.useContext(My),n=Bt("windowViewportRect"),r=Bt("itemDimensions"),o=Ge("customScrollParent"),i=ky(n,o);return w.useEffect(()=>{e&&(r({height:e.itemHeight,width:e.itemWidth}),n({offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:e.viewportWidth}))},[e,n,r]),w.createElement("div",{ref:i,style:ra()},t)},pA=w.memo(function({...e}){const n=Ge("useWindowScroll"),r=Ge("customScrollParent"),o=r||n?mA:hA,i=r||n?dA:fA;return w.createElement(o,{...e},w.createElement(i,null,w.createElement(cA,null),w.createElement(lA,null),w.createElement(uA,null)))}),{Component:xI,usePublisher:Bt,useEmitterValue:Ge,useEmitter:Vy}=py(aA,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},pA),hA=Fy({usePublisher:Bt,useEmitterValue:Ge,useEmitter:Vy}),mA=Ly({usePublisher:Bt,useEmitterValue:Ge,useEmitter:Vy});function Ip(t,e,n){return e!=="normal"&&!(e!=null&&e.endsWith("px"))&&n(`${t} was not resolved to pixel value correctly`,e,Lt.WARN),e==="normal"?0:parseInt(e??"0",10)}const gA=De(()=>{const t=J(l=>w.createElement("td",null,"Item $",l)),e=J(null),n=J(null),r=J(null),o=J({}),i=J(jy),s=J(ci),a=(l,c=null)=>xt(U(o,ne(u=>u[l]),ze()),c);return{context:e,itemContent:t,fixedHeaderContent:n,fixedFooterContent:r,components:o,computeItemKey:i,scrollerRef:s,TableComponent:a("Table","table"),TableHeadComponent:a("TableHead","thead"),TableFooterComponent:a("TableFoot","tfoot"),TableBodyComponent:a("TableBody","tbody"),TableRowComponent:a("TableRow","tr"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),FillerRow:a("FillerRow")}}),yA=De(([t,e])=>({...t,...e}),He(QR,gA)),vA=({height:t})=>w.createElement("tr",null,w.createElement("td",{style:{height:t}})),bA=({height:t})=>w.createElement("tr",null,w.createElement("td",{style:{height:t,padding:0,border:0}})),xA={overflowAnchor:"none"},wA=w.memo(function(){const e=Ie("listState"),n=zt("sizeRanges"),r=Ie("useWindowScroll"),o=Ie("customScrollParent"),i=zt("windowScrollContainerState"),s=zt("scrollContainerState"),a=o||r?i:s,l=Ie("itemContent"),c=Ie("trackItemSizes"),u=Ie("itemSize"),f=Ie("log"),{callbackRef:d,ref:p}=bR(n,u,c,a,f,void 0,o),[h,m]=w.useState(0);Cu("deviation",D=>{h!==D&&(p.current.style.marginTop=`${D}px`,m(D))});const y=Ie("EmptyPlaceholder"),v=Ie("ScrollSeekPlaceholder")||vA,b=Ie("FillerRow")||bA,g=Ie("TableBodyComponent"),S=Ie("TableRowComponent"),x=Ie("computeItemKey"),T=Ie("isSeeking"),_=Ie("paddingTopAddition"),P=Ie("firstItemIndex"),I=Ie("statefulTotalCount"),k=Ie("context");if(I===0&&y)return w.createElement(y,Ct(y,k));const F=e.offsetTop+_+h,R=e.offsetBottom,$=F>0?w.createElement(b,{height:F,key:"padding-top",context:k}):null,j=R>0?w.createElement(b,{height:R,key:"padding-bottom",context:k}):null,A=e.items.map(D=>{const L=D.originalIndex,z=x(L+P,D.data,k);return T?w.createElement(v,{...Ct(v,k),key:z,index:D.index,height:D.size,type:D.type||"item"}):w.createElement(S,{...Ct(S,k),...tA(S,D.data),key:z,"data-index":L,"data-known-size":D.size,"data-item-index":D.index,style:xA},l(D.index,D.data,k))});return w.createElement(g,{ref:d,"data-testid":"virtuoso-item-list",...Ct(g,k)},[$,...A,j])}),SA=({children:t})=>{const e=w.useContext(Dy),n=zt("viewportHeight"),r=zt("fixedItemHeight"),o=dr(fs(n,i=>Vn(i,"height")));return w.useEffect(()=>{e&&(n(e.viewportHeight),r(e.itemHeight))},[e,n,r]),w.createElement("div",{style:ra(),ref:o,"data-viewport-type":"element"},t)},TA=({children:t})=>{const e=w.useContext(Dy),n=zt("windowViewportRect"),r=zt("fixedItemHeight"),o=Ie("customScrollParent"),i=ky(n,o);return w.useEffect(()=>{e&&(r(e.itemHeight),n({offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:100}))},[e,n,r]),w.createElement("div",{ref:i,style:ra(),"data-viewport-type":"window"},t)},EA=w.memo(function(e){const n=Ie("useWindowScroll"),r=Ie("customScrollParent"),o=zt("fixedHeaderHeight"),i=zt("fixedFooterHeight"),s=Ie("fixedHeaderContent"),a=Ie("fixedFooterContent"),l=Ie("context"),c=dr(fs(o,b=>Vn(b,"height"))),u=dr(fs(i,b=>Vn(b,"height"))),f=r||n?AA:RA,d=r||n?TA:SA,p=Ie("TableComponent"),h=Ie("TableHeadComponent"),m=Ie("TableFooterComponent"),y=s?w.createElement(h,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:c,...Ct(h,l)},s()):null,v=a?w.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:u,...Ct(m,l)},a()):null;return w.createElement(f,{...e},w.createElement(d,null,w.createElement(p,{style:{borderSpacing:0,overflowAnchor:"none"},...Ct(p,l)},[y,w.createElement(wA,{key:"TableBody"}),v])))}),{Component:CA,usePublisher:zt,useEmitterValue:Ie,useEmitter:Cu}=py(yA,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},EA),RA=Fy({usePublisher:zt,useEmitterValue:Ie,useEmitter:Cu}),AA=Ly({usePublisher:zt,useEmitterValue:Ie,useEmitter:Cu}),_A=CA;var PA=Error,OA=EvalError,IA=RangeError,kA=ReferenceError,$y=SyntaxError,pi=TypeError,DA=URIError,MA=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;e[n]=o;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},kp=typeof Symbol<"u"&&Symbol,jA=MA,FA=function(){return typeof kp!="function"||typeof Symbol!="function"||typeof kp("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jA()},Za={__proto__:null,foo:{}},LA=Object,NA=function(){return{__proto__:Za}.foo===Za.foo&&!(Za instanceof LA)},VA="Function.prototype.bind called on incompatible ",$A=Object.prototype.toString,BA=Math.max,zA="[object Function]",Dp=function(e,n){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var i=0;i<n.length;i+=1)r[i+e.length]=n[i];return r},HA=function(e,n){for(var r=[],o=n,i=0;o<e.length;o+=1,i+=1)r[i]=e[o];return r},WA=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n},UA=function(e){var n=this;if(typeof n!="function"||$A.apply(n)!==zA)throw new TypeError(VA+n);for(var r=HA(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,Dp(r,arguments));return Object(u)===u?u:this}return n.apply(e,Dp(r,arguments))},s=BA(0,n.length-r.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(o=Function("binder","return function ("+WA(a,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},GA=UA,Ru=Function.prototype.bind||GA,KA=Function.prototype.call,ZA=Object.prototype.hasOwnProperty,qA=Ru,YA=qA.call(KA,ZA),we,XA=PA,JA=OA,QA=IA,e_=kA,Gr=$y,Lr=pi,t_=DA,By=Function,qa=function(t){try{return By('"use strict"; return ('+t+").constructor;")()}catch{}},sr=Object.getOwnPropertyDescriptor;if(sr)try{sr({},"")}catch{sr=null}var Ya=function(){throw new Lr},n_=sr?function(){try{return arguments.callee,Ya}catch{try{return sr(arguments,"callee").get}catch{return Ya}}}():Ya,Sr=FA(),r_=NA(),nt=Object.getPrototypeOf||(r_?function(t){return t.__proto__}:null),Cr={},o_=typeof Uint8Array>"u"||!nt?we:nt(Uint8Array),ar={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":Sr&&nt?nt([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Cr,"%AsyncGenerator%":Cr,"%AsyncGeneratorFunction%":Cr,"%AsyncIteratorPrototype%":Cr,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XA,"%eval%":eval,"%EvalError%":JA,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":By,"%GeneratorFunction%":Cr,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sr&&nt?nt(nt([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Sr||!nt?we:nt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":QA,"%ReferenceError%":e_,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Sr||!nt?we:nt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sr&&nt?nt(""[Symbol.iterator]()):we,"%Symbol%":Sr?Symbol:we,"%SyntaxError%":Gr,"%ThrowTypeError%":n_,"%TypedArray%":o_,"%TypeError%":Lr,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":t_,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet};if(nt)try{null.error}catch(t){var i_=nt(nt(t));ar["%Error.prototype%"]=i_}var s_=function t(e){var n;if(e==="%AsyncFunction%")n=qa("async function () {}");else if(e==="%GeneratorFunction%")n=qa("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=qa("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&nt&&(n=nt(o.prototype))}return ar[e]=n,n},Mp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},hi=Ru,gs=YA,a_=hi.call(Function.call,Array.prototype.concat),l_=hi.call(Function.apply,Array.prototype.splice),jp=hi.call(Function.call,String.prototype.replace),ys=hi.call(Function.call,String.prototype.slice),c_=hi.call(Function.call,RegExp.prototype.exec),u_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f_=/\\(\\)?/g,d_=function(e){var n=ys(e,0,1),r=ys(e,-1);if(n==="%"&&r!=="%")throw new Gr("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Gr("invalid intrinsic syntax, expected opening `%`");var o=[];return jp(e,u_,function(i,s,a,l){o[o.length]=a?jp(l,f_,"$1"):s||i}),o},p_=function(e,n){var r=e,o;if(gs(Mp,r)&&(o=Mp[r],r="%"+o[0]+"%"),gs(ar,r)){var i=ar[r];if(i===Cr&&(i=s_(r)),typeof i>"u"&&!n)throw new Lr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new Gr("intrinsic "+e+" does not exist!")},so=function(e,n){if(typeof e!="string"||e.length===0)throw new Lr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Lr('"allowMissing" argument must be a boolean');if(c_(/^%?[^%]*%?$/,e)===null)throw new Gr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=d_(e),o=r.length>0?r[0]:"",i=p_("%"+o+"%",n),s=i.name,a=i.value,l=!1,c=i.alias;c&&(o=c[0],l_(r,a_([0,1],c)));for(var u=1,f=!0;u<r.length;u+=1){var d=r[u],p=ys(d,0,1),h=ys(d,-1);if((p==='"'||p==="'"||p==="`"||h==='"'||h==="'"||h==="`")&&p!==h)throw new Gr("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(l=!0),o+="."+d,s="%"+o+"%",gs(ar,s))a=ar[s];else if(a!=null){if(!(d in a)){if(!n)throw new Lr("base intrinsic for "+e+" exists, but the property is not available.");return}if(sr&&u+1>=r.length){var m=sr(a,d);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else f=gs(a,d),a=a[d];f&&!l&&(ar[s]=a)}}return a},zy={exports:{}},Xa,Fp;function Au(){if(Fp)return Xa;Fp=1;var t=so,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Xa=e,Xa}var h_=so,$i=h_("%Object.getOwnPropertyDescriptor%",!0);if($i)try{$i([],"length")}catch{$i=null}var Hy=$i,Lp=Au(),m_=$y,Tr=pi,Np=Hy,g_=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Tr("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Tr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tr("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Np&&Np(e,n);if(Lp)Lp(e,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)e[n]=r;else throw new m_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Zl=Au(),Wy=function(){return!!Zl};Wy.hasArrayLengthDefineBug=function(){if(!Zl)return null;try{return Zl([],"length",{value:1}).length!==1}catch{return!0}};var y_=Wy,v_=so,Vp=g_,b_=y_(),$p=Hy,Bp=pi,x_=v_("%Math.floor%"),w_=function(e,n){if(typeof e!="function")throw new Bp("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||x_(n)!==n)throw new Bp("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&$p){var s=$p(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(b_?Vp(e,"length",n,!0,!0):Vp(e,"length",n)),e};(function(t){var e=Ru,n=so,r=w_,o=pi,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||e.call(s,i),l=Au(),c=n("%Math.max%");t.exports=function(d){if(typeof d!="function")throw new o("a function is required");var p=a(e,s,arguments);return r(p,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return a(e,i,arguments)};l?l(t.exports,"apply",{value:u}):t.exports.apply=u})(zy);var S_=zy.exports,Uy=so,Gy=S_,T_=Gy(Uy("String.prototype.indexOf")),E_=function(e,n){var r=Uy(e,!!n);return typeof r=="function"&&T_(e,".prototype.")>-1?Gy(r):r};const C_={},R_=Object.freeze(Object.defineProperty({__proto__:null,default:C_},Symbol.toStringTag,{value:"Module"})),A_=M0(R_);var _u=typeof Map=="function"&&Map.prototype,Ja=Object.getOwnPropertyDescriptor&&_u?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,vs=_u&&Ja&&typeof Ja.get=="function"?Ja.get:null,zp=_u&&Map.prototype.forEach,Pu=typeof Set=="function"&&Set.prototype,Qa=Object.getOwnPropertyDescriptor&&Pu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,bs=Pu&&Qa&&typeof Qa.get=="function"?Qa.get:null,Hp=Pu&&Set.prototype.forEach,__=typeof WeakMap=="function"&&WeakMap.prototype,Po=__?WeakMap.prototype.has:null,P_=typeof WeakSet=="function"&&WeakSet.prototype,Oo=P_?WeakSet.prototype.has:null,O_=typeof WeakRef=="function"&&WeakRef.prototype,Wp=O_?WeakRef.prototype.deref:null,I_=Boolean.prototype.valueOf,k_=Object.prototype.toString,D_=Function.prototype.toString,M_=String.prototype.match,Ou=String.prototype.slice,On=String.prototype.replace,j_=String.prototype.toUpperCase,Up=String.prototype.toLowerCase,Ky=RegExp.prototype.test,Gp=Array.prototype.concat,en=Array.prototype.join,F_=Array.prototype.slice,Kp=Math.floor,ql=typeof BigInt=="function"?BigInt.prototype.valueOf:null,el=Object.getOwnPropertySymbols,Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Kr||!0)?Symbol.toStringTag:null,Zy=Object.prototype.propertyIsEnumerable,Zp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function qp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Ky.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-Kp(-t):Kp(t);if(r!==t){var o=String(r),i=Ou.call(e,o.length+1);return On.call(o,n,"$&_")+"."+On.call(On.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return On.call(e,n,"$&_")}var Xl=A_,Yp=Xl.custom,Xp=Yy(Yp)?Yp:null,L_=function t(e,n,r,o){var i=n||{};if(An(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(An(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=An(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(An(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(An(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Jy(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?qp(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return a?qp(e,c):c}var u=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof e=="object")return Jl(e)?"[Array]":"[Object]";var f=tP(i,r);if(typeof o>"u")o=[];else if(Xy(o,e)>=0)return"[Circular]";function d($,j,A){if(j&&(o=F_.call(o),o.push(j)),A){var D={depth:i.depth};return An(i,"quoteStyle")&&(D.quoteStyle=i.quoteStyle),t($,D,r+1,o)}return t($,i,r+1,o)}if(typeof e=="function"&&!Jp(e)){var p=G_(e),h=Ai(e,d);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+en.call(h,", ")+" }":"")}if(Yy(e)){var m=Kr?On.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Yl.call(e);return typeof e=="object"&&!Kr?po(m):m}if(J_(e)){for(var y="<"+Up.call(String(e.nodeName)),v=e.attributes||[],b=0;b<v.length;b++)y+=" "+v[b].name+"="+qy(N_(v[b].value),"double",i);return y+=">",e.childNodes&&e.childNodes.length&&(y+="..."),y+="</"+Up.call(String(e.nodeName))+">",y}if(Jl(e)){if(e.length===0)return"[]";var g=Ai(e,d);return f&&!eP(g)?"["+Ql(g,f)+"]":"[ "+en.call(g,", ")+" ]"}if($_(e)){var S=Ai(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Zy.call(e,"cause")?"{ ["+String(e)+"] "+en.call(Gp.call("[cause]: "+d(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+en.call(S,", ")+" }"}if(typeof e=="object"&&s){if(Xp&&typeof e[Xp]=="function"&&Xl)return Xl(e,{depth:u-r});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(K_(e)){var x=[];return zp&&zp.call(e,function($,j){x.push(d(j,e,!0)+" => "+d($,e))}),Qp("Map",vs.call(e),x,f)}if(Y_(e)){var T=[];return Hp&&Hp.call(e,function($){T.push(d($,e))}),Qp("Set",bs.call(e),T,f)}if(Z_(e))return tl("WeakMap");if(X_(e))return tl("WeakSet");if(q_(e))return tl("WeakRef");if(z_(e))return po(d(Number(e)));if(W_(e))return po(d(ql.call(e)));if(H_(e))return po(I_.call(e));if(B_(e))return po(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof xf<"u"&&e===xf)return"{ [object globalThis] }";if(!V_(e)&&!Jp(e)){var _=Ai(e,d),P=Zp?Zp(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",k=!P&&mt&&Object(e)===e&&mt in e?Ou.call(Gn(e),8,-1):I?"Object":"",F=P||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",R=F+(k||I?"["+en.call(Gp.call([],k||[],I||[]),": ")+"] ":"");return _.length===0?R+"{}":f?R+"{"+Ql(_,f)+"}":R+"{ "+en.call(_,", ")+" }"}return String(e)};function qy(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function N_(t){return On.call(String(t),/"/g,""")}function Jl(t){return Gn(t)==="[object Array]"&&(!mt||!(typeof t=="object"&&mt in t))}function V_(t){return Gn(t)==="[object Date]"&&(!mt||!(typeof t=="object"&&mt in t))}function Jp(t){return Gn(t)==="[object RegExp]"&&(!mt||!(typeof t=="object"&&mt in t))}function $_(t){return Gn(t)==="[object Error]"&&(!mt||!(typeof t=="object"&&mt in t))}function B_(t){return Gn(t)==="[object String]"&&(!mt||!(typeof t=="object"&&mt in t))}function z_(t){return Gn(t)==="[object Number]"&&(!mt||!(typeof t=="object"&&mt in t))}function H_(t){return Gn(t)==="[object Boolean]"&&(!mt||!(typeof t=="object"&&mt in t))}function Yy(t){if(Kr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Yl)return!1;try{return Yl.call(t),!0}catch{}return!1}function W_(t){if(!t||typeof t!="object"||!ql)return!1;try{return ql.call(t),!0}catch{}return!1}var U_=Object.prototype.hasOwnProperty||function(t){return t in this};function An(t,e){return U_.call(t,e)}function Gn(t){return k_.call(t)}function G_(t){if(t.name)return t.name;var e=M_.call(D_.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Xy(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function K_(t){if(!vs||!t||typeof t!="object")return!1;try{vs.call(t);try{bs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Z_(t){if(!Po||!t||typeof t!="object")return!1;try{Po.call(t,Po);try{Oo.call(t,Oo)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function q_(t){if(!Wp||!t||typeof t!="object")return!1;try{return Wp.call(t),!0}catch{}return!1}function Y_(t){if(!bs||!t||typeof t!="object")return!1;try{bs.call(t);try{vs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function X_(t){if(!Oo||!t||typeof t!="object")return!1;try{Oo.call(t,Oo);try{Po.call(t,Po)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function J_(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Jy(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Jy(Ou.call(t,0,e.maxStringLength),e)+r}var o=On.call(On.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Q_);return qy(o,"single",e)}function Q_(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+j_.call(e.toString(16))}function po(t){return"Object("+t+")"}function tl(t){return t+" { ? }"}function Qp(t,e,n,r){var o=r?Ql(n,r):en.call(n,", ");return t+" ("+e+") {"+o+"}"}function eP(t){for(var e=0;e<t.length;e++)if(Xy(t[e],`
|
|
116
|
-
`)>=0)return!1;return!0}function tP(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=en.call(Array(t.indent+1)," ");else return null;return{base:n,prev:en.call(Array(e+1),n)}}function Ql(t,e){if(t.length===0)return"";var n=`
|
|
117
|
-
`+e.prev+e.base;return n+en.call(t,","+n)+`
|
|
118
|
-
`+e.prev}function Ai(t,e){var n=Jl(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=An(t,o)?e(t[o],t):""}var i=typeof el=="function"?el(t):[],s;if(Kr){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var l in t)An(t,l)&&(n&&String(Number(l))===l&&l<t.length||Kr&&s["$"+l]instanceof Symbol||(Ky.call(/[^\w$]/,l)?r.push(e(l,t)+": "+e(t[l],t)):r.push(l+": "+e(t[l],t))));if(typeof el=="function")for(var c=0;c<i.length;c++)Zy.call(t,i[c])&&r.push("["+e(i[c])+"]: "+e(t[i[c]],t));return r}var Qy=so,ao=E_,nP=L_,rP=pi,_i=Qy("%WeakMap%",!0),Pi=Qy("%Map%",!0),oP=ao("WeakMap.prototype.get",!0),iP=ao("WeakMap.prototype.set",!0),sP=ao("WeakMap.prototype.has",!0),aP=ao("Map.prototype.get",!0),lP=ao("Map.prototype.set",!0),cP=ao("Map.prototype.has",!0),Iu=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},uP=function(t,e){var n=Iu(t,e);return n&&n.value},fP=function(t,e,n){var r=Iu(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},dP=function(t,e){return!!Iu(t,e)},pP=function(){var e,n,r,o={assert:function(i){if(!o.has(i))throw new rP("Side channel does not contain "+nP(i))},get:function(i){if(_i&&i&&(typeof i=="object"||typeof i=="function")){if(e)return oP(e,i)}else if(Pi){if(n)return aP(n,i)}else if(r)return uP(r,i)},has:function(i){if(_i&&i&&(typeof i=="object"||typeof i=="function")){if(e)return sP(e,i)}else if(Pi){if(n)return cP(n,i)}else if(r)return dP(r,i);return!1},set:function(i,s){_i&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new _i),iP(e,i,s)):Pi?(n||(n=new Pi),lP(n,i,s)):(r||(r={key:{},next:null}),fP(r,i,s))}};return o},hP=String.prototype.replace,mP=/%20/g,nl={RFC1738:"RFC1738",RFC3986:"RFC3986"},ev={default:nl.RFC3986,formatters:{RFC1738:function(t){return hP.call(t,mP,"+")},RFC3986:function(t){return String(t)}},RFC1738:nl.RFC1738,RFC3986:nl.RFC3986},gP=ev,rl=Object.prototype.hasOwnProperty,Qn=Array.isArray,Yt=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),yP=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(Qn(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},tv=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(r[o]=e[o]);return r},vP=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(Qn(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!rl.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var o=e;return Qn(e)&&!Qn(n)&&(o=tv(e,r)),Qn(e)&&Qn(n)?(n.forEach(function(i,s){if(rl.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,r):e.push(i)}else e[s]=i}),e):Object.keys(n).reduce(function(i,s){var a=n[s];return rl.call(i,s)?i[s]=t(i[s],a,r):i[s]=a,i},o)},bP=function(e,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},e)},xP=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},wP=function(e,n,r,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===gP.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Yt[c];continue}if(c<2048){a=a+(Yt[192|c>>6]+Yt[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Yt[224|c>>12]+Yt[128|c>>6&63]+Yt[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Yt[240|c>>18]+Yt[128|c>>12&63]+Yt[128|c>>6&63]+Yt[128|c&63]}return a},SP=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:s,prop:c}),r.push(u))}return yP(n),e},TP=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},EP=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},CP=function(e,n){return[].concat(e,n)},RP=function(e,n){if(Qn(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(n(e[o]));return r}return n(e)},nv={arrayToObject:tv,assign:bP,combine:CP,compact:SP,decode:xP,encode:wP,isBuffer:EP,isRegExp:TP,maybeMap:RP,merge:vP},AP=nv,rv=ev,_P=Date.prototype.toISOString,eh=rv.default;AP.encode,rv.formatters[eh];var PP=nv;PP.decode;var th=t=>Array.isArray(t),ol=t=>t===void 0,il=t=>t===null,OP=Function.bind.call(Function.call,Object.prototype.toString),IP=t=>!!t&&OP(t)==="[object Error]"||t instanceof Error,ov=(t,e)=>t instanceof e,kP=t=>{const e=typeof t;return e==="undefined"||e===null||e==="number"||e==="string"||e==="boolean"||e==="bigint"},DP=t=>Object.prototype.toString.call(t)==="[object Date]"&&ov(t,Date),Bi={array:th,date:DP,empty:t=>il(t)||ol(t)?!0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t==="":Array.isArray(t)?t.length===0:Number.isNaN(t),function:t=>typeof t=="function",instance:ov,isError:IP,keyof:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),nan:t=>Number.isNaN(t),nil:t=>il(t)||ol(t),null:il,number:t=>typeof t=="number"||!Number.isNaN(t),object:t=>!th(t)&&typeof t=="object",primitive:kP,string:t=>typeof t=="string",undefined:ol},ec=(t,e,n)=>{const[r,...o]=e;if(o.length>0){if(!t[r]){const i=`${+o[0]}`===o[0];t[r]=i?[]:{}}if(typeof t[r]!="object"){const i=`${+o[0]}`===o[0];t[r]=ec(i?[]:{},o,n)}else t[r]=ec(t[r],o,n)}else t[r]=n;return t},MP=t=>Object.keys(t),jP=t=>t.replace("[",".").replace("]","").split("."),nh=(t,e,n)=>{const r=Array.isArray(e)?e:jP(e),o=structuredClone(t);return ec(o,r,n),o},sl={},al={exports:{}},ll={};/**
|
|
119
|
-
* @license React
|
|
120
|
-
* use-sync-external-store-shim.production.min.js
|
|
121
|
-
*
|
|
122
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the MIT license found in the
|
|
125
|
-
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/var rh;function FP(){if(rh)return ll;rh=1;var t=w;function e(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(f,d){var p=d(),h=r({inst:{value:p,getSnapshot:d}}),m=h[0].inst,y=h[1];return i(function(){m.value=p,m.getSnapshot=d,l(m)&&y({inst:m})},[f,p,d]),o(function(){return l(m)&&y({inst:m}),f(function(){l(m)&&y({inst:m})})},[f]),s(p),p}function l(f){var d=f.getSnapshot;f=f.value;try{var p=d();return!n(f,p)}catch{return!0}}function c(f,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return ll.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,ll}var oh={};/**
|
|
127
|
-
* @license React
|
|
128
|
-
* use-sync-external-store-shim.development.js
|
|
129
|
-
*
|
|
130
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the MIT license found in the
|
|
133
|
-
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var ih;function LP(){return ih||(ih=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=w,e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(g){{for(var S=arguments.length,x=new Array(S>1?S-1:0),T=1;T<S;T++)x[T-1]=arguments[T];r("error",g,x)}}function r(g,S,x){{var T=e.ReactDebugCurrentFrame,_=T.getStackAddendum();_!==""&&(S+="%s",x=x.concat([_]));var P=x.map(function(I){return String(I)});P.unshift("Warning: "+S),Function.prototype.apply.call(console[g],console,P)}}function o(g,S){return g===S&&(g!==0||1/g===1/S)||g!==g&&S!==S}var i=typeof Object.is=="function"?Object.is:o,s=t.useState,a=t.useEffect,l=t.useLayoutEffect,c=t.useDebugValue,u=!1,f=!1;function d(g,S,x){u||t.startTransition!==void 0&&(u=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=S();if(!f){var _=S();i(T,_)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var P=s({inst:{value:T,getSnapshot:S}}),I=P[0].inst,k=P[1];return l(function(){I.value=T,I.getSnapshot=S,p(I)&&k({inst:I})},[g,T,S]),a(function(){p(I)&&k({inst:I});var F=function(){p(I)&&k({inst:I})};return g(F)},[g]),c(T),T}function p(g){var S=g.getSnapshot,x=g.value;try{var T=S();return!i(x,T)}catch{return!0}}function h(g,S,x){return S()}var m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!m,v=y?h:d,b=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v;oh.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),oh}var sh;function iv(){return sh||(sh=1,process.env.NODE_ENV==="production"?al.exports=FP():al.exports=LP()),al.exports}/**
|
|
135
|
-
* @license React
|
|
136
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
137
|
-
*
|
|
138
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the MIT license found in the
|
|
141
|
-
* LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/var ah;function NP(){if(ah)return sl;ah=1;var t=w,e=iv();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return sl.useSyncExternalStoreWithSelector=function(c,u,f,d,p){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=a(function(){function v(T){if(!b){if(b=!0,g=T,T=d(T),p!==void 0&&m.hasValue){var _=m.value;if(p(_,T))return S=_}return S=T}if(_=S,r(g,T))return _;var P=d(T);return p!==void 0&&p(_,P)?_:(g=T,S=P)}var b=!1,g,S,x=f===void 0?null:f;return[function(){return v(u())},x===null?void 0:function(){return v(x())}]},[u,f,d,p]);var y=o(c,h[0],h[1]);return s(function(){m.hasValue=!0,m.value=y},[y]),l(y),y},sl}var lh={};/**
|
|
143
|
-
* @license React
|
|
144
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
145
|
-
*
|
|
146
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the MIT license found in the
|
|
149
|
-
* LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/var ch;function VP(){return ch||(ch=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=w,e=iv();function n(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;function c(u,f,d,p,h){var m=i(null),y;m.current===null?(y={hasValue:!1,value:null},m.current=y):y=m.current;var v=a(function(){var x=!1,T,_,P=function(R){if(!x){x=!0,T=R;var $=p(R);if(h!==void 0&&y.hasValue){var j=y.value;if(h(j,$))return _=j,j}return _=$,$}var A=T,D=_;if(r(A,R))return D;var L=p(R);return h!==void 0&&h(D,L)?D:(T=R,_=L,L)},I=d===void 0?null:d,k=function(){return P(f())},F=I===null?void 0:function(){return P(I())};return[k,F]},[f,d,p,h]),b=v[0],g=v[1],S=o(u,b,g);return s(function(){y.hasValue=!0,y.value=S},[S]),l(S),S}lh.useSyncExternalStoreWithSelector=c,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),lh}process.env.NODE_ENV==="production"?NP():VP();const Er=t=>{const e=w.useRef(t??{});return w.useEffect(()=>void(e.current=t),[t]),e},$P=t=>{const e=w.useRef();return w.useEffect(()=>{e.current=t},[t]),e.current},BP=t=>Object.entries(t),sv=t=>t instanceof Promise,av=(t,e,n,r)=>e===t?n.reduce((o,i)=>i(o,e,r),t):t.constructor.name===Object.name?n.reduce((o,i)=>i(o,e,r),{...e,...t}):n.reduce((o,i)=>i(o,e,r),t),zP=(t,e,n,r,o,i)=>(...s)=>{const a=performance.now(),l=e(...s),c=(u,f)=>n(d=>av(u,d,i,f));return sv(l)?l.then(u=>{o.current={method:t,props:r(),time:performance.now()-a},c(u,o.current)}):(o.current={method:t,props:r(),time:performance.now()-a},void c(l,o.current))},HP=(t,e,n,r,o,i)=>(...s)=>{o.current={method:t,time:0,props:r()};const a=e(...s),l=c=>n(u=>av(c,u,i,o.current));return sv(a)?a.then(c=>l(c)):l(a)},WP=(t,e,n)=>{const[r,o]=w.useState(()=>t),i=Er(r),s=Er((n==null?void 0:n.props)??{}),a=Er(e),l=Er((n==null?void 0:n.postMiddleware)??[]),c=Er((n==null?void 0:n.interceptor)??[]),u=w.useRef(t),f=$P(r),d=Er(f),p=w.useRef(null);w.useEffect(()=>{if(p.current===null)return;const m=p.current;l.current.forEach(y=>{y(r,f,m)})},[r,l,f]);const[h]=w.useState(()=>{const m=()=>s.current,y=a.current({props:m,state:()=>i.current,initialState:u.current,previousState:()=>d.current});return BP(y).reduce((v,[b,g])=>({...v,[b]:n!=null&&n.debug?zP(b,g,o,m,p,c.current):HP(b,g,o,m,p,c.current)}),{})});return[r,h,s.current]},oa=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)}),uh=(t,e,n)=>t.split(e).filter(Boolean).reduce((r,o)=>r!=null?r[o]:r,n),fh={basic:/[,[\]]+?/,extend:/[,[\].]+?/},lv=(t,e)=>{const n=uh(e,fh.basic,t)||uh(e,fh.extend,t);return n===void 0||n===t?void 0:n},UP=()=>typeof window>"u";var GP={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=(y,v)=>{try{Object.keys(y).forEach(v)}catch(b){window.console.log(b)}},n=y=>y==null,r=y=>{const v=typeof y;return v==="string"||v==="number"||v==="boolean"||n(y)},o=(y,v)=>{const b=v.getItem(y);try{return JSON.parse(b)}catch{return b??null}},i=y=>Object.keys(y).reduce((v,b)=>({...v,[b]:o(b,y)}),{}),s=y=>y instanceof Date?y:typeof y=="number"?new Date(new Date*1+y*864e5):y,a="1969-12-31T23:59:59.000Z",l=()=>document.cookie===""?{}:document.cookie.split("; ").map(y=>y.split("=")).reduce((y,v)=>(y[decodeURIComponent(v[0].trim())]=decodeURIComponent(v[1].trim()),y),{}),c=new Set,u=()=>{const y=l();c.forEach(v=>v(y))},f=[{name:"expires",parse:y=>`expires=${s(y.expires??a)}`},{name:"maxAge",parse:y=>y.maxAge?`max-age=${s(y.expires??a)}`:""},{name:"path",parse:y=>`path=${y.path??"/"}`},{name:"sameSite",parse:y=>`samesite=${y.sameSite??"strict"}`},{name:"useSecure",parse:y=>`${y.useSecure??!0?"secure":""}`},{name:"domain",parse:y=>{const v=y.domain??"";return v===""?"":`domain=${y.multiDomain?".":""}${v}`}},{name:"partitioned",parse:y=>y.partitioned?"Partitioned":""}],d={json:l,listener:y=>(c.add(y),()=>c.delete(y)),clearListeners:()=>c.clear(),has:y=>document.cookie.split(";").some(v=>v.trim().startsWith(`${y}=`)),deleteAll:()=>{document.cookie.split(";").forEach(y=>{document.cookie=y.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}),u()},get:y=>{const v=d.json()[y];if(n(v))return null;try{return JSON.parse(decodeURIComponent(v))}catch{return v}},delete:y=>{document.cookie=`${encodeURIComponent(y)}=;expires=${new Date().toUTCString()}`,u()},set:(y,v,b={})=>{const g=r(v)?v:encodeURIComponent(JSON.stringify(v)),S=f.reduce((x,T)=>{const _=T.parse(b);return _===""?x:x.concat(_)},[`${encodeURIComponent(y)}=${g}`]).join(";");document.cookie=S,u()}},p=y=>{const v=new Set,b=g=>{y().removeItem(g);const S=i(y());v.forEach(x=>x(S))};return{delete:b,listener:g=>(v.add(g),()=>v.delete(g)),clearListeners:()=>v.clear(),json:(g=!1)=>g?i(y()):y(),has:g=>{const S=y().getItem(g);return!n(S)},deleteAll:()=>{e(y(),b),v.forEach(g=>g(y()))},get:g=>o(g,y()),set:(g,S)=>{y().setItem(g,JSON.stringify(S)),v.forEach(x=>x(y()))}}},h=p(()=>window.sessionStorage),m=p(()=>window.localStorage);t.Cookie=d,t.LocalStorage=m,t.SessionStorage=h,t.createStorage=p})(GP);const cv=t=>t.headerLabel??t.thead??t.id,uv=t=>t.map(e=>({value:e.id,label:e.thead??e.headerLabel??e.id}));var Io=(t=>(t.Boolean="boolean",t.Number="number",t.Select="select",t.Text="text",t))(Io||{});const ku=t=>t.type==="number"?t.valueAsNumber:t.value,yt={contains:{value:"contains",label:"Contains",symbol:"includes"},is:{value:"is",label:"Is",symbol:"is"},isNot:{value:"isNot",label:"Is not",symbol:"!=="},notContains:{value:"notContains",label:"Does not contains",symbol:"notIncludes"},lessThan:{value:"lessThan",label:"Less Than",symbol:"<="},greaterThan:{value:"greaterThan",label:"Greater than",symbol:">="},startsWith:{value:"startsWith",label:"Starts with",symbol:"startsWith"},endsWith:{value:"endsWith",label:"Ends with",symbol:"endsWith"}},Du={[Io.Text]:[yt.is,yt.isNot,yt.contains,yt.notContains,yt.startsWith,yt.endsWith],[Io.Boolean]:[yt.is,yt.isNot],[Io.Number]:[yt.is,yt.isNot,yt.greaterThan,yt.lessThan]},xs=(t,e={})=>{var s;const n=t.id,r=t.type??Io.Text,o=(s=Du[r])==null?void 0:s[0].value,i=yt[o];return{id:oa(),operation:i,label:cv(t),name:n,type:r,value:"",...e}},KP=t=>{const e=()=>{const s=t.cols.at(0);t.set(a=>[...a,xs(s)])},n=s=>{const a=s.target.dataset.id||"",l=s.target.value;t.set(c=>c.map(u=>{if(a!==u.id)return u;const f=t.cols.find(d=>l===d.id);return xs(f,{value:""})}))},r=s=>{const a=s.target.dataset.id||"",l=s.target.value;t.set(c=>c.map(u=>u.id===a?{...u,operation:yt[l]}:u))},o=s=>{const a=s.currentTarget.dataset.id||"";console.log({id:a,f:t.filters}),t.set(l=>l.filter(c=>c.id!==a))},i=s=>{const a=s.target.dataset.id||"",l=ku(s.target);t.set(c=>c.map(u=>u.id===a?{...u,value:l}:u))};return E.jsx(w.Fragment,{children:E.jsx(oi,{arrow:!1,title:"Filters",trigger:E.jsxs("span",{className:"flex items-center gap-1 proportional-nums",children:[E.jsx(rm,{size:14}),"Filtros ",t.filters.length===0?"":` (${t.filters.length})`]}),children:E.jsxs("ul",{className:"mt-4 space-y-2",children:[t.filters.map(s=>{const a=Du[s.type];return E.jsxs("li",{className:"flex flex-nowrap gap-3",children:[E.jsx(fr,{title:"Filtro",options:t.options,placeholder:"Seleciona um campo...",value:s.name,"data-id":s.id,onChange:n}),E.jsx(fr,{title:"Tipo do filtro","data-id":s.id,onChange:r,value:s.operation.value,options:a,placeholder:"Operação..."}),E.jsx(Fc,{"data-id":s.id,onChange:i,placeholder:"Buscar por...",title:"Valor do filtro",type:s.type,value:s.value}),E.jsx("div",{className:"flex items-center justify-center mt-5",children:E.jsx("button",{"data-id":s.id,type:"button",onClick:o,children:E.jsx(No,{className:"text-danger",size:16})})})]},`filter-select-${s.id}`)}),E.jsx("li",{children:E.jsxs("button",{type:"button",onClick:e,className:"text-primary flex items-center gap-1",children:[E.jsx(kc,{size:14})," Adicionar novo filtro"]})})]})})})},ZP=({filter:t,set:e})=>{const n=o=>{const i=o.target.value,s=o.target.dataset.id||"";e(a=>a.map(l=>l.id===s?{...l,operation:yt[i]}:l))},r=o=>{const i=o.target.dataset.id||"",s=ku(o.target);e(a=>a.map(l=>l.id===i?{...l,value:s}:l))};return E.jsxs("div",{className:"flex flex-nowrap items-center gap-4 py-2",children:[E.jsx(fr,{onChange:n,value:t.operation.value,options:Du[t.type],placeholder:"Operation..."}),E.jsx(Fc,{type:t.type,"data-id":t.id,onChange:r,placeholder:"Looking for...",value:t.value})]})},qP=({item:t,onPointerDown:e})=>{const n=hu(0);return E.jsxs(Xs.Item,{onPointerDown:e,id:t.groupId,className:"flex flex-row items-center gap-2",value:t,style:{y:n},children:[E.jsx("button",{className:"cursor-grab",children:E.jsx(Ex,{size:14})}),E.jsx("span",{children:t.groupName})]},t.groupId)},YP=t=>{var a;const e=uv(t.cols),n=LC(),[r,o]=w.useState(((a=t.groups[0])==null?void 0:a.thead)||""),i=l=>{var m;const c=l.target,u=c.value,f=c.options.selectedIndex,d=((m=c.options.item(f))==null?void 0:m.label)||"";o(d);const p=new cy(t.rows).GroupBy(u),h=t.cols.find(y=>y.id===u);t.setGroups(MP(p).map((y,v)=>{const b=p[y];return{...h,groupId:oa(),groupKey:u,index:v,rows:b,groupName:y}}))},s=l=>t.setGroups([]);return E.jsx(w.Fragment,{children:E.jsxs(oi,{arrow:!1,title:"Groups",trigger:E.jsxs("span",{className:"flex items-center gap-1 proportional-nums",children:[E.jsx(Cx,{size:14}),"Groups",t.groups.length>0?` - ${r}(${t.groups.length})`:""]}),children:[E.jsxs("div",{className:"flex flex-nowrap items-center",children:[E.jsx(fr,{value:r,title:"Tipo de agrupamento",onChange:i,options:e,placeholder:"Agrupar por..."}),E.jsx(ns,{className:"mt-4",onClick:s,theme:"raw","data-id":r,children:E.jsx(No,{size:16,className:"text-danger"})})]}),t.groups.length>0?E.jsxs("section",{className:"my-4",children:[E.jsx("header",{children:E.jsx("h2",{className:"text-xl font-medium",children:"Ordenar grupos"})}),E.jsx(SC,{children:E.jsx(Xs.Group,{axis:"y",className:"relative space-y-2",dragListener:!1,dragControls:n,drag:!0,layoutScroll:!0,onReorder:t.setGroups,values:t.groups,children:t.groups.map(l=>E.jsx(qP,{item:l,onPointerDown:c=>{n.start(c),t.setGroups([...t.groups])}},l.groupId))})})]}):null]})})},XP=t=>(e,n)=>t.reduce((r,o)=>{const i=o.type==="desc"?-1:1,s=o.value,a=e[s]>n[s]?i:e[s]<n[s]?-i:0;return r!==0?r:a},0),JP=(t,e)=>t.sort(XP(e)),tc={asc:{label:"Ascending",value:"asc"},desc:{label:"Descending",value:"desc"}},QP=[tc.asc,tc.desc],nc=(t,e="asc")=>({id:oa(),type:e,value:t.id,label:tc.asc.label}),eO=t=>{const e=()=>{const i=t.cols[0];i&&t.set(s=>[...s,nc(i)])},n=i=>s=>{const a=s.target.value;t.set(l=>l.map(c=>c.id===i?{...c,value:a}:c))},r=i=>s=>{const a=s.target.value;t.set(l=>l.map(c=>c.id===i?{...c,type:a}:c))},o=i=>{const s=i.currentTarget.dataset.id||"";t.set(a=>a.filter(l=>l.id!==s))};return E.jsx(w.Fragment,{children:E.jsx(oi,{arrow:!1,title:"Order By",trigger:E.jsxs("span",{className:"flex items-center gap-1 proportional-nums text-foreground-description",children:[E.jsx(nm,{size:14}),"Order by ",t.sorters.length===0?"":` (${t.sorters.length})`]}),children:E.jsxs("ul",{className:"mt-4 space-y-2",children:[t.sorters.map(i=>E.jsxs("li",{className:"flex flex-nowrap gap-3",children:[E.jsx(fr,{onChange:n(i.id),options:t.options,placeholder:"Selecione um campo...",value:i.value}),E.jsx(fr,{onChange:r(i.id),value:i.type,options:QP,placeholder:"Operação..."}),E.jsx("button",{className:"mt-4","data-id":i.id,onClick:o,children:E.jsx(No,{className:"text-danger",size:14})})]},`sorter-select-${i.id}`)),E.jsx("li",{children:E.jsxs("button",{onClick:e,className:"text-primary flex items-center gap-1",children:[E.jsx(kc,{size:14})," Adicionar ordenação"]})})]})})})},tO=t=>{const e=t.sorters.find(i=>i.id===t.col.id),[n,r]=w.useState(e?e.type:"undefined"),o=()=>r(i=>i==="undefined"?"asc":i==="asc"?"desc":"undefined");return w.useEffect(()=>{t.setSorters(i=>{if(n==="undefined")return i.filter(a=>a.value!==t.col.id);const s=i.findIndex(a=>a.value===t.col.id);return s===-1?[...i,nc(t.col,n)]:(i[s]=nc(t.col,n),[...i])})},[n,t.col]),E.jsxs("button",{className:"isolate flex items-center",onClick:o,children:[n==="asc"?E.jsx(Ic,{size:14}):null,n==="desc"?E.jsx(xx,{size:14}):null,n==="undefined"?E.jsx(nm,{size:14}):null]})},nO=t=>E.jsx("header",{className:"min-w-full mb-1",children:E.jsxs("div",{className:"flex flex-wrap min-w-full items-center justify-between gap-x-4 gap-y-1",children:[E.jsxs("div",{className:"flex w-fit items-centeend gap-4 whitespace-nowrap py-2",children:[E.jsx("p",{children:E.jsx(KP,{cols:t.cols,options:t.options,filters:t.filters,set:t.setFilters})}),E.jsx("p",{children:E.jsx(eO,{options:t.options,cols:t.cols,sorters:t.sorters,set:t.setSorters})}),E.jsx("p",{children:E.jsx(YP,{rows:t.rows,groups:t.groups,setGroups:t.setGroups,options:t.options,cols:t.cols})})]}),E.jsx("ul",{className:"flex flex-wrap w-full flex-1 flex-grow flex-row items-center md:justify-end gap-4",children:t.filters.map(e=>E.jsxs("li",{className:"flex gap-1 items-center rounded-xl border border-card-border px-4 py-0.5",children:[E.jsxs("span",{children:[E.jsx("span",{className:"size-3 mr-2 aspect-square bg-primary inline-block rounded-full","aria-hidden":"true"}),e.label," ",e.operation.label.toLowerCase(),":"]}),E.jsxs("div",{className:"relative w-min min-w-[1ch]",children:[E.jsx("span",{"aria-hidden":"true",className:"invisible whitespace-pre p-0",children:e.value||" "}),E.jsx("input",{type:e.type,value:e.value,className:"absolute left-0 top-0 m-0 inline-block w-full bg-transparent p-0 placeholder-primary/70 outline-none [appearance:textfield] after:empty:text-primary/70 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",onChange:n=>{const r=ku(n.target);t.setFilters(o=>o.map(i=>e.id===i.id?{...i,value:r}:i))}})]})]},`filter-table-${e.id}`))})]})}),fv=(t,e)=>{const[n,r]=w.useState(()=>e||t);return w.useEffect(()=>{r(t)},[t]),[n,r]},rO={opacity:1},oO={opacity:.75,backgroundColor:"#a1a1aa"},iO={opacity:0,transition:{duration:.4,type:"spring"}},sO=t=>{var n;const e=t.filters.filter(r=>r.name===t.header.id);return E.jsx(Xs.Item,{...t.header.thProps,as:"th",exit:iO,initial:!1,dragSnapToOrigin:!0,dragDirectionLock:!0,value:t.header,whileDrag:oO,animate:rO,className:`hidden px-2 py-4 first:table-cell md:table-cell ${((n=t.header.thProps)==null?void 0:n.className)??""}`,children:E.jsx("span",{className:"flex items-center justify-between",children:E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsxs(oi,{arrow:!0,trigger:E.jsx(rm,{size:14}),onChange:r=>{r&&t.setFilters(o=>o.concat(xs(t.header,{})))},children:["Filter by: ",cv(t.header),e.length===0===null?null:E.jsxs("ul",{children:[e.map(r=>E.jsx("li",{className:"my-1",children:E.jsx(ZP,{filter:r,set:t.setFilters})},`thead-filter-${r.id}`)),E.jsx("li",{children:E.jsxs("button",{onClick:()=>t.setFilters(r=>r.concat(xs(t.header))),className:"text-primary-muted flex items-center",children:[E.jsx(kc,{size:14})," Add"]})})]})]}),E.jsx("span",{className:"pointer-events-auto text-balance text-base",children:t.header.thead}),E.jsx(tO,{col:t.header,setSorters:t.setSorters,sorters:t.sorters})]})})})},aO=t=>{const[e,n]=fv(t.headers),r=()=>t.setCols(e);return E.jsx(Xs.Group,{as:"tr",axis:"x",drag:!0,layout:!0,layoutRoot:!0,layoutScroll:!0,initial:!1,values:e,onReorder:n,onPointerUp:r,className:"bg-table-background border-none text-lg",children:E.jsx(ny,{children:e.map(o=>E.jsx(sO,{setFilters:t.setFilters,filters:t.filters,setSorters:t.setSorters,sorters:t.sorters,header:o},`header-child-item-${o.id}`))})})},lO=w.forwardRef((t,e)=>E.jsx("tbody",{...t,className:`divide-y divide-table-row ${t.className??""}`,ref:e,children:E.jsx(ny,{children:t.children})})),cO=w.forwardRef((t,e)=>E.jsx("table",{...t,ref:e,className:`table min-w-full divide-y divide-table-border table-auto text-left ${t.className??""}`})),uO=w.forwardRef((t,e)=>E.jsx("thead",{...t,className:"bg-content-bg shadow-xs group:sticky top-0",ref:e})),fO=w.forwardRef((t,e)=>E.jsx("tr",{...t,ref:e,className:`table-row ${t.className??""}`})),dO={TableHead:uO,Table:cO,TableBody:lO,TableRow:fO},pO=[0,0,0,0,0,0,0,0,0,0],dh=({filters:t,setCols:e,setFilters:n,sorters:r,cols:o,setSorters:i,...s})=>{const a=w.useMemo(()=>{if(s.loading)return pO;const l=new cy(s.rows);return t.length>0&&t.forEach(c=>c.value===""||Number.isNaN(c.value)?void 0:l.Where(c.name,c.operation.symbol,c.value)),r.length===0?l.Select():JP(l.Select(),r)},[s.rows,t,r,s.loading]);return E.jsx("div",{className:"group border border-table-border rounded-lg px-1 min-w-full",children:E.jsx(_A,{data:a,totalCount:a.length,useWindowScroll:!0,components:dO,fixedHeaderContent:()=>E.jsx(aO,{sorters:r,setSorters:i,filters:t,setFilters:n,headers:o,setCols:e}),itemContent:(l,c)=>o.map((u,f)=>{const d=`${f},${l}`,p=lv(c,u.id),h=u.Element;return w.createElement("td",{...u.cellProps,"data-matrix":d,key:`accessor-${l}-${f}`,className:"px-2 h-14 border-none first:table-cell hidden md:table-cell"},s.loading?E.jsx("div",{className:"animate-pulse h-2 bg-table-border rounded"}):h?E.jsx(h,{row:c,matrix:d,col:u,rowIndex:l,value:p}):E.jsx(w.Fragment,{children:Bi.nil(p)?"":p}))})})})},hO=(t,e)=>typeof e=="function"?e(t):e,mO=t=>{const e=w.useMemo(()=>uv(t.cols),[t.cols]),[n,r]=WP({cols:t.cols,filters:t.filters??[],groups:t.groups??[],sorters:t.sorters??[]},o=>{const i=s=>a=>{const l=o.state();return{...l,[s]:hO(l[s],a)}};return{cols:i("cols"),filters:i("filters"),groups:i("groups"),sorters:i("sorters")}},{interceptor:[o=>{var i;return(i=t.set)==null||i.call(t,o),o}]});return E.jsxs("div",{className:"relative min-w-full",children:[E.jsx(nO,{setCols:r.cols,rows:t.rows,cols:n.cols,filters:n.filters,groups:n.groups,options:e,setFilters:r.filters,setGroups:r.groups,setSorters:r.sorters,sorters:n.sorters}),n.groups.length===0?E.jsx(dh,{...t,cols:n.cols,filters:n.filters,groups:n.groups,index:0,optionCols:e,options:e,setCols:r.cols,setFilters:r.filters,setGroups:r.groups,setSorters:r.sorters,sorters:n.sorters}):E.jsx("div",{className:"flex flex-wrap gap-4",children:n.groups.map((o,i)=>E.jsx(pu.div,{className:"min-w-full",children:E.jsx(dh,{...t,cols:n.cols,filters:n.filters,group:o,groups:n.groups,index:i,optionCols:e,options:e,rows:o.rows,setCols:r.cols,setFilters:r.filters,setGroups:r.groups,setSorters:r.sorters,sorters:n.sorters})},`group-${o.groupId}`))})]})};var gO=String.prototype.replace,yO=/%20/g,cl={RFC1738:"RFC1738",RFC3986:"RFC3986"},Mu={default:cl.RFC3986,formatters:{RFC1738:function(t){return gO.call(t,yO,"+")},RFC3986:function(t){return String(t)}},RFC1738:cl.RFC1738,RFC3986:cl.RFC3986},vO=Mu,ul=Object.prototype.hasOwnProperty,er=Array.isArray,Xt=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),bO=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(er(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},dv=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(r[o]=e[o]);return r},xO=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(er(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!ul.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var o=e;return er(e)&&!er(n)&&(o=dv(e,r)),er(e)&&er(n)?(n.forEach(function(i,s){if(ul.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,r):e.push(i)}else e[s]=i}),e):Object.keys(n).reduce(function(i,s){var a=n[s];return ul.call(i,s)?i[s]=t(i[s],a,r):i[s]=a,i},o)},wO=function(e,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},e)},SO=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},fl=1024,TO=function(e,n,r,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=fl){for(var c=s.length>=fl?s.slice(l,l+fl):s,u=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===vO.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=Xt[d];continue}if(d<2048){u[u.length]=Xt[192|d>>6]+Xt[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=Xt[224|d>>12]+Xt[128|d>>6&63]+Xt[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=Xt[240|d>>18]+Xt[128|d>>12&63]+Xt[128|d>>6&63]+Xt[128|d&63]}a+=u.join("")}return a},EO=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:s,prop:c}),r.push(u))}return bO(n),e},CO=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},RO=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},AO=function(e,n){return[].concat(e,n)},_O=function(e,n){if(er(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(n(e[o]));return r}return n(e)},pv={arrayToObject:dv,assign:wO,combine:AO,compact:EO,decode:SO,encode:TO,isBuffer:RO,isRegExp:CO,maybeMap:_O,merge:xO},hv=pP,zi=pv,ko=Mu,PO=Object.prototype.hasOwnProperty,mv={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Jt=Array.isArray,OO=Array.prototype.push,gv=function(t,e){OO.apply(t,Jt(e)?e:[e])},IO=Date.prototype.toISOString,ph=ko.default,et={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:zi.encode,encodeValuesOnly:!1,format:ph,formatter:ko.formatters[ph],indices:!1,serializeDate:function(e){return IO.call(e)},skipNulls:!1,strictNullHandling:!1},kO=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},dl={},DO=function t(e,n,r,o,i,s,a,l,c,u,f,d,p,h,m,y,v,b){for(var g=e,S=b,x=0,T=!1;(S=S.get(dl))!==void 0&&!T;){var _=S.get(e);if(x+=1,typeof _<"u"){if(_===x)throw new RangeError("Cyclic object value");T=!0}typeof S.get(dl)>"u"&&(x=0)}if(typeof u=="function"?g=u(n,g):g instanceof Date?g=p(g):r==="comma"&&Jt(g)&&(g=zi.maybeMap(g,function(C){return C instanceof Date?p(C):C})),g===null){if(s)return c&&!y?c(n,et.encoder,v,"key",h):n;g=""}if(kO(g)||zi.isBuffer(g)){if(c){var P=y?n:c(n,et.encoder,v,"key",h);return[m(P)+"="+m(c(g,et.encoder,v,"value",h))]}return[m(n)+"="+m(String(g))]}var I=[];if(typeof g>"u")return I;var k;if(r==="comma"&&Jt(g))y&&c&&(g=zi.maybeMap(g,c)),k=[{value:g.length>0?g.join(",")||null:void 0}];else if(Jt(u))k=u;else{var F=Object.keys(g);k=f?F.sort(f):F}var R=l?n.replace(/\./g,"%2E"):n,$=o&&Jt(g)&&g.length===1?R+"[]":R;if(i&&Jt(g)&&g.length===0)return $+"[]";for(var j=0;j<k.length;++j){var A=k[j],D=typeof A=="object"&&typeof A.value<"u"?A.value:g[A];if(!(a&&D===null)){var L=d&&l?A.replace(/\./g,"%2E"):A,z=Jt(g)?typeof r=="function"?r($,L):$:$+(d?"."+L:"["+L+"]");b.set(e,x);var q=hv();q.set(dl,b),gv(I,t(D,z,r,o,i,s,a,l,r==="comma"&&y&&Jt(g)?null:c,u,f,d,p,h,m,y,v,q))}}return I},MO=function(e){if(!e)return et;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=e.charset||et.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ko.default;if(typeof e.format<"u"){if(!PO.call(ko.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=ko.formatters[r],i=et.filter;(typeof e.filter=="function"||Jt(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in mv?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=et.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:et.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:et.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:et.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:et.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?et.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:et.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:et.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:et.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:et.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:et.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:et.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:et.strictNullHandling}},jO=function(t,e){var n=t,r=MO(e),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):Jt(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var a=mv[r.arrayFormat],l=a==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=hv(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||gv(s,DO(n[f],f,a,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),d.length>0?p+d:""},Zr=pv,rc=Object.prototype.hasOwnProperty,FO=Array.isArray,qe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Zr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},LO=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},yv=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},NO="utf8=%26%2310003%3B",VO="utf8=%E2%9C%93",$O=function(e,n){var r={__proto__:null},o=n.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===VO?c="utf-8":s[l]===NO&&(c="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var u=s[l],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,p,h;d===-1?(p=n.decoder(u,qe.decoder,c,"key"),h=n.strictNullHandling?null:""):(p=n.decoder(u.slice(0,d),qe.decoder,c,"key"),h=Zr.maybeMap(yv(u.slice(d+1),n),function(y){return n.decoder(y,qe.decoder,c,"value")})),h&&n.interpretNumericEntities&&c==="iso-8859-1"&&(h=LO(h)),u.indexOf("[]=")>-1&&(h=FO(h)?[h]:h);var m=rc.call(r,p);m&&n.duplicates==="combine"?r[p]=Zr.combine(r[p],h):(!m||n.duplicates==="last")&&(r[p]=h)}return r},BO=function(t,e,n,r){for(var o=r?e:yv(e,n),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&n.parseArrays)s=n.allowEmptyArrays&&o===""?[]:[].concat(o);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(c,10);!n.parseArrays&&c===""?s={0:o}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[],s[u]=o):c!=="__proto__"&&(s[c]=o)}o=s}return o},zO=function(e,n,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&rc.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(l=a.exec(i))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&rc.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+i.slice(l.index)+"]"),BO(u,n,r,o)}},HO=function(e){if(!e)return qe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof e.charset>"u"?qe.charset:e.charset,r=typeof e.duplicates>"u"?qe.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:qe.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:qe.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:qe.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:qe.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:qe.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:qe.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:qe.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:qe.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:qe.decoder,delimiter:typeof e.delimiter=="string"||Zr.isRegExp(e.delimiter)?e.delimiter:qe.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:qe.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:qe.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:qe.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:qe.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:qe.strictNullHandling}},WO=function(t,e){var n=HO(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?$O(t,n):t,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],l=zO(a,r[a],n,typeof t=="string");o=Zr.merge(o,l,n)}return n.allowSparse===!0?o:Zr.compact(o)},UO=jO,GO=WO,KO=Mu,ZO={formats:KO,parse:GO,stringify:UO},Ee;(function(t){t.assertEqual=o=>o;function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{const i={};for(const s of o)i[s]=s;return i},t.getValidEnumValues=o=>{const i=t.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(const a of i)s[a]=o[a];return t.objectValues(s)},t.objectValues=o=>t.objectKeys(o).map(function(i){return o[i]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const i=[];for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},t.find=(o,i)=>{for(const s of o)if(i(s))return s},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Ee||(Ee={}));var hh;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(hh||(hh={}));const te=Ee.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),tr=t=>{switch(typeof t){case"undefined":return te.undefined;case"string":return te.string;case"number":return isNaN(t)?te.nan:te.number;case"boolean":return te.boolean;case"function":return te.function;case"bigint":return te.bigint;case"symbol":return te.symbol;case"object":return Array.isArray(t)?te.array:t===null?te.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?te.promise:typeof Map<"u"&&t instanceof Map?te.map:typeof Set<"u"&&t instanceof Set?te.set:typeof Date<"u"&&t instanceof Date?te.date:te.object;default:return te.unknown}},G=Ee.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Nt extends Error{constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const n=e||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const c=s.path[l];l===s.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(s))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return o(this),r}static assert(e){if(!(e instanceof Nt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ee.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(e(o))):r.push(e(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Nt.create=t=>new Nt(t);const Yo=(t,e)=>{let n;switch(t.code){case G.invalid_type:t.received===te.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case G.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ee.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ee.joinValues(t.keys,", ")}`;break;case G.invalid_union:n="Invalid input";break;case G.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ee.joinValues(t.options)}`;break;case G.invalid_enum_value:n=`Invalid enum value. Expected ${Ee.joinValues(t.options)}, received '${t.received}'`;break;case G.invalid_arguments:n="Invalid function arguments";break;case G.invalid_return_type:n="Invalid function return type";break;case G.invalid_date:n="Invalid date";break;case G.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ee.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case G.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case G.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case G.custom:n="Invalid input";break;case G.invalid_intersection_types:n="Intersection results could not be merged";break;case G.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case G.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ee.assertNever(t)}return{message:n}};let qO=Yo;function oc(){return qO}const ic=t=>{const{data:e,path:n,errorMaps:r,issueData:o}=t,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:e,defaultError:a}).message;return{...o,path:i,message:a}};function Q(t,e){const n=oc(),r=ic({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Yo?void 0:Yo].filter(o=>!!o)});t.common.issues.push(r)}class wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const o of n){if(o.status==="aborted")return de;o.status==="dirty"&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const o of n){const i=await o.key,s=await o.value;r.push({key:i,value:s})}return wt.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const o of n){const{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return de;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:e.value,value:r}}}const de=Object.freeze({status:"aborted"}),go=t=>({status:"dirty",value:t}),At=t=>({status:"valid",value:t}),mh=t=>t.status==="aborted",gh=t=>t.status==="dirty",ws=t=>t.status==="valid",Ss=t=>typeof Promise<"u"&&t instanceof Promise;function Ts(t,e,n,r){if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function vv(t,e,n,r,o){if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var ie;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ie||(ie={}));var yo,vo;class an{constructor(e,n,r,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const yh=(t,e)=>{if(ws(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Nt(t.common.issues);return this._error=n,this._error}}};function me(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:o}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(s,a)=>{var l,c;const{message:u}=t;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class be{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return tr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:tr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new wt,ctx:{common:e.parent.common,data:e.data,parsedType:tr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Ss(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tr(e)},i=this._parseSync({data:e,path:o.path,parent:o});return yh(o,i)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tr(e)},o=this._parse({data:e,path:r.path,parent:r}),i=await(Ss(o)?o:Promise.resolve(o));return yh(r,i)}refine(e,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{const s=e(o),a=()=>i.addIssue({code:G.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,o)=>e(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(e){return new wn({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return vn.create(this,this._def)}nullable(){return mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ht.create(this,this._def)}promise(){return Jo.create(this,this._def)}or(e){return Rs.create([this,e],this._def)}and(e){return As.create(this,e,this._def)}transform(e){return new wn({...me(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new ks({...me(this._def),innerType:this,defaultValue:n,typeName:ue.ZodDefault})}brand(){return new Sv({typeName:ue.ZodBranded,type:this,...me(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ds({...me(this._def),innerType:this,catchValue:n,typeName:ue.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return ia.create(this,e)}readonly(){return Ms.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const YO=/^c[^\s-]{8,}$/i,XO=/^[0-9a-z]+$/,JO=/^[0-9A-HJKMNP-TV-Z]{26}$/,QO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eI=/^[a-z0-9_-]{21}$/i,tI=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let pl;const oI=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,sI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,bv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",aI=new RegExp(`^${bv}$`);function xv(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function lI(t){return new RegExp(`^${xv(t)}$`)}function cI(t){let e=`${bv}T${xv(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function uI(t,e){return!!((e==="v4"||!e)&&oI.test(t)||(e==="v6"||!e)&&iI.test(t))}class pn extends be{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==te.string){const i=this._getOrReturnCtx(e);return Q(i,{code:G.invalid_type,expected:te.string,received:i.parsedType}),de}const r=new wt;let o;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(o=this._getOrReturnCtx(e,o),Q(o,{code:G.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(o=this._getOrReturnCtx(e,o),Q(o,{code:G.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=e.data.length>i.value,a=e.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(e,o),s?Q(o,{code:G.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Q(o,{code:G.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")nI.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"email",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")pl||(pl=new RegExp(rI,"u")),pl.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"emoji",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")QO.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"uuid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")eI.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"nanoid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")YO.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"cuid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")XO.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"cuid2",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")JO.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"ulid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),Q(o,{validation:"url",code:G.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"regex",code:G.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(e,o),Q(o,{code:G.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(o=this._getOrReturnCtx(e,o),Q(o,{code:G.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(o=this._getOrReturnCtx(e,o),Q(o,{code:G.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?cI(i).test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{code:G.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?aI.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{code:G.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?lI(i).test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{code:G.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?tI.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"duration",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?uI(e.data,i.version)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"ip",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?sI.test(e.data)||(o=this._getOrReturnCtx(e,o),Q(o,{validation:"base64",code:G.invalid_string,message:i.message}),r.dirty()):Ee.assertNever(i);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(o=>e.test(o),{validation:n,code:G.invalid_string,...ie.errToObj(r)})}_addCheck(e){return new pn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ie.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ie.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ie.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ie.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ie.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ie.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ie.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ie.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ie.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ie.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...ie.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...ie.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ie.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ie.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...ie.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ie.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ie.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ie.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ie.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ie.errToObj(n)})}nonempty(e){return this.min(1,ie.errToObj(e))}trim(){return new pn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}pn.create=t=>{var e;return new pn({checks:[],typeName:ue.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...me(t)})};function fI(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,o=n>r?n:r,i=parseInt(t.toFixed(o).replace(".","")),s=parseInt(e.toFixed(o).replace(".",""));return i%s/Math.pow(10,o)}class pr extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==te.number){const i=this._getOrReturnCtx(e);return Q(i,{code:G.invalid_type,expected:te.number,received:i.parsedType}),de}let r;const o=new wt;for(const i of this._def.checks)i.kind==="int"?Ee.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),Q(r,{code:G.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),Q(r,{code:G.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),Q(r,{code:G.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?fI(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),Q(r,{code:G.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),Q(r,{code:G.not_finite,message:i.message}),o.dirty()):Ee.assertNever(i);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ie.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ie.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ie.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ie.toString(n))}setLimit(e,n,r,o){return new pr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ie.toString(o)}]})}_addCheck(e){return new pr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ie.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ie.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ie.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ie.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ie.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ie.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ie.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ie.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ie.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ee.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}pr.create=t=>new pr({checks:[],typeName:ue.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...me(t)});class qr extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==te.bigint){const i=this._getOrReturnCtx(e);return Q(i,{code:G.invalid_type,expected:te.bigint,received:i.parsedType}),de}let r;const o=new wt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),Q(r,{code:G.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),Q(r,{code:G.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),Q(r,{code:G.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Ee.assertNever(i);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ie.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ie.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ie.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ie.toString(n))}setLimit(e,n,r,o){return new qr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ie.toString(o)}]})}_addCheck(e){return new qr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ie.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ie.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ie.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ie.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ie.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}qr.create=t=>{var e;return new qr({checks:[],typeName:ue.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...me(t)})};class sc extends be{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==te.boolean){const r=this._getOrReturnCtx(e);return Q(r,{code:G.invalid_type,expected:te.boolean,received:r.parsedType}),de}return At(e.data)}}sc.create=t=>new sc({typeName:ue.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...me(t)});class Xo extends be{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==te.date){const i=this._getOrReturnCtx(e);return Q(i,{code:G.invalid_type,expected:te.date,received:i.parsedType}),de}if(isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return Q(i,{code:G.invalid_date}),de}const r=new wt;let o;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(o=this._getOrReturnCtx(e,o),Q(o,{code:G.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(o=this._getOrReturnCtx(e,o),Q(o,{code:G.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ee.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Xo({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ie.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ie.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Xo.create=t=>new Xo({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ue.ZodDate,...me(t)});class ac extends be{_parse(e){if(this._getType(e)!==te.symbol){const r=this._getOrReturnCtx(e);return Q(r,{code:G.invalid_type,expected:te.symbol,received:r.parsedType}),de}return At(e.data)}}ac.create=t=>new ac({typeName:ue.ZodSymbol,...me(t)});class Es extends be{_parse(e){if(this._getType(e)!==te.undefined){const r=this._getOrReturnCtx(e);return Q(r,{code:G.invalid_type,expected:te.undefined,received:r.parsedType}),de}return At(e.data)}}Es.create=t=>new Es({typeName:ue.ZodUndefined,...me(t)});class Cs extends be{_parse(e){if(this._getType(e)!==te.null){const r=this._getOrReturnCtx(e);return Q(r,{code:G.invalid_type,expected:te.null,received:r.parsedType}),de}return At(e.data)}}Cs.create=t=>new Cs({typeName:ue.ZodNull,...me(t)});class lc extends be{constructor(){super(...arguments),this._any=!0}_parse(e){return At(e.data)}}lc.create=t=>new lc({typeName:ue.ZodAny,...me(t)});class Nr extends be{constructor(){super(...arguments),this._unknown=!0}_parse(e){return At(e.data)}}Nr.create=t=>new Nr({typeName:ue.ZodUnknown,...me(t)});class $n extends be{_parse(e){const n=this._getOrReturnCtx(e);return Q(n,{code:G.invalid_type,expected:te.never,received:n.parsedType}),de}}$n.create=t=>new $n({typeName:ue.ZodNever,...me(t)});class cc extends be{_parse(e){if(this._getType(e)!==te.undefined){const r=this._getOrReturnCtx(e);return Q(r,{code:G.invalid_type,expected:te.void,received:r.parsedType}),de}return At(e.data)}}cc.create=t=>new cc({typeName:ue.ZodVoid,...me(t)});class Ht extends be{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),o=this._def;if(n.parsedType!==te.array)return Q(n,{code:G.invalid_type,expected:te.array,received:n.parsedType}),de;if(o.exactLength!==null){const s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(Q(n,{code:s?G.too_big:G.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(Q(n,{code:G.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(Q(n,{code:G.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new an(n,s,n.path,a)))).then(s=>wt.mergeArray(r,s));const i=[...n.data].map((s,a)=>o.type._parseSync(new an(n,s,n.path,a)));return wt.mergeArray(r,i)}get element(){return this._def.type}min(e,n){return new Ht({...this._def,minLength:{value:e,message:ie.toString(n)}})}max(e,n){return new Ht({...this._def,maxLength:{value:e,message:ie.toString(n)}})}length(e,n){return new Ht({...this._def,exactLength:{value:e,message:ie.toString(n)}})}nonempty(e){return this.min(1,e)}}Ht.create=(t,e)=>new Ht({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...me(e)});function Rr(t){if(t instanceof Ke){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=vn.create(Rr(r))}return new Ke({...t._def,shape:()=>e})}else return t instanceof Ht?new Ht({...t._def,type:Rr(t.element)}):t instanceof vn?vn.create(Rr(t.unwrap())):t instanceof mr?mr.create(Rr(t.unwrap())):t instanceof xn?xn.create(t.items.map(e=>Rr(e))):t}class Ke extends be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ee.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==te.object){const c=this._getOrReturnCtx(e);return Q(c,{code:G.invalid_type,expected:te.object,received:c.parsedType}),de}const{status:r,ctx:o}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof $n&&this._def.unknownKeys==="strip"))for(const c in o.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=i[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof $n){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(Q(o,{code:G.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,d=await u.value;c.push({key:f,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>wt.mergeObjectSync(r,c)):wt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return ie.errToObj,new Ke({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var o,i,s,a;const l=(s=(i=(o=this._def).errorMap)===null||i===void 0?void 0:i.call(o,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ie.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ke({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ke({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ue.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new Ke({...this._def,catchall:e})}pick(e){const n={};return Ee.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ke({...this._def,shape:()=>n})}omit(e){const n={};return Ee.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new Ke({...this._def,shape:()=>n})}deepPartial(){return Rr(this)}partial(e){const n={};return Ee.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];e&&!e[r]?n[r]=o:n[r]=o.optional()}),new Ke({...this._def,shape:()=>n})}required(e){const n={};return Ee.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof vn;)i=i._def.innerType;n[r]=i}}),new Ke({...this._def,shape:()=>n})}keyof(){return wv(Ee.objectKeys(this.shape))}}Ke.create=(t,e)=>new Ke({shape:()=>t,unknownKeys:"strip",catchall:$n.create(),typeName:ue.ZodObject,...me(e)});Ke.strictCreate=(t,e)=>new Ke({shape:()=>t,unknownKeys:"strict",catchall:$n.create(),typeName:ue.ZodObject,...me(e)});Ke.lazycreate=(t,e)=>new Ke({shape:t,unknownKeys:"strip",catchall:$n.create(),typeName:ue.ZodObject,...me(e)});class Rs extends be{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function o(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(a=>new Nt(a.ctx.common.issues));return Q(n,{code:G.invalid_union,unionErrors:s}),de}if(n.common.async)return Promise.all(r.map(async i=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i;const s=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(l=>new Nt(l));return Q(n,{code:G.invalid_union,unionErrors:a}),de}}get options(){return this._def.options}}Rs.create=(t,e)=>new Rs({options:t,typeName:ue.ZodUnion,...me(e)});const un=t=>t instanceof Ps?un(t.schema):t instanceof wn?un(t.innerType()):t instanceof Os?[t.value]:t instanceof hr?t.options:t instanceof Is?Ee.objectValues(t.enum):t instanceof ks?un(t._def.innerType):t instanceof Es?[void 0]:t instanceof Cs?[null]:t instanceof vn?[void 0,...un(t.unwrap())]:t instanceof mr?[null,...un(t.unwrap())]:t instanceof Sv||t instanceof Ms?un(t.unwrap()):t instanceof Ds?un(t._def.innerType):[];class ju extends be{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==te.object)return Q(n,{code:G.invalid_type,expected:te.object,received:n.parsedType}),de;const r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(Q(n,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),de)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const o=new Map;for(const i of n){const s=un(i.shape[e]);if(!s.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of s){if(o.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);o.set(a,i)}}return new ju({typeName:ue.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:o,...me(r)})}}function uc(t,e){const n=tr(t),r=tr(e);if(t===e)return{valid:!0,data:t};if(n===te.object&&r===te.object){const o=Ee.objectKeys(e),i=Ee.objectKeys(t).filter(a=>o.indexOf(a)!==-1),s={...t,...e};for(const a of i){const l=uc(t[a],e[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===te.array&&r===te.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let i=0;i<t.length;i++){const s=t[i],a=e[i],l=uc(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===te.date&&r===te.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class As extends be{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),o=(i,s)=>{if(mh(i)||mh(s))return de;const a=uc(i.value,s.value);return a.valid?((gh(i)||gh(s))&&n.dirty(),{status:n.value,value:a.data}):(Q(r,{code:G.invalid_intersection_types}),de)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}As.create=(t,e,n)=>new As({left:t,right:e,typeName:ue.ZodIntersection,...me(n)});class xn extends be{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==te.array)return Q(r,{code:G.invalid_type,expected:te.array,received:r.parsedType}),de;if(r.data.length<this._def.items.length)return Q(r,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),de;!this._def.rest&&r.data.length>this._def.items.length&&(Q(r,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new an(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>wt.mergeArray(n,s)):wt.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new xn({...this._def,rest:e})}}xn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new xn({items:t,typeName:ue.ZodTuple,rest:null,...me(e)})};class _s extends be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==te.object)return Q(r,{code:G.invalid_type,expected:te.object,received:r.parsedType}),de;const o=[],i=this._def.keyType,s=this._def.valueType;for(const a in r.data)o.push({key:i._parse(new an(r,a,r.path,a)),value:s._parse(new an(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?wt.mergeObjectAsync(n,o):wt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof be?new _s({keyType:e,valueType:n,typeName:ue.ZodRecord,...me(r)}):new _s({keyType:pn.create(),valueType:e,typeName:ue.ZodRecord,...me(n)})}}class fc extends be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==te.map)return Q(r,{code:G.invalid_type,expected:te.map,received:r.parsedType}),de;const o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new an(r,a,r.path,[c,"key"])),value:i._parse(new an(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return de;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return de;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}fc.create=(t,e,n)=>new fc({valueType:e,keyType:t,typeName:ue.ZodMap,...me(n)});class Yr extends be{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==te.set)return Q(r,{code:G.invalid_type,expected:te.set,received:r.parsedType}),de;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(Q(r,{code:G.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(Q(r,{code:G.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const i=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return de;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>i._parse(new an(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(e,n){return new Yr({...this._def,minSize:{value:e,message:ie.toString(n)}})}max(e,n){return new Yr({...this._def,maxSize:{value:e,message:ie.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Yr.create=(t,e)=>new Yr({valueType:t,minSize:null,maxSize:null,typeName:ue.ZodSet,...me(e)});class Do extends be{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==te.function)return Q(n,{code:G.invalid_type,expected:te.function,received:n.parsedType}),de;function r(a,l){return ic({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,oc(),Yo].filter(c=>!!c),issueData:{code:G.invalid_arguments,argumentsError:l}})}function o(a,l){return ic({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,oc(),Yo].filter(c=>!!c),issueData:{code:G.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Jo){const a=this;return At(async function(...l){const c=new Nt([]),u=await a._def.args.parseAsync(l,i).catch(p=>{throw c.addIssue(r(l,p)),c}),f=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(f,i).catch(p=>{throw c.addIssue(o(f,p)),c})})}else{const a=this;return At(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Nt([r(l,c.error)]);const u=Reflect.apply(s,this,c.data),f=a._def.returns.safeParse(u,i);if(!f.success)throw new Nt([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Do({...this._def,args:xn.create(e).rest(Nr.create())})}returns(e){return new Do({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new Do({args:e||xn.create([]).rest(Nr.create()),returns:n||Nr.create(),typeName:ue.ZodFunction,...me(r)})}}class Ps extends be{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ps.create=(t,e)=>new Ps({getter:t,typeName:ue.ZodLazy,...me(e)});class Os extends be{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return Q(n,{received:n.data,code:G.invalid_literal,expected:this._def.value}),de}return{status:"valid",value:e.data}}get value(){return this._def.value}}Os.create=(t,e)=>new Os({value:t,typeName:ue.ZodLiteral,...me(e)});function wv(t,e){return new hr({values:t,typeName:ue.ZodEnum,...me(e)})}class hr extends be{constructor(){super(...arguments),yo.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return Q(n,{expected:Ee.joinValues(r),received:n.parsedType,code:G.invalid_type}),de}if(Ts(this,yo)||vv(this,yo,new Set(this._def.values)),!Ts(this,yo).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return Q(n,{received:n.data,code:G.invalid_enum_value,options:r}),de}return At(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return hr.create(e,{...this._def,...n})}exclude(e,n=this._def){return hr.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}yo=new WeakMap;hr.create=wv;class Is extends be{constructor(){super(...arguments),vo.set(this,void 0)}_parse(e){const n=Ee.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==te.string&&r.parsedType!==te.number){const o=Ee.objectValues(n);return Q(r,{expected:Ee.joinValues(o),received:r.parsedType,code:G.invalid_type}),de}if(Ts(this,vo)||vv(this,vo,new Set(Ee.getValidEnumValues(this._def.values))),!Ts(this,vo).has(e.data)){const o=Ee.objectValues(n);return Q(r,{received:r.data,code:G.invalid_enum_value,options:o}),de}return At(e.data)}get enum(){return this._def.values}}vo=new WeakMap;Is.create=(t,e)=>new Is({values:t,typeName:ue.ZodNativeEnum,...me(e)});class Jo extends be{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==te.promise&&n.common.async===!1)return Q(n,{code:G.invalid_type,expected:te.promise,received:n.parsedType}),de;const r=n.parsedType===te.promise?n.data:Promise.resolve(n.data);return At(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Jo.create=(t,e)=>new Jo({type:t,typeName:ue.ZodPromise,...me(e)});class wn extends be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:s=>{Q(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){const s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return de;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?de:l.status==="dirty"||n.value==="dirty"?go(l.value):l});{if(n.value==="aborted")return de;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?de:a.status==="dirty"||n.value==="dirty"?go(a.value):a}}if(o.type==="refinement"){const s=a=>{const l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?de:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?de:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ws(s))return s;const a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>ws(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):s);Ee.assertNever(o)}}wn.create=(t,e,n)=>new wn({schema:t,typeName:ue.ZodEffects,effect:e,...me(n)});wn.createWithPreprocess=(t,e,n)=>new wn({schema:e,effect:{type:"preprocess",transform:t},typeName:ue.ZodEffects,...me(n)});class vn extends be{_parse(e){return this._getType(e)===te.undefined?At(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}vn.create=(t,e)=>new vn({innerType:t,typeName:ue.ZodOptional,...me(e)});class mr extends be{_parse(e){return this._getType(e)===te.null?At(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}mr.create=(t,e)=>new mr({innerType:t,typeName:ue.ZodNullable,...me(e)});class ks extends be{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===te.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ks.create=(t,e)=>new ks({innerType:t,typeName:ue.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...me(e)});class Ds extends be{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ss(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Nt(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Nt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ds.create=(t,e)=>new Ds({innerType:t,typeName:ue.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...me(e)});class dc extends be{_parse(e){if(this._getType(e)!==te.nan){const r=this._getOrReturnCtx(e);return Q(r,{code:G.invalid_type,expected:te.nan,received:r.parsedType}),de}return{status:"valid",value:e.data}}}dc.create=t=>new dc({typeName:ue.ZodNaN,...me(t)});class Sv extends be{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ia extends be{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?de:i.status==="dirty"?(n.dirty(),go(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?de:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(e,n){return new ia({in:e,out:n,typeName:ue.ZodPipeline})}}class Ms extends be{_parse(e){const n=this._def.innerType._parse(e),r=o=>(ws(o)&&(o.value=Object.freeze(o.value)),o);return Ss(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Ms.create=(t,e)=>new Ms({innerType:t,typeName:ue.ZodReadonly,...me(e)});Ke.lazycreate;var ue;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ue||(ue={}));pn.create;pr.create;dc.create;qr.create;sc.create;Xo.create;ac.create;Es.create;Cs.create;lc.create;Nr.create;$n.create;cc.create;Ht.create;Ke.create;Ke.strictCreate;Rs.create;ju.create;As.create;xn.create;_s.create;fc.create;Yr.create;Do.create;Ps.create;Os.create;hr.create;Is.create;Jo.create;wn.create;vn.create;mr.create;wn.createWithPreprocess;ia.create;const dI=(t,e)=>t.localeCompare(e),pI={sort:dI,allowDots:!0,charset:"utf-8",parseArrays:!0,plainObjects:!0,charsetSentinel:!0,allowPrototypes:!1,depth:Number.MAX_SAFE_INTEGER,arrayLimit:Number.MAX_SAFE_INTEGER,parameterLimit:Number.MAX_SAFE_INTEGER},Tv=t=>{const e=new FormData(t),n=new URLSearchParams(e);return ZO.parse(n.toString(),pI)},Ev=t=>t.replace("[",".").replace("]","").split("."),pc=(t,e)=>Ev(t).reduce((n,r)=>{var i;if(r==="")return n;const o=((i=n.shape)==null?void 0:i[r])||n;return o instanceof Ht?o.element:o},e),Oi=t=>t.type==="checkbox"?t.checked:t.type==="number"?t.valueAsNumber:t.value,hI=t=>{const[e,n]=w.useState(null),r=w.useRef({}),o=(l,c)=>{const u=pc(l,t);return{...c,name:l,id:l,error:e==null?void 0:e[l],ref:f=>{f!==null&&(r.current[l]={element:f,schema:u})}}},i=(l,c)=>{const u=pc(l,t);return{...c,name:l,id:l,type:Bi.instance(u,pr)?"number":(c==null?void 0:c.type)??"text",error:e==null?void 0:e[l],ref:f=>{f!==null&&(r.current[l]={element:f,schema:u})}}};w.useEffect(()=>{const l=Object.values(r.current).map(u=>{const f=u.schema.safeParse(Oi(u.element)),d=h=>{const m=u.schema.safeParse(Oi(h.target)),y=u.element,v=y.name;if(m.success)return y.setCustomValidity(""),n(b=>{const{[v]:g,...S}=b||{};return S===null||Bi.empty(S)?null:S});if(y.required){const b=m.error.issues[0].message;y.setCustomValidity(b),n(g=>({...g,[v]:b}))}},p=u.element.tagName==="INPUT"?"blur":"change";return u.element.addEventListener(p,d),{input:u,hasInitialError:u.element.required?!f.success:!1,unsubscribe:()=>u.element.removeEventListener(p,d)}});return l.some(u=>u.hasInitialError)&&n(u=>u===null?{}:u),()=>l.forEach(u=>u.unsubscribe())});const s=w.useCallback(l=>c=>{c.preventDefault();const u=c.currentTarget,f=Object.values(r.current).reduce((p,h)=>{const m=h.element,y=h.schema.safeParse(Oi(m));if(y.success)return p;const v=y.error.issues[0].message;return m.setAttribute("data-initialized","true"),{...p,[m.name]:v}},{}),d=Bi.empty(f)?null:{};n(d),l==null||l({form:u,errors:d||{}})},[]),a=w.useCallback(l=>c=>{c.preventDefault();const u=c.currentTarget;let f=Tv(u);Array.from(u.elements).forEach(d=>{if(d.tagName==="SELECT"){const p=d;f=nh(f,p.name,p.value)}if(d.tagName==="INPUT"){const p=d;f=nh(f,p.name,Oi(p))}}),l({form:u,json:f,event:c,reset:()=>km(u)})},[]);return{input:i,select:o,onSubmit:a,errors:e,onInvalid:s,disabled:e!==null}},mI={name:"dark",spacing:{base:"1rem",lg:"1.5rem",sm:"0.75rem"},colors:{foreground:"#f8fafc",background:"#191817",accent:"#0ea5e9",disabled:"#52525b",primary:{foreground:"#f8fafc",DEFAULT:"#0ea5e9",subtle:"#bae6fd",hover:"#0284c7"},secondary:{DEFAULT:"#475569",subtle:"#cbd5e1",hover:"#334155"},info:{DEFAULT:"#3b82f6",subtle:"#93c5fd",hover:"#1d4ed8"},danger:{DEFAULT:"#ef4444",subtle:"#fca5a5",hover:"#dc2626"},success:{DEFAULT:"#10b981",subtle:"#6ee7b7",hover:"#047857"},input:{border:"#52525b",placeholder:"#94a3b8","mask-error":"#fca5a5","switch-bg":"#171717",switch:"#fff"},card:{background:"#27272a",border:"#3f3f46",overlay:"#00000080"},floating:{background:"#252525",border:"#3f3f46",overlay:"#00000080"},tooltip:{background:"#141414",border:"#27272a"},table:{background:"#27272a",border:"#52525b",row:"#3f3f46"}}},gI={cssVariable:(t,e,n)=>`var(--${n})`,rgba:t=>`rgba(${t})`,rgb:t=>`rgb(${t})`,hsl:t=>`hsl(${t})`,hsla:t=>`hsla(${t})`,hex:t=>t,raw:t=>t},Cv=(t,e,n="",r="")=>Object.entries(t).reduce((o,[i,s])=>{const a=r===""?`${n}${i}`:`${r}-${i}`;if(typeof s=="string"){const l=r===""?`${n}${i}`:i;return o.concat(e(s,l,a))}return o.concat(Cv(s,e,n,a))},[]),Rv=(t,e,n="",r="")=>Object.entries(t).reduce((o,[i,s])=>{const a=r===""?`${n}${i}`:`${r}-${i}`;if(typeof s=="string"){const l=r===""?`${n}${i}`:i;return{...o,[l]:e(s,i,a)}}return{...o,[i]:Rv(s,e,n,a)}},{}),vh={default:t=>`:root { ${t} }`,dark:t=>`html.dark {${t}}`},bh=(t,e)=>{const n=t.map(r=>`${r.key}: ${r.value}`).join(";");return e(n)},yI={default:t=>bh(t,vh.default),dark:t=>bh(t,vh.dark)};exports.Autocomplete=u0;exports.Button=ns;exports.ButtonGroup=$w;exports.Card=Yw;exports.Dropdown=oi;exports.FileUpload=Gw;exports.Form=Zw;exports.Input=Fc;exports.InputFeedback=um;exports.InputField=$s;exports.Option=dm;exports.Polymorph=Bs;exports.Select=fr;exports.Switch=qw;exports.Table=mO;exports.Tooltip=Xw;exports.convertPath=Ev;exports.createDesignTokens=Rv;exports.createStyles=yI;exports.css=Wt;exports.defaultDarkTheme=mI;exports.formReset=km;exports.formToJson=Tv;exports.getSchemaShape=pc;exports.isReactComponent=s0;exports.isSsr=UP;exports.mergeRefs=Mc;exports.parsers=gI;exports.path=lv;exports.reduceTokens=Cv;exports.useForm=hI;exports.usePrevious=fm;exports.useReactive=fv;exports.uuid=oa;
|
|
151
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./components";
|
|
2
|
+
export * from "./hooks/use-form";
|
|
3
|
+
export * from "./hooks/use-previous";
|
|
4
|
+
export * from "./hooks/use-reactive";
|
|
5
|
+
export * from "./lib/dom";
|
|
6
|
+
export * from "./lib/fns";
|
|
7
|
+
export * from "./styles/theme";
|
|
8
|
+
export * from "./styles/design-tokens";
|