reshaped 3.10.0 → 3.10.2
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/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(I,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],i):(I=typeof globalThis!="undefined"?globalThis:I||self,i(I.Reshaped={},I["react/jsx-runtime"],I.React,I.ReactDOM))})(this,(function(I,i,c,He){"use strict";var Dd=Object.defineProperty,Pd=Object.defineProperties;var Fd=Object.getOwnPropertyDescriptors;var Qo=Object.getOwnPropertySymbols;var ql=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable;var Yl=I=>{throw TypeError(I)};var dn=(I,i,c)=>i in I?Dd(I,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):I[i]=c,b=(I,i)=>{for(var c in i||(i={}))ql.call(i,c)&&dn(I,c,i[c]);if(Qo)for(var c of Qo(i))Ul.call(i,c)&&dn(I,c,i[c]);return I},z=(I,i)=>Pd(I,Fd(i));var ve=(I,i)=>{var c={};for(var He in I)ql.call(I,He)&&i.indexOf(He)<0&&(c[He]=I[He]);if(I!=null&&Qo)for(var He of Qo(I))i.indexOf(He)<0&&Ul.call(I,He)&&(c[He]=I[He]);return c};var pe=(I,i,c)=>dn(I,typeof i!="symbol"?i+"":i,c),Kl=(I,i,c)=>i.has(I)||Yl("Cannot "+c);var H=(I,i,c)=>(Kl(I,i,"read from private field"),c?c.call(I):i.get(I)),Se=(I,i,c)=>i.has(I)?Yl("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(I):i.set(I,c),Ue=(I,i,c,He)=>(Kl(I,i,"write to private field"),He?He.call(I,c):i.set(I,c),c);var xt,Ot,Xe,wt,bt,Uo,Yo,Ko,Go,Hl,Mt,we,gt,Wt,qt,Ut,go,Xo,po,vo;const un=e=>{const{el:t,iteration:o}=e,n=(t&&window.getComputedStyle(t)).overflowY,s=n.includes("scroll")||n.includes("auto");return t.parentElement?s&&t.scrollHeight>t.clientHeight?t:un({el:t.parentElement,iteration:o+1}):null},_n=e=>un(z(b({},e),{iteration:0})),Gl=(e,t)=>{let o=e.parentElement;for(;o;){if(t(o))return o;o=o.parentElement}return null},Kt=e=>{const t=e==null?void 0:e.getRootNode();return t instanceof ShadowRoot?t:null},Ro=e=>{let t=null,o=null;return function(...r){o=r,t===null&&(t=requestAnimationFrame(()=>{t=null,e(...o)}))}},mn=()=>{const e=document.documentElement,t=e.dir;return t==="rtl"||t==="ltr"?t==="rtl":window.getComputedStyle(e).direction==="rtl"},hn={left:"0",top:"0",position:"absolute",visibility:"hidden",animation:"none",transition:"none"},Xl=e=>{const{position:t,styles:o,fallbackAdjustLayout:r,fallbackMinHeight:n,width:s,flyoutBounds:l,containerBounds:a,triggerBounds:u}=e,{width:_,height:m}=l,{width:d,height:h,top:p,left:g}=a,f=!!t.match(/^(start|end)/);let y=o.top,x=o.left,v=o.bottom,w=o.right,C=null,N=null;if(r){const E=()=>({top:p+8-y,bottom:y+m+8-p-h,left:g+8-x,right:x+_+8-g-d}),k=E();f?k.top>0?(y=p+8,v!==null&&(v=v-k.top)):k.bottom>0&&(y=y-k.bottom):k.left>0?(x=8+g,w!==null&&(w=w-k.left)):k.right>0&&(x=x-k.right);const S=E();S.top>0?(C=Math.max(parseInt(n!=null?n:"0"),m-S.top),y=y+(m-C)):S.bottom>0&&(C=Math.max(parseInt(n!=null?n:"0"),m-S.bottom),v!==null&&(v=v+(m-C)))}return s==="100%"?(x=8,N=window.innerWidth-16):s==="trigger"&&(N=u.width),{position:t,styles:{left:x,right:w,top:y,bottom:v,height:C,width:N}}},fn=(e,t)=>Math.floor(e/2-t/2),Zl=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Jl=e=>{const{triggerBounds:t,flyoutBounds:o,position:r,rtl:n,contentGap:s=0,contentShift:l=0}=e,a=n?Zl(r):r;let u=0,_=0,m=null,d=null;const{width:h,height:p}=o,{width:g,height:f,left:y,top:x,right:v,bottom:w}=t,C=y,N=window.innerWidth-v,E=x,k=window.innerHeight-w;switch(a){case"start":case"start-top":case"start-bottom":u=C-h-s,d=N+g+s;break;case"end":case"end-top":case"end-bottom":u=C+g+s;break;case"bottom":case"top":u=C+fn(g,h)+l;break;case"top-start":case"bottom-start":u=C+l;break;case"top-end":case"bottom-end":u=C+g-h+l,d=N-l;break}switch(a){case"top":case"top-start":case"top-end":_=E-p-s,m=k+f+s;break;case"bottom":case"bottom-start":case"bottom-end":_=E+f+s;break;case"start":case"end":_=E+fn(f,p)+l;break;case"start-top":case"end-top":_=E+l;break;case"start-bottom":case"end-bottom":_=E+f-p+l,m=k-l;break}return{position:a,styles:{top:_,left:u,bottom:m,right:d}}},bn={top:["top-start","top-end","top"],bottom:["bottom-start","bottom-end","bottom"],start:["start-top","start-bottom","start"],end:["end-top","end-bottom","end"]},Ql={top:["bottom","start","end"],bottom:["top","end","start"],start:["end","top","bottom"],end:["start","bottom","top"]},Rl=(e,t)=>{const o=new Set([e]),r=e.split("-"),[n]=r,s=bn[n],l=s.indexOf(e),a=[l];return s.forEach((u,_)=>{_!==l&&a.push(_)}),[n,...Ql[n]].forEach(u=>{const _=bn[u];a.forEach(m=>{const d=_[m];(t==null?void 0:t.indexOf(d))!==-1&&o.add(d)})}),Array.from(o)},ea=e=>"width"in e&&e.width!==void 0?e:z(b({},e),{width:0,height:0,left:e.x,right:e.x,top:e.y,bottom:e.y,toJSON:()=>{}}),ta=e=>{const{flyoutBounds:t,containerBounds:o}=e,r=t.left,n=t.top,s=o.left,l=o.top;return!(r<s+8||n<l+8||r+t.width>s+o.width-8||n+t.height>l+o.height-8)},oa=e=>{var M,L;const{trigger:t,content:o,triggerCoordinates:r,container:n,contentShift:s=0,contentGap:l=0,position:a,fallbackPositions:u,fallbackAdjustLayout:_,fallbackMinHeight:m,width:d,lastUsedPosition:h}=e,p=mn(),g=o.cloneNode(!0),f=r||(t==null?void 0:t.getBoundingClientRect()),y=(M=n==null?void 0:n.getBoundingClientRect())!=null?M:{width:window.innerWidth,height:window.innerHeight,left:0,top:0};if(g.style.cssText="",!f)return{position:a};const x=ea(f);Object.keys(hn).forEach(P=>{const A=P,V=hn[A];V&&(g.style[A]=V.toString())});const v=(L=t&&Kt(t))!=null?L:document.body;v.appendChild(g);const w=(P,A)=>{(A==null?void 0:A.width)==="100%"?g.style.width="calc(100% - 16px)":(A==null?void 0:A.width)==="trigger"?g.style.width=`${x.width}px`:d?g.style.width=d:g.style.width="";const V=g.getBoundingClientRect(),D=Jl({triggerBounds:x,flyoutBounds:V,position:P,contentGap:l,contentShift:s,rtl:p});return Xl(z(b({},D),{fallbackAdjustLayout:_,fallbackMinHeight:m,width:A==null?void 0:A.width,flyoutBounds:V,containerBounds:y,triggerBounds:x}))},C=P=>{var V,D;const A={left:P.styles.left,top:P.styles.top,height:(V=P.styles.height)!=null?V:Math.ceil(g.clientHeight),width:(D=P.styles.width)!=null?D:Math.ceil(g.clientWidth)};return ta({flyoutBounds:A,containerBounds:y})};let N=null;const E=Rl(a,u);E.some(P=>{const A=w(P,{width:d}),V=C(A);return V&&(N=A),V}),N||["top","bottom"].filter(A=>E.includes(A)).some(A=>{const V=w(A,{width:"100%"}),D=C(V);return D&&(N=V),D}),N||(N=w(h!=null?h:a,{width:d})),v.removeChild(g);const{styles:k}=N,S=(k.right!==null?-k.right:k.left)+window.scrollX,T=(k.bottom!==null?-k.bottom:k.top)+window.scrollY,$={left:k.right===null?"0px":void 0,right:k.right===null?void 0:"0px",top:k.bottom===null?"0px":void 0,bottom:k.bottom===null?void 0:"0px",height:k.height!==null?`${k.height}px`:void 0,width:k.width!==null?`${k.width}px`:d!=null?d:void 0,transform:`translate(${S}px, ${T}px)`};return Object.entries($).forEach(([P,A])=>{o.style.removeProperty(P),A&&o.style.setProperty(P,A)}),{position:N.position}};let ra=(Hl=class{constructor(t){Se(this,xt,!1);Se(this,Ot,null);Se(this,Xe);Se(this,wt,{});Se(this,bt,()=>{const t=oa(z(b({},H(this,Xe)),{lastUsedPosition:H(this,Ot)}));return Ue(this,Ot,t.position),t});Se(this,Uo,()=>{const{trigger:t,onDeactivate:o}=H(this,Xe);if(!t)return;const r=_n({el:t}),n=r||window,s=Ro(()=>{if(!H(this,xt))return;if(!r){H(this,bt).call(this);return}const l=t.getBoundingClientRect(),a=r.getBoundingClientRect();l.top<a.top||l.left<a.left||l.right>a.right||l.bottom>a.bottom?o():H(this,bt).call(this)});n.addEventListener("scroll",s,{passive:!0}),H(this,wt).scroll=()=>n.removeEventListener("scroll",s)});Se(this,Yo,()=>{const t=new MutationObserver(()=>{H(this,xt)&&H(this,bt).call(this)});t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),H(this,wt).rtl=()=>t.disconnect()});Se(this,Ko,()=>{const t=()=>{H(this,xt)&&H(this,bt).call(this)},o=new ResizeObserver(t);window.addEventListener("resize",t),H(this,Xe).trigger&&o.observe(H(this,Xe).trigger),H(this,Xe).content&&o.observe(H(this,Xe).content),H(this,wt).resize=()=>{o.disconnect(),window.removeEventListener("resize",t)}});Se(this,Go,()=>{Object.values(H(this,wt)).forEach(t=>t()),Ue(this,wt,{})});pe(this,"update",t=>(t&&Ue(this,Xe,b(b({},H(this,Xe)),t)),H(this,bt).call(this)));pe(this,"activate",()=>{const t=H(this,bt).call(this);return H(this,Uo).call(this),H(this,Yo).call(this),H(this,Ko).call(this),Ue(this,xt,!0),t});pe(this,"deactivate",()=>{Ue(this,Ot,null),Ue(this,xt,!1),H(this,Go).call(this)});Ue(this,Xe,t)}},xt=new WeakMap,Ot=new WeakMap,Xe=new WeakMap,wt=new WeakMap,bt=new WeakMap,Uo=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,Go=new WeakMap,Hl);const wo="data-rs-focus",gn='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex],[contenteditable]',Gt=e=>{const t=e?Kt(e):null,o=t!=null?t:document;return o.querySelector(`[${wo}]`)||o.activeElement},Co=(e,t)=>{var n;const o=Kt(e);(n=(o!=null?o:document).querySelector(`[${wo}]`))==null||n.removeAttribute(wo),t!=null&&t.pseudoFocus?e.setAttribute(wo,"true"):e.focus()},Xt=(e,t)=>{const r=Array.from(e.querySelectorAll(gn)).filter(n=>{if(n.hasAttribute("disabled")||n.clientHeight===0||!(t!=null&&t.includeNegativeTabIndex)&&n.getAttribute("tabindex")==="-1")return!1;if(n.type==="radio"){let s;if(n.form){const l=n.form.elements.namedItem(n.name);if(!l)return!1;"length"in l?s=Array.from(l).filter(u=>"type"in u&&u.type==="radio"):s=[l]}else s=Array.from(e.querySelectorAll(`[type="radio"][name="${n.name}"]`));if(s!=null&&s.length){const l=Array.from(s).find(a=>a.checked);if(l&&n!==l||!l&&n!==s[0])return!1}}return!0});return t!=null&&t.additionalElement&&r.length&&r.unshift(t.additionalElement),r},pn=e=>{const{root:t,target:o,options:r}=e,n=Xt(t,{additionalElement:r==null?void 0:r.additionalElement,includeNegativeTabIndex:r==null?void 0:r.includeNegativeTabIndex}),s=n.length-1,l=Gt(t),a=n.indexOf(l),u={next:a+1,prev:a-1,first:0,last:s};let _=u[o];const m=_>s||_<0;return m&&(r!=null&&r.circular?_=o==="prev"?u.last:u.first:_=o==="prev"?u.first:u.last),{overflow:m,el:n[_],focusableElements:n}},ko=(e,t,o)=>{const r=pn({root:e,target:t,options:o});return Co(r.el),{el:r.el,focusableElements:r.focusableElements}},na=(e,t)=>ko(e,"next",z(b({},t),{includeNegativeTabIndex:!0})),sa=(e,t)=>ko(e,"prev",z(b({},t),{includeNegativeTabIndex:!0})),ia=e=>ko(e,"first",{includeNegativeTabIndex:!0}),la=e=>ko(e,"last",{includeNegativeTabIndex:!0}),er="data-rs-keyboard",aa=()=>{document.documentElement.setAttribute(er,"true")},ca=()=>{document.documentElement.removeAttribute(er)},Zt=()=>document.documentElement.hasAttribute(er),Ye={SPACE:" ",ENTER:"Enter",TAB:"Tab",UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"};class da{constructor(){pe(this,"chain",{});pe(this,"tailId",null);pe(this,"idCounter",0)}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const o=this.tailId,r=o&&this.get(o),n=this.generateId();return this.chain[n]={previousId:o,data:t},r&&(r.nextId=n),this.tailId=n,n}remove(t){var u,_;const o=this.chain[t];if(!o)return;const r=o.previousId,n=r&&this.get(r),s=o.nextId,l=s&&this.get(s);n&&(n.nextId=(u=o.nextId)!=null?u:null),l&&(l.previousId=(_=o.previousId)!=null?_:null),s||(this.tailId=r!=null?r:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,o){const r=this.get(t),n=this.remove(t);return!r||!r.previousId||o(r)?n:this.removePreviousTill(r.previousId,o)}}class ua{constructor(t){pe(this,"root");pe(this,"hiddenElements",[]);pe(this,"hideSiblingsFromScreenReader",t=>{let o=t.parentNode&&t.parentNode.firstChild;for(;o;){const r=o!==t,n=o.nodeType===1&&!o.hasAttribute("aria-hidden");r&&n&&(o.setAttribute("aria-hidden","true"),this.hiddenElements.push(o)),o=o.nextSibling}});pe(this,"release",()=>{this.hiddenElements.forEach(t=>{t.removeAttribute("aria-hidden")}),this.hiddenElements=[]});pe(this,"trap",()=>{let t=this.root;for(this.release();t!==document.body&&t.parentElement;)this.hideSiblingsFromScreenReader(t),t=t.parentElement});this.root=t}}var Je;class It{constructor(){Se(this,Mt);Se(this,we,null);Se(this,gt,null);Se(this,Wt,{});pe(this,"trapped");Se(this,qt,null);Se(this,Ut,null);Se(this,go,t=>{if(t.defaultPrevented||Je.chain.tailId!==H(this,Mt)||!H(this,we))return;const{mode:o,onRelease:r,pseudoFocus:n,includeTrigger:s}=H(this,Wt);let l="tabs";(o==="action-menu"||o==="selection-menu"||o==="action-bar")&&(l="arrows");const a=t.key,u=a===Ye.TAB,_=u&&t.shiftKey,m=u&&!t.shiftKey,d=[Ye.LEFT,Ye.RIGHT,Ye.UP,Ye.DOWN].includes(a),h=l==="arrows"&&a===(o==="action-bar"?Ye.LEFT:Ye.UP),p=l==="arrows"&&a===(o==="action-bar"?Ye.RIGHT:Ye.DOWN),g=_&&l==="tabs"||h,f=m&&l==="tabs"||p,y=Gt(H(this,we))===H(this,gt),x=pn({root:H(this,we),target:g?"prev":"next",options:{additionalElement:s?H(this,gt):void 0,circular:!0}});if(u&&l==="arrows"||o==="content-menu"&&u&&x.overflow){_&&!y&&t.preventDefault(),this.release(),r==null||r();return}if(!g&&!f){d&&(o==="action-bar"||o==="action-menu")&&t.preventDefault();return}t.preventDefault(),x.el&&Co(x.el,{pseudoFocus:n})});Se(this,Xo,()=>{const t=Kt(H(this,we));(t!=null?t:document).addEventListener("keydown",H(this,go))});Se(this,po,()=>{const t=Kt(H(this,we));(t!=null?t:document).removeEventListener("keydown",H(this,go))});Se(this,vo,()=>{const t=Je.chain.tailId&&Je.chain.get(Je.chain.tailId);return t&&H(t.data,we)===H(this,we)});pe(this,"trap",(t,o={})=>{const{mode:r="dialog",includeTrigger:n,initialFocusEl:s}=o;Ue(this,we,t),Ue(this,qt,new ua(t));const l=Gt(H(this,we)),a=Xt(H(this,we),{additionalElement:n?l:void 0}),u=r==="selection-menu";if(Ue(this,Wt,z(b({},o),{pseudoFocus:u})),Ue(this,gt,l),Ue(this,Ut,new MutationObserver(()=>{if(!H(this,we)||!H(this,vo).call(this))return;const d=Gt(H(this,we));if(H(this,we).contains(d))return;const h=Xt(H(this,we),{additionalElement:n?l:void 0});h.length&&Co(h[0],{pseudoFocus:u})})),H(this,po).call(this),H(this,Ut).observe(H(this,we),{childList:!0,subtree:!0}),!a.length&&!s)return;H(this,Xo).call(this),r==="dialog"&&H(this,qt).trap();const _=Gt(H(this,we));H(this,vo).call(this)||(Ue(this,Mt,Je.chain.add(this)),H(this,we).contains(_)||Co(s||a[0],{pseudoFocus:u})),this.trapped=!0});pe(this,"release",(t={})=>{var n,s;const{withoutFocusReturn:o}=t;if(!this.trapped||!H(this,Mt)||!H(this,we))return;this.trapped=!1,H(this,gt)&&!o&&H(this,gt).focus({preventScroll:!Zt()}),Je.chain.removePreviousTill(H(this,Mt),l=>document.body.contains(H(l.data,gt))),(n=H(this,Ut))==null||n.disconnect(),H(this,po).call(this),(s=H(this,qt))==null||s.release();const r=Je.chain.tailId&&Je.chain.get(Je.chain.tailId);r&&H(r.data,we)&&new Je().trap(H(r.data,we),H(r.data,Wt))})}}Mt=new WeakMap,we=new WeakMap,gt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,Ut=new WeakMap,go=new WeakMap,Xo=new WeakMap,po=new WeakMap,vo=new WeakMap,pe(It,"chain",new da),Je=It;const tr=e=>{var o;const t=((o=window.navigator.userAgentData)==null?void 0:o.platform)||window.navigator.platform;return typeof window!="undefined"?e.test(t):!1},_a=()=>tr(/^iPhone/i),ma=()=>tr(/^Mac/i),ha=()=>tr(/^iPad/i)||ma()&&navigator.maxTouchPoints>1,fa=()=>_a()||ha(),F=(...e)=>e.reduce((t,o)=>{if(Array.isArray(o)){const r=F(...o);return r?`${t} ${r}`:t}return o?`${t} ${o}`:t},"").trim();class vn{constructor(){pe(this,"cache",new Map);pe(this,"set",(t,o)=>{const r={},n=this.cache.get(t);Object.keys(o).forEach(s=>{r[s]=t.style.getPropertyValue(s)}),this.cache.set(t,b(b({},r),n)),Object.assign(t.style,o)});pe(this,"reset",()=>{for(const[t,o]of this.cache.entries())Object.assign(t.style,o);this.cache.clear()})}}const yn=new vn,ba=()=>{const e=window.visualViewport,t=(e==null?void 0:e.offsetLeft)||0,o=(e==null?void 0:e.offsetTop)||0,{scrollX:r,scrollY:n}=window;return yn.set(document.body,{position:"fixed",top:`${-(n-Math.floor(o))}px`,left:`${-(r-Math.floor(t))}px`,right:"0",overflow:"hidden"}),()=>{yn.reset(),window.scrollTo({top:n,left:r,behavior:"instant"})}},ga=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),or=new vn,pa=e=>{const{container:t}=e,o=t.getBoundingClientRect(),r=o.left+o.right<window.innerWidth;if(or.set(t,{overflow:"hidden"}),r){const n=ga();or.set(t,{paddingRight:`${n}px`})}return()=>or.reset()},va=e=>{var s,l,a;const t=fa();let o=()=>{};const r=(l=(s=e==null?void 0:e.containerEl)!=null?s:(e==null?void 0:e.originEl)&&_n({el:e.originEl}))!=null?l:document.body,n=r===document.body;if(r.style.overflow!=="hidden")return t&&n?o=ba():o=pa({container:r}),(a=e==null?void 0:e.callback)==null||a.call(e),u=>{var _;o(),(_=u==null?void 0:u.callback)==null||_.call(u)}},No=e=>e.preventDefault(),Jt=()=>{window.addEventListener("wheel",No,{passive:!1}),window.addEventListener("touchmove",No,{passive:!1}),document.body.style.userSelect="none"},zo=()=>{window.removeEventListener("wheel",No),window.removeEventListener("touchmove",No),document.body.style.userSelect=""},xn=c.forwardRef((e,t)=>{const{children:o,render:r,href:n,onClick:s,type:l,disabled:a,as:u,stopPropagation:_,className:m,attributes:d}=e,h=b({},d),p=s||(d==null?void 0:d.onClick),g=(d==null?void 0:d.onFocus)||(d==null?void 0:d.onBlur),f=!!(n||d!=null&&d.href),y=!!(p||g||l||d!=null&&d.ref),x=!f&&y&&(!u||u==="button");let v;if(f)v="a",h.href=a?void 0:n||(d==null?void 0:d.href);else if(x)v="button",h.type=l||(d==null?void 0:d.type)||"button",h.disabled=a||(d==null?void 0:d.disabled);else if(y){const k=!(u==="label")||p||g;v=u||"span",h.role=k?"button":void 0,h.tabIndex=k?0:void 0}else v=u||"span";const w=E=>{var k;a||(_&&E.stopPropagation(),s==null||s(E),(k=d==null?void 0:d.onClick)==null||k.call(d,E))},C=E=>{const k=E.key===Ye.SPACE,S=E.key===Ye.ENTER;!k&&!S||h.role==="button"&&(_&&E.stopPropagation(),E.preventDefault(),w(E))},N=z(b({ref:t},h),{className:F(m),onClick:w,onKeyDown:C,"aria-disabled":a?!0:void 0,children:o});return r?r(N):i.jsx(v,b({},N))});xn.displayName="Headless.Actionable";const Qt="+",rt=new Map;let Rt=[];const wn=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),So=e=>wn(e).split(Qt).sort().join(Qt),Cn=e=>{if(e.key)return e.altKey&&/^[Key|Digit|Numpad]/.test(e.code)?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},kn=(e,t)=>{Object.keys(e).forEach(o=>{o.split(",").forEach(r=>{const n=e[o];n&&t(So(r),n)})})};class ya{constructor(){pe(this,"hotkeyMap",{});pe(this,"getSize",()=>Object.keys(this.hotkeyMap).length);pe(this,"bindHotkeys",(t,o,r)=>{kn(t,(n,s)=>{s&&(this.hotkeyMap[n]||(this.hotkeyMap[n]=new Set),this.hotkeyMap[n].add({callback:s,ref:o,options:r}))})});pe(this,"unbindHotkeys",t=>{kn(t,(o,r)=>{var n,s;r&&((n=this.hotkeyMap[o])==null||n.forEach(l=>{l.callback===r&&this.hotkeyMap[o].delete(l)}),(s=this.hotkeyMap[o])!=null&&s.size||delete this.hotkeyMap[o])})});pe(this,"handleKeyDown",(t,o)=>{if(!t.size)return;const r=[...t.keys()],n=So(r.join(Qt)),s=n.split(Qt),l=this.hotkeyMap[n],a=So(n.replace("control","mod")),u=So(n.replace("meta","mod")),_=s.includes("control")&&this.hotkeyMap[a],m=s.includes("meta")&&this.hotkeyMap[u];[l,_,m].forEach(d=>{d&&d!=null&&d.size&&d.forEach(h=>{const p=o.composedPath()[0];if(h.ref.current&&!(p===h.ref.current||h.ref.current.contains(p)))return;const g=t.get(n);h.options.preventDefault&&(g==null||g.preventDefault(),o.preventDefault()),h.callback(o)})})})}}const rr=new ya,Nn=c.createContext({}),xa=e=>{const{children:t}=e,o=c.useRef(0),r=c.useCallback(m=>{if(m.repeat||o.current===0)return;const d=Cn(m);d&&(rt.set(d,m),m.metaKey&&Rt.push(...rt.keys()),rt.has("Meta")&&Rt.push(d))},[]),n=c.useCallback(m=>{if(o.current===0)return;const d=Cn(m);d&&(rt.delete(d),(d==="meta"||d==="control")&&rt.delete("mod"),d==="meta"&&(Rt.forEach(h=>{rt.has(h)&&rt.delete(h)}),Rt=[]))},[]),s=m=>!wn(m).split(Qt).some(h=>!rt.has(h)),l=c.useCallback(m=>{m.key&&(r(m),rr.handleKeyDown(rt,m))},[r]),a=c.useCallback(m=>{m.key&&n(m)},[n]),u=c.useCallback(()=>{rt.clear(),Rt=[]},[]),_=c.useCallback((m,d,h={})=>(o.current+=1,rr.bindHotkeys(m,d,h),()=>{o.current-=1,rr.unbindHotkeys(m)}),[]);return c.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("keyup",a),window.addEventListener("blur",u),()=>{window.removeEventListener("keydown",l),window.removeEventListener("keyup",a),window.removeEventListener("blur",u)}),[l,a,u]),i.jsx(Nn.Provider,{value:{addHotkeys:_,isPressed:s},children:t})},wa=()=>c.useContext(Nn),Ca="Escape",zn=c.createContext({disabledRef:null,disable:()=>{},enable:()=>{},activate:()=>{},deactivate:()=>{}}),ka=e=>{const t=c.useRef(!1),o=c.useCallback(()=>{t.current=!0},[]),r=c.useCallback(()=>{t.current=!1},[]),n=c.useCallback(()=>{t.current||aa()},[]),s=c.useCallback(()=>{t.current||ca()},[]),l=c.useCallback(_=>{_.metaKey||_.altKey||_.ctrlKey||_.key!==Ca&&n()},[n]),a=c.useCallback(()=>{s()},[s]);c.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("mousedown",a),()=>{window.removeEventListener("keydown",l),window.removeEventListener("mousedown",a)}),[a,l]);const u=c.useMemo(()=>({disabledRef:t,disable:o,enable:r,activate:n,deactivate:s}),[o,r,n,s]);return i.jsx(zn.Provider,{value:u,children:e.children})},Na=()=>c.useContext(zn),be=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,za=c.createContext({rtl:[!1,()=>{}]}),pt=e=>{const t=c.useState(e||!1),[o,r]=t;return be(()=>{const n=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=mn();o!==a&&r(a)})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[o]),be(()=>{document.documentElement.setAttribute("dir",o?"rtl":"ltr")},[o]),t},Sa=e=>{const{children:t,defaultRTL:o}=e,r=pt(o);return i.jsx(za.Provider,{value:{rtl:r},children:t})},Sn=e=>{const{children:t}=e;return i.jsx(Sa,{children:i.jsx(ka,{children:i.jsx(xa,{children:t})})})};Sn.displayName="Headless.ReshapedProvider";const Ne=e=>{const t=c.useRef(e);return be(()=>{t.current=e},[e]),t},Ge=(e,t=[],o)=>{const{addHotkeys:r,isPressed:n}=wa(),s=c.useRef(null),l=(o==null?void 0:o.ref)||s;return c.useEffect(()=>{if(o!=null&&o.disabled)return;const a=r(e,l,{preventDefault:o==null?void 0:o.preventDefault});return()=>a==null?void 0:a()},[r,Object.keys(e).join(","),o==null?void 0:o.disabled,o==null?void 0:o.preventDefault,...t]),{ref:l,checkHotkeyState:n}},nr=e=>{const{ref:t,disabled:o,orientation:r,circular:n}=e,s=[],l=[];(!r||r==="vertical")&&(s.push("ArrowUp"),l.push("ArrowDown")),(!r||r==="horizontal")&&(s.push("ArrowLeft"),l.push("ArrowRight"));const a=c.useCallback(u=>{var p;const{el:_,focusableElements:m}=u,d=m.find(g=>g.getAttribute("tabindex")!=="-1"),h=(p=_!=null?_:d)!=null?p:m[0];m.forEach(g=>g.setAttribute("tabindex","-1")),h==null||h.setAttribute("tabindex","0")},[]);c.useEffect(()=>{if(!t.current||o)return;const u=Xt(t.current);a({focusableElements:u})},[t,a,o]),Ge({[s.join(", ")]:()=>{if(!t.current)return;const u=sa(t.current,{circular:n});a(u)},[l.join(", ")]:()=>{if(!t.current)return;const u=na(t.current,{circular:n});a(u)},Home:()=>{if(!t.current)return;const u=ia(t.current);a(u)},End:()=>{if(!t.current)return;const u=la(t.current);a(u)}},[a,n],{ref:t,preventDefault:!0,disabled:o})},En=(e,t,o)=>{const{disabled:r}=o||{},n=Ne(t),s=c.useRef(!1);c.useEffect(()=>{const l=u=>{s.current=!1;const _=u.composedPath()[0];e.forEach(m=>{m.current&&(m.current===_||m.current.contains(_))&&(s.current=!0)})},a=u=>{[Ye.ENTER,Ye.SPACE].includes(u.key)&&l(u)};return document.addEventListener("mousedown",l,{passive:!0}),document.addEventListener("touchstart",l,{passive:!0}),document.addEventListener("keydown",a,{passive:!0}),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l),document.removeEventListener("keydown",a)}},[...e]),c.useEffect(()=>{if(!n.current||r)return;const l=a=>{var u;"button"in a&&a.button===2||s.current||(u=n.current)==null||u.call(n,a)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[n,r,...e])},sr=e=>{const{containerRef:t,originRef:o}=e||{},[r,n]=c.useState(!1),s=c.useRef(null),l=c.useCallback(()=>{s.current=va({containerEl:t==null?void 0:t.current,originEl:o==null?void 0:o.current,callback:()=>n(!0)})},[t,o]),a=c.useCallback(()=>{var u;(u=s.current)==null||u.call(s,{callback:()=>n(!1)}),s.current=null},[]);return c.useMemo(()=>({scrollLocked:r,lockScroll:l,unlockScroll:a}),[r,l,a])},Ct=e=>{const[t,o]=c.useState(e||!1),r=c.useCallback(()=>{o(!0)},[]),n=c.useCallback(()=>{o(!1)},[]),s=c.useCallback(l=>{o(typeof l=="boolean"?l:a=>!a)},[]);return c.useMemo(()=>({active:t,activate:r,deactivate:n,toggle:s}),[r,n,s,t])},Tn=(e,t,o)=>{const{base:r,excludeValueFromClassName:n}=o||{},s=typeof e=="string"?e:e(t);return t===!0&&r||n?s:t===!0&&!r?`${s}-true`:t===!1&&!r?`${s}-false`:t!==void 0?`${s}-${t}`:null},ce=(e,t,o,r)=>{if(typeof o!="object"){const n=Tn(t,o,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return n?[e[n]]:[]}return Object.keys(o).reduce((n,s)=>{const l=s==="s",a=Tn(t,o[s],{base:l,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),u=l?"":`--${s}`;return[...n,e[`${a}${u}`]]},[])},q=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((o,r)=>{const n=t[r];return n===void 0||n===!1?o:z(b({},o),{[`${e}-${r}`]:n})},{}),Ea=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,de=(e,t)=>Ea(e)?Object.keys(e).reduce((r,n)=>{const s=e[n];return s==null?r:z(b({},r),{[n]:t(s,n)})},{}):t(e,"s"),Ta=e=>e?{variables:q("--rs-align",e)}:{},$a=e=>e?{variables:q("--rs-ratio",e)}:{},$n={root:"_root_23jyt_1","--bleed":"_--bleed_23jyt_8","--bleed-true--m":"_--bleed-true--m_23jyt_1","--bleed-false--m":"_--bleed-false--m_23jyt_1","--bleed-true--l":"_--bleed-true--l_23jyt_1","--bleed-false--l":"_--bleed-false--l_23jyt_1","--bleed-true--xl":"_--bleed-true--xl_23jyt_1","--bleed-false--xl":"_--bleed-false--xl_23jyt_1"},Ma=e=>{if(e===void 0)return{};const t=ce($n,"--bleed",de(e,r=>typeof r=="number"&&r>0)),o=q("--rs-bleed",e);return{classNames:[$n.root,t],variables:o}},Ia={"--border-neutral":"_--border-neutral_xj2hx_1","--border-neutral-faded":"_--border-neutral-faded_xj2hx_1","--border-positive":"_--border-positive_xj2hx_1","--border-positive-faded":"_--border-positive-faded_xj2hx_1","--border-warning":"_--border-warning_xj2hx_1","--border-warning-faded":"_--border-warning-faded_xj2hx_1","--border-critical":"_--border-critical_xj2hx_1","--border-critical-faded":"_--border-critical-faded_xj2hx_1","--border-primary":"_--border-primary_xj2hx_1","--border-primary-faded":"_--border-primary-faded_xj2hx_1","--border-disabled":"_--border-disabled_xj2hx_1","--border-brand":"_--border-brand_xj2hx_1","--border-transparent":"_--border-transparent_xj2hx_1","--border-neutral--m":"_--border-neutral--m_xj2hx_1","--border-neutral-faded--m":"_--border-neutral-faded--m_xj2hx_1","--border-positive--m":"_--border-positive--m_xj2hx_1","--border-positive-faded--m":"_--border-positive-faded--m_xj2hx_1","--border-warning--m":"_--border-warning--m_xj2hx_1","--border-warning-faded--m":"_--border-warning-faded--m_xj2hx_1","--border-critical--m":"_--border-critical--m_xj2hx_1","--border-critical-faded--m":"_--border-critical-faded--m_xj2hx_1","--border-primary--m":"_--border-primary--m_xj2hx_1","--border-primary-faded--m":"_--border-primary-faded--m_xj2hx_1","--border-disabled--m":"_--border-disabled--m_xj2hx_1","--border-brand--m":"_--border-brand--m_xj2hx_1","--border-transparent--m":"_--border-transparent--m_xj2hx_1","--border-neutral--l":"_--border-neutral--l_xj2hx_1","--border-neutral-faded--l":"_--border-neutral-faded--l_xj2hx_1","--border-positive--l":"_--border-positive--l_xj2hx_1","--border-positive-faded--l":"_--border-positive-faded--l_xj2hx_1","--border-warning--l":"_--border-warning--l_xj2hx_1","--border-warning-faded--l":"_--border-warning-faded--l_xj2hx_1","--border-critical--l":"_--border-critical--l_xj2hx_1","--border-critical-faded--l":"_--border-critical-faded--l_xj2hx_1","--border-primary--l":"_--border-primary--l_xj2hx_1","--border-primary-faded--l":"_--border-primary-faded--l_xj2hx_1","--border-disabled--l":"_--border-disabled--l_xj2hx_1","--border-brand--l":"_--border-brand--l_xj2hx_1","--border-transparent--l":"_--border-transparent--l_xj2hx_1","--border-neutral--xl":"_--border-neutral--xl_xj2hx_1","--border-neutral-faded--xl":"_--border-neutral-faded--xl_xj2hx_1","--border-positive--xl":"_--border-positive--xl_xj2hx_1","--border-positive-faded--xl":"_--border-positive-faded--xl_xj2hx_1","--border-warning--xl":"_--border-warning--xl_xj2hx_1","--border-warning-faded--xl":"_--border-warning-faded--xl_xj2hx_1","--border-critical--xl":"_--border-critical--xl_xj2hx_1","--border-critical-faded--xl":"_--border-critical-faded--xl_xj2hx_1","--border-primary--xl":"_--border-primary--xl_xj2hx_1","--border-primary-faded--xl":"_--border-primary-faded--xl_xj2hx_1","--border-disabled--xl":"_--border-disabled--xl_xj2hx_1","--border-brand--xl":"_--border-brand--xl_xj2hx_1","--border-transparent--xl":"_--border-transparent--xl_xj2hx_1"},La=e=>e?{variables:q("--rs-border-w",de(e,t=>t?"1px":"0px"))}:{},Da=e=>e?{variables:q("--rs-border-w-top",de(e,t=>t?"1px":"0px"))}:{},Pa=e=>e?{variables:q("--rs-border-w-bottom",de(e,t=>t?"1px":"0px"))}:{},Fa=e=>e?{variables:q("--rs-border-w-start",de(e,t=>t?"1px":"0px"))}:{},Aa=e=>e?{variables:q("--rs-border-w-end",de(e,t=>t?"1px":"0px"))}:{},Va=e=>e?{variables:q("--rs-border-w-block",de(e,t=>t?"1px":"0px"))}:{},Ba=e=>e?{variables:q("--rs-border-w-inline",de(e,t=>t?"1px":"0px"))}:{},ja=e=>e?{classNames:ce(Ia,"--border",e)}:{},Mn={root:"_root_14o7b_5","--type-literal":"_--type-literal_14o7b_14","--type-unit":"_--type-unit_14o7b_18","--type-literal--m":"_--type-literal--m_14o7b_1","--type-unit--m":"_--type-unit--m_14o7b_1","--type-literal--l":"_--type-literal--l_14o7b_1","--type-unit--l":"_--type-unit--l_14o7b_1","--type-literal--xl":"_--type-literal--xl_14o7b_1","--type-unit--xl":"_--type-unit--xl_14o7b_1"},Ha=e=>{if(!e)return{};const t=q("--rs-h",e),o=ce(Mn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Mn.root,o],variables:t}},Oa=e=>e===void 0?{}:{variables:q("--rs-inset",e)},Wa=e=>e===void 0?{}:{variables:q("--rs-inset-top",e)},qa=e=>e===void 0?{}:{variables:q("--rs-inset-bottom",e)},Ua=e=>e===void 0?{}:{variables:q("--rs-inset-start",e)},Ya=e=>e===void 0?{}:{variables:q("--rs-inset-end",e)},Ka=e=>e===void 0?{}:{variables:q("--rs-inset-inline",e)},Ga=e=>e===void 0?{}:{variables:q("--rs-inset-block",e)},Xa=e=>e?{variables:q("--rs-justify",e)}:{},In={root:"_root_1rdxk_1","--type-literal":"_--type-literal_1rdxk_1","--type-unit":"_--type-unit_1rdxk_1","--type-literal--m":"_--type-literal--m_1rdxk_1","--type-unit--m":"_--type-unit--m_1rdxk_1","--type-literal--l":"_--type-literal--l_1rdxk_1","--type-unit--l":"_--type-unit--l_1rdxk_1","--type-literal--xl":"_--type-literal--xl_1rdxk_1","--type-unit--xl":"_--type-unit--xl_1rdxk_1"},Za=e=>{if(!e)return{};const t=q("--rs-max-h",e),o=ce(In,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[In.root,o],variables:t}},Ln={root:"_root_qeyze_1","--type-literal":"_--type-literal_qeyze_1","--type-unit":"_--type-unit_qeyze_1","--type-literal--m":"_--type-literal--m_qeyze_1","--type-unit--m":"_--type-unit--m_qeyze_1","--type-literal--l":"_--type-literal--l_qeyze_1","--type-unit--l":"_--type-unit--l_qeyze_1","--type-literal--xl":"_--type-literal--xl_qeyze_1","--type-unit--xl":"_--type-unit--xl_qeyze_1"},Ja=e=>{if(!e)return{};const t=q("--rs-max-w",e),o=ce(Ln,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Ln.root,o],variables:t}},Dn={root:"_root_zookh_1","--type-literal":"_--type-literal_zookh_1","--type-unit":"_--type-unit_zookh_1","--type-literal--m":"_--type-literal--m_zookh_1","--type-unit--m":"_--type-unit--m_zookh_1","--type-literal--l":"_--type-literal--l_zookh_1","--type-unit--l":"_--type-unit--l_zookh_1","--type-literal--xl":"_--type-literal--xl_zookh_1","--type-unit--xl":"_--type-unit--xl_zookh_1"},Qa=e=>{if(!e)return{};const t=q("--rs-min-h",e),o=ce(Dn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Dn.root,o],variables:t}},Pn={root:"_root_1nz80_1","--type-literal":"_--type-literal_1nz80_1","--type-unit":"_--type-unit_1nz80_1","--type-literal--m":"_--type-literal--m_1nz80_1","--type-unit--m":"_--type-unit--m_1nz80_1","--type-literal--l":"_--type-literal--l_1nz80_1","--type-unit--l":"_--type-unit--l_1nz80_1","--type-literal--xl":"_--type-literal--xl_1nz80_1","--type-unit--xl":"_--type-unit--xl_1nz80_1"},Ra=e=>{if(!e)return{};const t=q("--rs-min-w",e),o=ce(Pn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Pn.root,o],variables:t}},ec=e=>e?{variables:q("--rs-p",e)}:{},tc=e=>e===void 0?{}:{variables:q("--rs-p-top",e)},oc=e=>e===void 0?{}:{variables:q("--rs-p-bottom",e)},rc=e=>e===void 0?{}:{variables:q("--rs-p-start",e)},nc=e=>e===void 0?{}:{variables:q("--rs-p-end",e)},sc=e=>e===void 0?{}:{variables:q("--rs-p-inline",e)},ic=e=>e===void 0?{}:{variables:q("--rs-p-block",e)},lc=e=>e?{variables:q("--rs-position",e)}:{},Fn={root:"_root_w529z_1","--radius-none":"_--radius-none_w529z_1","--radius-small":"_--radius-small_w529z_1","--radius-medium":"_--radius-medium_w529z_1","--radius-large":"_--radius-large_w529z_1","--radius-circular":"_--radius-circular_w529z_1","--radius-none--m":"_--radius-none--m_w529z_1","--radius-small--m":"_--radius-small--m_w529z_1","--radius-medium--m":"_--radius-medium--m_w529z_1","--radius-large--m":"_--radius-large--m_w529z_1","--radius-circular--m":"_--radius-circular--m_w529z_1","--radius-none--l":"_--radius-none--l_w529z_1","--radius-small--l":"_--radius-small--l_w529z_1","--radius-medium--l":"_--radius-medium--l_w529z_1","--radius-large--l":"_--radius-large--l_w529z_1","--radius-circular--l":"_--radius-circular--l_w529z_1","--radius-none--xl":"_--radius-none--xl_w529z_1","--radius-small--xl":"_--radius-small--xl_w529z_1","--radius-medium--xl":"_--radius-medium--xl_w529z_1","--radius-large--xl":"_--radius-large--xl_w529z_1","--radius-circular--xl":"_--radius-circular--xl_w529z_1"},ac=e=>e?{classNames:[Fn.root,...ce(Fn,"--radius",e)]}:{},cc=e=>e?{variables:q("--rs-text-align",e)}:{},An={root:"_root_1kn8l_1","--type-literal":"_--type-literal_1kn8l_1","--type-unit":"_--type-unit_1kn8l_1","--type-literal--m":"_--type-literal--m_1kn8l_1","--type-unit--m":"_--type-unit--m_1kn8l_1","--type-literal--l":"_--type-literal--l_1kn8l_1","--type-unit--l":"_--type-unit--l_1kn8l_1","--type-literal--xl":"_--type-literal--xl_1kn8l_1","--type-unit--xl":"_--type-unit--xl_1kn8l_1"},dc={align:Ta,aspectRatio:$a,bleed:Ma,border:La,borderTop:Da,borderBottom:Pa,borderStart:Fa,borderEnd:Aa,borderInline:Ba,borderBlock:Va,borderColor:ja,height:Ha,padding:ec,paddingTop:tc,paddingBottom:oc,paddingStart:rc,paddingEnd:nc,paddingInline:sc,paddingBlock:ic,inset:Oa,insetTop:Wa,insetBottom:qa,insetStart:Ua,insetEnd:Ya,insetInline:Ka,insetBlock:Ga,justify:Xa,maxHeight:Za,maxWidth:Ja,minHeight:Qa,minWidth:Ra,position:lc,radius:ac,textAlign:cc,width:e=>{if(!e)return{};const t=q("--rs-w",e),o=ce(An,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[An.root,o],variables:t}}},Qe=e=>{const t={variables:{},classNames:[]};return Object.entries(e).forEach(([r,n])=>{const s=dc[r],l=s(n);l.variables&&(t.variables=b(b({},t.variables),l.variables)),l.classNames&&t.classNames.push(l.classNames)}),t},nt={root:"_root_b6kc5_2","--clamp":"_--clamp_b6kc5_22","--break-all":"_--break-all_b6kc5_29","--wrap-balance":"_--wrap-balance_b6kc5_33","--numeric":"_--numeric_b6kc5_38","--variant-title-1":"_--variant-title-1_b6kc5_1","--variant-title-2":"_--variant-title-2_b6kc5_1","--variant-title-3":"_--variant-title-3_b6kc5_1","--variant-title-4":"_--variant-title-4_b6kc5_1","--variant-title-5":"_--variant-title-5_b6kc5_1","--variant-title-6":"_--variant-title-6_b6kc5_1","--variant-featured-1":"_--variant-featured-1_b6kc5_1","--variant-featured-2":"_--variant-featured-2_b6kc5_1","--variant-featured-3":"_--variant-featured-3_b6kc5_1","--variant-body-1":"_--variant-body-1_b6kc5_1","--variant-body-2":"_--variant-body-2_b6kc5_1","--variant-body-3":"_--variant-body-3_b6kc5_1","--variant-caption-1":"_--variant-caption-1_b6kc5_1","--variant-caption-2":"_--variant-caption-2_b6kc5_1","--weight-regular":"_--weight-regular_b6kc5_1","--weight-medium":"_--weight-medium_b6kc5_1","--weight-semibold":"_--weight-semibold_b6kc5_1","--weight-bold":"_--weight-bold_b6kc5_1","--weight-extrabold":"_--weight-extrabold_b6kc5_1","--color-neutral":"_--color-neutral_b6kc5_1","--color-neutral-faded":"_--color-neutral-faded_b6kc5_1","--color-primary":"_--color-primary_b6kc5_1","--color-warning":"_--color-warning_b6kc5_1","--color-positive":"_--color-positive_b6kc5_1","--color-critical":"_--color-critical_b6kc5_1","--color-disabled":"_--color-disabled_b6kc5_1","--decoration-line-through":"_--decoration-line-through_b6kc5_184","--monospace":"_--monospace_b6kc5_188","--variant-title-1--m":"_--variant-title-1--m_b6kc5_1","--variant-title-2--m":"_--variant-title-2--m_b6kc5_1","--variant-title-3--m":"_--variant-title-3--m_b6kc5_1","--variant-title-4--m":"_--variant-title-4--m_b6kc5_1","--variant-title-5--m":"_--variant-title-5--m_b6kc5_1","--variant-title-6--m":"_--variant-title-6--m_b6kc5_1","--variant-featured-1--m":"_--variant-featured-1--m_b6kc5_1","--variant-featured-2--m":"_--variant-featured-2--m_b6kc5_1","--variant-featured-3--m":"_--variant-featured-3--m_b6kc5_1","--variant-body-1--m":"_--variant-body-1--m_b6kc5_1","--variant-body-2--m":"_--variant-body-2--m_b6kc5_1","--variant-body-3--m":"_--variant-body-3--m_b6kc5_1","--variant-caption-1--m":"_--variant-caption-1--m_b6kc5_1","--variant-caption-2--m":"_--variant-caption-2--m_b6kc5_1","--weight-regular--m":"_--weight-regular--m_b6kc5_1","--weight-medium--m":"_--weight-medium--m_b6kc5_1","--weight-semibold--m":"_--weight-semibold--m_b6kc5_1","--weight-bold--m":"_--weight-bold--m_b6kc5_1","--weight-extrabold--m":"_--weight-extrabold--m_b6kc5_1","--variant-title-1--l":"_--variant-title-1--l_b6kc5_1","--variant-title-2--l":"_--variant-title-2--l_b6kc5_1","--variant-title-3--l":"_--variant-title-3--l_b6kc5_1","--variant-title-4--l":"_--variant-title-4--l_b6kc5_1","--variant-title-5--l":"_--variant-title-5--l_b6kc5_1","--variant-title-6--l":"_--variant-title-6--l_b6kc5_1","--variant-featured-1--l":"_--variant-featured-1--l_b6kc5_1","--variant-featured-2--l":"_--variant-featured-2--l_b6kc5_1","--variant-featured-3--l":"_--variant-featured-3--l_b6kc5_1","--variant-body-1--l":"_--variant-body-1--l_b6kc5_1","--variant-body-2--l":"_--variant-body-2--l_b6kc5_1","--variant-body-3--l":"_--variant-body-3--l_b6kc5_1","--variant-caption-1--l":"_--variant-caption-1--l_b6kc5_1","--variant-caption-2--l":"_--variant-caption-2--l_b6kc5_1","--weight-regular--l":"_--weight-regular--l_b6kc5_1","--weight-medium--l":"_--weight-medium--l_b6kc5_1","--weight-semibold--l":"_--weight-semibold--l_b6kc5_1","--weight-bold--l":"_--weight-bold--l_b6kc5_1","--weight-extrabold--l":"_--weight-extrabold--l_b6kc5_1","--variant-title-1--xl":"_--variant-title-1--xl_b6kc5_1","--variant-title-2--xl":"_--variant-title-2--xl_b6kc5_1","--variant-title-3--xl":"_--variant-title-3--xl_b6kc5_1","--variant-title-4--xl":"_--variant-title-4--xl_b6kc5_1","--variant-title-5--xl":"_--variant-title-5--xl_b6kc5_1","--variant-title-6--xl":"_--variant-title-6--xl_b6kc5_1","--variant-featured-1--xl":"_--variant-featured-1--xl_b6kc5_1","--variant-featured-2--xl":"_--variant-featured-2--xl_b6kc5_1","--variant-featured-3--xl":"_--variant-featured-3--xl_b6kc5_1","--variant-body-1--xl":"_--variant-body-1--xl_b6kc5_1","--variant-body-2--xl":"_--variant-body-2--xl_b6kc5_1","--variant-body-3--xl":"_--variant-body-3--xl_b6kc5_1","--variant-caption-1--xl":"_--variant-caption-1--xl_b6kc5_1","--variant-caption-2--xl":"_--variant-caption-2--xl_b6kc5_1","--weight-regular--xl":"_--weight-regular--xl_b6kc5_1","--weight-medium--xl":"_--weight-medium--xl_b6kc5_1","--weight-semibold--xl":"_--weight-semibold--xl_b6kc5_1","--weight-bold--xl":"_--weight-bold--xl_b6kc5_1","--weight-extrabold--xl":"_--weight-extrabold--xl_b6kc5_1"},uc={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ie=e=>{const{variant:t,color:o,weight:r,align:n,decoration:s,maxLines:l,wrap:a,monospace:u,numeric:_,children:m,className:d,attributes:h}=e,p=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),g=Qe({textAlign:n}),f=e.as||p&&uc[p]||"div",y=F(nt.root,o&&nt[`--color-${o}`],...ce(nt,"--variant",t),...ce(nt,"--weight",r),s&&nt[`--decoration-${s}`],l!==void 0&&nt["--clamp"],l===1&&nt["--break-all"],a&&nt[`--wrap-${a}`],u&&nt["--monospace"],_&&nt["--numeric"],d,g.classNames),x=z(b(b({},h==null?void 0:h.style),g.variables),{"--rs-text-lines":l});return i.jsx(f,z(b({},h),{className:y,style:x,children:m}))};ie.displayName="Text";const Lt={root:"_root_1tl54_1","--color-neutral":"_--color-neutral_1tl54_25","--blank":"_--blank_1tl54_29","--vertical":"_--vertical_1tl54_35",label:"_label_1tl54_63","--content-position-center":"_--content-position-center_1tl54_89","--content-position-start":"_--content-position-start_1tl54_96","--vertical-true--m":"_--vertical-true--m_1tl54_1","--vertical-false--m":"_--vertical-false--m_1tl54_1","--vertical-true--l":"_--vertical-true--l_1tl54_1","--vertical-false--l":"_--vertical-false--l_1tl54_1","--vertical-true--xl":"_--vertical-true--xl_1tl54_1","--vertical-false--xl":"_--vertical-false--xl_1tl54_1"},eo=e=>{const{vertical:t,blank:o,children:r,contentPosition:n="center",color:s,offset:l,className:a,attributes:u}=e,_=F(Lt.root,a,o&&Lt["--blank"],s&&Lt[`--color-${s}`],r?Lt[`--content-position-${n}`]:void 0,...ce(Lt,"--vertical",t));let m;return(typeof t=="boolean"||t===void 0)&&(m=t?"vertical":"horizontal"),i.jsx("div",z(b({},u),{role:"separator","aria-orientation":m,className:_,style:z(b({},u==null?void 0:u.style),{"--rs-divider-offset":l}),children:r&&i.jsx(ie,{color:"neutral-faded",variant:"caption-1",className:Lt.label,children:r})}))};eo.displayName="Divider";const ir={root:"_root_11ilc_1","--hidden":"_--hidden_11ilc_5","--visibility":"_--visibility_11ilc_9","--hidden-true--m":"_--hidden-true--m_11ilc_1","--hidden-false--m":"_--hidden-false--m_11ilc_1","--hidden-true--l":"_--hidden-true--l_11ilc_1","--hidden-false--l":"_--hidden-false--l_11ilc_1","--hidden-true--xl":"_--hidden-true--xl_11ilc_1","--hidden-false--xl":"_--hidden-false--xl_11ilc_1"},kt=e=>{const{as:t="div",children:o,visibility:r,hide:n}=e,s=F(ir.root,...ce(ir,"--hidden",n),r&&ir["--visibility"]);return i.jsx(t,{className:s,children:o})};kt.displayName="Hidden";const ze={root:"_root_9u073_1",item:"_item_9u073_11","--animated":"_--animated_9u073_19","--bg-neutral":"_--bg-neutral_9u073_1","--bg-positive":"_--bg-positive_9u073_1","--bg-warning":"_--bg-warning_9u073_1","--bg-critical":"_--bg-critical_9u073_1","--bg-primary":"_--bg-primary_9u073_1","--bg-neutral-faded":"_--bg-neutral-faded_9u073_1","--bg-positive-faded":"_--bg-positive-faded_9u073_1","--bg-warning-faded":"_--bg-warning-faded_9u073_1","--bg-critical-faded":"_--bg-critical-faded_9u073_1","--bg-primary-faded":"_--bg-primary-faded_9u073_1","--bg-page":"_--bg-page_9u073_1","--bg-page-faded":"_--bg-page-faded_9u073_1","--bg-disabled":"_--bg-disabled_9u073_1","--bg-disabled-faded":"_--bg-disabled-faded_9u073_1","--bg-elevation-base":"_--bg-elevation-base_9u073_1","--bg-elevation-raised":"_--bg-elevation-raised_9u073_1","--bg-elevation-overlay":"_--bg-elevation-overlay_9u073_1","--bg-brand":"_--bg-brand_9u073_39","--bg-white":"_--bg-white_9u073_44","--bg-black":"_--bg-black_9u073_49","--shadow-raised":"_--shadow-raised_9u073_54","--shadow-overlay":"_--shadow-overlay_9u073_58","--overflow-hidden":"_--overflow-hidden_9u073_62","--overflow-auto":"_--overflow-auto_9u073_66","--divided":"_--divided_9u073_70","--flex":"_--flex_9u073_74","--direction-column":"_--direction-column_9u073_1","item--gap-before":"_item--gap-before_9u073_86","item--gap-auto":"_item--gap-auto_9u073_90","--direction-column-reverse":"_--direction-column-reverse_9u073_1","--direction-row":"_--direction-row_9u073_1","--direction-row-reverse":"_--direction-row-reverse_9u073_1","--nowrap":"_--nowrap_9u073_145","--wrap":"_--wrap_9u073_153","--nowrap-false--m":"_--nowrap-false--m_9u073_1","--wrap-true--m":"_--wrap-true--m_9u073_1","--nowrap-true--m":"_--nowrap-true--m_9u073_1","--wrap-false--m":"_--wrap-false--m_9u073_1","--nowrap-false--l":"_--nowrap-false--l_9u073_1","--wrap-true--l":"_--wrap-true--l_9u073_1","--nowrap-true--l":"_--nowrap-true--l_9u073_1","--wrap-false--l":"_--wrap-false--l_9u073_1","--nowrap-false--xl":"_--nowrap-false--xl_9u073_1","--wrap-true--xl":"_--wrap-true--xl_9u073_1","--nowrap-true--xl":"_--nowrap-true--xl_9u073_1","--wrap-false--xl":"_--wrap-false--xl_9u073_1",divider:"_divider_9u073_171","item--grow":"_item--grow_9u073_175","item--shrink":"_item--shrink_9u073_193","item--columns":"_item--columns_9u073_197","item--columns-1":"_item--columns-1_9u073_1","item--columns-2":"_item--columns-2_9u073_1","item--columns-3":"_item--columns-3_9u073_1","item--columns-4":"_item--columns-4_9u073_1","item--columns-5":"_item--columns-5_9u073_1","item--columns-6":"_item--columns-6_9u073_1","item--columns-7":"_item--columns-7_9u073_1","item--columns-8":"_item--columns-8_9u073_1","item--columns-9":"_item--columns-9_9u073_1","item--columns-10":"_item--columns-10_9u073_1","item--columns-11":"_item--columns-11_9u073_1","item--columns-12":"_item--columns-12_9u073_1","item--columns-auto":"_item--columns-auto_9u073_218","item--columns-1--m":"_item--columns-1--m_9u073_1","item--columns-auto--m":"_item--columns-auto--m_9u073_1","item--columns-2--m":"_item--columns-2--m_9u073_1","item--columns-3--m":"_item--columns-3--m_9u073_1","item--columns-4--m":"_item--columns-4--m_9u073_1","item--columns-5--m":"_item--columns-5--m_9u073_1","item--columns-6--m":"_item--columns-6--m_9u073_1","item--columns-7--m":"_item--columns-7--m_9u073_1","item--columns-8--m":"_item--columns-8--m_9u073_1","item--columns-9--m":"_item--columns-9--m_9u073_1","item--columns-10--m":"_item--columns-10--m_9u073_1","item--columns-11--m":"_item--columns-11--m_9u073_1","item--columns-12--m":"_item--columns-12--m_9u073_1","item--columns-1--l":"_item--columns-1--l_9u073_1","item--columns-auto--l":"_item--columns-auto--l_9u073_1","item--columns-2--l":"_item--columns-2--l_9u073_1","item--columns-3--l":"_item--columns-3--l_9u073_1","item--columns-4--l":"_item--columns-4--l_9u073_1","item--columns-5--l":"_item--columns-5--l_9u073_1","item--columns-6--l":"_item--columns-6--l_9u073_1","item--columns-7--l":"_item--columns-7--l_9u073_1","item--columns-8--l":"_item--columns-8--l_9u073_1","item--columns-9--l":"_item--columns-9--l_9u073_1","item--columns-10--l":"_item--columns-10--l_9u073_1","item--columns-11--l":"_item--columns-11--l_9u073_1","item--columns-12--l":"_item--columns-12--l_9u073_1","item--columns-1--xl":"_item--columns-1--xl_9u073_1","item--columns-auto--xl":"_item--columns-auto--xl_9u073_1","item--columns-2--xl":"_item--columns-2--xl_9u073_1","item--columns-3--xl":"_item--columns-3--xl_9u073_1","item--columns-4--xl":"_item--columns-4--xl_9u073_1","item--columns-5--xl":"_item--columns-5--xl_9u073_1","item--columns-6--xl":"_item--columns-6--xl_9u073_1","item--columns-7--xl":"_item--columns-7--xl_9u073_1","item--columns-8--xl":"_item--columns-8--xl_9u073_1","item--columns-9--xl":"_item--columns-9--xl_9u073_1","item--columns-10--xl":"_item--columns-10--xl_9u073_1","item--columns-11--xl":"_item--columns-11--xl_9u073_1","item--columns-12--xl":"_item--columns-12--xl_9u073_1","--direction-column--m":"_--direction-column--m_9u073_1","--direction-column-reverse--m":"_--direction-column-reverse--m_9u073_1","--direction-row--m":"_--direction-row--m_9u073_1","--direction-row-reverse--m":"_--direction-row-reverse--m_9u073_1","item--grow-true--m":"_item--grow-true--m_9u073_1","item--grow-false--m":"_item--grow-false--m_9u073_1","--direction-column--l":"_--direction-column--l_9u073_1","--direction-column-reverse--l":"_--direction-column-reverse--l_9u073_1","--direction-row--l":"_--direction-row--l_9u073_1","--direction-row-reverse--l":"_--direction-row-reverse--l_9u073_1","item--grow-true--l":"_item--grow-true--l_9u073_1","item--grow-false--l":"_item--grow-false--l_9u073_1","--direction-column--xl":"_--direction-column--xl_9u073_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_9u073_1","--direction-row--xl":"_--direction-row--xl_9u073_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_9u073_1","item--grow-true--xl":"_item--grow-true--xl_9u073_1","item--grow-false--xl":"_item--grow-false--xl_9u073_1"},lr=e=>{const{columns:t,grow:o,shrink:r,gapBefore:n,as:s="div",order:l,children:a,className:u,attributes:_}=e,m=F(ze.item,u,n==="auto"&&ze["item--gap-auto"],n!==void 0&&ze["item--gap-before"],t&&ze["item--columns"],r&&ze["item--shrink"],...ce(ze,"item--grow",o),...ce(ze,"item--columns",t)),d=b(b({},q("--rs-view-item-order",l)),q("--rs-view-item-gap-before",n));return i.jsx(s,z(b({},_),{style:b(b({},_==null?void 0:_.style),d),className:m,children:a}))},ar=e=>{var Ie;const{align:t,justify:o,wrap:r,gap:n,height:s,width:l,aspectRatio:a,maxHeight:u,maxWidth:_,minHeight:m,minWidth:d,padding:h,paddingInline:p,paddingBlock:g,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,bleed:w,animated:C,backgroundColor:N,borderColor:E,borderTop:k,borderBottom:S,borderStart:T,borderEnd:$,borderInline:M,borderBlock:L,borderRadius:P,shadow:A,textAlign:V,overflow:D,position:j,inset:W,insetTop:re,insetBottom:X,insetStart:J,insetEnd:U,zIndex:te,grow:G,shrink:ee,as:$e="div",children:_e,divided:ne,className:oe,attributes:se}=e,B=(Ie=e.border)!=null?Ie:E?!k&&!S&&!T&&!$&&!M&&!L:void 0;let Y=!!t||!!o||!!n||!!e.direction;const Q=e.direction||(Y?"column":void 0),fe=Qe({align:t,inset:W,insetTop:re,insetBottom:X,insetStart:J,insetEnd:U,bleed:w,width:l,height:s,maxWidth:_,maxHeight:u,minWidth:d,minHeight:m,position:j,aspectRatio:a,textAlign:V,justify:o,padding:h,paddingInline:p,paddingBlock:g,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,borderColor:E,border:B,borderTop:k,borderBottom:S,borderStart:T,borderEnd:$,borderInline:M,borderBlock:L,radius:P});let Z=0,K;const le=({className:he,key:ye})=>{const xe=F(ze.divider,he);let Ve=!1;return typeof Q=="string"&&Q.startsWith("row")?Ve=!0:Q&&(Ve=Object.keys(Q).reduce((Ze,Be)=>{const je=Q[Be];return je?z(b({},Ze),{[Be]:je.startsWith("row")}):Ze},{})),i.jsx("div",{className:xe,children:i.jsx(eo,{vertical:Ve,blank:!0})},`${ye}-divider`)},ae=({className:he,child:ye,index:xe})=>{var Zo,Jo;const Ve=c.isValidElement(ye),Pe=Ve&&ye.type===lr,Ze=Ve&&ye.type===ar,Be=ye.key,je=!!xe&&ne&&le({className:he,key:Be});let Ee;return Pe?Ee=c.cloneElement(ye,{className:F(he,ye.props.className)}):!he&&(c.isValidElement(ye)||c.Children.count(_e===1)||typeof ye=="string")?Ee=ye:Ee=i.jsx("div",{className:he,children:ye},Be),(Pe||Ze)&&((Zo=ye.props)!=null&&Zo.grow)&&(K=ye.props.grow,Y=!0),Pe&&((Jo=ye.props)==null?void 0:Jo.gap)==="auto"&&(K=!0),i.jsxs(c.Fragment,{children:[je,Ee]},Be?`${Be}-fragment`:void 0)},ue=c.Children.map(_e,(he,ye)=>{if(!he)return null;const xe=Z;if(Z+=1,c.isValidElement(he)&&he.type===kt){const Ve=he.props,{children:Pe}=Ve,Ze=ve(Ve,["children"]),Be=he.key||ye;return c.createElement(kt,z(b({},Ze),{key:Be}),ae({child:Pe,index:xe}))}return he.type===c.Fragment&&c.Children.count(he.props.children)>1?he.props.children.map(Pe=>Pe?(Z+=1,ae({child:Pe,index:Z})):null):ae({child:he,index:xe})}),Ce=F(ze.root,oe,fe.classNames,N&&ze[`--bg-${N}`],A&&ze[`--shadow-${A}`],D&&ze[`--overflow-${D}`],C&&ze["--animated"],ne&&ze["--divided"],(Y||K)&&ze["--flex"],...ce(ze,"--direction",Q),...ce(ze,"--nowrap",K||r===!1),...ce(ze,"--wrap",r),...ce(ze,"item--grow",G),ee&&ze["item--shrink"]),Me=b(b(b(b({},se==null?void 0:se.style),q("--rs-view-gap",n)),fe.variables),te?{"--rs-view-z":te}:{});return i.jsx($e,z(b({},se),{className:Ce,style:Me,children:ue}))};ar.displayName="View",lr.displayName="View.Item";const O=ar;O.Item=lr;const Eo={root:"_root_kbofm_1","--position-top":"_--position-top_kbofm_1","--position-top-start":"_--position-top-start_kbofm_1","--position-top-end":"_--position-top-end_kbofm_1","--position-bottom":"_--position-bottom_kbofm_101","--position-bottom-start":"_--position-bottom-start_kbofm_1","--position-bottom-end":"_--position-bottom-end_kbofm_1","--elevated":"_--elevated_kbofm_66","--active":"_--active_kbofm_80"},_c=["top","bottom"],Vn=e=>{const{position:t="bottom",positionType:o,offset:r,padding:n,paddingBlock:s=3,paddingInline:l=4,children:a,elevated:u,active:_=!0,className:m,attributes:d}=e,h=o!=null?o:r?"absolute":_c.includes(t)?"relative":"absolute",p=r!=null?r:h==="relative"?void 0:4,g=p&&q("--rs-action-bar-offset",p),f=F(Eo.root,(u||!!g)&&Eo["--elevated"],t&&Eo[`--position-${t}`],_&&Eo["--active"],m);return i.jsx(O,{className:f,attributes:z(b({},d),{style:b(b({},d==null?void 0:d.style),g)}),position:h,paddingBlock:n||s,paddingInline:n||l,children:a})};Vn.displayName="ActionBar";const cr={root:"_root_wxiwp_1","--auto":"_--auto_wxiwp_12","--color-neutral":"_--color-neutral_wxiwp_1","--color-neutral-faded":"_--color-neutral-faded_wxiwp_1","--color-primary":"_--color-primary_wxiwp_1","--color-positive":"_--color-positive_wxiwp_1","--color-warning":"_--color-warning_wxiwp_1","--color-critical":"_--color-critical_wxiwp_1","--color-disabled":"_--color-disabled_wxiwp_1"},ge=e=>{const{svg:t,className:o,color:r,size:n="1em",autoWidth:s,attributes:l}=e,a=Qe({height:n}),u=F(cr.root,o,a.classNames,r&&cr[`--color-${r}`],s&&cr["--auto"]),_=c.isValidElement(t)||t===null?t:i.jsx(t,{}),m=b(b({},l==null?void 0:l.style),a.variables);return i.jsx("span",z(b({},l),{"aria-hidden":"true",className:u,style:m,children:_&&c.cloneElement(_,{focusable:!1})}))};ge.displayName="Icon";const mc={icon:"_icon_1elkf_1"},Bn=e=>{const{title:t,children:o,icon:r,actionsSlot:n,color:s="neutral",inline:l,bleed:a,className:u,attributes:_}=e,m=s==="neutral",d=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(ie,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&o&&" ",o&&i.jsx(ie,{variant:"body-3",as:"span",children:o})]}):i.jsxs(O,{gap:1,grow:!0,children:[t&&i.jsx(ie,{variant:"body-3",weight:"medium",children:t}),o&&i.jsx(ie,{variant:"body-3",children:o})]}),h=p=>n?i.jsxs(O,{gap:l?4:2,direction:l?"row":"column",children:[l?i.jsx(O.Item,{grow:!0,children:p}):p,n&&i.jsx(ie,{variant:"body-3",weight:"medium",children:i.jsx(O,{direction:"row",gap:3,children:n})})]}):p;return i.jsx(O,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:u,attributes:z(b({},_),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:mc.icon,children:i.jsx(ge,{svg:r,size:5,color:m?"primary":s})}),i.jsx(O.Item,{grow:!0,children:h(d())})]}):h(d())})};Bn.displayName="Alert";const Ke=e=>{const t=c.useId();return e||t};let Nt={},dt=null;const hc=e=>{Nt[e]&&(e===dt&&(dt=Nt[e].parentId),delete Nt[e],dt===null&&(Nt={}))},fc=(e,t,o)=>{Nt[e]={parentId:dt,triggerRef:o,contentRef:t},dt=e},jn=e=>{const{active:t,contentRef:o,triggerRef:r,hasTrigger:n=!0}=e,s=Ke();return c.useEffect(()=>{if(t)return fc(s,o,r),()=>hc(s)},[t,s,o,r]),c.useCallback(()=>{var d;if(!t)return!0;const l=dt?Nt[dt]:void 0,a=(d=l==null?void 0:l.triggerRef)==null?void 0:d.current,u=l!=null&&l.parentId?Nt[l.parentId]:void 0,_=u==null?void 0:u.contentRef.current,m=_&&a&&_.contains(a);return n&&!m?!0:!dt||dt===s},[s,t,n])},Hn=e=>{const t=e instanceof Date;if(t)return String(t);const o=JSON.stringify(e);return JSON.parse(o)},bc=(e,t=!1)=>{const o=c.useRef(t?Hn(e):e);return c.useEffect(()=>{o.current=t?Hn(e):e},[e,t]),o.current},Re=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},dr="data-rs-no-transition",gc=()=>{document.documentElement.setAttribute(dr,"true")},pc=()=>{document.documentElement.removeAttribute(dr)},vc=()=>!(document.documentElement.hasAttribute(dr)||window.matchMedia("(prefers-reduced-motion: reduce)").matches),yc=600,On=c.createContext({}),Wn=c.createContext(null),qn=c.createContext(null),Dt=()=>c.useContext(On),xc=()=>c.useContext(Wn),wc=()=>c.useContext(qn),Cc=On.Provider,kc=Wn.Provider,Nc=qn.Provider,zc=e=>{const $=e,{triggerElRef:t,flyoutElRef:o,triggerCoordinatesRef:r,contentGap:n,contentShift:s,onClose:l}=$,a=ve($,["triggerElRef","flyoutElRef","triggerCoordinatesRef","contentGap","contentShift","onClose"]),{position:u="bottom",fallbackPositions:_,fallbackAdjustLayout:m,fallbackMinHeight:d,width:h,container:p}=a,[g,f]=c.useState("idle"),[y,x]=c.useState(u),v=c.useRef(null),w=c.useMemo(()=>_,[_==null?void 0:_.join(" ")]),C=c.useCallback(()=>{f("rendered")},[]),N=c.useCallback(()=>{f("hidden")},[]),E=c.useCallback(()=>{if(!o.current)return;const M=getComputedStyle(o.current).getPropertyValue("--rs-unit-x1"),L=M?parseInt(M):4,P=()=>{l==null||l({}),N()};return{trigger:t.current,content:o.current,container:p,triggerCoordinates:r.current,width:h,position:u,fallbackPositions:w,fallbackAdjustLayout:m,fallbackMinHeight:d,contentGap:(n!=null?n:0)*L,contentShift:(s!=null?s:0)*L,onDeactivate:P}},[w,p,n,s,u,m,d,r,t,h,N,l,o]),k=c.useCallback(()=>{const M=E();if(!M)return;v.current=new ra(M);const L=v.current.activate();x(L.position),f("visible")},[E]),S=c.useCallback(()=>{v.current&&(v.current.deactivate(),f("idle"))},[]),T=c.useCallback(()=>{const M=E();if(!v.current||!M)return;const L=v.current.update(M);x(L.position)},[E]);return be(()=>{T()},[u]),c.useMemo(()=>({position:y,status:g,updatePosition:T,render:C,hide:N,remove:S,show:k}),[C,T,N,S,k,y,g])};class Sc{constructor(){pe(this,"status","cold");pe(this,"timer");pe(this,"warm",()=>{if(clearTimeout(this.timer),this.status==="cooling"){this.status="warm";return}this.status="warming",this.timer=setTimeout(()=>{this.status="warm",this.timer=void 0},100)});pe(this,"cool",()=>{if(clearTimeout(this.timer),this.status==="warming"){this.status="cold";return}this.status="cooling",this.timer=setTimeout(()=>{this.status="cold",this.timer=void 0},500)})}}const zt=new Sc;function Ec(e,t){const[o,r,n]=t,s=(r.y-n.y)*(o.x-n.x)+(n.x-r.x)*(o.y-n.y),l=((r.y-n.y)*(e.x-n.x)+(n.x-r.x)*(e.y-n.y))/s,a=((n.y-o.y)*(e.x-n.x)+(o.x-n.x)*(e.y-n.y))/s,u=1-l-a;return l>=0&&l<=1&&a>=0&&a<=1&&u>=0&&u<=1}function Tc(e,t){const o={topLeft:{x:e.left,y:e.top},topRight:{x:e.right,y:e.top},bottomLeft:{x:e.left,y:e.bottom},bottomRight:{x:e.right,y:e.bottom}};return t!=null&&t.startsWith("bottom")?[o.topLeft,o.topRight]:t!=null&&t.startsWith("top")?[o.bottomLeft,o.bottomRight]:t!=null&&t.startsWith("start")?[o.topRight,o.bottomRight]:[o.topLeft,o.bottomLeft]}function $c(e,t,o){return document.elementsFromPoint(e.x,e.y).some(n=>t.current&&t.current.contains(n)||o.current&&o.current.contains(n))}function Mc(e){const{contentRef:t,triggerRef:o,position:r,onClose:n,origin:s}=e;if(!t.current)return n(),()=>{};const l=t.current.getBoundingClientRect(),[a,u]=Tc(l,r),m=[{x:s.x,y:s.y},a,u];let d=null;const h=()=>{document.removeEventListener("mousemove",g),d&&clearTimeout(d)},p=()=>{d&&clearTimeout(d),d=setTimeout(()=>{n(),h()},1e3)},g=f=>{const y={x:f.clientX,y:f.clientY};if($c(y,t,o)){h();return}Ec(y,m)&&t.current&&o.current?p():(n(),h())};return p(),document.addEventListener("mousemove",g),h}const ur=e=>{var Ol;const{triggerType:t="click",groupTimeouts:o,onOpen:r,onClose:n,children:s,disabled:l,forcePosition:a,fallbackAdjustLayout:u,fallbackMinHeight:_,trapFocusMode:m="dialog",width:d,disableHideAnimation:h,disableContentHover:p,disableCloseOnOutsideClick:g,autoFocus:f=!0,originCoordinates:y,contentGap:x=2,contentShift:v,contentMaxHeight:w,contentMaxWidth:C,contentZIndex:N,contentClassName:E,contentAttributes:k,position:S,active:T,id:$,instanceRef:M,containerRef:L,initialFocusRef:P,positionRef:A}=e,V=e.fallbackPositions===!1||a?[]:e.fallbackPositions,D=Ne(r),j=Ne(n),W=l===!0?!1:T,re=bc(W),X=Dt(),{elRef:J}=xc()||{},{elRef:U}=wc()||{},te=X.trapFocusMode==="action-menu"||X.trapFocusMode==="content-menu",G=c.useRef(null),ee=!!(J!=null&&J.current)&&((Ol=U==null?void 0:U.current)==null?void 0:Ol.contains(J.current)),_e=(!U||ee)&&J||G,ne=c.useRef(null),oe=Ke($),se=c.useRef(null),B=c.useRef(null),Y=c.useRef(!1),Q=c.useRef(!1),fe=c.useRef(!0),Z=c.useRef(!1),K=c.useRef(null),le=c.useRef(y!=null?y:null);le.current=y!=null?y:null;const ae=zc({triggerElRef:A!=null?A:_e,flyoutElRef:ne,triggerCoordinatesRef:le,width:d,position:S,defaultActive:W,container:L==null?void 0:L.current,fallbackPositions:V,fallbackAdjustLayout:u,fallbackMinHeight:_,contentGap:x,contentShift:v,onClose:j.current}),{status:ue,updatePosition:Ce,render:Me,hide:Ie,remove:he,show:ye}=ae,xe=ue!=="idle",Ve=jn({active:xe&&t!=="hover",contentRef:ne,triggerRef:_e}),Pe=c.useCallback(()=>{se.current&&clearTimeout(se.current)},[]),Ze=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(R=>{R!==_e.current&&(R.style.pointerEvents="none")})},[_e,t]),Be=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(R=>{R.style.removeProperty("pointer-events")})},[t]),je=c.useCallback(()=>{var R;Y.current||xe&&t!=="hover"||((R=D.current)==null||R.call(D),Ze())},[D,xe,t,Ze]),Ee=c.useCallback(R=>{var yo,xo;!(t==="click"&&!Ve())&&(xe||l)&&((yo=j.current)==null||yo.call(j,{reason:R.reason}),Be(),R!=null&&R.closeParents&&((xo=X==null?void 0:X.handleClose)==null||xo.call(X,{closeParents:!0,reason:R.reason})))},[xe,Ve,t,j,l,X,Be]),Zo=c.useCallback(R=>{var Yt;!Zt()||(Yt=ne.current)!=null&&Yt.contains(R.relatedTarget)||Q.current||Ee({})},[Ee]),Jo=c.useCallback(()=>{t==="hover"&&!Zt()||je()},[je,t]),zd=c.useCallback(()=>{t==="hover"&&(Z.current=!0)},[t]),cn=c.useCallback(()=>{Pe(),Z.current?(je(),Z.current=!1):(o&&zt.warm(),se.current=setTimeout(()=>{je()},o&&zt.status==="warming"?yc:0))},[Pe,je,o]),Sd=c.useCallback(R=>{var ct;R.currentTarget===_e.current&&((ct=K.current)==null||ct.cleanup()),cn()},[_e,cn]),Ed=c.useCallback(R=>{var ct,Yt,yo,xo;if(!(R.relatedTarget===ne.current||R.relatedTarget instanceof Node&&((ct=ne.current)!=null&&ct.contains(R.relatedTarget)))&&!(R.relatedTarget===_e.current||R.relatedTarget instanceof Node&&((Yt=_e.current)!=null&&Yt.contains(R.relatedTarget))))if(zt.cool(),Pe(),(yo=K.current)==null||yo.cleanup(),t==="hover"&&xe){const Wl=R.currentTarget===ne.current&&((xo=K.current)!=null&&xo.origin)?K.current.origin:{x:R.clientX,y:R.clientY},Ld=Mc({contentRef:ne,triggerRef:_e,position:ae.position,onClose:()=>Ee({}),origin:Wl});K.current={origin:Wl,cleanup:Ld}}else Ee({})},[Pe,Ee,_e,ne,t,xe,ae.position]),Td=c.useCallback(()=>{xe?Ee({}):je()},[xe,je,Ee]),$d=()=>{Q.current=!0,Z.current=!0},Md=()=>{Q.current=!1},Id=c.useCallback(R=>{ne.current!==R.currentTarget||R.propertyName!=="transform"||ue==="hidden"&&he()},[he,ue]);return be(()=>{if(W){Me();return}l&&zt.cool(),re!==W&&(vc()&&!h&&(zt.status==="cooling"||!o)?Ie():he())},[W,re,Me,Ie,he,h,l,o]),be(()=>{ue==="rendered"&&ye()},[ue,ye]),be(()=>{var ct;if(ue!=="visible"||!ne.current||(ct=B.current)!=null&&ct.trapped||m===!1)return;const R=f?P==null?void 0:P.current:ne.current.querySelector("[role][tabindex='-1']");B.current=new It,B.current.trap(ne.current,{mode:m,initialFocusEl:R,includeTrigger:t==="hover"&&m!=="dialog"&&!te,onRelease:()=>{Ee({})}})},[ue,t,m,f]),c.useEffect(()=>{var R;!h&&ue!=="hidden"||h&&xe||(R=B.current)!=null&&R.trapped&&(t==="hover"&&Zt()&&(Y.current=!0,setTimeout(()=>{Y.current=!1},100)),B.current.release({withoutFocusReturn:!fe.current}),fe.current=!0)},[ue,xe,t,h]),c.useEffect(()=>{if(xe)return()=>{var R;return(R=K.current)==null?void 0:R.cleanup()}},[xe]),c.useEffect(()=>()=>{var R;return(R=B.current)==null?void 0:R.release()},[]),c.useImperativeHandle(M,()=>({open:je,close:()=>Ee({}),updatePosition:()=>Ce()}),[je,Ee,Ce]),Ge({Escape:()=>Ee({reason:"escape-key"})},[Ee]),En([ne,_e],()=>{fe.current=!1,Ee({reason:"outside-click"})},{disabled:!xe||g}),i.jsx(Cc,{value:{id:oe,flyout:ae,width:d,triggerElRef:_e,flyoutElRef:ne,handleClose:Ee,handleOpen:je,handleFocus:Jo,handleBlur:Zo,handleTriggerMouseEnter:Sd,handleContentMouseEnter:cn,handleMouseLeave:Ed,handleTouchStart:zd,handleTransitionEnd:Id,handleClick:Td,handleContentMouseDown:$d,handleContentMouseUp:Md,triggerType:t,trapFocusMode:m,contentZIndex:N,contentClassName:E,contentAttributes:k,contentGap:x,contentMaxHeight:w,contentMaxWidth:C,containerRef:L,disableContentHover:p,autoFocus:f,isSubmenu:te},children:s})};ur.displayName="FlyoutControlled";const Un=e=>{const{defaultActive:t,onClose:o,onOpen:r}=e,[n,s]=c.useState(t||!1),l=u=>{s(!1),o==null||o(u)},a=()=>{s(!0),r==null||r()};return i.jsx(ur,z(b({},e),{defaultActive:void 0,active:n,onClose:l,onOpen:a}))};Un.displayName="FlyoutUncontrolled";const Yn=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(ur,b({},e)):i.jsx(Un,b({},e))};Yn.displayName="Flyout";const Kn=c.createContext({}),_r=c.createContext({}),Ic={root:"_root_153o0_1"},To=e=>e?e.hasAttribute("data-rs-root")||e===document.documentElement||!e.parentElement?e:To(e.parentElement):document.documentElement,mr=()=>c.useContext(_r),Gn=()=>{const{colorMode:e,theme:t,setTheme:o,rootTheme:r,setRootTheme:n}=c.useContext(Kn),{mode:s,setMode:l,invertMode:a}=c.useContext(_r);return c.useMemo(()=>({theme:t,setTheme:o,rootTheme:r,setRootTheme:n,colorMode:e||s,setColorMode:l,invertColorMode:a}),[e,s,l,a,t,o,n,r])},Xn=e=>typeof e=="string"?e:` ${e.join(" ")} `,Pt=e=>i.jsx(Zn,b({},e)),Zn=e=>{const{name:t,defaultName:o,colorMode:r,scoped:n,scopeRef:s,children:l,className:a}=e,[u,_]=c.useState(!1),[m,d]=c.useState(o),h=mr(),p=Gn(),g=!p.theme,f=t||m||p.theme,y=g||n?f:p.rootTheme,x=g||n?h.mode:p.colorMode,w=r==="inverted"?x==="light"?"dark":"light":r||x,C=F(Ic.root,a),N=c.useCallback(S=>{g?d(S):p.setRootTheme(S)},[g,p]),E=c.useCallback(S=>{d(S)},[]);be(()=>{_(!0)},[]),be(()=>{if(!document||!g)return;const S=To(s==null?void 0:s.current),T=S.getAttribute("data-rs-color-mode"),$=Xn(f);return $&&S.setAttribute("data-rs-theme",$),T||S.setAttribute("data-rs-color-mode",w),()=>{S.removeAttribute("data-rs-theme"),T||S.removeAttribute("data-rs-color-mode")}},[f,w,g,s]);const k=c.useMemo(()=>({theme:f,rootTheme:y,colorMode:w,setTheme:E,setRootTheme:N}),[f,w,E,N,y]);return i.jsx(Kn.Provider,{value:k,children:i.jsx("div",{className:C,ref:s,"data-rs-root":n?!0:void 0,"data-rs-theme":g?void 0:Xn(f),"data-rs-color-mode":g||!r&&!u?void 0:w,children:l})})};Pt.displayName="Theme";const Jn=e=>{const{defaultMode:t,mode:o,scopeRef:r,children:n}=e,[s,l]=c.useState(t),a=mr(),u=c.useCallback(m=>{To(r==null?void 0:r.current).setAttribute("data-rs-color-mode",m),a.mode&&!r&&a.setMode(m),l(m)},[r,a]);be(()=>{gc(),Re(()=>{pc()})},[s,o]),be(()=>{const m=To(r==null?void 0:r.current).getAttribute("data-rs-color-mode");m&&u(m)},[u,r]);const _=c.useMemo(()=>({mode:o||s,setMode:u,invertMode:()=>{u(s==="light"?"dark":"light")}}),[s,o,u]);return i.jsx(_r.Provider,{value:_,children:n})};Jn.displayName="GlobalColorMode";const Lc={root:"_root_hqrz2_1"},Qn=c.createContext({}),Dc=()=>c.useContext(Qn),Rn=e=>{var d;const{children:t,targetRef:o}=e,r=Ct(),n=c.useRef(null),s=(d=n.current)==null?void 0:d.getRootNode(),a=s instanceof ShadowRoot?s:document.body,u=Dc(),_=o||u.scopeRef,m=(_==null?void 0:_.current)||a;return be(()=>(r.activate(),()=>r.deactivate()),[]),[He.createPortal(i.jsx(Pt,{children:t}),m),!r.active&&i.jsx("div",{ref:n,className:Lc.root},"root")]};function es(e){const{children:t,scopeRef:o}=e,r=c.useRef(null),n=o||r;return i.jsx(Qn.Provider,{value:{scopeRef:n},children:t(n)})}Rn.displayName="Portal",es.displayName="PortalScope";const $o=Rn;$o.Scope=es;const vt={content:"_content_7wued_1","--hover":"_--hover_7wued_19","--hover-disabled":"_--hover-disabled_7wued_23",inner:"_inner_7wued_24","--width-trigger":"_--width-trigger_7wued_52","--position-top":"_--position-top_7wued_56","--position-top-end":"_--position-top-end_7wued_57","--position-top-start":"_--position-top-start_7wued_58","--position-bottom":"_--position-bottom_7wued_62","--position-bottom-end":"_--position-bottom-end_7wued_63","--position-bottom-start":"_--position-bottom-start_7wued_64","--position-start":"_--position-start_7wued_78","--position-start-top":"_--position-start-top_7wued_79","--position-start-bottom":"_--position-start-bottom_7wued_80","--position-end":"_--position-end_7wued_84","--position-end-top":"_--position-end-top_7wued_85","--position-end-bottom":"_--position-end-bottom_7wued_86","--visible":"_--visible_7wued_100","--animated":"_--animated_7wued_105"},ts=e=>{const{children:t,className:o,attributes:r}=e,{flyout:n,id:s,flyoutElRef:l,handleTransitionEnd:a,triggerType:u,handleContentMouseEnter:_,handleMouseLeave:m,handleContentMouseDown:d,handleContentMouseUp:h,contentClassName:p,contentAttributes:g,contentMaxHeight:f,contentMaxWidth:y,contentZIndex:x,trapFocusMode:v,disableContentHover:w,autoFocus:C,width:N,isSubmenu:E}=Dt(),{status:k,position:S}=n,[T,$]=c.useState(!1);if(be(()=>{$(!0)},[]),k==="idle"||!T)return null;const M=F(vt.content,u==="hover"&&vt["--hover"],k==="visible"&&vt["--visible"],(zt.status==="cooling"||!zt.timer||E||u!=="hover")&&vt["--animated"],S&&vt[`--position-${S}`],N==="trigger"&&vt["--width-trigger"],u==="hover"&&w&&vt["--hover-disabled"]),L=F(vt.inner,o,p);let P=r==null?void 0:r.role;u==="hover"?P="tooltip":v==="dialog"?P="dialog":v==="selection-menu"?P="listbox":v==="action-menu"?P="menu":v==="action-bar"&&(P="menubar");const A=i.jsx(Nc,{value:{elRef:l},children:i.jsx("div",{className:M,style:{"--rs-flyout-max-h":f,"--rs-flyout-max-w":y,"--rs-flyout-z-index":x},ref:l,onTransitionEnd:a,onMouseEnter:u==="hover"?_:void 0,onMouseLeave:u==="hover"?m:void 0,onMouseDown:d,onTouchStart:d,onMouseUp:h,onTouchEnd:h,children:i.jsx("div",z(b({role:P},r),{id:s,tabIndex:C?void 0:-1,"aria-modal":P==="dialog"?!0:void 0,style:b(b({},r==null?void 0:r.style),g==null?void 0:g.style),className:L,children:t}))})});return i.jsx($o,{children:A})};ts.displayName="Flyout.Content";const os=e=>{const{children:t}=e,{id:o,triggerElRef:r,triggerType:n,flyout:s,handleFocus:l,handleBlur:a,handleTriggerMouseEnter:u,handleMouseLeave:_,handleTouchStart:m,handleClick:d,trapFocusMode:h,isSubmenu:p}=Dt(),g=s.status!=="idle",f={ref:r,"data-rs-flyout-active":g};return(n==="click"||h==="action-menu")&&(f.onClick=d),n==="hover"&&(f.onMouseEnter=u,f.onMouseLeave=_,f.onTouchStart=m),(n==="hover"&&!p||n==="focus")&&(f.onFocus=l,f.onBlur=a,f["aria-describedby"]=g?o:void 0),(n==="click"||n==="focus"||h==="action-menu")&&(h==="dialog"?f["aria-haspopup"]="dialog":h==="selection-menu"?(f["aria-haspopup"]="listbox",f["aria-autocomplete"]="list"):f["aria-haspopup"]="menu",f["aria-expanded"]=g,f["aria-controls"]=g?o:void 0),i.jsx(kc,{value:{elRef:r},children:t(f)})};os.displayName="Flyout.Trigger";const ut=Yn;ut.Trigger=os,ut.Content=ts;const St={root:"_root_1ldab_2",touch:"_touch_1ldab_21","--inset":"_--inset_1ldab_44","--disabled-focus-ring":"_--disabled-focus-ring_1ldab_48","--radius-inherit":"_--radius-inherit_1ldab_52","--disabled":"_--disabled_1ldab_48","--full-width":"_--full-width_1ldab_88"},Le=c.forwardRef((e,t)=>{const h=e,{insetFocus:o,disableFocusRing:r,borderRadius:n,fullWidth:s,touchHitbox:l,children:a,className:u,disabled:_}=h,m=ve(h,["insetFocus","disableFocusRing","borderRadius","fullWidth","touchHitbox","children","className","disabled"]),d=[St.root,u,_&&St["--disabled"],n&&St[`--radius-${n}`],o&&St["--inset"],r&&St["--disabled-focus-ring"],s&&St["--full-width"]];return i.jsxs(xn,z(b({},m),{className:d,disabled:_,ref:t,children:[l&&!_&&i.jsx("span",{className:St.touch}),a]}))});Le.displayName="Actionable";const Mo={root:"_root_1f1sc_15","rs-reshaped-loader":"_rs-reshaped-loader_1f1sc_1",inner:"_inner_1f1sc_44","--color-inherit":"_--color-inherit_1f1sc_63","--color-primary":"_--color-primary_1f1sc_67","--color-positive":"_--color-positive_1f1sc_71","--color-critical":"_--color-critical_1f1sc_75","--size-small":"_--size-small_1f1sc_1","--size-medium":"_--size-medium_1f1sc_1","--size-large":"_--size-large_1f1sc_1","--size-small--m":"_--size-small--m_1f1sc_1","--size-medium--m":"_--size-medium--m_1f1sc_1","--size-large--m":"_--size-large--m_1f1sc_1","--size-small--l":"_--size-small--l_1f1sc_1","--size-medium--l":"_--size-medium--l_1f1sc_1","--size-large--l":"_--size-large--l_1f1sc_1","--size-small--xl":"_--size-small--xl_1f1sc_1","--size-medium--xl":"_--size-medium--xl_1f1sc_1","--size-large--xl":"_--size-large--xl_1f1sc_1"},hr=e=>{const{size:t="small",color:o="primary",className:r,attributes:n}=e,s=e.ariaLabel||(n==null?void 0:n["aria-label"]),l=F(Mo.root,r,ce(Mo,"--size",t),o&&Mo[`--color-${o}`]);return i.jsx("span",z(b({},n),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:Mo.inner})}))};hr.displayName="Loader";const De={root:"_root_xnbdp_5","--loading":"_--loading_xnbdp_59","--highlighted":"_--highlighted_xnbdp_59","--disabled":"_--disabled_xnbdp_59",text:"_text_xnbdp_72",icon:"_icon_xnbdp_78","--icon-position-end":"_--icon-position-end_xnbdp_87",loader:"_loader_xnbdp_99","--icon-only":"_--icon-only_xnbdp_107","--rounded":"_--rounded_xnbdp_125","--size-small":"_--size-small_xnbdp_1","--size-medium":"_--size-medium_xnbdp_1","--size-large":"_--size-large_xnbdp_1","--size-xlarge":"_--size-xlarge_xnbdp_1","--full-width":"_--full-width_xnbdp_174","--variant-solid":"_--variant-solid_xnbdp_186","--color-neutral":"_--color-neutral_xnbdp_187","--color-primary":"_--color-primary_xnbdp_296","--color-critical":"_--color-critical_xnbdp_297","--color-positive":"_--color-positive_xnbdp_298","--color-media":"_--color-media_xnbdp_201","--variant-faded":"_--variant-faded_xnbdp_208","--color-inherit":"_--color-inherit_xnbdp_224","--variant-outline":"_--variant-outline_xnbdp_232","--variant-ghost":"_--variant-ghost_xnbdp_268","--elevated":"_--elevated_xnbdp_288",group:"_group_xnbdp_353",aligner:"_aligner_xnbdp_459","--size-small--m":"_--size-small--m_xnbdp_1","--size-medium--m":"_--size-medium--m_xnbdp_1","--size-large--m":"_--size-large--m_xnbdp_1","--size-xlarge--m":"_--size-xlarge--m_xnbdp_1","--full-width-true--m":"_--full-width-true--m_xnbdp_1","--full-width-false--m":"_--full-width-false--m_xnbdp_1","--size-small--l":"_--size-small--l_xnbdp_1","--size-medium--l":"_--size-medium--l_xnbdp_1","--size-large--l":"_--size-large--l_xnbdp_1","--size-xlarge--l":"_--size-xlarge--l_xnbdp_1","--full-width-true--l":"_--full-width-true--l_xnbdp_1","--full-width-false--l":"_--full-width-false--l_xnbdp_1","--size-small--xl":"_--size-small--xl_xnbdp_1","--size-medium--xl":"_--size-medium--xl_xnbdp_1","--size-large--xl":"_--size-large--xl_xnbdp_1","--size-xlarge--xl":"_--size-xlarge--xl_xnbdp_1","--full-width-true--xl":"_--full-width-true--xl_xnbdp_1","--full-width-false--xl":"_--full-width-false--xl_xnbdp_1"},rs=c.forwardRef((e,t)=>{const{variant:o="solid",color:r="neutral",elevated:n,highlighted:s,fullWidth:l,loading:a,loadingAriaLabel:u,disabled:_,type:m,href:d,size:h="medium",children:p,rounded:g,onClick:f,icon:y,endIcon:x,stopPropagation:v,as:w,render:C,className:N,attributes:E}=e,k=(y||x)&&!p,S=F(De.root,N,r&&De[`--color-${r}`],o&&De[`--variant-${o}`],ce(De,"--size",h),ce(De,"--full-width",l),n&&o!=="ghost"&&De["--elevated"],g&&De["--rounded"],_&&De["--disabled"],a&&De["--loading"],s&&De["--highlighted"],k&&De["--icon-only"]),T=$=>{if(!($==="start"&&y||$==="end"&&x))return null;const A=F(De.icon,$==="end"&&De["--icon-position-end"]),V=de(h,D=>D==="large"?5:D==="xlarge"?6:4);return i.jsx(ge,{className:A,svg:$==="start"?y:x,size:V,autoWidth:!0})};return i.jsxs(Le,{disabled:_||a,className:S,attributes:z(b({},E),{"data-rs-aligner-target":!0}),type:m,onClick:f,href:d,ref:t,as:w,stopPropagation:v,render:C,children:[a&&i.jsx("div",{className:De.loader,children:i.jsx(hr,{color:"inherit",attributes:{"aria-label":u}})}),T("start"),p&&i.jsx("span",{className:De.text,children:p}),T("end")]})});rs.displayName="Button";const ns={root:"_root_1quhz_2","--side-all":"_--side-all_1quhz_7","--side-start":"_--side-start_1quhz_11","--side-inline":"_--side-inline_1quhz_12","--side-end":"_--side-end_1quhz_16","--side-top":"_--side-top_1quhz_21","--side-block":"_--side-block_1quhz_22","--side-bottom":"_--side-bottom_1quhz_26"},to=e=>{const{side:t="all",children:o,className:r,attributes:n}=e,s=typeof t=="string"?[t]:t,l=F(ns.root,s.map(a=>ns[`--side-${a}`]),r);return i.jsx("div",z(b({},n),{className:l,children:o}))};to.displayName="Aligner";const ss=e=>i.jsx(to,z(b({},e),{side:e.side||e.position,className:[De.aligner,e.className]}));ss.displayName="Button.Aligner";const is=e=>{const{children:t,className:o,attributes:r}=e,n=F(De.group,o);return i.jsx("div",z(b({},r),{className:n,role:"group",children:t}))};is.displayName="Button.Group";const Te=rs;Te.Aligner=ss,Te.Group=is;const ls=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),oo={root:"_root_1q0pg_1",close:"_close_1q0pg_9","--variant-media":"_--variant-media_1q0pg_16","--hide-close":"_--hide-close_1q0pg_17","--align-center":"_--align-center_1q0pg_26"},fr=e=>{const{children:t,align:o,onClose:r,hideCloseButton:n,variant:s,closeAriaLabel:l,className:a,attributes:u}=e,_=F(oo.root,a,s&&oo[`--variant-${s}`],o&&oo[`--align-${o}`],n&&oo["--hide-close"]),m=s==="media"?"div":Te.Aligner;return i.jsxs("div",z(b({},u),{className:_,children:[t,!n&&i.jsx(m,{className:oo.close,children:i.jsx(Te,z(b({size:"small"},s==="media"?{color:"media",variant:"faded"}:{variant:"ghost"}),{onClick:()=>r==null?void 0:r(),attributes:{"aria-label":r?l:void 0},icon:ls}))})]}))};fr.displayName="Dismissible";const ro={content:"_content_ymj03_1","content--variant-elevated":"_content--variant-elevated_ymj03_9","content--elevation-raised":"_content--elevation-raised_ymj03_16","content--variant-headless":"_content--variant-headless_ymj03_20","content--radius-small":"_content--radius-small_ymj03_24","content--has-width":"_content--has-width_ymj03_28"},as=e=>{var p,g;const h=e,{width:t,variant:o="elevated",triggerType:r="click",position:n="bottom",elevation:s,borderRadius:l}=h,a=ve(h,["width","variant","triggerType","position","elevation","borderRadius"]),u=(p=e.padding)!=null?p:o==="headless"?0:4,_=(g=e.trapFocusMode)!=null?g:r==="hover"?"content-menu":void 0,m=Qe({padding:u}),d=F(ro.content,!!t&&ro["content--has-width"],o&&ro[`content--variant-${o}`],s&&ro[`content--elevation-${s}`],l&&ro[`content--radius-${l}`],m.classNames);return i.jsx(ut,z(b({},a),{position:n,trapFocusMode:_,triggerType:r,width:t,contentClassName:d,contentAttributes:{style:b({},m.variables)}}))},cs=e=>{const{handleClose:t}=Dt();return i.jsx(fr,z(b({},e),{onClose:()=>t({})}))};as.displayName="Popover",cs.displayName="Popover.Dismissible";const _t=as;_t.Dismissible=cs,_t.Trigger=ut.Trigger,_t.Content=ut.Content;const st={root:"_root_44o4b_1",icon:"_icon_44o4b_22",content:"_content_44o4b_27","--rounded-corners":"_--rounded-corners_44o4b_32","--size-small":"_--size-small_44o4b_1","--size-medium":"_--size-medium_44o4b_1","--size-large":"_--size-large_44o4b_1","--color-neutral":"_--color-neutral_44o4b_74","--selected":"_--selected_44o4b_77","--highlighted":"_--highlighted_44o4b_79","--color-critical":"_--color-critical_44o4b_90","--color-primary":"_--color-primary_44o4b_106","--disabled":"_--disabled_44o4b_133",aligner:"_aligner_44o4b_154","--rounded-corners-true--m":"_--rounded-corners-true--m_44o4b_1","--rounded-corners-false--m":"_--rounded-corners-false--m_44o4b_1","--size-small--m":"_--size-small--m_44o4b_1","--size-medium--m":"_--size-medium--m_44o4b_1","--size-large--m":"_--size-large--m_44o4b_1","--rounded-corners-true--l":"_--rounded-corners-true--l_44o4b_1","--rounded-corners-false--l":"_--rounded-corners-false--l_44o4b_1","--size-small--l":"_--size-small--l_44o4b_1","--size-medium--l":"_--size-medium--l_44o4b_1","--size-large--l":"_--size-large--l_44o4b_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_44o4b_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_44o4b_1","--size-small--xl":"_--size-small--xl_44o4b_1","--size-medium--xl":"_--size-medium--xl_44o4b_1","--size-large--xl":"_--size-large--xl_44o4b_1"},ds=c.forwardRef((e,t)=>{const{icon:o,startSlot:r,endSlot:n,children:s,color:l="primary",selected:a,highlighted:u,disabled:_,onClick:m,href:d,size:h="medium",roundedCorners:p,stopPropagation:g,as:f,render:y,className:x,attributes:v}=e,w=F(st.root,x,ce(st,"--size",h),ce(st,"--rounded-corners",p),l&&st[`--color-${l}`],a&&st["--selected"],_&&st["--disabled"],u&&st["--highlighted"]),C=de(h,E=>E==="large"?3:2),N=de(h,E=>E==="large"?5:4);return i.jsx(Le,{disabled:_,className:w,attributes:z(b({},v),{"data-rs-aligner-target":!0}),onClick:m,href:d,ref:t,as:f,stopPropagation:g,render:y,children:i.jsxs(O,{direction:"row",gap:C,align:"center",children:[o&&i.jsx(ge,{svg:o,className:st.icon,size:N}),!o&&r,s&&i.jsx(O.Item,{grow:!0,className:st.content,children:s}),n]})})});ds.displayName="MenuItem";const us=e=>i.jsx(to,z(b({},e),{side:e.side||"inline",className:[st.aligner,e.className]}));us.displayName="MenuItem.Aligner";const br=ds;br.Aligner=us;const Pc="Enter",no="ArrowUp",so="ArrowDown",io="ArrowRight",lo="ArrowLeft",Fc="Backspace",Ft=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Io={menu:"_menu_f04ws_1",section:"_section_f04ws_5",item:"_item_f04ws_11",arrow:"_arrow_f04ws_19"},gr=c.createContext(null),_s=c.createContext(!1),pr=e=>{const a=e,{children:t,position:o="bottom-start",triggerType:r="click",trapFocusMode:n="action-menu",borderRadius:s="small"}=a,l=ve(a,["children","position","triggerType","trapFocusMode","borderRadius"]);return i.jsx(_t,z(b({},l),{position:o,padding:0,trapFocusMode:n,triggerType:r,borderRadius:s,disableHideAnimation:r!=="hover",children:t}))},ms=e=>{const{children:t,attributes:o,className:r}=e,{flyout:n}=Dt(),s=c.useContext(gr),[l]=pt(),{ref:a}=Ge({[l?io:lo]:()=>{var m;(m=s==null?void 0:s.current)==null||m.close()}},[s==null?void 0:s.current],{disabled:n.status==="idle",ref:o==null?void 0:o.ref}),u=F(Io.menu,r),_=m=>{var d;m.stopPropagation(),(d=o==null?void 0:o.onClick)==null||d.call(o,m)};return i.jsx(_t.Content,{className:u,attributes:z(b({},o),{ref:a,onClick:_}),children:t})},hs=e=>{const{children:t}=e;return i.jsx("div",{className:Io.section,role:"group",children:t})},vr=e=>{const{onClick:t}=e,{handleClose:o}=Dt(),r=c.useContext(_s),n=s=>{o&&!r&&o({closeParents:!0,reason:"item-selection"}),t&&t(s)};return i.jsx(br,z(b({},e),{roundedCorners:!0,className:[Io.item,e.className],attributes:b({role:"menuitem"},e.attributes),onClick:n}))},fs=e=>{const l=e,{children:t,position:o="end-top",contentGap:r=.5}=l,n=ve(l,["children","position","contentGap"]),s=c.useRef(null);return i.jsx(gr.Provider,{value:s,children:i.jsx(pr,z(b({},n),{triggerType:"hover",position:o,contentGap:r,instanceRef:s,children:t}))})},Ac=e=>{const a=e,{children:t,attributes:o}=a,r=ve(a,["children","attributes"]),n=c.useContext(gr),[s]=pt(),{ref:l}=Ge({[s?lo:io]:()=>{var u;(u=n==null?void 0:n.current)==null||u.open()}},[],{ref:o==null?void 0:o.ref,preventDefault:!0});return i.jsx(vr,z(b({},r),{attributes:z(b({},o),{ref:l}),endSlot:i.jsx(ge,{autoWidth:!0,svg:Ft,className:Io.arrow}),children:t}))},bs=e=>{const r=e,{attributes:t}=r,o=ve(r,["attributes"]);return i.jsx(_s.Provider,{value:!0,children:i.jsx(_t.Trigger,{children:n=>i.jsx(Ac,z(b({},o),{attributes:b(b({},t),n)}))})})};pr.displayName="DropdownMenu",ms.displayName="DropdownMenu.Content",hs.displayName="DropdownMenu.Section",vr.displayName="DropdownMenu.Item",fs.displayName="DropdownMenu.SubMenu",bs.displayName="DropdownMenu.SubTrigger";const ke=pr;ke.Dismissible=_t.Dismissible,ke.Trigger=_t.Trigger,ke.Content=ms,ke.Section=hs,ke.Item=vr,ke.SubMenu=fs,ke.SubTrigger=bs;const gs=c.createContext({attributes:{}}),Vc=gs.Provider,ao=()=>c.useContext(gs),et=()=>{const{attributes:e,required:t,hasError:o,disabled:r}=ao();return{attributes:e,required:t,hasError:o,disabled:r}},yr=(e,t)=>`${e}-${t||"caption"}`,ps=e=>{const{children:t,id:o,required:r,hasError:n,group:s,disabled:l,size:a}=e,u=Ke(o),_=s?"fieldset":"div",[m,d]=c.useState(!1),[h,p]=c.useState(!1),g=[m&&yr(u),h&&yr(u,"error")].filter(Boolean).join(" "),f={id:u,"aria-describedby":g},y=()=>{p(!0)},x=()=>{d(!0)};return i.jsx(_,{children:i.jsx(Vc,{value:{required:r,hasError:n,errorRef:y,helperRef:x,attributes:f,group:s,disabled:l,size:a},children:t})})};ps.displayName="FormControl";const vs={label:"_label_1v514_5",caption:"_caption_1v514_14"},ys=e=>{const{children:t,variant:o,disabled:r}=e,{attributes:n,size:s,helperRef:l,errorRef:a}=ao(),u=yr(n.id,o),_=o==="error"?"critical":"neutral-faded",m=o==="error"?a:l;return i.jsx(ie,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!o?"disabled":_,attributes:{id:u,role:"alert","aria-disabled":r,ref:m},className:vs.caption,children:t})},xs=e=>{const{children:t}=e,{hasError:o}=ao();return o?i.jsx(ys,{variant:"error",children:t}):null};xs.displayName="FormControl.Error";const ws=e=>{const{children:t}=e,{disabled:o}=ao();return i.jsx(ys,{disabled:o,children:t})};ws.displayName="FormControl.Helper";const Cs=e=>{const{children:t}=e,{attributes:o,required:r,group:n,disabled:s,size:l}=ao(),a=`${o.id}-label`,u=n?"legend":"label";return i.jsxs(ie,{variant:l==="large"?"body-2":"body-3",weight:"medium",className:vs.label,color:s?"disabled":void 0,"aria-disabled":s,children:[i.jsx(u,{id:a,htmlFor:n?void 0:o.id,children:t}),r&&i.jsx(ie,{color:s?"disabled":"critical",as:"span",children:"*"})]})};Cs.displayName="FormControl.Label";const Lo=ps;Lo.Label=Cs,Lo.Helper=ws,Lo.Error=xs;const Fe={root:"_root_pbcul_1",icon:"_icon_pbcul_23","--focused":"_--focused_pbcul_24","--multiline":"_--multiline_pbcul_28",input:"_input_pbcul_31","--rounded":"_--rounded_pbcul_36",affix:"_affix_pbcul_39",inner:"_inner_pbcul_50",slot:"_slot_pbcul_90","icon--position-end":"_icon--position-end_pbcul_103","affix--position-end":"_affix--position-end_pbcul_104","slot--position-end":"_slot--position-end_pbcul_105","slot--position-start":"_slot--position-start_pbcul_109","affix--position-start":"_affix--position-start_pbcul_120","--disabled":"_--disabled_pbcul_145","--size-small":"_--size-small_pbcul_1","--size-medium":"_--size-medium_pbcul_1","--size-large":"_--size-large_pbcul_1","--size-xlarge":"_--size-xlarge_pbcul_1","--variant-faded":"_--variant-faded_pbcul_203","--variant-ghost":"_--variant-ghost_pbcul_209","--variant-headless":"_--variant-headless_pbcul_215","--status-error":"_--status-error_pbcul_222","--size-small--m":"_--size-small--m_pbcul_1","--size-medium--m":"_--size-medium--m_pbcul_1","--size-large--m":"_--size-large--m_pbcul_1","--size-xlarge--m":"_--size-xlarge--m_pbcul_1","--size-small--l":"_--size-small--l_pbcul_1","--size-medium--l":"_--size-medium--l_pbcul_1","--size-large--l":"_--size-large--l_pbcul_1","--size-xlarge--l":"_--size-xlarge--l_pbcul_1","--size-small--xl":"_--size-small--xl_pbcul_1","--size-medium--xl":"_--size-medium--xl_pbcul_1","--size-large--xl":"_--size-large--xl_pbcul_1","--size-xlarge--xl":"_--size-xlarge--xl_pbcul_1"},ks=e=>{const{slot:t,icon:o,size:r,affix:n,position:s,id:l}=e;if(!o&&!t&&!n)return null;const a=c.isValidElement(t)&&t.type===c.Fragment?t.props.children:t,u=t&&c.Children.map(a,h=>i.jsx("div",{className:F(Fe.slot,Fe[`slot--position-${s}`]),children:h},"slot")),_=o&&i.jsx("label",{className:F(Fe.icon,Fe[`icon--position-${s}`]),htmlFor:l,children:i.jsx(ge,{size:de(r,h=>h==="large"?5:h==="xlarge"?6:4),svg:o,autoWidth:!0})},"icon"),m=n&&i.jsx("span",{className:F(Fe.affix,Fe[`affix--position-${s}`]),children:n},"affix");return(s==="start"?[_,u,m]:[_,m,u]).filter(Boolean)},Ns=e=>{var V;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,icon:u,endIcon:_,startSlot:m,endSlot:d,startSlotPadding:h,endSlotPadding:p,prefix:g,suffix:f,size:y="medium",variant:x="outline",focused:v,multiline:w,rounded:C,className:N,attributes:E}=e,k=et(),S=Ke(e.id),T=(k==null?void 0:k.attributes.id)||((V=e.inputAttributes)==null?void 0:V.id)||S,$=(k==null?void 0:k.disabled)||e.disabled,M=(k==null?void 0:k.hasError)||e.hasError,L=b(b({},e.inputAttributes),k==null?void 0:k.attributes),P=F(Fe.root,N,y&&ce(Fe,"--size",y),M&&Fe["--status-error"],$&&Fe["--disabled"],v&&Fe["--focused"],w&&Fe["--multiline"],C&&Fe["--rounded"],x&&Fe[`--variant-${x}`]),A=D=>{t&&t({name:n,value:D.target.value,event:D})};return i.jsxs("div",z(b({},E),{style:z(b({},E==null?void 0:E.style),{"--rs-text-field-start-slot-padding":h!==void 0&&h>=0?`calc(var(--rs-unit-x1) * ${h})`:void 0,"--rs-text-field-end-slot-padding":p!==void 0&&p>=0?`calc(var(--rs-unit-x1) * ${p})`:void 0}),"data-rs-aligner-target":!0,className:P,children:[i.jsx(ks,{position:"start",icon:u,slot:m,size:y,affix:g,id:S}),i.jsxs("div",{className:Fe.inner,children:[i.jsx("input",z(b({type:"text",autoComplete:"off"},L),{className:F(Fe.input,L.className),disabled:$,name:n,placeholder:a,value:s,defaultValue:l,onChange:A,onFocus:o||(L==null?void 0:L.onFocus),onBlur:r||(L==null?void 0:L.onBlur),id:T})),i.jsx(ks,{position:"end",icon:_,slot:d,size:y,affix:f,id:S})]})]}))};Ns.displayName="TextField";const Do=Ns;Do.Aligner=to;const Bc={"item--disabled":"_item--disabled_1vi4i_1"},zs=c.createContext({}),Ss=e=>{var se;const oe=e,{children:t,onChange:o,onInput:r,onItemSelect:n,name:s,containerRef:l,instanceRef:a,onBackspace:u,onEnter:_,active:m,onOpen:d,onClose:h,fallbackAdjustLayout:p,fallbackMinWidth:g,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x}=oe,v=ve(oe,["children","onChange","onInput","onItemSelect","name","containerRef","instanceRef","onBackspace","onEnter","active","onOpen","onClose","fallbackAdjustLayout","fallbackMinWidth","fallbackMinHeight","contentMaxHeight","contentZIndex"]),[w,C]=c.useState(),N=Ne(u),E=c.useRef(null),k=c.useRef(null),S=(se=v.inputAttributes)==null?void 0:se.ref,T=S&&typeof S!="string"&&"current"in S?S:k,[$,M]=c.useState(!1),L=!!c.Children.toArray(t).filter(Boolean).length,P=c.useRef(!1),A=Ne(d),V=Ne(h),D=Ne(o),j=Ne(n),W=Ne(_),re=L&&(m!=null?m:$),X=c.useCallback(()=>{P.current=!0,setTimeout(()=>{P.current=!1},100)},[]),J=c.useCallback(()=>{var B;P.current||(M(!0),(B=A.current)==null||B.call(A))},[A]),U=B=>{var Y;M(!1),(Y=V.current)==null||Y.call(V,B)},te=c.useCallback(B=>{var Y,Q;(Y=D.current)==null||Y.call(D,{value:B.value,name:s}),(Q=j.current)==null||Q.call(j,B),X()},[X,D,j,s]),G=B=>{o==null||o(B),J()},ee=B=>{var Y,Q;r==null||r({value:B.currentTarget.value,name:s,event:B}),(Q=(Y=v.inputAttributes)==null?void 0:Y.onInput)==null||Q.call(Y,B)},$e=()=>{var B;X(),(B=T.current)==null||B.focus()},_e=c.useCallback(()=>{const B=E.current;return B?Array.from(B.querySelectorAll("[role=option]:not([disabled])")):[]},[]);Ge({[Pc]:()=>{var Q;const Y=_e().find(fe=>fe.id===w);Y==null||Y.click(),(Q=W.current)==null||Q.call(W)},[Fc]:()=>{var B;(B=N.current)==null||B.call(N)}},[_e,W,N,w],{ref:T}),Ge({[no]:()=>{const B=_e();if(B.length){const Y=B.findIndex(fe=>fe.id===w),Q=B.at(Y-1)||B.at(-1);C(Q.id)}},[so]:()=>{J();const B=_e();if(B.length){const Y=B.findIndex(fe=>fe.id===w),Q=B.at(Y+1)||B.at(0);C(Q.id)}}},[J,_e,w],{ref:T,preventDefault:!0}),be(()=>{re&&requestAnimationFrame(()=>{var Q;const Y=(Q=_e()[0])==null?void 0:Q.id;Y&&C(Y)})},[re]);const ne=c.useMemo(()=>({onItemClick:te,highlightedId:w,setHighlightedId:C}),[w,te]);return i.jsx(zs.Provider,{value:ne,children:i.jsxs(ke,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:!1,active:re,onClose:U,onOpen:J,containerRef:l,fallbackAdjustLayout:p,fallbackMinWidth:g,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x,disableHideAnimation:!0,instanceRef:a,children:[i.jsx(ke.Trigger,{children:Q=>{var fe=Q,{ref:B}=fe,Y=ve(fe,["ref"]);return i.jsx(Do,z(b({},v),{name:s,onChange:G,focused:re,attributes:z(b({},v.attributes),{ref:B,onClick:Y.onFocus}),inputAttributes:z(b(b({},v.inputAttributes),Y),{onFocus:Z=>{var K,le,ae;(K=Y.onFocus)==null||K.call(Y),(le=v.onFocus)==null||le.call(v,Z),P.current||(ae=T.current)==null||ae.select()},onInput:ee,onClick:Y.onFocus,ref:T,role:"combobox","aria-activedescendant":w,"aria-haspopup":"listbox","aria-autocomplete":"list"})}))}}),i.jsx(ke.Content,{attributes:{onClick:$e,role:"listbox",ref:E},children:t})]})})},Es=e=>{const d=e,{value:t,data:o,onClick:r,disabled:n}=d,s=ve(d,["value","data","onClick","disabled"]),{onItemClick:l,highlightedId:a}=c.useContext(zs),u=Ke(),_=a===u,m=h=>{r==null||r(h),l({value:t,data:o})};return i.jsx(ke.Item,z(b({},s),{className:[n&&Bc["item--disabled"],s.className],highlighted:_,disabled:n,attributes:z(b({},s.attributes),{role:"option",id:u,tabIndex:_?0:-1}),onClick:m}))};Ss.displayName="Autocomplete",Es.displayName="Autocomplete.Item";const Ts=Ss;Ts.Item=Es;const co={root:"_root_1eg8e_1",image:"_image_1eg8e_5",fallback:"_fallback_1eg8e_17","--outline":"_--outline_1eg8e_25","image--display-mode-cover":"_image--display-mode-cover_1eg8e_37","image--display-mode-contain":"_image--display-mode-contain_1eg8e_41"},xr=e=>{const{src:t,alt:o,width:r,maxWidth:n,height:s,aspectRatio:l,onLoad:a,onError:u,fallback:_,outline:m,displayMode:d="cover",borderRadius:h,className:p,attributes:g,imageAttributes:f,renderImage:y}=e,[x,v]=c.useState("loading"),w=Qe({radius:h,width:r,height:s,maxWidth:n,aspectRatio:l}),C=F(co.root,w.classNames,m&&co["--outline"],p),N=F([co.image,d&&co[`image--display-mode-${d}`]]),E=(x==="error"||!t)&&!!_,k=b(b({},g==null?void 0:g.style),w.variables),S=L=>{var P;v("success"),a==null||a(L),(P=f==null?void 0:f.onLoad)==null||P.call(f,L)},T=L=>{var P;v("error"),u==null||u(L),(P=f==null?void 0:f.onError)==null||P.call(f,L)};if(c.useEffect(()=>{v("loading")},[t]),E){if(typeof _=="string"){const L=z(b({},g),{src:_!=null?_:"",alt:o!=null?o:"",role:o?void 0:"presentation",className:C,style:k});return y?y(L):i.jsx("img",b({},L))}return i.jsx("div",z(b({},g),{className:F([co.fallback,C]),style:k,children:_}))}const $=z(b(b({},g),f),{src:t!=null?t:"",alt:o!=null?o:"",role:o?void 0:"presentation",onLoad:S,onError:T,className:m?N:F([N,C]),style:k}),M=y?y($):i.jsx("img",b({},$));return m?i.jsx("div",z(b({},g),{className:C,style:k,children:M})):M};xr.displayName="Image";const wr={root:"_root_1de3p_1","--variant-faded":"_--variant-faded_1de3p_13","--color-neutral":"_--color-neutral_1de3p_14","--color-critical":"_--color-critical_1de3p_18","--color-positive":"_--color-positive_1de3p_22","--color-warning":"_--color-warning_1de3p_26","--color-primary":"_--color-primary_1de3p_30"},$s=e=>{const{color:t="neutral",variant:o,src:r,size:n=12,squared:s,initials:l,icon:a,className:u,renderImage:_,imageAttributes:m,attributes:d}=e,h=e.alt||(m==null?void 0:m.alt),p=s?de(n,y=>y>=24?"large":y>=12?"medium":"small"):"circular";if(r)return i.jsx(xr,{src:r,alt:h,renderImage:_,outline:!0,borderRadius:p,width:n,aspectRatio:1,className:u,attributes:d,imageAttributes:m});const g=Qe({height:n}),f=F(wr.root,u,g==null?void 0:g.classNames,t&&wr[`--color-${t}`],o&&wr[`--variant-${o}`]);return i.jsx(O,{borderRadius:p,attributes:z(b({},d),{style:b({},g==null?void 0:g.variables)}),backgroundColor:o==="faded"?`${t}-${o}`:t,className:f,children:a?i.jsx(ge,{svg:a,size:de(n,y=>Math.ceil(y*.4))}):l})};$s.displayName="Avatar";const Ae={root:"_root_4et1e_1","--empty":"_--empty_4et1e_24",icon:"_icon_4et1e_32",dismiss:"_dismiss_4et1e_38","--highlighted":"_--highlighted_4et1e_44","--actionable":"_--actionable_4et1e_49","--variant-faded":"_--variant-faded_4et1e_1","--variant-outline":"_--variant-outline_4et1e_1","--color-positive":"_--color-positive_4et1e_68","--color-critical":"_--color-critical_4et1e_87","--color-warning":"_--color-warning_4et1e_106","--color-primary":"_--color-primary_4et1e_125","--size-small":"_--size-small_4et1e_1","--size-medium":"_--size-medium_4et1e_1","--size-large":"_--size-large_4et1e_1","--rounded":"_--rounded_4et1e_170","--hidden":"_--hidden_4et1e_174",container:"_container_4et1e_181","--container-overlap":"_--container-overlap_4et1e_207","--container-position-top-end":"_--container-position-top-end_4et1e_211","--container-position-bottom-end":"_--container-position-bottom-end_4et1e_223"},Ms=c.forwardRef((e,t)=>{const{children:o,color:r,rounded:n,size:s="medium",icon:l,endIcon:a,variant:u,hidden:_,highlighted:m,href:d,onClick:h,onDismiss:p,dismissAriaLabel:g,className:f,attributes:y,as:x}=e,v=!!(h||d),w=s==="small"?3:4,C=!o&&!l&&!a,N=F(Ae.root,f,n&&Ae["--rounded"],_&&Ae["--hidden"],s&&Ae[`--size-${s}`],r&&Ae[`--color-${r}`],u&&Ae[`--variant-${u}`],v&&Ae["--actionable"],m&&Ae["--highlighted"],C&&Ae["--empty"]),E=k=>{k.stopPropagation(),p==null||p()};return i.jsxs(Le,{onClick:h,href:d,className:N,attributes:y,ref:t,as:x,touchHitbox:v,children:[l&&i.jsx(ge,{svg:l,autoWidth:!0,size:w,className:Ae.icon}),o&&i.jsx(ie,{variant:s==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":_?"true":void 0},children:o}),a&&i.jsx(ge,{svg:a,autoWidth:!0,size:w,className:Ae.icon}),p&&i.jsx(Le,{onClick:E,className:Ae.dismiss,as:"span",attributes:{"aria-label":g},touchHitbox:!0,children:i.jsx(ge,{svg:ls,size:w})})]})});Ms.displayName="Badge";const Is=e=>{const{children:t,position:o="top-end",overlap:r,className:n,attributes:s}=e,l=F(Ae.container,n,r&&Ae["--container-overlap"],o&&Ae[`--container-position-${o}`]);return i.jsx("div",z(b({},s),{className:l,children:t}))};Is.displayName="Badge.Container";const Ls=Ms;Ls.Container=Is;const Ds=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Ps=e=>{const{children:t,separator:o,color:r,defaultVisibleItems:n,expandAriaLabel:s,disableExpand:l,ariaLabel:a,className:u,attributes:_}=e,m=n&&n>=2?n:null,[d,h]=c.useState(!1),p=F(u),g=c.Children.count(t);let f=0;const y=()=>{h(!0)};return i.jsx("nav",z(b({},_),{"aria-label":a||(_==null?void 0:_["aria-label"]),className:p,children:i.jsx(O,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,v)=>{if(!x)return null;const w=g-(m||0),C=f===0,N=f>w,E=!m||C||N||d,k=f===w;f+=1;let S=null;return E?S=x:k&&(S=l?i.jsx(ge,{svg:Ds,size:4}):i.jsx(Te.Aligner,{children:i.jsx(Te,{variant:"ghost",size:"small",icon:Ds,onClick:y,attributes:{"aria-label":s}})})),S===null?null:i.jsxs(O,{as:"li",gap:2,direction:"row",align:"center",children:[v>0&&(E||k)&&i.jsx(ie,{color:"neutral-faded",children:o||i.jsx(ge,{svg:Ft,size:3})}),i.jsx(ie,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:S})]},v)})})}))};Ps.displayName="Breadcrumbs";const uo={root:"_root_x1qvh_1","--color-primary":"_--color-primary_x1qvh_6","--color-critical":"_--color-critical_x1qvh_10","--color-positive":"_--color-positive_x1qvh_14","--color-warning":"_--color-warning_x1qvh_18","--color-inherit":"_--color-inherit_x1qvh_22","--variant-plain":"_--variant-plain_x1qvh_27","--disabled":"_--disabled_x1qvh_32","--variant-underline":"_--variant-underline_x1qvh_39","--with-icon":"_--with-icon_x1qvh_57"},Cr=c.forwardRef((e,t)=>{const{icon:o,disabled:r,href:n,color:s="primary",variant:l="underline",className:a,children:u,attributes:_,type:m,onClick:d,stopPropagation:h,render:p}=e,g=F(uo.root,a,r&&uo["--disabled"],l&&uo[`--variant-${l}`],s&&uo[`--color-${s}`],o&&uo["--with-icon"]);return i.jsxs(Le,{href:n,disabled:r,className:g,attributes:_,type:m,onClick:d,ref:t,stopPropagation:h,render:p,children:[o&&i.jsx(ge,{svg:o}),u]})});Cr.displayName="Link";const Fs=e=>{const{children:t,onClick:o,href:r,icon:n,disabled:s}=e;return!r&&!o&&!s?i.jsx(ie,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Cr,{onClick:o,href:r,icon:n,disabled:s,variant:"plain",color:"inherit",children:t})};Fs.displayName="Breadcrumbs.Item";const As=Ps;As.Item=Fs;const Vs=7,Bs=1,it=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},kr=e=>{const{date:t,firstWeekDay:o=Bs}=e,r=t.getDay();return r<o?Vs-r-o:r-o},jc=e=>{const{firstWeekDay:t=Bs,renderWeekDay:o}=e,r=new Date(2021,1,t),n=[];for(let s=t;s<t+Vs;s++){const l=o?o({weekDay:s,date:r}):r.toLocaleDateString("en-US",{weekday:"short"});n.push(l.slice(0,2)),r.setDate(r.getDate()+1)}return n},Hc=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((o,r)=>{const n=new Date(0,r);return t?t({month:r,date:n}):n.toLocaleString("default",{month:"short"})})},Oc=e=>{const{date:t,firstWeekDay:o}=e,r=t.getMonth(),n=t.getFullYear(),s=[],l=new Date(n,r,1),a=kr({date:l,firstWeekDay:o});for(a!==0&&s.push(new Array(a).fill(null));r===l.getMonth();)(kr({date:l,firstWeekDay:o})===0||!s.length)&&s.push([]),s[s.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const u=kr({date:l,firstWeekDay:o});return u!==0&&s[s.length-1].push(...new Array(7-u).fill(null)),s},js=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],Nr=(e,t)=>{const o=new Date(e);return o.setMonth(t),o},Wc=e=>Nr(e,e.getMonth()-1),Hs=e=>Nr(e,e.getMonth()+1),Os=(e,t)=>{const o=new Date(e);return o.setFullYear(t),o},qc=e=>Os(e,e.getFullYear()-1),Uc=e=>Os(e,e.getFullYear()+1),Yc=e=>{const{date:t,min:o,max:r}=e,n=t.getMonth(),s=t.getFullYear(),l=new Date(s,n,0),a=Hs(t);return a.setDate(0),{isFirstMonth:o&&o>l,isLastMonth:r&&r<a}},zr=(e,t)=>e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Kc=e=>{const{date:t,startValue:o,lastFocusedDate:r}=e,n=new Date,s=it({date:t}),l=it({date:n}),a=o&&it({date:o}),u=r&&it({date:r});return r&&zr(t,r)?s===u:o&&zr(t,o)?s===a:zr(t,n)?s===l:!0},Gc={root:"_root_p9kz2_1"},Po=e=>{const{children:t}=e;return i.jsx("div",{className:Gc.root,children:t})};Po.displayName="HiddenVisually";const Fo=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})}),Oe={selection:"_selection_1iezs_1",weekday:"_weekday_1iezs_6",control:"_control_1iezs_12",cell:"_cell_1iezs_16","cell-button":"_cell-button_1iezs_21","--active":"_--active_1iezs_26","--selection-range":"_--selection-range_1iezs_31","--selection-start":"_--selection-start_1iezs_37","--selection-end":"_--selection-end_1iezs_47"},Ws=e=>{const{selectionMode:t,onMonthTitleClick:o,monthTitleRef:r,monthDate:n,renderSelectedMonthLabel:s,hidePrevious:l,hideNext:a,onNextClick:u,onPreviousClick:_,monthSelectionAriaLabel:m="Select a month",previousMonthAriaLabel:d="Previous month",previousYearAriaLabel:h="Previous year",nextMonthAriaLabel:p="Next month",nextYearAriaLabel:g="Next year"}=e,f=c.useRef(null),y=c.useRef(null);return c.useEffect(()=>{if(!l||document.activeElement!==f.current)return;const x=y.current||(r==null?void 0:r.current);Re(()=>{x==null||x.focus()})},[l,r]),c.useEffect(()=>{if(!a||document.activeElement!==y.current)return;const x=f.current||(r==null?void 0:r.current);Re(()=>{x==null||x.focus()})},[a,r]),i.jsxs(O,{direction:"row",gap:2,align:"center",children:[i.jsx(kt,{visibility:!0,hide:l,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Fo,onClick:_,attributes:{ref:f,"aria-label":t==="date"?d:h}})})}),i.jsxs(O.Item,{grow:!0,children:[t==="date"&&i.jsxs(Te,{fullWidth:!0,variant:"ghost",onClick:o,attributes:{ref:r},children:[s?s({date:n}):n.toLocaleDateString("en-US",{month:"long",year:"numeric"}),i.jsx(Po,{children:m})]}),t==="month"&&i.jsx(ie,{align:"center",weight:"medium",children:n.toLocaleDateString("en-US",{year:"numeric"})})]}),i.jsx(kt,{visibility:!0,hide:a,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Ft,onClick:u,attributes:{ref:y,"aria-label":t==="date"?p:g}})})})]})};Ws.displayName="CalendarControls";const qs=e=>{const{date:t,isoDate:o,startValue:r,endValue:n,disabled:s,focusable:l,onChange:a,range:u,hoveredDate:_,onDateHover:m,onDateHoverEnd:d,onDateFocus:h,selectedDates:p,disabledDates:g,renderAriaLabel:f,renderSlot:y}=e;if(!t)return i.jsx("td",{className:Oe.cell,"aria-hidden":"true"});const x=r&&it({date:r}),v=n&&it({date:n}),w=!!(o&&x&&o===x),C=!!(o&&v&&o===v),N=!!(o&&x&&o>x),E=!!(o&&v&&o<v),k=!!(_&&!n&&_>t),S=!!(p!=null&&p.some(D=>it({date:D})===o)),T=s||(g==null?void 0:g.some(D=>it({date:D})===o));let $;switch(!0){case(N&&k):case(N&&E):$="range";break;case(w&&(!u||C)):case S:$="standalone";break;case w:$="start";break;case C:$="end";break}const M=F([Oe.cell,$&&Oe["--active"],$&&Oe[`--selection-${$}`]]),L=()=>{if(!u){a==null||a({value:t});return}const D=r&&n,j=!r&&!n,W=r&&t<r,re=D||j||W,X=re?t:r,J=re?null:t;a==null||a({value:{start:X,end:J}})},P=()=>{m(t)},A=()=>{d(t)},V=()=>{P(),h(t)};return i.jsx("td",{className:M,role:T?"presentation":"gridcell",children:i.jsxs(Le,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:T,onClick:L,attributes:{role:"checkbox",tabIndex:l?0:-1,"aria-hidden":T,"aria-label":f?f({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":!!$,"data-rs-date":it({date:t}),onMouseEnter:P,onMouseLeave:A,onFocus:V,onBlur:A},children:[t.getDate(),y==null?void 0:y({date:t,selected:!!($&&$!=="range")})]})})};qs.displayName="CalendarDate";const Us=e=>{const{date:t,value:o,onChange:r,min:n,max:s,range:l,firstWeekDay:a,selectedDates:u,disabledDates:_,hoveredDate:m,onDateHover:d,onDateHoverEnd:h,renderWeekDay:p,renderDateAriaLabel:g,renderDateSlot:f}=e;let y=!1;const[x,v]=c.useState(),w=t.getMonth(),C=Oc({date:t,firstWeekDay:a}),N=jc({firstWeekDay:a,renderWeekDay:p});return i.jsxs("table",{className:Oe.selection,role:"grid",children:[i.jsx("thead",{"aria-hidden":"true",children:i.jsx("tr",{children:N.map(E=>i.jsx("th",{className:Oe.weekday,scope:"col",children:E},E))})}),i.jsx("tbody",{children:C.map(E=>{var S;const k=[w,(S=E[0])==null?void 0:S.getDate()].filter(Boolean).join("-");return i.jsx("tr",{className:Oe.row,children:E.map((T,$)=>{const M=!!T&&(n&&T<n||s&&T>s),L=o&&"start"in o?o.start:o,P=o&&"end"in o?o.end:o,A=T&&it({date:T}),V=M?!1:!y&&!!T&&Kc({date:T,lastFocusedDate:x,startValue:L});return V&&(y=!0),i.jsx(qs,{date:T,isoDate:A,disabled:M,range:l,focusable:V,startValue:L,endValue:P,onChange:r,hoveredDate:m,onDateHover:d,onDateHoverEnd:h,onDateFocus:v,renderAriaLabel:g,selectedDates:u,disabledDates:_,renderSlot:f},$)})},k)})})]})};Us.displayName="CalendarMonth";const Sr=3,Ys=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:o,monthDate:r,min:n,max:s,onMonthClick:l}=e,a=c.useRef(null),u=Hc({renderMonthLabel:t}),_=[];for(let m=0;m<u.length;m+=Sr){const d=u.slice(m,m+Sr);_.push(d)}return c.useEffect(()=>{var d;const m=(d=a.current)==null?void 0:d.querySelector('[tabIndex="0"]');Re(()=>{m==null||m.focus()})},[]),i.jsx("table",{ref:a,role:"grid",className:Oe.selection,children:i.jsx("tbody",{children:_.map((m,d)=>i.jsx("tr",{className:Oe.row,children:m.map((h,p)=>{const g=d*Sr+p,f=new Date(r.getFullYear(),g),y=n&&n.getFullYear()>=f.getFullYear()&&n.getMonth()>f.getMonth(),v=s&&s.getFullYear()<=f.getFullYear()&&s.getMonth()<f.getMonth()||y;return i.jsx("td",{role:v?"presentation":"gridcell",className:Oe.cell,children:i.jsx(Le,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:v,onClick:()=>l(g),attributes:{tabIndex:g===r.getMonth()?0:-1,"aria-hidden":v,"aria-label":o?o({month:g}):h,"data-rs-date":`${r.getFullYear()}-${(g+1).toString().padStart(2,"0")}`},children:h})},h)})},d))})})};Ys.displayName="CalendarYear";const Xc=e=>{const{rootRef:t,changeToNextMonth:o,changeToPreviousMonth:r,monthDate:n,verticalDelta:s,min:l,max:a}=e,u=c.useRef(0),_=c.useCallback(m=>{const{delta:d,onMonthChange:h}=m,p=document.activeElement;if(!p)return;const g=js(t.current),f=Array.from(g),x=f.findIndex(T=>T===p)+d,v=f[x],w=p.getAttribute("data-rs-date");if(!w)return;const[C,N,E]=w==null?void 0:w.split("-").map(Number);let k;if(E?k=new Date(C,N-1,E+d):d>0?k=new Date(C,N-1+d,1):k=new Date(C,N-1+d+1,0),!(l&&k<l||a&&k>a)){if(v){v.focus();return}u.current=x<0?x:x-(f.length-1),h()}},[t,l,a]);c.useEffect(()=>{const m=u.current;if(m===0)return;const d=js(t.current),h=m<0?d.length+m:m-1,p=d[h];p&&p.focus(),u.current=0},[n,t]),Ge({[lo]:()=>_({delta:-1,onMonthChange:r}),[io]:()=>_({delta:1,onMonthChange:o}),[no]:()=>_({delta:-s,onMonthChange:r}),[so]:()=>_({delta:s,onMonthChange:o})},[o,r,_,s],{ref:t,preventDefault:!0})},Ao=e=>{const{value:t,onChange:o,defaultMonth:r,month:n,onMonthChange:s,min:l,max:a,range:u,firstWeekDay:_,selectedDates:m,disabledDates:d,monthsToRender:h=1,renderMonthLabel:p,renderSelectedMonthLabel:g,renderWeekDay:f,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,renderMonthAriaLabel:N,renderDateAriaLabel:E,renderDateSlot:k}=e,[S,T]=c.useState("date"),[$,M]=c.useState(n||r||new Date),[L,P]=c.useState(null),A=c.useRef(null),V=c.useRef(S),D=Yc({date:$,min:l,max:a}),j=c.useRef(null),W=()=>{if(S==="month"){const ee=qc($);s==null||s({date:ee}),n===void 0&&M(ee);return}const G=Wc($);s==null||s({date:G}),n===void 0&&M(G)},re=()=>{if(S==="month"){const ee=Uc($);s==null||s({date:ee}),n===void 0&&M(ee);return}const G=Hs($);s==null||s({date:G}),n===void 0&&M(G)},X=()=>{T("month")},J=G=>{const ee=Nr($,G);s==null||s({date:ee}),n===void 0&&M(ee),T("date")},U=G=>{P(G)},te=G=>{L&&+L==+G&&P(null)};return c.useEffect(()=>{S==="date"&&S!==V.current&&Re(()=>{var G;(G=A.current)==null||G.focus()}),V.current=S},[S]),c.useEffect(()=>{n&&M(n)},[n]),Xc({monthDate:$,rootRef:j,changeToNextMonth:re,changeToPreviousMonth:W,verticalDelta:S==="date"?7:3,min:l,max:a}),i.jsxs(O,{gap:2,children:[i.jsx(O,{direction:"row",gap:4,children:Array.from({length:S==="date"?h:1}).map((G,ee)=>{const $e=D.isFirstMonth||h>0&&ee>0,_e=D.isLastMonth||S==="date"&&h>0&&ee<h-1,ne=new Date($);return ne.setMonth(ne.getMonth()+ee),i.jsx(O.Item,{grow:!0,children:i.jsx(Ws,{renderSelectedMonthLabel:g,monthDate:ne,selectionMode:S,hidePrevious:$e,hideNext:_e,monthTitleRef:ee===0?A:void 0,onMonthTitleClick:X,onNextClick:re,onPreviousClick:W,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,monthsToRender:h})},ee)})}),i.jsxs(O,{direction:"row",gap:4,attributes:{ref:j},children:[S==="date"&&Array.from({length:h}).map((G,ee)=>{const $e=new Date($);return $e.setMonth($e.getMonth()+ee),i.jsx(O.Item,{grow:!0,children:i.jsx(Us,{date:$e,value:t,onChange:o,min:l,max:a,range:u,firstWeekDay:_,hoveredDate:L,selectedDates:m,disabledDates:d,onDateHover:U,onDateHoverEnd:te,renderWeekDay:f,renderDateAriaLabel:E,renderDateSlot:k})},ee)}),S==="month"&&i.jsx(Ys,{monthDate:$,onMonthClick:J,renderMonthLabel:p,renderMonthAriaLabel:N,min:l,max:a})]})]})};Ao.displayName="CalendarControlled";const Ks=e=>{const a=e,{onChange:t,defaultValue:o,range:r}=a,n=ve(a,["onChange","defaultValue","range"]),[s,l]=c.useState(o||null);return r?i.jsx(Ao,z(b({range:!0},n),{value:s,onChange:u=>{l(u.value),t==null||t(u)}})):i.jsx(Ao,z(b({},n),{value:s,onChange:u=>{l(u.value),t==null||t(u)}}))};Ks.displayName="CalendarUncontrolled";const Gs=e=>e.value!==void 0?i.jsx(Ao,b({},e)):i.jsx(Ks,b({},e));Gs.displayName="Calendar";const Vo={root:"_root_158rr_1","--selected":"_--selected_158rr_15","--elevated":"_--elevated_158rr_21","--actionable":"_--actionable_158rr_26"},Xs=c.forwardRef((e,t)=>{const{padding:o=4}=e,{selected:r,elevated:n,bleed:s,height:l,onClick:a,href:u,children:_,className:m,attributes:d,as:h="div"}=e,p=!!u||!!a,g=Qe({radius:"medium",bleed:s,height:l,padding:o}),f=F(Vo.root,g.classNames,p&&Vo["--actionable"],n&&Vo["--elevated"],r&&Vo["--selected"],m),y=b(b({},d==null?void 0:d.style),g.variables);return p?i.jsx(Le,{className:f,attributes:z(b({},d),{style:y}),href:u,as:h,onClick:a,ref:t,children:_}):i.jsx(h,z(b({},d),{onClick:a,href:u,ref:t,className:f,style:y,children:_}))});Xs.displayName="Card";const mt={root:"_root_k04za_1",control:"_control_k04za_9","--control-prev":"_--control-prev_k04za_21","--control-next":"_--control-next_k04za_25","--control-visible":"_--control-visible_k04za_29",scroll:"_scroll_k04za_34",item:"_item_k04za_61","--control-rendered":"_--control-rendered_k04za_73","--bleed":"_--bleed_k04za_79","--bleed-true--m":"_--bleed-true--m_k04za_1","--bleed-false--m":"_--bleed-false--m_k04za_1","--bleed-true--l":"_--bleed-true--l_k04za_1","--bleed-false--l":"_--bleed-false--l_k04za_1","--bleed-true--xl":"_--bleed-true--xl_k04za_1","--bleed-false--xl":"_--bleed-false--xl_k04za_1"},Er=c.forwardRef((e,t)=>{const{type:o,scrollElRef:r,oppositeControlElRef:n,scrollPosition:s,onClick:l,isRTL:a,mounted:u}=e,[_,m]=c.useState(!1),[d,h]=c.useState(!1),p=o==="forward",g=o===(a?"back":"forward"),f=F(mt.control,g?mt["--control-next"]:mt["--control-prev"],_&&mt["--control-visible"],d&&mt["--control-rendered"]);return be(()=>{var E;const y=r.current;if(!y||!u)return;let x;const v=Math.abs(s),w=v<=0,C=v+y.clientWidth>=y.scrollWidth-1;return(p?C:w)?(m(!1),x=setTimeout(()=>h(!1),1500),(E=n.current)==null||E.focus()):(h(!0),m(!0)),()=>{x&&clearTimeout(x)}},[s,r,u,p]),i.jsx("div",{className:f,children:i.jsx(Te,{size:"small",onClick:l,icon:g?Ft:Fo,rounded:!0,variant:"outline",elevated:!0,attributes:{"aria-disabled":!_,"aria-hidden":!0},ref:t})})});Er.displayName="CarouselControl";const Zs=e=>{const{children:t,gap:o=3,visibleItems:r,bleed:n,navigationDisplay:s,onChange:l,onScroll:a,instanceRef:u,className:_,attributes:m}=e,d=c.useRef(0),h=c.useRef([]),[p,g]=c.useState(!1),[f,y]=c.useState(0),[x]=pt(),v=c.useRef(null),w=c.useRef(null),C=c.useRef(null),N={};typeof n=="object"&&Object.entries(n).forEach(([D,j])=>{N[D]=typeof j=="number"&&j>0});const E=F(mt.root,_,...ce(mt,"--bleed",typeof n=="number"?!0:N)),k=(D,j)=>{h.current[j]=D},S=Ro(D=>{const j=D.target,W=$();y(j.scrollLeft),a==null||a(D),d.current!==W&&(l==null||l({index:W})),d.current=W}),T=()=>{const j=getComputedStyle(v.current).gap.split(" ")[0];return Number(j.replace("px",""))},$=()=>{let D=0,j=0;const W=v.current;if(!W)return D;const re=x?-W.scrollLeft:W.scrollLeft,X=T();return h.current.some((J,U)=>J?j+J.clientWidth/2>=re?(D=U,!0):(j+=(J==null?void 0:J.clientWidth)+X,!1):!1),D},M=D=>{const j=v.current,W=h.current[D];W&&j.scrollTo({left:x?W.offsetLeft-(j.clientWidth-W.clientWidth):W.offsetLeft,top:0,behavior:"smooth"})},L=()=>{const D=v.current;D.scrollBy({left:D.clientWidth+T(),top:0,behavior:"smooth"})},P=()=>{const D=v.current;D.scrollBy({left:-D.clientWidth-T(),top:0,behavior:"smooth"})},A=x?L:P,V=x?P:L;return c.useImperativeHandle(u,()=>({navigateBack:A,navigateForward:V,navigateTo:M})),be(()=>{g(!0)},[]),i.jsxs("section",z(b({},m),{className:E,style:b(b(b({},q("--rs-carousel-items",r)),q("--rs-carousel-bleed",n)),m==null?void 0:m.style),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Er,{isRTL:x,type:"back",ref:w,oppositeControlElRef:C,scrollElRef:v,scrollPosition:f,onClick:A,mounted:p}),i.jsx(Er,{isRTL:x,type:"forward",ref:C,oppositeControlElRef:w,scrollElRef:v,scrollPosition:f,onClick:V,mounted:p})]}),i.jsx(O,{as:"ul",direction:"row",wrap:!1,gap:o,className:mt.scroll,attributes:{ref:v,onScroll:S},children:c.Children.map(t,(D,j)=>i.jsx(O.Item,{className:mt.item,as:"li",attributes:{ref:W=>k(W,j)},children:D}))})]}))};Zs.displayName="Carousel";const Js=c.createContext(null),Qs=()=>c.useContext(Js),Tr=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=u=>{const{event:_,value:m,checked:d}=u;if(!m)return;let h=[...n];d?h.push(m):h=h.filter(p=>p!==m),t&&t({name:o,value:h,event:_})};return i.jsx(Js.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};Tr.displayName="CheckboxGroupControlled";const Rs=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(Tr,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};Rs.displayName="CheckboxGroupUncontrolled";const ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Tr,b({},e)):i.jsx(Rs,b({},e))};ei.displayName="CheckboxGroup";const ti=c.createContext(null),oi=()=>c.useContext(ti),$r=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=({event:u,value:_})=>{_&&t&&t({name:o,value:_,event:u})};return i.jsx(ti.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};$r.displayName="RadioGroupControlled";const ri=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||null),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx($r,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};ri.displayName="RadioGroupUncontrolled";const ni=e=>{const{value:t}=e;return t!==void 0?i.jsx($r,b({},e)):i.jsx(ri,b({},e))};ni.displayName="RadioGroup";const Zc={root:"_root_1feer_1"},_o=e=>{var x,v,w,C,N,E,k;const{type:t,value:o,className:r,onBlur:n,onFocus:s,onChange:l,attributes:a}=e,u=F(Zc.root,r),_=Qs(),m=oi(),d=et(),h=(v=(x=_==null?void 0:_.name)!=null?x:m==null?void 0:m.name)!=null?v:e.name,p=(N=(C=(w=d==null?void 0:d.disabled)!=null?w:e.disabled)!=null?C:_==null?void 0:_.disabled)!=null?N:m==null?void 0:m.disabled,g=o&&((k=(E=_==null?void 0:_.value)==null?void 0:E.includes(o))!=null?k:(m==null?void 0:m.value)===o)||e.checked,f=_?void 0:e.defaultChecked,y=S=>{if(!h)return;const{checked:T}=S.target,$={name:h,value:o,checked:T,event:S};l&&l($),_!=null&&_.onChange&&_.onChange($),m!=null&&m.onChange&&m.onChange($)};return i.jsx("input",z(b({},a),{className:u,type:t,name:h,value:o,checked:g,defaultChecked:f,disabled:p,onChange:y,onFocus:s||(a==null?void 0:a.onFocus),onBlur:n||(a==null?void 0:a.onBlur),"data-rs-hidden-input":!0}))};_o.displayName="HiddenInput";const Mr=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),yt={root:"_root_ykdxc_12",decorator:"_decorator_ykdxc_23",field:"_field_ykdxc_28","--size-small":"_--size-small_ykdxc_1","--size-medium":"_--size-medium_ykdxc_1","--size-large":"_--size-large_ykdxc_1",icon:"_icon_ykdxc_75",input:"_input_ykdxc_85","--error":"_--error_ykdxc_92","--disabled":"_--disabled_ykdxc_114","--size-small--m":"_--size-small--m_ykdxc_1","--size-medium--m":"_--size-medium--m_ykdxc_1","--size-large--m":"_--size-large--m_ykdxc_1","--size-small--l":"_--size-small--l_ykdxc_1","--size-medium--l":"_--size-medium--l_ykdxc_1","--size-large--l":"_--size-large--l_ykdxc_1","--size-small--xl":"_--size-small--xl_ykdxc_1","--size-medium--xl":"_--size-medium--xl_ykdxc_1","--size-large--xl":"_--size-large--xl_ykdxc_1"},si=e=>{var C;const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,indeterminate:l,size:a="medium",className:u,attributes:_,inputAttributes:m}=e,d=Qs(),h=et(),p=(h==null?void 0:h.hasError)||e.hasError||(d==null?void 0:d.hasError),g=(h==null?void 0:h.disabled)||e.disabled||(d==null?void 0:d.disabled),f=d?(C=d.value)==null?void 0:C.includes(o):e.checked,y=d?void 0:e.defaultChecked,x=d?d.name:e.name,v=c.useRef(null),w=F(yt.root,u,a&&p&&yt["--error"],g&&yt["--disabled"],a&&ce(yt,"--size",a));return be(()=>{v.current.indeterminate=l||!1},[l,f]),i.jsxs("label",z(b({},_),{className:w,children:[i.jsxs("span",{className:yt.field,children:[i.jsx(_o,{className:yt.input,type:"checkbox",checked:f,defaultChecked:y,name:x,disabled:g,value:o,onChange:r,onFocus:n,onBlur:s,attributes:z(b({},m),{ref:v})}),i.jsx("div",{className:yt.decorator,children:i.jsx(ge,{svg:Mr,className:yt.icon,size:de(a,N=>N==="large"?5:N==="small"?3:4)})})]}),t&&i.jsx(ie,{as:"span",variant:de(a,N=>N==="large"?"body-2":N==="small"?"caption-1":"body-3"),children:t})]}))};si.displayName="Checkbox";const Jc={root:"_root_th78q_1"},ii=e=>{const d=e,{position:t="end-top",onOpen:o,onClose:r}=d,n=ve(d,["position","onOpen","onClose"]),[s,l]=c.useState(),a=c.useRef(null),{lockScroll:u,unlockScroll:_}=sr({originRef:a}),m=Ne(o);return c.useEffect(()=>{const h=a.current;if(!h)return;const p=g=>{var f;g.preventDefault(),l({x:g.clientX,y:g.clientY}),u(),(f=m.current)==null||f.call(m)};return h.addEventListener("contextmenu",p),()=>h.removeEventListener("contextmenu",p)},[u,m]),c.useEffect(()=>()=>_(),[_]),i.jsx("div",{className:Jc.root,ref:a,children:i.jsx(ke,z(b({},n),{position:t,originCoordinates:s,active:!!s,onClose:h=>{l(void 0),_(),r==null||r(h)}}))})};ii.displayName="ContextMenu";const At=ii;At.Content=ke.Content,At.Item=ke.Item,At.Section=ke.Section,At.SubMenu=ke.SubMenu,At.SubTrigger=ke.SubTrigger;const ht={root:"_root_1vs2n_1",triggerLayer:"_triggerLayer_1vs2n_13",trigger:"_trigger_1vs2n_13","--inline":"_--inline_1vs2n_29","--variant-outline":"_--variant-outline_1vs2n_47","--highlighted":"_--highlighted_1vs2n_54","--disabled":"_--disabled_1vs2n_67"},li=e=>{const{children:t}=e;return i.jsx("span",{className:ht.trigger,children:t})},ai=e=>{const{name:t,children:o,height:r,variant:n="outline",inline:s,className:l,disabled:a,attributes:u,inputAttributes:_,onChange:m}=e,d=Ct(),h=F(ht.root,n&&ht[`--variant-${n}`],s&&ht["--inline"],d.active&&ht["--highlighted"],a&&ht["--disabled"],l),p=C=>{var N;C.preventDefault(),(N=u==null?void 0:u.onDragOver)==null||N.call(u,C)},g=C=>{var N;d.activate(),(N=u==null?void 0:u.onDragEnter)==null||N.call(u,C)},f=C=>{var N;C.currentTarget.contains(C.relatedTarget)||(d.deactivate(),(N=u==null?void 0:u.onDragLeave)==null||N.call(u,C))},y=C=>{var N;C.preventDefault(),d.deactivate(),m==null||m({name:t,value:Array.from(C.dataTransfer.files),event:C}),(N=u==null?void 0:u.onDrop)==null||N.call(u,C)},x=C=>{var E;const N=C.target.files;N&&(m==null||m({name:t,event:C,value:Array.from(N)}),(E=_==null?void 0:_.onChange)==null||E.call(_,C))},v=i.jsx(Po,{children:i.jsx("input",z(b({},_),{type:"file",className:ht.field,name:t,disabled:a,onChange:x}))}),w=typeof o=="function"?o({highlighted:d.active}):o;return i.jsx(O,{className:h,height:r,borderRadius:"medium",attributes:z(b({},u),{onDragOver:p,onDragEnter:g,onDragLeave:f,onDrop:y}),children:n==="outline"&&!s?i.jsxs(O,{as:"label",className:ht.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",justify:"center",textAlign:"center",height:"100%",children:[v,i.jsx(O.Item,{children:w})]}):i.jsxs("label",{className:ht.triggerLayer,children:[v,w]})})};ai.displayName="FileUpload",li.displayName="FileUpload.Trigger";const ci=ai;ci.Trigger=li;const di={root:"_root_bzk9x_1","--active":"_--active_bzk9x_14"},ui=e=>{const{children:t,active:o,className:r,attributes:n}=e,s=F(di.root,o&&di["--active"],r);return i.jsx(ie,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:n,children:t})};ui.displayName="Hotkey";const lt={root:"_root_1irm5_1",wrapper:"_wrapper_1irm5_26",inner:"_inner_1irm5_32",content:"_content_1irm5_38","--visible":"_--visible_1irm5_44","--click-through":"_--click-through_1irm5_49","--blurred":"_--blurred_1irm5_54","--contained":"_--contained_1irm5_72","--animated":"_--animated_1irm5_76","--overflow-auto":"_--overflow-auto_1irm5_85"},Ir=e=>{const{active:t,children:o,transparent:r,blurred:n,overflow:s,onClose:l,onOpen:a,onAfterClose:u,onAfterOpen:_,disableCloseOnClick:m,containerRef:d,contained:h,className:p,attributes:g}=e,f=Ne(l),y=Ne(a),x=r===!0,v=x?0:(1-(r||0))*.7,[w,C]=c.useState(!1),[N,E]=c.useState(!1),[k,S]=c.useState([0,0]),T=c.useRef(null),$=c.useRef(null),{lockScroll:M,unlockScroll:L}=sr({containerRef:d}),P=c.useRef(null),A=c.useRef(!1),{active:V,activate:D,deactivate:j}=Ct(t||!1),{active:W,activate:re,deactivate:X}=Ct(t||!1),J=jn({active:t,contentRef:$,hasTrigger:!1}),U=d&&h!==!1,te=F(lt.root,W&<["--visible"],x&<["--click-through"],n&<["--blurred"],N&<["--animated"],U&<["--contained"],s==="auto"&<["--overflow-auto"],p),G=oe=>{var se,B;return(se=T.current)!=null&&se.contains(oe)?oe===$.current&&oe.firstElementChild?!1:!!((B=$.current)!=null&&B.contains(oe)):!0},ee=c.useCallback(oe=>{var se;!W||!J()||(P.current&&(d!=null&&d.current)&&(d.current.style.overflow=P.current,d.current.style.removeProperty("isolation"),P.current=null),(se=f.current)==null||se.call(f,{reason:oe.reason}))},[W,J,f,d]),$e=oe=>{A.current=!G(oe.target)},_e=oe=>{const se=!G(oe.target);!(A.current&&se&&!x)||m||ee({reason:"overlay-click"})},ne=oe=>{if(!(oe.propertyName!=="opacity"||oe.target!==oe.currentTarget)){if(E(!1),W){_==null||_();return}L(),j(),u==null||u()}};return Ge({Escape:()=>ee({reason:"escape-key"})},[ee]),c.useEffect(()=>{E(!0),t&&!V&&D(),!t&&V&&X()},[t,D,X,V]),c.useEffect(()=>{V&&(x||M(),Re(()=>{re()}))},[V,re,M,x]),c.useEffect(()=>{var B;if(!V||!$.current)return;const oe=new It,se=d==null?void 0:d.current;return se&&(P.current=se.style.overflow,se.style.setProperty("overflow","hidden"),se.style.setProperty("isolation","isolate"),S([se.scrollLeft,se.scrollTop])),oe.trap($.current,{initialFocusEl:$.current.querySelector("[role=dialog][tabindex='-1']")}),(B=y.current)==null||B.call(y),()=>oe.release()},[V,y,d]),c.useEffect(()=>()=>L(),[L]),be(()=>{C(!0)},[]),!V||!w?null:i.jsx($o,{targetRef:d,children:i.jsx($o.Scope,{scopeRef:T,children:oe=>i.jsx("div",z(b({},g),{ref:oe,style:{"--rs-overlay-opacity":v,"--rs-overlay-offset-x":d?`${k[0]}px`:void 0,"--rs-overlay-offset-y":d?`${k[1]}px`:void 0},role:"button",tabIndex:-1,className:te,onMouseDown:$e,onMouseUp:_e,onTransitionEnd:ne,children:i.jsx("div",{className:lt.wrapper,children:i.jsx("div",{className:lt.inner,children:i.jsx("div",{className:lt.content,ref:$,children:typeof o=="function"?o({active:W}):o})})})}))})})};Ir.displayName="Overlay";const Lr={m:660,l:900,xl:1280},_i=c.createContext({viewport:"s"}),Qc=e=>{const{children:t,defaultViewport:o="s"}=e,[r,n]=c.useState(o);return be(()=>{const s=document.querySelector("[data-rs-theme]"),l=s&&window.getComputedStyle(s),a={m:l&&Number(l.getPropertyValue("--rs-viewport-m-min"))||Lr.m,l:l&&Number(l.getPropertyValue("--rs-viewport-l-min"))||Lr.l,xl:l&&Number(l.getPropertyValue("--rs-viewport-xl-min"))||Lr.xl},u={s:`(max-width: ${a.m-1}px)`,m:`(min-width: ${a.m}px) and (max-width: ${a.l-1}px)`,l:`(min-width: ${a.l}px) and (max-width: ${a.xl-1}px)`,xl:`(min-width: ${a.xl}px)`},m=Object.keys(u).map(d=>{const h=window.matchMedia(u[d]);return{mq:h,handler:()=>h.matches&&n(d)}});return m.forEach(({handler:d,mq:h})=>{d(),h.addEventListener("change",d)}),()=>{m.forEach(({handler:d,mq:h})=>{h.removeEventListener("change",d)})}},[]),i.jsx(_i.Provider,{value:{viewport:r},children:t})},Rc=()=>c.useContext(_i),ed=()=>{const{viewport:e}=Rc();return e},mi=e=>{const t=ed();return c.useMemo(()=>{var o,r,n,s,l,a;return typeof e!="object"||e===null||!("s"in e)?e:t==="xl"?(n=(r=(o=e.xl)!=null?o:e.l)!=null?r:e.m)!=null?n:e.s:t==="l"?(l=(s=e.l)!=null?s:e.m)!=null?l:e.s:t==="m"&&(a=e.m)!=null?a:e.s},[t,e])},Vt={root:"_root_1pbt3_1","--contained":"_--contained_1pbt3_17","--position-center":"_--position-center_1pbt3_1","--active":"_--active_1pbt3_43","--position-bottom":"_--position-bottom_1pbt3_1","--position-start":"_--position-start_1pbt3_1","--position-end":"_--position-end_1pbt3_1","--position-full-screen":"_--position-full-screen_1pbt3_1","--dragging":"_--dragging_1pbt3_156","--overflow-visible":"_--overflow-visible_1pbt3_160","--position-center--m":"_--position-center--m_1pbt3_1","--position-bottom--m":"_--position-bottom--m_1pbt3_1","--position-start--m":"_--position-start--m_1pbt3_1","--position-end--m":"_--position-end--m_1pbt3_1","--position-full-screen--m":"_--position-full-screen--m_1pbt3_1","--position-center--l":"_--position-center--l_1pbt3_1","--position-bottom--l":"_--position-bottom--l_1pbt3_1","--position-start--l":"_--position-start--l_1pbt3_1","--position-end--l":"_--position-end--l_1pbt3_1","--position-full-screen--l":"_--position-full-screen--l_1pbt3_1","--position-center--xl":"_--position-center--xl_1pbt3_1","--position-bottom--xl":"_--position-bottom--xl_1pbt3_1","--position-start--xl":"_--position-start--xl_1pbt3_1","--position-end--xl":"_--position-end--xl_1pbt3_1","--position-full-screen--xl":"_--position-full-screen--xl_1pbt3_1"},Dr=32,td=100,od=32,hi=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),fi=()=>c.useContext(hi),bi=e=>{const{children:t}=e,{id:o,setTitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ie,{variant:"featured-3",weight:"bold",attributes:{id:`${o}-title`},children:t})},gi=e=>{const{children:t}=e,{id:o,setSubtitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ie,{variant:"body-3",color:"neutral-faded",attributes:{id:`${o}-subtitle`},children:t})},pi=e=>{const{children:t,onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,active:l,size:a,padding:u=4,position:_="center",overflow:m,transparentOverlay:d,blurredOverlay:h,ariaLabel:p,autoFocus:g=!0,disableSwipeGesture:f,disableCloseOnOutsideClick:y,containerRef:x,contained:v,overlayClassName:w,className:C,attributes:N}=e,E=Ne(o),k=Ke(),S=mi(_),[T,$]=c.useState(!1),[M,L]=c.useState(!1),[P,A]=c.useState(!1),V=c.useRef(null),D=(N==null?void 0:N.ref)||V,j=c.useRef({x:0,y:0}),W=c.useRef(0),re=c.useRef(0),X=c.useRef(0),[J,U]=c.useState(0),[te,G]=c.useState(0),ee=Qe({padding:u}),$e=x&&v!==!1,_e=c.useMemo(()=>({titleMounted:T,setTitleMounted:$,subtitleMounted:M,setSubtitleMounted:L,id:k}),[k,M,T]),ne=()=>{j.current={x:0,y:0},W.current=0,X.current=0,U(0)},oe=B=>{var fe;if(f||(fe=window.getSelection())!=null&&fe.toString())return;let Y=B.target;const Q=D.current;for(;Y&&(Y===Q||Q!=null&&Q.contains(Y));){if(Y.scrollTop!==0||Y.scrollLeft!==0||Y.matches("input,textarea"))return;Y=Y?Y.parentElement:null}S==="start"&&B.targetTouches[0].clientX<od||(x!=null&&x.current&&Jt(),A(!0))},se=B=>{l||B.propertyName==="transform"&&B.currentTarget===B.target&&ne()};return c.useEffect(()=>{if(!P)return;const B=()=>{var fe;x!=null&&x.current&&zo(),A(!1);const Q=S==="start"?X.current<0:X.current>0;Math.abs(re.current)>Dr&&Q?(fe=E.current)==null||fe.call(E,{reason:"drag"}):ne()},Y=Q=>{var Ce,Me;if(!P||S==="center"||((Ce=D.current)==null?void 0:Ce.scrollTop)!==0||((Me=D.current)==null?void 0:Me.scrollLeft)!==0)return;const fe=Q.targetTouches[0],Z={x:fe.clientX,y:fe.clientY},K=S==="bottom"?"y":"x",le=S==="bottom"?"x":"y";j.current[K]||(j.current=Z,W.current=Z[K]);const ae=Math.abs(Z[K]-j.current[K]),ue=Math.abs(Z[le]-j.current[le]);if(_!=="bottom"&&(ae<ue||ue>td)){W.current=Z[K];return}X.current=Z[K]-W.current,W.current=Z[K],U(Ie=>S==="start"?Math.min(0,Ie+X.current):Math.max(0,Ie+X.current))};return document.addEventListener("touchmove",Y,{passive:!0}),document.addEventListener("touchend",B,{passive:!0}),()=>{document.removeEventListener("touchmove",Y),document.removeEventListener("touchend",B)}},[P,S,E,_,D,x]),c.useEffect(()=>{const B=D.current;if(!B||!S)return;const Q=["start","end"].includes(S)?B.clientWidth:B.clientHeight,fe=Math.abs(J)/Q;G(fe/2),re.current=J},[J,S,D]),i.jsx(Ir,{onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,disableCloseOnClick:y,active:l,transparent:d||te,blurred:h,overflow:S==="center"?"auto":"hidden",className:w,contained:v,containerRef:x,attributes:{onTouchStart:oe},children:({active:B})=>{const Y=F(Vt.root,C,B&&Vt["--active"],P&&Vt["--dragging"],m&&Vt[`--overflow-${m}`],$e&&Vt["--contained"],ce(Vt,"--position",_),ee.classNames);return i.jsx(hi.Provider,{value:_e,children:i.jsx("div",z(b({},N),{style:z(b(b({},ee.variables),q("--rs-modal-size",a)),{"--rs-modal-drag":Math.abs(J)<Dr?"0px":`${J+Dr*(S==="start"?1:-1)}px`}),"aria-labelledby":T?`${k}-title`:void 0,"aria-describedby":M?`${k}-subtitle`:void 0,"aria-label":p||(N==null?void 0:N["aria-label"]),className:Y,"aria-modal":"true",role:"dialog",tabIndex:g?void 0:-1,ref:D,onTransitionEnd:se,children:t}))})}})};pi.displayName="Modal",bi.displayName="Modal.Title",gi.displayName="Modal.Subtitle";const Pr=pi;Pr.Title=bi,Pr.Subtitle=gi;const vi=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),rd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"18 15 12 9 6 15"})}),nd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),sd=()=>i.jsxs("svg",{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",children:[i.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),tt={field:"_field_meivp_1","controls-wrapper":"_controls-wrapper_meivp_5",controls:"_controls_meivp_5","controls--size-small":"_controls--size-small_meivp_1",control:"_control_meivp_5","controls--size-medium":"_controls--size-medium_meivp_1","controls--size-large":"_controls--size-large_meivp_1","controls--size-xlarge":"_controls--size-xlarge_meivp_1","icon--touch":"_icon--touch_meivp_107","--outline":"_--outline_meivp_111","icon--mouse":"_icon--mouse_meivp_139","controls--size-small--m":"_controls--size-small--m_meivp_1","controls--size-medium--m":"_controls--size-medium--m_meivp_1","controls--size-large--m":"_controls--size-large--m_meivp_1","controls--size-xlarge--m":"_controls--size-xlarge--m_meivp_1","controls--size-small--l":"_controls--size-small--l_meivp_1","controls--size-medium--l":"_controls--size-medium--l_meivp_1","controls--size-large--l":"_controls--size-large--l_meivp_1","controls--size-xlarge--l":"_controls--size-xlarge--l_meivp_1","controls--size-small--xl":"_controls--size-small--xl_meivp_1","controls--size-medium--xl":"_controls--size-medium--xl_meivp_1","controls--size-large--xl":"_controls--size-large--xl_meivp_1","controls--size-xlarge--xl":"_controls--size-xlarge--xl_meivp_1"},Fr=e=>{var J;const X=e,{increaseAriaLabel:t,decreaseAriaLabel:o,min:r,max:n,step:s=1,name:l,value:a,onChange:u,size:_="medium"}=X,m=ve(X,["increaseAriaLabel","decreaseAriaLabel","min","max","step","name","value","onChange","size"]),d=et(),h=Ke(m.id),p=(d==null?void 0:d.attributes.id)||((J=e.inputAttributes)==null?void 0:J.id)||h,g=(d==null?void 0:d.disabled)||e.disabled,f=(d==null?void 0:d.hasError)||e.hasError,y=g||(a&&n?a>=n:!1),x=g||(a&&r?a<=r:!1),v=c.useRef(null),w=c.useRef(null),[C,N]=c.useState((a==null?void 0:a.toString())||""),E=c.useRef(a),k=Ne(u),S=c.useRef(null),T=c.useRef(null),$=c.useCallback(U=>{var oe,se;const te=s*U,G=E.current;let ee=G===null?te:G+te;n!==void 0&&ee>n&&(ee=n),r!==void 0&&ee<r&&(ee=r);const $e=((oe=s.toString().split(".")[1])==null?void 0:oe.length)||0,_e=((se=G==null?void 0:G.toString().split(".")[1])==null?void 0:se.length)||0,ne=Math.max($e,_e);return Number(ee.toFixed(ne))},[s,r,n]),M=c.useCallback((U,te)=>{var G;(G=k.current)==null||G.call(k,{value:U,name:l}),te!=null&&te.programmatic||(E.current=U)},[l,k]),L=c.useCallback(()=>{const U=$(1);M(U,{programmatic:!0})},[$,M]),P=c.useCallback(()=>{const U=$(-1);M(U,{programmatic:!0})},[$,M]),A=U=>{if(!U.value.match(/^(-?)[0-9]*(\.?)[0-9]*$/))return;const te=parseFloat(U.value);te>Number.MAX_SAFE_INTEGER||te<Number.MIN_SAFE_INTEGER||(N(U.value),!isNaN(te)&&M(te))},V=(U,te)=>{var G;g||(te(),U.pointerType!=="touch"&&((G=v.current)==null||G.focus()),S.current=setTimeout(()=>{T.current=setInterval(()=>{te()},50)},500))},D=()=>{g||(S.current&&(clearTimeout(S.current),S.current=null),T.current&&(clearTimeout(T.current),T.current=null))};Ge({[no]:L,[so]:P},[L,P],{preventDefault:!0,ref:w}),c.useEffect(()=>{var U;E.current=a,N((U=a==null?void 0:a.toString())!=null?U:"")},[a]);const j=de(_,U=>U==="large"||U==="xlarge"?4:3),W=de(_,U=>U==="small"?3:4),re=i.jsx("span",{className:tt["controls-wrapper"],children:i.jsxs("span",{className:tt.controls,children:[i.jsxs(Le,{className:tt.control,disabled:y,disableFocusRing:!0,as:"span",attributes:{"aria-label":t,"aria-controls":p,role:"button",tabIndex:y?void 0:-1,onPointerDown:U=>V(U,L),onPointerUp:D,onPointerLeave:D,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:rd,size:j,className:tt["icon--mouse"]}),i.jsx(ge,{svg:sd,size:W,className:tt["icon--touch"]})]}),i.jsxs(Le,{className:tt.control,disabled:x,disableFocusRing:!0,as:"span",attributes:{"aria-label":o,"aria-controls":p,role:"button",tabIndex:x?void 0:-1,onPointerDown:U=>V(U,P),onPointerUp:D,onPointerLeave:D,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:vi,size:j,className:tt["icon--mouse"]}),i.jsx(ge,{svg:nd,size:W,className:tt["icon--touch"]})]})]})});return i.jsx(Do,z(b({},m),{className:[m.className,ce(tt,"controls--size",_),!(m.variant==="faded"||m.variant==="headless")&&tt["--outline"]],attributes:z(b({},m.attributes),{role:"group",ref:w}),inputAttributes:z(b({},m.inputAttributes),{ref:v,inputMode:"numeric",autoComplete:"off",autoCorrect:"off",spellCheck:"false",min:r,max:n,step:s,className:tt.field}),size:_,id:p,hasError:f,disabled:g,value:C,onChange:A,name:l,endSlot:re,endSlotPadding:0}))};Fr.displayName="NumberFieldControlled";const yi=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t!=null?t:null),s=l=>{n(l.value),o&&o(l)};return i.jsx(Fr,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};yi.displayName="NumberFieldUncontrolled";const xi=e=>{const{value:t}=e;return t!==void 0?i.jsx(Fr,b({},e)):i.jsx(yi,b({},e))};xi.displayName="NumberField";const Ar=(e,t)=>e>t?[]:Array.from({length:t-e+1},(o,r)=>e+r),wi={page:"_page_j10le_1"},Vr=e=>{const{total:t,page:o=1,onChange:r,pageAriaLabel:n,previousAriaLabel:s,nextAriaLabel:l,className:a,attributes:u}=e,_=1,m=1,d=[],h=(m+1)*2+_*2+1,p=t>h&&o-_>m+2,g=t>h&&o+_<t-m;let f=_*2+1;p||(f+=m+1),g||(f+=m+1);const y=p?Math.min(t-f+1,Math.max(1,o-_)):1,x=g?Math.min(y+f-1,t):t;p&&d.push(...Ar(1,m),null),d.push(...Ar(y,x)),g&&d.push(null,...Ar(t-m+1,t));const v=w=>{const C=Math.min(t,Math.max(1,w));r==null||r({page:C})};return i.jsxs(O,{direction:"row",align:"center",gap:1,className:a,attributes:u,children:[i.jsx(Te,{variant:"ghost",size:"small",icon:Fo,onClick:()=>v(o-1),disabled:o===1,attributes:{"aria-label":s}}),d.map((w,C)=>w===null?i.jsx(O,{width:7,align:"center",children:"..."},`dots-${C}`):i.jsx(Te,{size:"small",variant:w===o?"solid":"ghost",color:w===o?"primary":"neutral",onClick:()=>v(w),attributes:{"aria-label":n==null?void 0:n({page:w}),"aria-current":w===o},className:wi.page,children:w},C)),i.jsx(Te,{variant:"ghost",size:"small",className:wi.page,icon:Ft,onClick:()=>v(o+1),disabled:o===t,attributes:{"aria-label":l}})]})};Vr.displayName="PaginationControlled";const Ci=e=>{const a=e,{defaultPage:t=1,onChange:o}=a,r=ve(a,["defaultPage","onChange"]),[n,s]=c.useState(t||1),l=u=>{s(u.page),o==null||o(u)};return i.jsx(Vr,z(b({},r),{onChange:l,page:n}))};Ci.displayName="PaginationUncontrolled";const ki=e=>{const{page:t}=e;return t!==void 0?i.jsx(Vr,b({},e)):i.jsx(Ci,b({},e))};ki.displayName="Pagination";const Ni="\\d",zi="[a-zA-Z]",id=`(${Ni}|${zi})`,mo={root:"_root_5na4g_1",inputWrapper:"_inputWrapper_5na4g_6",input:"_input_5na4g_6",item:"_item_5na4g_31","item--focused":"_item--focused_5na4g_36"},ld={small:7,medium:9,large:12,xlarge:14},ad={numeric:Ni,alphabetic:zi,alphanumeric:id},Br=e=>{const{valueLength:t=4,value:o,onChange:r,name:n,pattern:s="numeric",size:l="medium",variant:a="outline",className:u,attributes:_,inputAttributes:m}=e,d=ad[s],h=de(l,M=>ld[M]),p=de(l,M=>M==="medium"?"body-3":"body-2"),g=de(l,M=>M==="xlarge"?"medium":"small"),[f,y]=c.useState(null),x=et(),v=c.useRef(o.length===t?"edit":"type"),w=c.useRef(null),C=[],N=c.useCallback(M=>{var D;const L=w.current;if(!L||L.selectionStart===null)return;const P=v.current,A=(D=M!=null?M:L.selectionStart)!=null?D:0,V=Math.min(P==="type"?L.value.length:L.value.length-1,Math.max(0,A));v.current==="type"?(L.selectionStart=V,L.selectionEnd=V):(L.selectionStart=V,L.selectionEnd=V+1),y(Math.min(L.selectionStart,t-1))},[t]);Ge({[`${lo},${no}`]:()=>{Re(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const L=v.current,P=o.length?"edit":"type";v.current=P,N(L==="type"&&P==="edit"?M.selectionStart:M.selectionStart-1)})},[`${io},${so}`]:()=>{Re(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const L=M.selectionStart===o.length&&M.selectionStart!==t?"type":"edit";v.current=L,N(M.selectionStart)})}},[o,N,t],{ref:w});const E=()=>{N(o.length)},k=()=>{y(null)},S=M=>{if(f===null||!w.current)return;const L=M.clipboardData.getData("text"),P=o.slice(0,f)+o.slice(f+L.length);w.current.value=P,w.current.selectionEnd=f},T=M=>{const L=M.currentTarget,P=L.value,A=new RegExp(`^${d}+$`);if(P&&!P.match(A)||L.selectionStart===null)return;const V=P.length===t||P.length>L.selectionStart?"edit":"type";v.current=V,r==null||r({event:M,name:n,value:P}),Re(()=>{N()})},$=(M,L)=>{w.current&&(M.preventDefault(),w.current.focus(),v.current=L>=o.length?"type":"edit",N(L))};for(let M=0;M<t;M++)C.push(i.jsx(O,{height:h,width:h,borderRadius:g,borderColor:a==="faded"?"transparent":"neutral",backgroundColor:a==="faded"?"neutral-faded":"elevation-base",align:"center",justify:"center",className:[mo.item,f===M&&mo["item--focused"]],attributes:{onMouseDown:L=>{$(L,M)},onTouchStart:L=>{$(L,M)}},children:o[M]&&i.jsx(ie,{variant:p,children:o[M]})},M));return i.jsxs(O,{gap:2,direction:"row",className:[mo.root,u],attributes:_,children:[C,i.jsx("div",{className:mo.inputWrapper,children:i.jsx("input",z(b(b({},m),x.attributes),{type:"text",className:mo.input,onFocus:E,onBlur:k,onPaste:S,onInput:T,value:o,name:n,maxLength:t,ref:w,autoComplete:(m==null?void 0:m.autoComplete)||"one-time-code",inputMode:s==="numeric"?"numeric":void 0,pattern:`${d}{${t}}`}))})]})};Br.displayName="PinFieldControlled";const Si=e=>{const a=e,{defaultValue:t,onChange:o}=a,r=ve(a,["defaultValue","onChange"]),[n,s]=c.useState(t||""),l=u=>{s(u.value),o==null||o(u)};return i.jsx(Br,z(b({},r),{value:n,onChange:l}))};Si.displayName="PinFieldUncontrolled";const Ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Br,b({},e)):i.jsx(Si,b({},e))};Ei.displayName="PinField";const ho={root:"_root_1qk35_1",value:"_value_1qk35_9","--duration":"_--duration_1qk35_24","--size-small":"_--size-small_1qk35_28","--size-medium":"_--size-medium_1qk35_32","--color-primary":"_--color-primary_1qk35_36","--color-critical":"_--color-critical_1qk35_40","--color-warning":"_--color-warning_1qk35_44","--color-positive":"_--color-positive_1qk35_48","--color-media":"_--color-media_1qk35_52"},Ti=e=>{const{value:t=0,min:o=0,max:r=100,color:n="primary",size:s="medium",duration:l,ariaLabel:a,className:u,attributes:_}=e,m=F(ho.root,u,n&&ho[`--color-${n}`],s&&ho[`--size-${s}`],!!l&&ho["--duration"]),d=r-o,h=t-o,f=`${Math.max(o,Math.min(r,h))/d*100-100}%`;return i.jsx("div",z(b({role:"progressbar"},_),{className:m,"aria-label":a||(_==null?void 0:_["aria-label"]),"aria-valuemax":r,"aria-valuemin":o,"aria-valuenow":t,children:i.jsx("div",{className:ho.value,style:{"--rs-progress-value":f,"--rs-progress-duration":l?`${l}ms`:void 0}})}))};Ti.displayName="Progress";const Bt={root:"_root_1r02e_1",container:"_container_1r02e_17",item:"_item_1r02e_26","item--active":"_item--active_1r02e_40","item--variant-secondary":"_item--variant-secondary_1r02e_45","--color-media":"_--color-media_1r02e_50"},jr=7,Hr=Math.floor(jr/2),$i=e=>{const{total:t,activeIndex:o=0,color:r="primary",ariaLabel:n,className:s,attributes:l}=e,a=F(Bt.root,s,r&&Bt[`--color-${r}`]),u=n?{"aria-label":n,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t-1}:{},_=t>jr?Math.min(t-jr,Math.max(0,o-Hr)):0;return i.jsx("div",z(b({},l),{className:a,children:i.jsx("div",z(b({},u),{className:Bt.container,style:{"--rs-progress-indicator-mod":_},children:Array.from({length:t}).map((m,d)=>{const h=F(Bt.item,d===o&&Bt["item--active"],(d<o-(Hr-1)||d>o+(Hr-1))&&Bt["item--variant-secondary"]);return i.jsx("div",{className:h},d)})}))}))};$i.displayName="ProgressIndicator";const Et={root:"_root_2agld_12",decorator:"_decorator_2agld_22",field:"_field_2agld_28","--size-small":"_--size-small_2agld_1","--size-medium":"_--size-medium_2agld_1","--size-large":"_--size-large_2agld_1",input:"_input_2agld_74","--error":"_--error_2agld_81","--disabled":"_--disabled_2agld_101","--size-small--m":"_--size-small--m_2agld_1","--size-medium--m":"_--size-medium--m_2agld_1","--size-large--m":"_--size-large--m_2agld_1","--size-small--l":"_--size-small--l_2agld_1","--size-medium--l":"_--size-medium--l_2agld_1","--size-large--l":"_--size-large--l_2agld_1","--size-small--xl":"_--size-small--xl_2agld_1","--size-medium--xl":"_--size-medium--xl_2agld_1","--size-large--xl":"_--size-large--xl_2agld_1"},Mi=e=>{const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,size:l="medium",className:a,attributes:u,inputAttributes:_}=e,m=et(),d=oi(),h=(m==null?void 0:m.hasError)||e.hasError||(d==null?void 0:d.hasError),p=(m==null?void 0:m.disabled)||e.disabled||(d==null?void 0:d.disabled),g=d?d.value===o:e.checked,f=d?void 0:e.defaultChecked,y=d?d.name:e.name,x=F(Et.root,a,h&&Et["--error"],p&&Et["--disabled"],l&&ce(Et,"--size",l));return i.jsxs("label",z(b({},u),{className:x,children:[i.jsxs("span",{className:Et.field,children:[i.jsx(_o,{className:Et.input,type:"radio",checked:g,defaultChecked:f,name:y,disabled:p,value:o,onChange:r,onFocus:n,onBlur:s,attributes:_}),i.jsx("div",{className:Et.decorator})]}),t&&i.jsx(ie,{as:"span",variant:de(l,v=>v==="large"?"body-2":v==="small"?"caption-1":"body-3"),children:t})]}))};Mi.displayName="Radio";const Or={root:"_root_1t6gl_1",scrim:"_scrim_1t6gl_16","--position-cover":"_--position-cover_1t6gl_28","--position-top":"_--position-top_1t6gl_42","--position-bottom":"_--position-bottom_1t6gl_48","--position-start":"_--position-start_1t6gl_54","--position-end":"_--position-end_1t6gl_65"},Ii=e=>{var p,g;const{children:t,backgroundSlot:o,position:r="cover",paddingInline:n,paddingBlock:s,padding:l,borderRadius:a,attributes:u,className:_,scrimClassName:m}=e,d=F(Or.root,r&&Or[`--position-${r}`],_),h=F(Or.scrim,m);return i.jsxs(O,{borderRadius:a,attributes:u,className:d,position:o?"relative":"absolute",inset:o?void 0:0,overflow:"hidden",children:[o,i.jsx("div",{className:h,children:i.jsx(O,{paddingInline:(p=n!=null?n:l)!=null?p:4,paddingBlock:(g=s!=null?s:l)!=null?g:3,zIndex:5,height:["start","end"].includes(r)?"100%":void 0,width:["top","bottom","cover"].includes(r)?"100%":void 0,textAlign:r==="cover"?"center":void 0,children:t})})]})};Ii.displayName="Scrim";const We={root:"_root_1v9qj_1",input:"_input_1v9qj_25","input--placeholder":"_input--placeholder_1v9qj_52",slot:"_slot_1v9qj_57",arrow:"_arrow_1v9qj_72",group:"_group_1v9qj_83","group-label":"_group-label_1v9qj_94","--size-small":"_--size-small_1v9qj_1","--size-medium":"_--size-medium_1v9qj_1","--size-large":"_--size-large_1v9qj_1","--size-xlarge":"_--size-xlarge_1v9qj_1","--variant-faded":"_--variant-faded_1v9qj_158","--variant-ghost":"_--variant-ghost_1v9qj_170","--variant-headless":"_--variant-headless_1v9qj_171","--status-error":"_--status-error_1v9qj_179","--disabled":"_--disabled_1v9qj_201","--size-small--m":"_--size-small--m_1v9qj_1","--size-medium--m":"_--size-medium--m_1v9qj_1","--size-large--m":"_--size-large--m_1v9qj_1","--size-xlarge--m":"_--size-xlarge--m_1v9qj_1","--size-small--l":"_--size-small--l_1v9qj_1","--size-medium--l":"_--size-medium--l_1v9qj_1","--size-large--l":"_--size-large--l_1v9qj_1","--size-xlarge--l":"_--size-xlarge--l_1v9qj_1","--size-small--xl":"_--size-small--xl_1v9qj_1","--size-medium--xl":"_--size-medium--xl_1v9qj_1","--size-large--xl":"_--size-large--xl_1v9qj_1","--size-xlarge--xl":"_--size-xlarge--xl_1v9qj_1"},cd=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Li=e=>{const{disabled:t,size:o}=e;return i.jsx("div",{className:We.arrow,children:i.jsx(ge,{svg:cd,color:t?"disabled":"neutral-faded",size:de(o,r=>r==="large"||r==="xlarge"?5:4)})})},Di=e=>{const{startSlot:t,icon:o,size:r}=e;return!t&&!o?null:o?i.jsx("div",{className:We.slot,children:i.jsx(ge,{size:de(r,n=>n==="large"?5:n==="xlarge"?6:4),svg:o})}):i.jsx("div",{className:We.slot,children:t})},dd=e=>{const{startSlot:t,icon:o,size:r,inputAttributes:n,onFocus:s,onBlur:l,disabled:a,name:u,value:_,defaultValue:m,onChange:d,onClick:h,placeholder:p,id:g,children:f}=e,[y,x]=c.useState(_===void 0?!m:!_),v=F(We.input,p&&y&&We["input--placeholder"]),w=C=>{const N=C.target.value;_===void 0&&x(!N),d&&d({name:u,value:N,event:C})};return c.useEffect(()=>{_!==void 0&&x(!_)},[_]),i.jsxs(i.Fragment,{children:[i.jsx(Di,{startSlot:t,icon:o,size:r}),i.jsxs("select",z(b({},n),{onFocus:s||(n==null?void 0:n.onFocus),onBlur:l||(n==null?void 0:n.onBlur),onClick:h||(n==null?void 0:n.onClick),className:v,disabled:a,name:u,value:_,defaultValue:m,onChange:w,id:g,children:[p&&i.jsx("option",{value:"",children:p}),f]})),i.jsx(Li,{disabled:a,size:r})]})},Pi=e=>{var h,p;const t=et(),o=Ke(e.id),r=z(b({},e),{id:((h=t==null?void 0:t.attributes)==null?void 0:h.id)||((p=e.inputAttributes)==null?void 0:p.id)||o,disabled:(t==null?void 0:t.disabled)||e.disabled,hasError:(t==null?void 0:t.hasError)||e.hasError,inputAttributes:b(b({},e.inputAttributes),t==null?void 0:t.attributes)}),{children:n,className:s,size:l="medium",variant:a="outline",hasError:u,disabled:_,attributes:m}=r,d=F(We.root,s,l&&ce(We,"--size",l),u&&We["--status-error"],_&&We["--disabled"],a&&We[`--variant-${a}`]);return i.jsx("div",z(b({},m),{className:d,children:n(r)}))},Fi=e=>{const{children:t,disabled:o,onClick:r,onFocus:n,onBlur:s,inputAttributes:l,startSlot:a,icon:u,size:_,placeholder:m,value:d,name:h,id:p}=e;return i.jsxs(i.Fragment,{children:[i.jsxs(Le,{className:We.input,disabled:o,disableFocusRing:!0,onClick:r,attributes:b({onFocus:n||(l==null?void 0:l.onFocus),onBlur:s||(l==null?void 0:l.onBlur)},l),children:[i.jsx(Di,{startSlot:a,icon:u,size:_}),t?i.jsx(ie,{maxLines:typeof t=="string"?1:void 0,children:t}):null,m&&!t?i.jsx(ie,{color:"disabled",children:m}):null,i.jsx(Li,{disabled:o,size:_})]}),i.jsx("input",{type:"hidden",value:typeof d=="string"?d:JSON.stringify(d),name:h,id:p})]})},Ai=e=>{const{children:t}=e;return i.jsx(Pi,z(b({},e),{children:o=>{const{options:r}=o,n=c.Children.toArray(t).some(l=>c.isValidElement(l)&&(l.type==="option"||l.type==="optgroup"));return!(r||n)?i.jsx(Fi,z(b({},o),{children:t})):i.jsxs(dd,z(b({},o),{children:[r==null?void 0:r.map(l=>i.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value)),t]}))}}))};Ai.displayName="Select";const Bo=e=>{const{label:t,children:o}=e;return i.jsxs(O,{attributes:{role:"group"},gap:1,className:We.group,children:[t&&i.jsx("div",{className:We["group-label"],children:i.jsx(ie,{variant:"caption-1",color:"neutral-faded",children:t})}),i.jsx(O.Item,{children:o})]})};Bo.displayName="Select.Group";const Wr=e=>{const r=e,{value:t}=r,o=ve(r,["value"]);return i.jsx(ke.Item,z(b({},o),{className:[o.className,We.option],color:"neutral",attributes:z(b({},o.attributes),{value:t,role:"option"})}))};Wr.displayName="Select.Option";const qr=e=>{const{children:t,value:o,name:r,placeholder:n,size:s,multiple:l,width:a="trigger",position:u,fallbackPositions:_,positionRef:m,renderValue:d}=e,h=c.useRef(null),p=c.useRef(""),g=c.useRef(null),f=c.useRef(null),y=[],x=[],v=l?o.length>0:o,w=k=>c.Children.map(k,(S,T)=>{var $;if(!c.isValidElement(S))return null;if(S.type===Wr){const M=S,L=M.props,A=(l?o.includes(L.value):L.value===o)||!n&&!o&&T===0;return A&&x.push(L),y.push({value:L.value,text:typeof L.children=="string"?L.children:L.value}),c.cloneElement(M,{key:L.value,onClick:V=>{var D,j,W;if((D=L.onClick)==null||D.call(L,V),l){const re=A?o.filter(X=>X!==L.value):[...o,L.value];(j=e.onChange)==null||j.call(e,{value:re,name:r})}else(W=e.onChange)==null||W.call(e,{value:L.value,name:r})},startSlot:(L==null?void 0:L.startSlot)!==void 0?L.startSlot:v&&i.jsx(ge,{svg:A?Mr:null}),attributes:z(b({},M.props.attributes),{ref:A?h:void 0})})}if(S.type===Bo){const M=S,L=M.props;return c.cloneElement(M,{key:($=L.label)!=null?$:T,children:w(L.children)})}return S}),C=w(t),N=k=>{var $;const S=k.key;if((($=document.activeElement)==null?void 0:$.tagName)==="INPUT"||S.length!==1||!S.match(/[\w\s]/))return;g.current&&clearTimeout(g.current),p.current+=S.toLowerCase();const T=y.find(M=>M.text.toLowerCase().startsWith(p.current));if(T&&f.current){const M=f.current.querySelector(`[value="${T.value}"]`);M==null||M.focus()}g.current=setTimeout(()=>{p.current=""},1e3)},E=()=>d?d(l?{value:o}:{value:o}):x.length===1?x[0].children:x.length>1?i.jsx(O,{direction:"row",gap:4,children:x.map(k=>i.jsx(O.Item,{children:k.children},k.value))}):null;return i.jsx(Pi,z(b({},e),{children:k=>i.jsxs(ke,{width:a,disableHideAnimation:!0,position:u!=null?u:"bottom",fallbackPositions:_!=null?_:u?void 0:["bottom","top"],fallbackAdjustLayout:!0,fallbackMinHeight:"220px",borderRadius:de(s,S=>S==="large"||S==="xlarge"?"medium":"small"),initialFocusRef:h,positionRef:m,children:[i.jsx(ke.Trigger,{children:S=>{const T=z(b({},k),{inputAttributes:b(b({},k.inputAttributes),S)});return i.jsx(Fi,z(b({},T),{value:o,children:E()}))}}),i.jsx(ke.Content,{attributes:{ref:f,onKeyDown:N,role:void 0},children:C})]})}))};qr.displayName="SelectCustomControlled";const Vi=e=>{const a=e,{defaultValue:t,onChange:o,multiple:r}=a,n=ve(a,["defaultValue","onChange","multiple"]),[s,l]=c.useState(t||(r?[]:""));return i.jsx(qr,z(b({},n),{multiple:r,value:s,onChange:u=>{l(u.value),o==null||o(u)}}))};Vi.displayName="SelectCustomUncontrolled";const Bi=e=>{const{value:t}=e;return t!==void 0?i.jsx(qr,b({},e)):i.jsx(Vi,b({},e))};Bi.displayName="SelectCustom";const fo=Ai;fo.Custom=Bi,fo.Option=Wr,fo.Group=Bo,fo.OptionGroup=Bo;const ud={root:"_root_xavah_1"},ji=e=>{const{borderRadius:t="small",width:o,height:r,className:n,attributes:s}=e,l=F(ud.root,n);return i.jsx(O,{backgroundColor:"disabled",width:o,height:r,borderRadius:t,className:l,attributes:s})};ji.displayName="Skeleton";const at={root:"_root_7bdnx_1",thumb:"_thumb_7bdnx_13","thumb--active":"_thumb--active_7bdnx_13",input:"_input_7bdnx_13",bar:"_bar_7bdnx_18",selection:"_selection_7bdnx_34",tooltip:"_tooltip_7bdnx_39",thumbs:"_thumbs_7bdnx_61","--orientation-horizontal":"_--orientation-horizontal_7bdnx_1","--orientation-vertical":"_--orientation-vertical_7bdnx_1","--disabled":"_--disabled_7bdnx_220"},Hi=e=>{const t=e.toString().split(".")[1];return(t==null?void 0:t.length)||0},Ur=(e,t)=>{const o=t%1!==0,r=Math.round(e/t)*t;if(o){const n=Hi(t);return Number(r.toFixed(n))}return r},Oi=({event:e,vertical:t})=>t?e instanceof MouseEvent?e.clientY:e.changedTouches[0].clientY:e instanceof MouseEvent?e.clientX:e.changedTouches[0].clientX,Wi=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))},Yr=c.forwardRef((e,t)=>{const{name:o,value:r,disabled:n,active:s,position:l,max:a,min:u,step:_,onChange:m,onDragStart:d,renderValue:h,tooltipRef:p,inputRef:g,orientation:f}=e,y=c.useId(),x=F(at.thumb,s&&at["thumb--active"]),v=Hi(_),w=h?h({value:r}):r.toFixed(v),C=N=>{m(+N.target.value,{native:!0})};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:at.input,type:"range",name:o,value:r,onChange:C,disabled:n,max:a,min:u,step:_,"aria-labelledby":y,"aria-orientation":f,ref:g}),i.jsx("div",{ref:t,className:x,onMouseDown:d,onTouchStart:d,style:{"--ts-slider-thumb-position":`${l}%`},id:y,"aria-hidden":"true",children:h!==!1&&i.jsx(Pt,{colorMode:"inverted",children:i.jsx(ie,{variant:"caption-1",weight:"medium",className:at.tooltip,attributes:{ref:p},children:w})})})]})});Yr.displayName="SliderThumb";const qi=16,jo=e=>{var Y,Q,fe;const{name:t,range:o,max:r,min:n,step:s=1,onChange:l,onChangeCommit:a,renderValue:u,className:_,attributes:m,orientation:d="horizontal"}=e,h=Ne(l),p=Ne(a),g=d==="vertical",f=o&&e.minValue!==void 0?Ur(e.minValue,s):void 0,y=Ur(o?e.maxValue:e.value,s),x=(Y=e.minName)!=null?Y:e.name,v=(Q=e.maxName)!=null?Q:e.name,w=c.useRef(null),C=c.useRef(null),N=c.useRef(null),E=c.useRef(null),k=c.useRef(null),S=c.useRef(null),T=c.useRef(null),[$,M]=c.useState(null),[L]=pt(),P=et(),A=Ke(),V=((fe=P==null?void 0:P.attributes)==null?void 0:fe.id)||A,D=`${V}-min`,j=`${V}-max`,W=(P==null?void 0:P.disabled)||e.disabled,re=F(at.root,W&&at["--disabled"],d&&at[`--orientation-${d}`],_),X=c.useCallback(Z=>{const K=w.current;if(!K)return;const le=g?K.clientHeight:K.clientWidth,ue=K.getBoundingClientRect()[g?"top":"left"]+qi/2,Ce=Z-ue,Me=le-qi;let Ie=Ce/Me;(L||g)&&(Ie=1-Ie);let he=(r-n)*Ie+n;return he=Math.max(n,Math.min(r,he)),Ur(he,s)},[r,n,L,s,g]),J=Z=>(Z-n)/(r-n)*100,U=c.useCallback(Z=>{var Pe,Ze,Be;if(g)return;const K=Z===D?E:k,le=Z===D?C:N;let ae=0;const ue=(Pe=w.current)==null?void 0:Pe.getBoundingClientRect(),Ce=(Ze=K.current)==null?void 0:Ze.getBoundingClientRect(),Me=(Be=le.current)==null?void 0:Be.getBoundingClientRect(),Ie=ue==null?void 0:ue.left,he=Ie&&Ie+(ue==null?void 0:ue.width),ye=Me&&Ce&&Me.left-Ce.width/2,xe=Me&&Ce&&Me.left+Ce.width/2;ye&&Ie&&ye<Ie&&(ae=Ce.width/2-8),xe&&he&&xe>he&&(ae=-(Ce.width/2-8));const Ve=K.current;Ve&&Ve.style.setProperty("--rs-slider-tooltip-offset",`${ae||0}px`)},[D,g]),te=c.useCallback((Z,K={})=>{var ae,ue,Ce;if(!o)return;const le={minValue:Z,maxValue:y,name:t,minName:x,maxName:v};K.commit&&((ae=p.current)==null||ae.call(p,le)),K.native&&!$&&((ue=p.current)==null||ue.call(p,le)),K.native&&((Ce=h.current)==null||Ce.call(h,le)),Wi(S.current,Z.toString())},[o,y,t,x,v,$,p,h]),G=c.useCallback((Z,K={})=>{var ae,ue,Ce;const le=o?{minValue:f,maxValue:Z,name:t,minName:x,maxName:v}:{value:Z,name:t};K.commit&&((ae=p.current)==null||ae.call(p,le)),K.native&&!$&&((ue=p.current)==null||ue.call(p,le)),K.native&&((Ce=h.current)==null||Ce.call(h,le)),Wi(T.current,Z.toString())},[o,f,t,x,v,p,$,h]),ee=({nativeEvent:Z})=>{if(W)return;let K,le;const ae=Oi({event:Z,vertical:g}),ue=X(ae);[{ref:C,id:D},{ref:N,id:j}].forEach(Me=>{if(!Me.ref.current)return;const he=Me.ref.current.getBoundingClientRect(),ye=Math.abs((g?he.top:he.left)-ae);(K===void 0||ye<=K)&&(K=ye,le=Me.id)}),!(!le||ue===void 0)&&(le===D&&te(ue),le===j&&G(ue),M(le))},$e=Z=>{W||(Z.stopPropagation(),Jt(),M(D))},_e=Z=>{W||(Z.stopPropagation(),Jt(),M(j))},ne=c.useCallback(()=>{var Z,K;$===D&&f!==void 0&&(te(f,{commit:!0}),(Z=S.current)==null||Z.focus()),$===j&&(G(y,{commit:!0}),(K=T.current)==null||K.focus()),zo(),M(null)},[f,y,te,G,$,D,j]),oe=c.useCallback(Z=>{if(!$)return;const K=Oi({event:Z,vertical:g}),le=X(K);if(le===void 0)return;let ae=$;$===D&&le>y&&(ae=j),$===j&&f&&le<f&&(ae=D),ae===D&&te(le),ae===j&&G(le),$!==ae&&M(ae)},[$,f,y,X,G,te,j,D,g]);c.useEffect(()=>{U(D),U(j)},[D,j,f,y,U]),c.useEffect(()=>(window.addEventListener("mouseup",ne),window.addEventListener("touchend",ne),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[ne,oe]);const se=f&&J(f),B=J(y);return i.jsxs("div",z(b({},m),{className:re,onMouseDown:ee,onTouchStart:ee,children:[i.jsx("div",{className:at.bar,ref:w,children:i.jsx("div",{className:at.selection,style:{"--rs-slider-selection-start":`${se||0}%`,"--rs-slider-selection-size":`${B-(se||0)}%`}})}),i.jsxs("div",{className:at.thumbs,children:[f!==void 0&&se!==void 0&&i.jsx(Yr,{id:D,active:D===$,name:x,disabled:W,onChange:te,value:f,onDragStart:$e,position:se,max:r,min:n,ref:C,tooltipRef:E,inputRef:S,renderValue:u,step:s,orientation:d}),i.jsx(Yr,{id:j,active:j===$,name:v,disabled:W,onChange:G,value:y,onDragStart:_e,position:B,max:r,min:n,ref:N,tooltipRef:k,inputRef:T,renderValue:u,step:s,orientation:d})]})]}))};jo.displayName="SliderControlled";const Ui=(e,t,o)=>Math.min(Math.max(e,t),o),Yi=e=>{const{min:t,max:o,onChange:r,range:n}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(n?o:t),[a,u]=c.useState(Ui(s,t,o)),[_,m]=c.useState(Ui(l,t,o)),d=p=>{n||(m(p.value),r==null||r(p))},h=p=>{n&&(u(p.minValue),m(p.maxValue),r==null||r(p))};return n?i.jsx(jo,z(b({},e),{min:t,max:o,minValue:a,maxValue:_,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:h})):i.jsx(jo,z(b({},e),{min:t,max:o,value:_,defaultValue:void 0,onChange:d}))};Yi.displayName="SliderUncontrolled";const Ki=e=>{const n=e,{min:t=0,max:o=100}=n,r=ve(n,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(jo,z(b({},r),{min:t,max:o})):i.jsx(Yi,z(b({},r),{min:t,max:o}))};Ki.displayName="Slider";const Gi={root:"_root_1as3o_1","--animated":"_--animated_1as3o_6"},Kr=e=>{const{children:t,active:o,attributes:r}=e,n=c.useRef(null),s=c.useRef(!1),[l,a]=c.useState(o?"auto":null),u=F(Gi.root,s.current&&l!=="auto"&&Gi["--animated"]),_=m=>{m.propertyName==="height"&&a(o?"auto":null)};return c.useEffect(()=>{Re(()=>{s.current=!0})},[]),be(()=>{const m=n.current;!m||!s.current||(o?(m.style.height="auto",requestAnimationFrame(()=>{const d=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{a(d)})})):(m.style.height=`${m.clientHeight}px`,requestAnimationFrame(()=>{a(0)})))},[o]),i.jsx("div",z(b({},r),{className:u,ref:n,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:_,role:"region",hidden:!o&&l===null,children:t}))};Kr.displayName="Expandable";const _d={verticalDivider:"_verticalDivider_oa23g_1"},md=e=>{const{title:t,subtitle:o,children:r,direction:n,className:s,attributes:l,labelDisplay:a,step:u,completed:_,active:m,last:d}=e,h=a&&de(a,g=>g==="hidden"),p=i.jsx(O,{gap:3,grow:!0,children:i.jsxs(O.Item,{children:[i.jsx(ie,{variant:"body-3",weight:"medium",children:t}),i.jsx(ie,{variant:"caption-1",color:"neutral-faded",children:o})]})});return i.jsxs(O,{attributes:l,className:s,children:[i.jsxs(O,{direction:"row",gap:2,align:"center",position:"static",children:[i.jsxs(O.Item,{children:[i.jsx(O,{align:"center",justify:"center",backgroundColor:m||_?"primary":"neutral-faded",borderColor:m||_?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:i.jsx(ie,{variant:"body-3",weight:m?"bold":"medium",children:_?i.jsx(ge,{svg:Mr,size:4}):u})}),n==="column"&&!d&&i.jsx(eo,{vertical:!0,className:_d.verticalDivider})]}),a?i.jsx(kt,{hide:h,children:p}):p]}),n==="column"&&r&&i.jsx(Kr,{active:m,children:i.jsx(O,{paddingStart:10,paddingTop:2,children:r})})]})},Gr=e=>null,Xi=e=>{const{children:t,direction:o="row",activeId:r,labelDisplay:n,gap:s=3,className:l,attributes:a}=e,u=o==="column",_=c.Children.count(t);return i.jsx(O,{attributes:a,direction:o,align:u?"stretch":"center",className:l,gap:s,wrap:!1,children:c.Children.map(t,(m,d)=>{if(!c.isValidElement(m)||m.type!==Gr)return null;const h=m.props,p=h.id||`${d}`;return i.jsxs(c.Fragment,{children:[i.jsx(md,z(b({},h),{id:p,active:(r==null?void 0:r.toString())===p,step:d+1,last:d===_-1,direction:o,labelDisplay:n})),!u&&d<_-1&&i.jsx(O,{grow:!0,children:i.jsx(eo,{})})]},d)})})};Xi.displayName="Stepper",Gr.displayName="Stepper.Item";const Zi=Xi;Zi.Item=Gr;const Tt={root:"_root_icbs0_1","--reversed":"_--reversed_icbs0_9",input:"_input_icbs0_14",area:"_area_icbs0_26",thumb:"_thumb_icbs0_30",hitbox:"_hitbox_icbs0_76","--size-small":"_--size-small_icbs0_1","--size-medium":"_--size-medium_icbs0_1","--size-large":"_--size-large_icbs0_1","--size-small--m":"_--size-small--m_icbs0_1","--size-medium--m":"_--size-medium--m_icbs0_1","--size-large--m":"_--size-large--m_icbs0_1","--size-small--l":"_--size-small--l_icbs0_1","--size-medium--l":"_--size-medium--l_icbs0_1","--size-large--l":"_--size-large--l_icbs0_1","--size-small--xl":"_--size-small--xl_icbs0_1","--size-medium--xl":"_--size-medium--xl_icbs0_1","--size-large--xl":"_--size-large--xl_icbs0_1"},Ji=e=>{var v;const{children:t,name:o,checked:r,size:n="medium",reversed:s,defaultChecked:l,onChange:a,onFocus:u,onBlur:_,className:m,attributes:d}=e,h=F(Tt.root,n&&ce(Tt,"--size",n),s&&Tt["--reversed"],m),p=et(),g=Ke((p==null?void 0:p.attributes.id)||e.id||((v=e.inputAttributes)==null?void 0:v.id)),f=b(b({},e.inputAttributes),p==null?void 0:p.attributes),y=(p==null?void 0:p.disabled)||e.disabled,x=w=>{a&&a({name:o,event:w,checked:w.target.checked})};return i.jsxs("label",z(b({},d),{className:h,children:[i.jsx("input",z(b({type:"checkbox"},f),{className:Tt.input,name:o,checked:r,defaultChecked:l,disabled:y,onChange:x,onFocus:u||(f==null?void 0:f.onFocus),onBlur:_||(f==null?void 0:f.onBlur),id:g})),i.jsxs("span",{className:Tt.area,"aria-hidden":"true",children:[i.jsx("span",{className:Tt.hitbox}),i.jsx("span",{className:Tt.thumb})]}),t&&i.jsx(ie,{variant:de(n,w=>w==="large"?"body-2":w==="medium"?"body-3":"caption-1"),weight:"medium",color:y?"disabled":void 0,children:t})]}))};Ji.displayName="Switch";const Qi=(e,t={})=>{const{disabled:o}=t,[r]=pt(),[n,s]=c.useState(null),l=c.useCallback(()=>{const a=e.current;if(!a)return;a.clientWidth<a.scrollWidth||s(null);const _=a.scrollLeft*(r?-1:1),m=_>1,d=_+a.clientWidth<a.scrollWidth-1;if(d&&m)return s("both");if(m)return s("start");if(d)return s("end")},[r,e]);return be(()=>{const a=e.current;if(!a||o)return;const u=Ro(l);return requestAnimationFrame(()=>l()),window.addEventListener("resize",u),a.addEventListener("scroll",u),()=>{window.removeEventListener("resize",u),a.removeEventListener("scroll",u)}},[r,o]),n},qe={root:"_root_1qtvd_15",table:"_table_1qtvd_28",row:"_row_1qtvd_34",cell:"_cell_1qtvd_48",head:"_head_1qtvd_63",body:"_body_1qtvd_63","cell--align-start":"_cell--align-start_1qtvd_1","cell--align-center":"_cell--align-center_1qtvd_1","cell--align-end":"_cell--align-end_1qtvd_1","cell--valign-start":"_cell--valign-start_1qtvd_1","cell--valign-center":"_cell--valign-center_1qtvd_1","cell--valign-end":"_cell--valign-end_1qtvd_1","cell--width-auto":"_cell--width-auto_1qtvd_79","--row-highlighted":"_--row-highlighted_1qtvd_83","--border-outer":"_--border-outer_1qtvd_87","--border-column":"_--border-column_1qtvd_92","--fade-start":"_--fade-start_1qtvd_102","--fade-end":"_--fade-end_1qtvd_103"},Ri=e=>{const{minWidth:t,rowSpan:o,colSpan:r,align:n,verticalAlign:s,tagName:l,padding:a,paddingInline:u,paddingBlock:_,children:m,className:d,attributes:h}=e,p=e.width==="auto"?"0px":e.width,g=Qe({width:p,minWidth:t}),f=F(qe.cell,g.classNames,(p===0||p==="0px")&&qe["cell--width-auto"],n&&qe[`cell--align-${n}`],s&&qe[`cell--valign-${s}`],d),y=b(b(b({},g.variables),q("--rs-table-p-vertical",_!=null?_:a)),q("--rs-table-p-horizontal",u!=null?u:a));return i.jsx(l,z(b({},h),{className:f,rowSpan:o,colSpan:r,style:y,children:m}))},el=e=>i.jsx(Ri,z(b({},e),{tagName:"td"})),tl=e=>i.jsx(Ri,z(b({},e),{tagName:"th"})),ol=e=>{const{highlighted:t,children:o,className:r,attributes:n}=e,s=e.onClick||(n==null?void 0:n.onClick),l=F(qe.row,t&&qe["--row-highlighted"],r);return i.jsx("tr",z(b({},n),{className:l,onClick:s,tabIndex:s?0:void 0,children:o}))},Ho=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("tbody",z(b({},o),{className:F(qe.body,r),children:t}))},Xr=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("thead",z(b({},o),{className:F(qe.head,r),children:t}))},rl=e=>{const{children:t,border:o,columnBorder:r,className:n,attributes:s}=e,l=c.useRef(null),a=Qi(l),u=F(qe.root,n,o&&qe["--border-outer"],r&&qe["--border-column"],(a==="start"||a==="both")&&qe["--fade-start"],(a==="end"||a==="both")&&qe["--fade-end"]),[_]=c.Children.toArray(t),m=c.isValidElement(_),d=m&&_.type===Ho,h=m&&_.type===Xr;return i.jsx("div",z(b({},s),{className:u,ref:l,children:i.jsx("table",{className:qe.table,children:d||h?t:i.jsx(Ho,{children:t})})}))};rl.displayName="Table",el.displayName="TableCell",tl.displayName="TableHeading",ol.displayName="TableRow",Ho.displayName="TableBody",Xr.displayName="TableHead";const jt=rl;jt.Cell=el,jt.Heading=tl,jt.Row=ol,jt.Body=Ho,jt.Head=Xr;const nl=c.createContext({}),hd=nl.Provider,Zr=e=>{const r=c.useContext(nl),{id:t}=r,o=ve(r,["id"]);return z(b({},o),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Jr=e=>{const{children:t,value:o,onChange:r,onSilentChange:n,itemWidth:s,variant:l,name:a,disableSelectionAnimation:u,direction:_="row",size:m="medium"}=e,d=Ke(),h=c.useRef(null),p=c.useRef(h.current),g=c.useRef(null),[f,y]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),x=v=>{v!==void 0&&n&&n({value:v,name:a})};return i.jsx(hd,{value:{value:o,name:a,size:m,direction:_,itemWidth:s,variant:l,onChange:r,id:d,setDefaultValue:x,elActiveRef:h,elPrevActiveRef:p,elScrollableRef:g,selection:f,setSelection:y,disableSelectionAnimation:u},children:t})};Jr.displayName="TabsControlled";const sl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t),s=({value:a})=>{n(a),o&&o({value:a})},l=({value:a})=>{n(a)};return i.jsx(Jr,z(b({},e),{onChange:s,onSilentChange:l,value:r,defaultValue:void 0}))};sl.displayName="TabsUncontrolled";const il=e=>{const{value:t}=e;return t!==void 0?i.jsx(Jr,b({},e)):i.jsx(sl,b({},e))};il.displayName="Tabs";const me={root:"_root_z0kzv_27",inner:"_inner_z0kzv_41",list:"_list_z0kzv_50",listItem:"_listItem_z0kzv_55",button:"_button_z0kzv_60",buttonContent:"_buttonContent_z0kzv_87",icon:"_icon_z0kzv_95",radio:"_radio_z0kzv_104",item:"_item_z0kzv_108","item--active":"_item--active_z0kzv_116","item--disabled":"_item--disabled_z0kzv_121",selector:"_selector_z0kzv_127","selector--hidden":"_selector--hidden_z0kzv_150","selector--animated":"_selector--animated_z0kzv_154",control:"_control_z0kzv_161","control--active":"_control--active_z0kzv_172","control--next":"_control--next_z0kzv_181","control--prev":"_control--prev_z0kzv_185",panel:"_panel_z0kzv_190","panel--hidden":"_panel--hidden_z0kzv_197","--scrollable":"_--scrollable_z0kzv_202","--direction-row":"_--direction-row_z0kzv_227","--direction-column":"_--direction-column_z0kzv_269","--variant-borderless":"_--variant-borderless_z0kzv_314","--variant-pills":"_--variant-pills_z0kzv_315","--variant-pills-elevated":"_--variant-pills-elevated_z0kzv_316","--size-medium":"_--size-medium_z0kzv_396","--size-large":"_--size-large_z0kzv_401","--item-width-equal":"_--item-width-equal_z0kzv_406",buttonText:"_buttonText_z0kzv_424","--fade-start":"_--fade-start_z0kzv_434","--fade-end":"_--fade-end_z0kzv_435"},Qr=c.forwardRef((e,t)=>{const{value:o,children:r,icon:n,href:s,disabled:l,attributes:a}=e,{onChange:u,panelId:_,buttonId:m,name:d,size:h,value:p,selection:g,elActiveRef:f,elPrevActiveRef:y,elScrollableRef:x}=Zr(o),v=c.useRef(null),w=p===o,C=w&&g.status==="idle",N=F(me.item,C&&me["item--active"],l&&me["item--disabled"]),E=!!d,k={role:"tab",tabIndex:w?0:-1,"aria-selected":w},S=c.useCallback(()=>{y.current=f.current,f.current=v.current},[f,y]),T=()=>{var W,re;if(s&&!u)return;const $=x.current,M=(W=v.current)==null?void 0:W.parentElement,L=(re=f.current)==null?void 0:re.parentElement;if(u&&u({value:o,name:d}),!$||!M||!L||$.scrollWidth===$.clientWidth||!x.current)return;const P=48,A=v.current&&Gl(v.current,X=>X.hasAttribute("data-rs-tabs-item"));if(!A)return;const V=x.current,D=A.offsetLeft-V.scrollLeft,j=V.scrollLeft+V.clientWidth-(A.offsetLeft+A.clientWidth);(D<P||j<P)&&x.current.scrollTo({left:A.offsetLeft+A.clientWidth/2-V.clientWidth/2,behavior:"smooth"})};return be(()=>{w&&S()},[w,S]),i.jsx("div",z(b({},a),{className:N,ref:v,role:"presentation",children:i.jsxs(Le,{ref:t,href:s,disableFocusRing:!0,disabled:l,onClick:d?void 0:T,className:me.button,as:d?"label":void 0,attributes:z(b({},!E&&k),{"aria-controls":_,id:m}),children:[d&&i.jsx(_o,{type:"radio",name:d,value:o,checked:C,onChange:T,className:me.radio}),i.jsxs("span",{className:me.buttonContent,children:[n&&i.jsx(ge,{svg:n,className:me.icon,size:4}),r&&i.jsx(ie,{variant:h==="large"?"body-2":"body-3",weight:"medium",className:me.buttonText,children:r})]})]})}))});Qr.displayName="Tabs.Item";const ll=(e,t)=>e===t||!e?null:e.classList.contains(me.listItem)?e:ll(e.parentElement,t),al=e=>{const{children:t,className:o,attributes:r}=e,{value:n,setDefaultValue:s,itemWidth:l,variant:a,name:u,direction:_,size:m,selection:d,setSelection:h,elActiveRef:p,elPrevActiveRef:g,elScrollableRef:f,disableSelectionAnimation:y}=Zr(),[x]=pt(),v=Qi(f,{disabled:l==="equal"}),w=F(me.root,m&&me[`--size-${m}`],_&&me[`--direction-${_}`],l&&me[`--item-width-${l}`],a&&me[`--variant-${a}`],v&&me["--scrollable"],(v==="start"||v==="both")&&me["--fade-start"],(v==="end"||v==="both")&&me["--fade-end"],o),C=F(me.selector,d.status==="idle"&&me["selector--hidden"],d.status==="animated"&&me["selector--animated"]),N=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?-1:1),behavior:"smooth"})},E=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?1:-1),behavior:"smooth"})},k=()=>{h(T=>z(b({},T),{status:"idle"}))},S=c.useCallback(T=>{if(!f.current)return null;const $=ll(T,f.current);return $?{scaleX:$.clientWidth,scaleY:$.clientHeight,top:$.offsetTop,left:$.offsetLeft}:null},[f]);return nr({ref:f,disabled:!!u}),be(()=>{if(n)return;const T=c.Children.toArray(t)[0];if(!c.isValidElement(T)||!T||T.type!==Qr)return;const $=T.props;s($.value)},[n]),be(()=>{if(!g.current||g.current===p.current)return;const T=S(g.current);if(T){if(y){h(z(b({},T),{status:"idle"}));return}h(z(b({},T),{status:"prepared"}))}},[n,S,y]),be(()=>{if(d.status!=="prepared"||!p.current)return;const T=S(p.current);T&&h(z(b({},T),{status:"animated"}))},[d]),i.jsxs("div",z(b({},r),{className:w,children:[i.jsx("div",{className:me.inner,ref:f,children:i.jsxs("div",{className:me.list,role:"tablist",children:[c.Children.map(t,(T,$)=>{if(!c.isValidElement(T))return null;const M=T.props;return i.jsx("div",{className:me.listItem,"data-rs-tabs-item":!0,children:T},M.value||T.key||$)}),!y&&i.jsx("div",{onTransitionEnd:k,className:C,style:{"--rs-tab-selection-x":d.left,"--rs-tab-selection-y":d.top,"--rs-tab-selection-scale-x":d.scaleX,"--rs-tab-selection-scale-y":d.scaleY}})]})}),i.jsx(Le,{onClick:E,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[me.control,me["control--prev"],(v==="start"||v==="both")&&me["control--active"]],children:i.jsx(ge,{svg:Fo,size:5})}),i.jsx(Le,{onClick:N,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[me.control,me["control--next"],(v==="end"||v==="both")&&me["control--active"]],children:i.jsx(ge,{svg:Ft,size:5})})]}))};al.displayName="Tabs.List";const cl=e=>{const{value:t,children:o,className:r,attributes:n}=e,{value:s,panelId:l,buttonId:a}=Zr(t),[u,_]=c.useState(!0),m=c.useRef(null),d=t===s,h=F(me.panel,!d&&me["panel--hidden"],r);return c.useEffect(()=>{const p=m.current;if(!p)return;const g=()=>{_(!Xt(p).length)};g();const f=new MutationObserver(g);return f.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex","disabled","href"]}),()=>f.disconnect()},[]),i.jsx("div",z(b({},n),{ref:m,className:h,tabIndex:u?0:void 0,role:"tabpanel",id:l,"aria-labelledby":a,children:d&&o}))};cl.displayName="Tabs.Panel";const Oo=il;Oo.Item=Qr,Oo.List=al,Oo.Panel=cl;const $t={root:"_root_1twkl_1",input:"_input_1twkl_20","--size-medium":"_--size-medium_1twkl_1","--size-large":"_--size-large_1twkl_1","--size-xlarge":"_--size-xlarge_1twkl_1","--variant-faded":"_--variant-faded_1twkl_87","--variant-ghost":"_--variant-ghost_1twkl_95","--variant-headless":"_--variant-headless_1twkl_103","--status-error":"_--status-error_1twkl_111","--resize-none":"_--resize-none_1twkl_122","--resize-auto":"_--resize-auto_1twkl_123","--size-medium--m":"_--size-medium--m_1twkl_1","--size-large--m":"_--size-large--m_1twkl_1","--size-xlarge--m":"_--size-xlarge--m_1twkl_1","--size-medium--l":"_--size-medium--l_1twkl_1","--size-large--l":"_--size-large--l_1twkl_1","--size-xlarge--l":"_--size-xlarge--l_1twkl_1","--size-medium--xl":"_--size-medium--xl_1twkl_1","--size-large--xl":"_--size-large--xl_1twkl_1","--size-xlarge--xl":"_--size-xlarge--xl_1twkl_1"},dl=e=>{var k,S;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,size:u="medium",variant:_="outline",resize:m,className:d,attributes:h}=e,[p,g]=c.useState(s||l||""),f=et(),y=Ke(e.id),x=((k=f==null?void 0:f.attributes)==null?void 0:k.id)||((S=e.inputAttributes)==null?void 0:S.id)||y,v=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,C=b(b({},e.inputAttributes),f==null?void 0:f.attributes),N=F($t.root,u&&ce($t,"--size",u),w&&$t["--status-error"],v&&$t["--disabled"],_&&$t[`--variant-${_}`],m!==void 0&&$t[`--resize-${m}`],d),E=T=>{const $=T.target.value;t==null||t({name:n,value:$,event:T}),m==="auto"&&typeof s!="string"&&g($)};return c.useEffect(()=>{typeof s!="string"||m!=="auto"||g(s)},[s,m]),i.jsx("div",z(b({},h),{"data-rs-aligner-target":!0,className:N,"data-rs-textarea-value":p,children:i.jsx("textarea",z(b({rows:3},C),{className:$t.input,disabled:v,name:n,placeholder:a,value:s,defaultValue:l,onChange:E,onFocus:o||(C==null?void 0:C.onFocus),onBlur:r||(C==null?void 0:C.onBlur),id:x}))}))};dl.displayName="TextArea";const ul=dl;ul.Aligner=to;const Rr={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wo=e=>{const{children:t,markerSlot:o,className:r,attributes:n}=e,s=o!==null,l=F(Rr.item,!s&&Rr["item--full-width"],r);return i.jsxs(O,{as:"li",direction:"row",align:"stretch",gap:3,attributes:n,className:l,children:[s&&i.jsx("span",{className:Rr.marker,children:o}),i.jsx(O.Item,{grow:!0,children:t})]})},_l=e=>{const{children:t,className:o,attributes:r}=e,n=F(o);return i.jsx("ul",z(b({},r),{className:n,children:c.Children.map(t,(s,l)=>c.isValidElement(s)&&s.type===Wo?s:i.jsx(Wo,{children:s},l))}))};_l.displayName="Timeline",Wo.displayName="Timeline.Item";const ml=_l;ml.Item=Wo;const hl={short:4e3,long:8e3},bo=["top-start","top","top-end","bottom-start","bottom","bottom-end"],fl={queues:bo.reduce((e,t)=>b({[t]:[]},e),{}),id:"",show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},qo=c.createContext(fl),bl=()=>{const{add:e,hide:t,id:o}=c.useContext(qo);return c.useMemo(()=>({show:e,hide:t,id:o}),[e,t,o])},ot={container:"_container_13298_1","container--visible":"_container--visible_13298_1",wrapper:"_wrapper_13298_12","container--index-0":"_container--index-0_13298_1","container--index-1":"_container--index-1_13298_1","container--index-2":"_container--index-2_13298_112","container--index-overflow":"_container--index-overflow_13298_116",region:"_region_13298_65","region--nested":"_region--nested_13298_1","region--position-top":"_region--position-top_13298_1","region--position-top-start":"_region--position-top-start_13298_1","region--position-top-end":"_region--position-top-end_13298_1","region--position-bottom":"_region--position-bottom_13298_1","region--position-bottom-start":"_region--position-bottom-start_13298_1","region--position-bottom-end":"_region--position-bottom-end_13298_1"},gl=e=>{const{size:t="small",text:o,children:r,color:n="inverted",icon:s,title:l,actionsSlot:a,startSlot:u,collapsed:_,className:m,attributes:d}=e;let h=n==="inverted"||n==="neutral"?"elevation-overlay":n;n==="neutral"&&(h=_?"neutral":"elevation-overlay");const p=n==="neutral"?"neutral-faded":"transparent",g=t==="small"?"span":"div",f=t==="large";let y=[];a&&(y=Array.isArray(a)?a:[a]);const x=(l||o)&&i.jsxs(c.Fragment,{children:[l&&i.jsxs(ie,{variant:"body-3",weight:"bold",as:g,children:[l," "]}),i.jsx(ie,{variant:"body-3",as:g,children:o})]}),v=i.jsxs(O,{backgroundColor:h,borderColor:p,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:f?"start":"center",className:[ot.toast,m],attributes:d,children:[s&&i.jsx(ge,{size:5,svg:s,className:ot.icon}),u&&!s&&i.jsx(O.Item,{children:u}),i.jsx(O.Item,{grow:!0,children:i.jsxs(O,{direction:f?"column":"row",align:f?"start":"center",gap:3,children:[i.jsx(O.Item,{grow:!0,children:x&&r||t!=="small"?i.jsxs(O,{gap:.5,children:[x,r&&i.jsx(O,{gap:3,children:r})]}):x||r}),y.length&&i.jsx(O,{direction:"row",align:"center",gap:2,children:y.map((w,C)=>{const N=t==="large"?C===0:C===y.length-1,k={variant:N?"solid":"ghost",size:"small",color:N?n==="neutral"||n==="inverted"?"neutral":"media":"inherit",elevated:n!=="neutral"};return w.type===Te?c.createElement(Te,z(b(b({},k),w.props),{key:C})):w})})]})})]});return n==="inverted"?i.jsx(Pt,{colorMode:"inverted",children:v}):v};gl.displayName="Toast";const pl=e=>{const{toastProps:t,id:o,status:r,inspected:n,index:s}=e,{timeout:l="short"}=t,{show:a,hide:u,remove:_}=c.useContext(qo),[m,d]=c.useState(),h=c.useRef(null),p=c.useRef(!1),g=c.useRef(null),f=r==="entered",y=F(ot.container,f&&ot["container--visible"],s===0&&ot[`container--index-${s}`],!n&&(s===1||s===2)&&ot[`container--index-${s}`],!n&&s>=3&&ot["container--index-overflow"]),x=c.useCallback(()=>{h.current&&clearTimeout(h.current)},[]),v=c.useCallback(()=>{x();const C=typeof l=="string"?hl[l]:l;l!==0&&(h.current=setTimeout(()=>{u(o)},C!=null?C:hl.short))},[u,o,l,x]),w=C=>{C.propertyName==="height"&&(f||_(o))};return c.useEffect(()=>{f&&(n?x():v())},[n,v,x,f]),c.useEffect(()=>{g.current&&d(g.current.clientHeight),a(o),v()},[a,o,v]),c.useEffect(()=>{if(!g.current)return;const C=new It;f?C.trap(g.current,{includeTrigger:!0,mode:"content-menu"}):Zt()&&C.release()},[f]),c.useEffect(()=>{if(!f||s>0)return;const C=()=>{p.current=!0,Re(()=>{p.current=!1}),g.current&&d(g.current.clientHeight)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[f,s]),i.jsx("li",{className:y,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:p.current?"0s":void 0},onTransitionEnd:w,onFocus:x,onBlur:v,children:i.jsx("span",{className:ot.wrapper,children:i.jsx(gl,z(b({},t),{collapsed:s>0&&!n,attributes:z(b({},t.attributes),{ref:g})}))})})};pl.displayName="ToastContainer";const vl=e=>{const{position:t,nested:o}=e,{queues:r,options:n}=c.useContext(qo),[s,l]=c.useState(!1),a=c.useRef(!1),u=c.useRef(null),_=r[t],{width:m,expanded:d}=(n==null?void 0:n[t])||{},h=F(ot.region,ot[`region--position-${t}`],o&&ot["region--nested"]),p=_.filter(w=>w.status==="entered").length;let g=0;const f=()=>{a.current=!0},y=w=>{let C=w.target,N=!1;for(;C&&C!==u.current&&!N;)N=C.matches(gn),C=C.parentElement;N||l(E=>!E),a.current=!1},x=()=>{a.current||l(!0)},v=()=>{a.current||l(!1)};return c.useEffect(()=>{_.length===0&&l(!1)},[_.length]),_.length?i.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:u,onTouchStart:f,onClick:y,onMouseEnter:x,onMouseLeave:v,style:{width:m},children:_.map((w,C)=>{const N=p-C+g-1;return w.status!=="entered"&&(g+=1),i.jsx(pl,z(b({},w),{index:N,inspected:s||!!d}),w.id)})}):null};vl.displayName="ToastRegion";let fd=0;const bd=()=>`__rs-toast-${fd++}`,gd=(e,t)=>{let o;switch(t.type){case"add":{const r=t.payload.toastProps||{},{position:n="bottom-end"}=r,s=ve(r,["position"]);return z(b({},e),{[n]:[...e[n],{id:t.payload.id,toastProps:s,status:"entering"}]})}case"show":{const{id:n}=t.payload;return o=b({},e),bo.forEach(s=>{o[s]=o[s].map(l=>l.status!=="entering"?l:l.id===n?z(b({},l),{status:"entered"}):l)}),o}case"hide":{const{id:n}=t.payload;return o=b({},e),bo.forEach(s=>{o[s]=o[s].map(l=>l.id===n?z(b({},l),{status:"exiting"}):l)}),o}case"remove":{const{id:n}=t.payload;return o=b({},e),bo.forEach(s=>{o[s]=o[s].filter(l=>l.id!==n)}),o}}},en=e=>{const{children:t,options:o}=e,r=bl(),n=c.useId(),[s,l]=c.useReducer(gd,fl.queues),a=c.useCallback(h=>{const p=bd();return l({type:"add",payload:{toastProps:h,id:p}}),p},[]),u=c.useCallback(h=>{l({type:"show",payload:{id:h}})},[]),_=c.useCallback(h=>{l({type:"hide",payload:{id:h}})},[]),m=c.useCallback(h=>{l({type:"remove",payload:{id:h}})},[]),d=c.useMemo(()=>({queues:s,id:n,add:a,show:u,hide:_,remove:m,inspecting:!1,options:o}),[s,u,_,a,m,n,o]);return i.jsxs(qo.Provider,{value:d,children:[t,bo.map(h=>i.jsx(vl,{position:h,nested:!!r.id},h))]})};en.displayName="ToastProiver";const yl=c.createContext(null),pd=()=>c.useContext(yl),tn=e=>{const d=e,{onChange:t,value:o,selectionMode:r="single",children:n,color:s,selectedColor:l,selectedVariant:a}=d,u=ve(d,["onChange","value","selectionMode","children","color","selectedColor","selectedVariant"]),_=c.useRef(null),m=h=>{const{event:p,value:g,checked:f}=h;if(!g)return;let y=r==="single"?[g]:[...o];r==="multiple"&&(f?y.push(g):y=y.filter(x=>x!==g)),t&&t({value:y,event:p})};return nr({ref:_}),i.jsx(yl.Provider,{value:{onChange:m,value:o,selectedColor:l,color:s,selectedVariant:a},children:i.jsx(Te.Group,z(b({},u),{attributes:b({ref:_},u==null?void 0:u.attributes),children:n}))})};tn.displayName="ToggleButtonGroupControlled";const xl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(tn,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};xl.displayName="ToggleButtonGroupUncontrolled";const wl=e=>{const{value:t}=e;return t!==void 0?i.jsx(tn,b({},e)):i.jsx(xl,b({},e))};wl.displayName="ToggleButtonGroup";const on=e=>{var f,y,x;const g=e,{selectedColor:t,selectedVariant:o,value:r,onChange:n,onClick:s,color:l,variant:a="outline"}=g,u=ve(g,["selectedColor","selectedVariant","value","onChange","onClick","color","variant"]),_=pd(),m=(y=r?(f=_==null?void 0:_.value)==null?void 0:f.includes(r):void 0)!=null?y:e.checked,d=m&&(t||(_==null?void 0:_.selectedColor))||l||(_==null?void 0:_.color),h=m&&(o||(_==null?void 0:_.selectedVariant))||a,p=v=>{var C;const w={checked:!m,value:r!=null?r:"",event:v};s==null||s(v),_?(C=_==null?void 0:_.onChange)==null||C.call(_,w):n==null||n(w)};return i.jsx(Te,z(b({},u),{color:d,variant:h,onClick:p,highlighted:m,attributes:z(b({},u.attributes),{"aria-pressed":m,tabIndex:(x=_==null?void 0:_.value)!=null&&x.length?m?0:-1:void 0})}))};on.displayName="ToggleButtonControlled";const Cl=e=>{const l=e,{defaultChecked:t,onChange:o}=l,r=ve(l,["defaultChecked","onChange"]),n=Ct(t),s=a=>{o==null||o(a),n.toggle(a.checked)};return i.jsx(on,z(b({},r),{onChange:s,checked:n.active}))};Cl.displayName="ToggleButtonUncontrolled";const kl=e=>{const{checked:t}=e;return t!==void 0?i.jsx(on,b({},e)):i.jsx(Cl,b({},e))};kl.displayName="ToggleButton";const vd={root:"_root_1vb26_1"},Nl=e=>{const a=e,{text:t,children:o,position:r="bottom",color:n="inverted",contentMaxWidth:s="360px"}=a,l=ve(a,["text","children","position","color","contentMaxWidth"]);return t?i.jsxs(ut,z(b({},l),{position:r,triggerType:"hover",groupTimeouts:l.active===void 0,contentMaxWidth:s,children:[i.jsx(ut.Trigger,{children:o}),i.jsx(ut.Content,{children:i.jsx(Pt,{colorMode:n,children:i.jsx(ie,{variant:"caption-1",className:vd.root,children:t})})})]})):o({ref:null})};Nl.displayName="Tooltip";const yd={root:"_root_1cpr1_1"},zl=e=>{const{theme:t,defaultTheme:o="reshaped",colorMode:r,defaultColorMode:n,defaultViewport:s,toastOptions:l,scoped:a,className:u}=e,_=F(yd.root,u),m=c.useRef(null),d=mr();return i.jsx(Sn,{children:i.jsx(Jn,{defaultMode:n||d.mode||"light",mode:r,scopeRef:d&&a?m:void 0,children:i.jsx(Zn,{name:t,defaultName:o,className:_,scoped:a,scopeRef:d&&a?m:void 0,children:i.jsx(Qc,{defaultViewport:s,children:i.jsx(en,{options:l,children:e.children})})})})})};zl.displayName="Reshaped";const rn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),nn=e=>{const{children:t,onToggle:o,active:r,iconPosition:n,iconSize:s,gap:l,className:a,attributes:u}=e,_=F(a),m=Ke(),d=Ne(o),h=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:d.current,iconPosition:n,iconSize:s,gap:l}),[r,n,s,m,d,l]);return i.jsx("div",z(b({},u),{className:_,children:i.jsx(rn.Provider,{value:h,children:t})}))};nn.displayName="AccordionControlled";const Sl=e=>{const a=e,{defaultActive:t,onToggle:o}=a,r=ve(a,["defaultActive","onToggle"]),[n,s]=c.useState(t||!1),l=u=>{s(u),o==null||o(u)};return i.jsx(nn,z(b({},r),{onToggle:l,active:n}))};Sl.displayName="AccordionUncontrolled";const El=e=>{const{active:t}=e;return t!==void 0?i.jsx(nn,b({},e)):i.jsx(Sl,b({},e))};El.displayName="Accordion";const Tl=e=>{const{children:t}=e,{active:o,triggerId:r,contentId:n,gap:s}=c.useContext(rn);return i.jsx(Kr,{active:o,attributes:{"aria-labelledby":r,id:n},children:s?i.jsx(O,{paddingTop:s,children:t}):t})};Tl.displayName="Accordion.Content";const $l={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ml=e=>{const{children:t}=e,{active:o,onToggle:r,triggerId:n,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext(rn),u=F($l.icon,o&&$l["icon--active"]),_=()=>{r==null||r(!o)},m={"aria-expanded":o,"aria-controls":s,id:n};return typeof t=="function"?i.jsx(i.Fragment,{children:t(z(b({},m),{onClick:_}),{active:o})}):i.jsx(Le,{onClick:_,fullWidth:!0,attributes:m,children:i.jsxs(O,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(O.Item,{grow:!0,children:t}),i.jsx(ge,{size:a||4,svg:vi,className:u})]})})};Ml.displayName="Accordion.Trigger";const sn=El;sn.Trigger=Ml,sn.Content=Tl;const xd={root:"_root_1yz7x_1"},Il=e=>{const{children:t,padding:o=4,width:r,align:n,justify:s,height:l,maxHeight:a,className:u,attributes:_}=e,m=F(xd.root,u);return i.jsx(O,{attributes:_,className:m,paddingInline:o,align:n,justify:s,height:l,maxHeight:a,width:r,maxWidth:"100%",children:t})};Il.displayName="Container";const Ll={root:"_root_3bv1t_1",item:"_item_3bv1t_67"},Dl=e=>{const{area:t,colStart:o,colEnd:r,colSpan:n,rowStart:s,rowEnd:l,rowSpan:a,children:u,className:_,as:m="div",attributes:d}=e,h=F(Ll.item,_),p=de(n,y=>y&&`span ${y}`),g=de(a,y=>y&&`span ${y}`),f=b(b(b(b(b(b(b(b({},d==null?void 0:d.style),q("--rs-grid-area",t)),q("--rs-grid-col-end",p)),q("--rs-grid-col-end",r)),q("--rs-grid-col-start",o)),q("--rs-grid-row-end",g)),q("--rs-grid-row-end",l)),q("--rs-grid-row-start",s));return i.jsx(m,z(b({},d),{className:h,style:f,children:u}))},Pl=e=>{const{areas:t,columns:o,rows:r,gap:n,columnGap:s,rowGap:l,align:a,justify:u,autoColumns:_,autoRows:m,autoFlow:d,children:h,className:p,width:g,height:f,maxWidth:y,as:x="div",attributes:v}=e,w=Qe({align:a,justify:u,width:g,height:f,maxWidth:y}),C=de(r,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),N=de(o,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),E=de(t,T=>T?`"${T==null?void 0:T.join('" "')}"
|
|
2
|
-
`:void 0),k=F(Ll.root,w.classNames,p),S=b(b(b(b(b(b(b(b(b(b(b({},v==null?void 0:v.style),q("--rs-grid-gap",n)),q("--rs-grid-column-gap",s)),q("--rs-grid-row-gap",l)),q("--rs-grid-rows",C)),q("--rs-grid-columns",N)),q("--rs-grid-areas",E)),q("--rs-grid-auto-flow",d)),q("--rs-grid-auto-columns",_)),q("--rs-grid-auto-rows",m)),w.variables);return i.jsx(x,z(b({},v),{className:k,style:S,children:h}))};Pl.displayName="Grid",Dl.displayName="Grid.Item";const Fl=Pl;Fl.Item=Dl;const Ht={root:"_root_17pp4_1",item:"_item_17pp4_5",handle:"_handle_17pp4_16","--variant-bordered":"_--variant-bordered_17pp4_34","handle--dragging":"_handle--dragging_17pp4_60","--variant-borderless":"_--variant-borderless_17pp4_46","--direction-row":"_--direction-row_17pp4_69","--direction-column":"_--direction-column_17pp4_73"},wd=(e,t)=>{const{disabled:o,containerRef:r,orientation:n="all"}=t||{},s=Ne(e),l=Ct(),a=c.useRef(null),u=c.useRef(null),_=r||u,m=c.useRef({x:0,y:0}),d=n==="vertical"||n==="all",h=n==="horizontal"||n==="all",p=(g,f)=>{var N;const y=a.current;if(!y)return;const v=((N=_.current)!=null?N:document.body).getBoundingClientRect(),w=y==null?void 0:y.getBoundingClientRect(),C={x:0,y:0,triggerX:0,triggerY:0};if(d){const E=Math.round(w.y)-v.y+f;C.y=Math.max(0,Math.min(E,v.height-w.height)),C.triggerY=w.y-v.y}if(h){const E=Math.round(w.x)-v.x+g;C.x=Math.max(0,Math.min(E,v.width-w.width)),C.triggerX=w.x-v.x}e(C)};return Ge({[lo]:()=>h&&p(-20,0),[io]:()=>h&&p(20,0),[no]:()=>d&&p(0,-20),[so]:()=>d&&p(0,20)},[],{ref:a,preventDefault:!0,disabled:o}),c.useEffect(()=>{const g=a.current;if(!g||!l.active)return;const f=x=>{var $,M;const v=x instanceof MouseEvent?x:x.changedTouches[0],C=(($=_.current)!=null?$:document.body).getBoundingClientRect(),N=g.getBoundingClientRect(),E=v.clientX-C.x,k=v.clientY-C.y,S=E-m.current.x,T=k-m.current.y;(M=s.current)==null||M.call(s,{x:h?Math.max(0,Math.min(S,C.width-N.width)):0,y:d?Math.max(0,Math.min(T,C.height-N.height)):0,triggerX:N.x-C.x,triggerY:N.y-C.y})},y=()=>{m.current={x:0,y:0},l.deactivate(),zo()};return document.addEventListener("touchmove",f,{passive:!0}),document.addEventListener("touchend",y,{passive:!0}),document.addEventListener("mousemove",f,{passive:!0}),document.addEventListener("mouseup",y,{passive:!0}),()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",y),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",y)}},[l,h,d,_,s]),c.useEffect(()=>{const g=a.current;if(!g||o)return;const f=y=>{const x=y instanceof MouseEvent?y:y.changedTouches[0],v=g.getBoundingClientRect();m.current={x:x.clientX-v.x,y:x.clientY-v.y},l.activate(),Jt()};return g.addEventListener("touchstart",f,{passive:!0}),g.addEventListener("mousedown",f,{passive:!0}),()=>{g.removeEventListener("touchstart",f),g.removeEventListener("mousedown",f)}},[l,o]),{ref:a,containerRef:_,active:l.active}},Al=c.createContext({}),Cd=e=>{const{children:t}=e,{containerRef:o,onDrag:r,index:n,direction:s}=c.useContext(Al),{ref:l,active:a}=wd(_=>{r(z(b({},_),{index:n}))},{containerRef:o,orientation:s==="row"?"horizontal":"vertical"}),u=F(Ht.handle,a&&Ht["handle--dragging"]);return t?i.jsx(O.Item,{children:t({ref:l},{direction:s,status:a?"dragging":"idle"})}):i.jsx(O.Item,{className:u,attributes:{role:"button",tabIndex:0,"aria-hidden":!0,ref:_=>{l.current=_}}})},ln=()=>null,kd=c.forwardRef((e,t)=>{const{children:o,defaultSize:r,minSize:n,maxSize:s}=e,l=c.useRef(null);return i.jsx(O.Item,{grow:!0,className:Ht.item,attributes:{ref:a=>{typeof t=="function"&&t(a),l.current=a},style:{"--rs-resizable-default-size":r,"--rs-resizable-min-size":n,"--rs-resizable-max-size":s}},children:o})}),Vl=e=>{const{children:t,variant:o="borderless",height:r,direction:n="row",gap:s=2,className:l,attributes:a}=e,u=F(Ht.root,Ht[`--direction-${n}`],o&&Ht[`--variant-${o}`],l),_=c.useRef(null),m=c.useRef([]),d=n==="row";let h=0,p=0;m.current=[];const g=x=>{const{item:v,grow:w,itemsSize:C,itemsCount:N}=x,{minSize:E,maxSize:k}=v.props,S=w/N/100*C,T=E&&Number(E.replace("px","")),$=k&&Number(k==null?void 0:k.replace("px",""));return!!(T&&T>S||$&&$<S)},f=x=>{const{index:v,x:w,y:C,triggerX:N,triggerY:E}=x,k=m.current[v],S=m.current[v+1];if(!k.el||!S.el)return;const T=m.current.length;let $=T*100,M=0;m.current.forEach((J,U)=>{J.el&&(M+=d?J.el.clientWidth:J.el.clientHeight,!(U===v||U===v+1)&&($-=Number(J.el.style.flexGrow||100)))},0);const L=d?k.el.clientWidth:k.el.clientHeight,P=d?k.el.offsetLeft:k.el.offsetTop,A=d?S.el.clientWidth:S.el.clientHeight,V=(d?N:E)-L-P,D=(d?w:C)-V,j=L+A,W=Math.min(1,Math.max(0,(D-P)/j)),re=Math.floor(W*$),X=Math.floor($-re);g({item:k,itemsSize:M,grow:re,itemsCount:T})||g({item:S,itemsSize:M,grow:X,itemsCount:T})||(k.el.style.flexGrow=re.toString(),S.el.style.flexGrow=X.toString())};c.useEffect(()=>{const x=[];let v=0;m.current.forEach(w=>{w.el&&(v+=d?w.el.clientWidth:w.el.clientHeight)}),m.current.forEach((w,C)=>{if(!w.el)return;const N=(d?w.el.clientWidth:w.el.clientHeight)/v;x[C]=m.current.length*N*100}),m.current.forEach((w,C)=>{!w.el||!x[C]||(w.el.style.flexGrow=x[C].toString(),w.el.setAttribute("data-rs-resizable-item-mounted",""))})},[d]);const y=c.Children.map(t,x=>{const v=c.isValidElement(x);if(v&&x.props&&x.type!==ln)return i.jsx(Al.Provider,{value:{containerRef:_,index:h++,onDrag:f,direction:n},children:x});if(v&&x.props&&x.type===ln){const w=h;return i.jsx(kd,z(b({},x.props),{index:p++,ref:C=>{m.current[w]={el:C,props:x.props}}}))}return null});return i.jsx(O,{attributes:z(b({},a),{ref:_}),className:u,height:r,direction:n,align:"stretch",gap:s,children:y})};Vl.displayName="Resizable";const an=Vl;an.Item=ln,an.Handle=Cd;const ft={root:"_root_xnsfu_1",scrollable:"_scrollable_xnsfu_9",content:"_content_xnsfu_30",scrollbar:"_scrollbar_xnsfu_37",thumb:"_thumb_xnsfu_43","--scrollbar-y":"_--scrollbar-y_xnsfu_59","--scrollbar-x":"_--scrollbar-x_xnsfu_71","--display-visible":"_--display-visible_xnsfu_91","--display-hover":"_--display-hover_xnsfu_96","--scrollbar-dragging":"_--scrollbar-dragging_xnsfu_100"},Bl=e=>{const{ratio:t,position:o,vertical:r,onThumbMove:n}=e,s=Ne(n),[l,a]=c.useState(!1),u=c.useRef(0),_=c.useRef(null),m=F(ft.scrollbar,r?ft["--scrollbar-y"]:ft["--scrollbar-x"],l&&ft["--scrollbar-dragging"]),d=f=>{const y=_.current,x=u.current;if(u.current=0,x||!y||f.currentTarget!==y)return;const v=y.getBoundingClientRect(),w=r?f.pageY-v.top:f.pageX-v.left,C=r?y.clientHeight:y.clientWidth;n({value:w/C-t/2,type:"absolute"})},h=c.useCallback(f=>{var w;u.current||(u.current=r?f.pageY:f.pageX);const y=_.current;if(!y||!l)return;const x=r?f.movementY:f.movementX,v=r?y.scrollHeight:y.scrollWidth;(w=s.current)==null||w.call(s,{value:x/v,type:"relative"})},[r,l,s]),p=()=>{a(!0),Jt()},g=c.useCallback(()=>{a(!1),zo()},[]);return c.useEffect(()=>{if(l)return document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g)}},[h,g,l]),i.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":o},ref:_,onClick:d,onMouseDown:p,"aria-hidden":"true",children:i.jsx("div",{className:ft.thumb})})},jl=c.forwardRef((e,t)=>{const{children:o,height:r,maxHeight:n,scrollbarDisplay:s="hover",onScroll:l,className:a,attributes:u}=e,[_,m]=c.useState({x:1,y:1}),[d,h]=c.useState({x:0,y:0}),p=c.useRef(null),g=c.useRef(null),f=Qe({height:r,maxHeight:n}),y=F(ft.root,s&&ft[`--display-${s}`],a),x=F(ft.content,f.classNames),v=c.useCallback(()=>{const E=p.current;E&&m({x:E.clientWidth/E.scrollWidth,y:E.clientHeight/E.scrollHeight})},[]),w=E=>{const{scrollLeft:k,scrollTop:S,clientWidth:T,clientHeight:$,scrollWidth:M,scrollHeight:L}=E.currentTarget;h({x:k/M,y:S/L}),l==null||l({x:M===T?0:k/(M-T),y:L===$?0:S/(L-$)})},C=E=>{const k=p.current;if(!k)return;const S=k.scrollHeight*E.value;E.type==="absolute"?k.scrollTop=S:k.scrollTop+=S},N=E=>{const k=p.current;if(!k)return;const S=k.scrollWidth*E.value;E.type==="absolute"?k.scrollLeft=S:k.scrollLeft+=S};return c.useImperativeHandle(t,()=>p.current),be(()=>{v()},[v]),be(()=>{const E=g.current;if(!E)return;const k=new ResizeObserver(v);return k.observe(E),()=>k.disconnect()},[v]),i.jsxs("div",z(b({},u),{ref:g,className:y,children:[i.jsx("div",{className:ft.scrollable,ref:p,onScroll:w,children:i.jsx("div",{className:x,style:b({},f.variables),children:o})}),_.y<1&&s!=="hidden"&&i.jsx(Bl,{vertical:!0,onThumbMove:C,ratio:_.y,position:d.y}),_.x<1&&s!=="hidden"&&i.jsx(Bl,{onThumbMove:N,ratio:_.x,position:d.x})]}))});jl.displayName="ScrollArea";const Nd=e=>{const{w:t="auto",h:o=50,minW:r=o,children:n}=e;return i.jsx("div",{style:{width:t,height:o,minWidth:r,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-radius-small)"},children:n})};I.Accordion=sn,I.ActionBar=Vn,I.Actionable=Le,I.Alert=Bn,I.Autocomplete=Ts,I.Avatar=$s,I.Badge=Ls,I.Breadcrumbs=As,I.Button=Te,I.Calendar=Gs,I.Card=Xs,I.Carousel=Zs,I.Checkbox=si,I.CheckboxGroup=ei,I.Container=Il,I.ContextMenu=At,I.Dismissible=fr,I.Divider=eo,I.DropdownMenu=ke,I.FileUpload=ci,I.Flyout=ut,I.FormControl=Lo,I.Grid=Fl,I.Hidden=kt,I.HiddenInput=_o,I.HiddenVisually=Po,I.Hotkey=ui,I.Icon=ge,I.Image=xr,I.Link=Cr,I.Loader=hr,I.MenuItem=br,I.Modal=Pr,I.NumberField=xi,I.Overlay=Ir,I.Pagination=ki,I.PinField=Ei,I.Placeholder=Nd,I.Popover=_t,I.Progress=Ti,I.ProgressIndicator=$i,I.Radio=Mi,I.RadioGroup=ni,I.Reshaped=zl,I.Resizable=an,I.Scrim=Ii,I.ScrollArea=jl,I.Select=fo,I.Skeleton=ji,I.Slider=Ki,I.Stepper=Zi,I.Switch=Ji,I.Table=jt,I.Tabs=Oo,I.Text=ie,I.TextArea=ul,I.TextField=Do,I.Theme=Pt,I.Timeline=ml,I.ToastProvider=en,I.ToggleButton=kl,I.ToggleButtonGroup=wl,I.Tooltip=Nl,I.TrapFocus=It,I.View=O,I.classNames=F,I.responsivePropDependency=de,I.useFormControl=et,I.useHandlerRef=Ne,I.useHotkeys=Ge,I.useIsomorphicLayoutEffect=be,I.useKeyboardArrowNavigation=nr,I.useKeyboardMode=Na,I.useOnClickOutside=En,I.useRTL=pt,I.useResponsiveClientValue=mi,I.useScrollLock=sr,I.useTheme=Gn,I.useToast=bl,I.useToggle=Ct,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(I,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],i):(I=typeof globalThis!="undefined"?globalThis:I||self,i(I.Reshaped={},I["react/jsx-runtime"],I.React,I.ReactDOM))})(this,(function(I,i,c,He){"use strict";var Ld=Object.defineProperty,Dd=Object.defineProperties;var Pd=Object.getOwnPropertyDescriptors;var Qo=Object.getOwnPropertySymbols;var ql=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable;var Yl=I=>{throw TypeError(I)};var dn=(I,i,c)=>i in I?Ld(I,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):I[i]=c,b=(I,i)=>{for(var c in i||(i={}))ql.call(i,c)&&dn(I,c,i[c]);if(Qo)for(var c of Qo(i))Ul.call(i,c)&&dn(I,c,i[c]);return I},z=(I,i)=>Dd(I,Pd(i));var ve=(I,i)=>{var c={};for(var He in I)ql.call(I,He)&&i.indexOf(He)<0&&(c[He]=I[He]);if(I!=null&&Qo)for(var He of Qo(I))i.indexOf(He)<0&&Ul.call(I,He)&&(c[He]=I[He]);return c};var pe=(I,i,c)=>dn(I,typeof i!="symbol"?i+"":i,c),Kl=(I,i,c)=>i.has(I)||Yl("Cannot "+c);var H=(I,i,c)=>(Kl(I,i,"read from private field"),c?c.call(I):i.get(I)),Se=(I,i,c)=>i.has(I)?Yl("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(I):i.set(I,c),Ue=(I,i,c,He)=>(Kl(I,i,"write to private field"),He?He.call(I,c):i.set(I,c),c);var xt,Ot,Xe,wt,bt,Uo,Yo,Ko,Go,Hl,Mt,we,gt,Wt,qt,Ut,go,Xo,po,vo;const un=e=>{const{el:t,iteration:o}=e,n=(t&&window.getComputedStyle(t)).overflowY,s=n.includes("scroll")||n.includes("auto");return t.parentElement?s&&t.scrollHeight>t.clientHeight?t:un({el:t.parentElement,iteration:o+1}):null},_n=e=>un(z(b({},e),{iteration:0})),Gl=(e,t)=>{let o=e.parentElement;for(;o;){if(t(o))return o;o=o.parentElement}return null},Kt=e=>{const t=e==null?void 0:e.getRootNode();return t instanceof ShadowRoot?t:null},Ro=e=>{let t=null,o=null;return function(...r){o=r,t===null&&(t=requestAnimationFrame(()=>{t=null,e(...o)}))}},mn=()=>{const e=document.documentElement,t=e.dir;return t==="rtl"||t==="ltr"?t==="rtl":window.getComputedStyle(e).direction==="rtl"},hn={left:"0",top:"0",position:"absolute",visibility:"hidden",animation:"none",transition:"none"},Xl=e=>{const{position:t,styles:o,fallbackAdjustLayout:r,fallbackMinHeight:n,width:s,flyoutBounds:l,containerBounds:a,triggerBounds:u}=e,{width:_,height:m}=l,{width:d,height:h,top:p,left:g}=a,f=!!t.match(/^(start|end)/);let y=o.top,x=o.left,v=o.bottom,w=o.right,C=null,N=null;if(r){const E=()=>({top:p+8-y,bottom:y+m+8-p-h,left:g+8-x,right:x+_+8-g-d}),k=E();f?k.top>0?(y=p+8,v!==null&&(v=v-k.top)):k.bottom>0&&(y=y-k.bottom):k.left>0?(x=8+g,w!==null&&(w=w-k.left)):k.right>0&&(x=x-k.right);const S=E();S.top>0?(C=Math.max(parseInt(n!=null?n:"0"),m-S.top),y=y+(m-C)):S.bottom>0&&(C=Math.max(parseInt(n!=null?n:"0"),m-S.bottom),v!==null&&(v=v+(m-C)))}return s==="100%"?(x=8,N=window.innerWidth-16):s==="trigger"&&(N=u.width),{position:t,styles:{left:x,right:w,top:y,bottom:v,height:C,width:N}}},fn=(e,t)=>Math.floor(e/2-t/2),Zl=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Jl=e=>{const{triggerBounds:t,flyoutBounds:o,position:r,rtl:n,contentGap:s=0,contentShift:l=0}=e,a=n?Zl(r):r;let u=0,_=0,m=null,d=null;const{width:h,height:p}=o,{width:g,height:f,left:y,top:x,right:v,bottom:w}=t,C=y,N=window.innerWidth-v,E=x,k=window.innerHeight-w;switch(a){case"start":case"start-top":case"start-bottom":u=C-h-s,d=N+g+s;break;case"end":case"end-top":case"end-bottom":u=C+g+s;break;case"bottom":case"top":u=C+fn(g,h)+l;break;case"top-start":case"bottom-start":u=C+l;break;case"top-end":case"bottom-end":u=C+g-h+l,d=N-l;break}switch(a){case"top":case"top-start":case"top-end":_=E-p-s,m=k+f+s;break;case"bottom":case"bottom-start":case"bottom-end":_=E+f+s;break;case"start":case"end":_=E+fn(f,p)+l;break;case"start-top":case"end-top":_=E+l;break;case"start-bottom":case"end-bottom":_=E+f-p+l,m=k-l;break}return{position:a,styles:{top:_,left:u,bottom:m,right:d}}},bn={top:["top-start","top-end","top"],bottom:["bottom-start","bottom-end","bottom"],start:["start-top","start-bottom","start"],end:["end-top","end-bottom","end"]},Ql={top:["bottom","start","end"],bottom:["top","end","start"],start:["end","top","bottom"],end:["start","bottom","top"]},Rl=(e,t)=>{const o=new Set([e]),r=e.split("-"),[n]=r,s=bn[n],l=s.indexOf(e),a=[l];return s.forEach((u,_)=>{_!==l&&a.push(_)}),[n,...Ql[n]].forEach(u=>{const _=bn[u];a.forEach(m=>{const d=_[m];(t==null?void 0:t.indexOf(d))!==-1&&o.add(d)})}),Array.from(o)},ea=e=>"width"in e&&e.width!==void 0?e:z(b({},e),{width:0,height:0,left:e.x,right:e.x,top:e.y,bottom:e.y,toJSON:()=>{}}),ta=e=>{const{flyoutBounds:t,containerBounds:o}=e,r=t.left,n=t.top,s=o.left,l=o.top;return!(r<s+8||n<l+8||r+t.width>s+o.width-8||n+t.height>l+o.height-8)},oa=e=>{var M,L;const{trigger:t,content:o,triggerCoordinates:r,container:n,contentShift:s=0,contentGap:l=0,position:a,fallbackPositions:u,fallbackAdjustLayout:_,fallbackMinHeight:m,width:d,lastUsedPosition:h}=e,p=mn(),g=o.cloneNode(!0),f=r||(t==null?void 0:t.getBoundingClientRect()),y=(M=n==null?void 0:n.getBoundingClientRect())!=null?M:{width:window.innerWidth,height:window.innerHeight,left:0,top:0};if(g.style.cssText="",!f)return{position:a};const x=ea(f);Object.keys(hn).forEach(P=>{const A=P,V=hn[A];V&&(g.style[A]=V.toString())});const v=(L=t&&Kt(t))!=null?L:document.body;v.appendChild(g);const w=(P,A)=>{(A==null?void 0:A.width)==="100%"?g.style.width="calc(100% - 16px)":(A==null?void 0:A.width)==="trigger"?g.style.width=`${x.width}px`:d?g.style.width=d:g.style.width="";const V=g.getBoundingClientRect(),D=Jl({triggerBounds:x,flyoutBounds:V,position:P,contentGap:l,contentShift:s,rtl:p});return Xl(z(b({},D),{fallbackAdjustLayout:_,fallbackMinHeight:m,width:A==null?void 0:A.width,flyoutBounds:V,containerBounds:y,triggerBounds:x}))},C=P=>{var V,D;const A={left:P.styles.left,top:P.styles.top,height:(V=P.styles.height)!=null?V:Math.ceil(g.clientHeight),width:(D=P.styles.width)!=null?D:Math.ceil(g.clientWidth)};return ta({flyoutBounds:A,containerBounds:y})};let N=null;const E=Rl(a,u);E.some(P=>{const A=w(P,{width:d}),V=C(A);return V&&(N=A),V}),N||["top","bottom"].filter(A=>E.includes(A)).some(A=>{const V=w(A,{width:"100%"}),D=C(V);return D&&(N=V),D}),N||(N=w(h!=null?h:a,{width:d})),v.removeChild(g);const{styles:k}=N,S=(k.right!==null?-k.right:k.left)+window.scrollX,T=(k.bottom!==null?-k.bottom:k.top)+window.scrollY,$={left:k.right===null?"0px":void 0,right:k.right===null?void 0:"0px",top:k.bottom===null?"0px":void 0,bottom:k.bottom===null?void 0:"0px",height:k.height!==null?`${k.height}px`:void 0,width:k.width!==null?`${k.width}px`:d!=null?d:void 0,transform:`translate(${S}px, ${T}px)`};return Object.entries($).forEach(([P,A])=>{o.style.removeProperty(P),A&&o.style.setProperty(P,A)}),{position:N.position}};let ra=(Hl=class{constructor(t){Se(this,xt,!1);Se(this,Ot,null);Se(this,Xe);Se(this,wt,{});Se(this,bt,()=>{const t=oa(z(b({},H(this,Xe)),{lastUsedPosition:H(this,Ot)}));return Ue(this,Ot,t.position),t});Se(this,Uo,()=>{const{trigger:t,onDeactivate:o}=H(this,Xe);if(!t)return;const r=_n({el:t}),n=r||window,s=Ro(()=>{if(!H(this,xt))return;if(!r){H(this,bt).call(this);return}const l=t.getBoundingClientRect(),a=r.getBoundingClientRect();l.top<a.top||l.left<a.left||l.right>a.right||l.bottom>a.bottom?o():H(this,bt).call(this)});n.addEventListener("scroll",s,{passive:!0}),H(this,wt).scroll=()=>n.removeEventListener("scroll",s)});Se(this,Yo,()=>{const t=new MutationObserver(()=>{H(this,xt)&&H(this,bt).call(this)});t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),H(this,wt).rtl=()=>t.disconnect()});Se(this,Ko,()=>{const t=()=>{H(this,xt)&&H(this,bt).call(this)},o=new ResizeObserver(t);window.addEventListener("resize",t),H(this,Xe).trigger&&o.observe(H(this,Xe).trigger),H(this,Xe).content&&o.observe(H(this,Xe).content),H(this,wt).resize=()=>{o.disconnect(),window.removeEventListener("resize",t)}});Se(this,Go,()=>{Object.values(H(this,wt)).forEach(t=>t()),Ue(this,wt,{})});pe(this,"update",t=>(t&&Ue(this,Xe,b(b({},H(this,Xe)),t)),H(this,bt).call(this)));pe(this,"activate",()=>{const t=H(this,bt).call(this);return H(this,Uo).call(this),H(this,Yo).call(this),H(this,Ko).call(this),Ue(this,xt,!0),t});pe(this,"deactivate",()=>{Ue(this,Ot,null),Ue(this,xt,!1),H(this,Go).call(this)});Ue(this,Xe,t)}},xt=new WeakMap,Ot=new WeakMap,Xe=new WeakMap,wt=new WeakMap,bt=new WeakMap,Uo=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,Go=new WeakMap,Hl);const wo="data-rs-focus",gn='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex],[contenteditable]',Gt=e=>{const t=e?Kt(e):null,o=t!=null?t:document;return o.querySelector(`[${wo}]`)||o.activeElement},Co=(e,t)=>{var n;const o=Kt(e);(n=(o!=null?o:document).querySelector(`[${wo}]`))==null||n.removeAttribute(wo),t!=null&&t.pseudoFocus?e.setAttribute(wo,"true"):e.focus()},Xt=(e,t)=>{const r=Array.from(e.querySelectorAll(gn)).filter(n=>{if(n.hasAttribute("disabled")||n.clientHeight===0||!(t!=null&&t.includeNegativeTabIndex)&&n.getAttribute("tabindex")==="-1")return!1;if(n.type==="radio"){let s;if(n.form){const l=n.form.elements.namedItem(n.name);if(!l)return!1;"length"in l?s=Array.from(l).filter(u=>"type"in u&&u.type==="radio"):s=[l]}else s=Array.from(e.querySelectorAll(`[type="radio"][name="${n.name}"]`));if(s!=null&&s.length){const l=Array.from(s).find(a=>a.checked);if(l&&n!==l||!l&&n!==s[0])return!1}}return!0});return t!=null&&t.additionalElement&&r.length&&r.unshift(t.additionalElement),r},pn=e=>{const{root:t,target:o,options:r}=e,n=Xt(t,{additionalElement:r==null?void 0:r.additionalElement,includeNegativeTabIndex:r==null?void 0:r.includeNegativeTabIndex}),s=n.length-1,l=Gt(t),a=n.indexOf(l),u={next:a+1,prev:a-1,first:0,last:s};let _=u[o];const m=_>s||_<0;return m&&(r!=null&&r.circular?_=o==="prev"?u.last:u.first:_=o==="prev"?u.first:u.last),{overflow:m,el:n[_],focusableElements:n}},ko=(e,t,o)=>{const r=pn({root:e,target:t,options:o});return Co(r.el),{el:r.el,focusableElements:r.focusableElements}},na=(e,t)=>ko(e,"next",z(b({},t),{includeNegativeTabIndex:!0})),sa=(e,t)=>ko(e,"prev",z(b({},t),{includeNegativeTabIndex:!0})),ia=e=>ko(e,"first",{includeNegativeTabIndex:!0}),la=e=>ko(e,"last",{includeNegativeTabIndex:!0}),er="data-rs-keyboard",aa=()=>{document.documentElement.setAttribute(er,"true")},ca=()=>{document.documentElement.removeAttribute(er)},Zt=()=>document.documentElement.hasAttribute(er),Ye={SPACE:" ",ENTER:"Enter",TAB:"Tab",UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"};class da{constructor(){pe(this,"chain",{});pe(this,"tailId",null);pe(this,"idCounter",0)}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const o=this.tailId,r=o&&this.get(o),n=this.generateId();return this.chain[n]={previousId:o,data:t},r&&(r.nextId=n),this.tailId=n,n}remove(t){var u,_;const o=this.chain[t];if(!o)return;const r=o.previousId,n=r&&this.get(r),s=o.nextId,l=s&&this.get(s);n&&(n.nextId=(u=o.nextId)!=null?u:null),l&&(l.previousId=(_=o.previousId)!=null?_:null),s||(this.tailId=r!=null?r:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,o){const r=this.get(t),n=this.remove(t);return!r||!r.previousId||o(r)?n:this.removePreviousTill(r.previousId,o)}}class ua{constructor(t){pe(this,"root");pe(this,"hiddenElements",[]);pe(this,"hideSiblingsFromScreenReader",t=>{let o=t.parentNode&&t.parentNode.firstChild;for(;o;){const r=o!==t,n=o.nodeType===1&&!o.hasAttribute("aria-hidden");r&&n&&(o.setAttribute("aria-hidden","true"),this.hiddenElements.push(o)),o=o.nextSibling}});pe(this,"release",()=>{this.hiddenElements.forEach(t=>{t.removeAttribute("aria-hidden")}),this.hiddenElements=[]});pe(this,"trap",()=>{let t=this.root;for(this.release();t!==document.body&&t.parentElement;)this.hideSiblingsFromScreenReader(t),t=t.parentElement});this.root=t}}var Je;class It{constructor(){Se(this,Mt);Se(this,we,null);Se(this,gt,null);Se(this,Wt,{});pe(this,"trapped");Se(this,qt,null);Se(this,Ut,null);Se(this,go,t=>{if(t.defaultPrevented||Je.chain.tailId!==H(this,Mt)||!H(this,we))return;const{mode:o,onRelease:r,pseudoFocus:n,includeTrigger:s}=H(this,Wt);let l="tabs";(o==="action-menu"||o==="selection-menu"||o==="action-bar")&&(l="arrows");const a=t.key,u=a===Ye.TAB,_=u&&t.shiftKey,m=u&&!t.shiftKey,d=[Ye.LEFT,Ye.RIGHT,Ye.UP,Ye.DOWN].includes(a),h=l==="arrows"&&a===(o==="action-bar"?Ye.LEFT:Ye.UP),p=l==="arrows"&&a===(o==="action-bar"?Ye.RIGHT:Ye.DOWN),g=_&&l==="tabs"||h,f=m&&l==="tabs"||p,y=Gt(H(this,we))===H(this,gt),x=pn({root:H(this,we),target:g?"prev":"next",options:{additionalElement:s?H(this,gt):void 0,circular:!0}});if(u&&l==="arrows"||o==="content-menu"&&u&&x.overflow){_&&!y&&t.preventDefault(),this.release(),r==null||r();return}if(!g&&!f){d&&(o==="action-bar"||o==="action-menu")&&t.preventDefault();return}t.preventDefault(),x.el&&Co(x.el,{pseudoFocus:n})});Se(this,Xo,()=>{const t=Kt(H(this,we));(t!=null?t:document).addEventListener("keydown",H(this,go))});Se(this,po,()=>{const t=Kt(H(this,we));(t!=null?t:document).removeEventListener("keydown",H(this,go))});Se(this,vo,()=>{const t=Je.chain.tailId&&Je.chain.get(Je.chain.tailId);return t&&H(t.data,we)===H(this,we)});pe(this,"trap",(t,o={})=>{const{mode:r="dialog",includeTrigger:n,initialFocusEl:s}=o;Ue(this,we,t),Ue(this,qt,new ua(t));const l=Gt(H(this,we)),a=Xt(H(this,we),{additionalElement:n?l:void 0}),u=r==="selection-menu";if(Ue(this,Wt,z(b({},o),{pseudoFocus:u})),Ue(this,gt,l),Ue(this,Ut,new MutationObserver(()=>{if(!H(this,we)||!H(this,vo).call(this))return;const d=Gt(H(this,we));if(H(this,we).contains(d))return;const h=Xt(H(this,we),{additionalElement:n?l:void 0});h.length&&Co(h[0],{pseudoFocus:u})})),H(this,po).call(this),H(this,Ut).observe(H(this,we),{childList:!0,subtree:!0}),!a.length&&!s)return;H(this,Xo).call(this),r==="dialog"&&H(this,qt).trap();const _=Gt(H(this,we));H(this,vo).call(this)||(Ue(this,Mt,Je.chain.add(this)),H(this,we).contains(_)||Co(s||a[0],{pseudoFocus:u})),this.trapped=!0});pe(this,"release",(t={})=>{var n,s;const{withoutFocusReturn:o}=t;if(!this.trapped||!H(this,Mt)||!H(this,we))return;this.trapped=!1,H(this,gt)&&!o&&H(this,gt).focus({preventScroll:!Zt()}),Je.chain.removePreviousTill(H(this,Mt),l=>document.body.contains(H(l.data,gt))),(n=H(this,Ut))==null||n.disconnect(),H(this,po).call(this),(s=H(this,qt))==null||s.release();const r=Je.chain.tailId&&Je.chain.get(Je.chain.tailId);r&&H(r.data,we)&&new Je().trap(H(r.data,we),H(r.data,Wt))})}}Mt=new WeakMap,we=new WeakMap,gt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,Ut=new WeakMap,go=new WeakMap,Xo=new WeakMap,po=new WeakMap,vo=new WeakMap,pe(It,"chain",new da),Je=It;const tr=e=>{var o;const t=((o=window.navigator.userAgentData)==null?void 0:o.platform)||window.navigator.platform;return typeof window!="undefined"?e.test(t):!1},_a=()=>tr(/^iPhone/i),ma=()=>tr(/^Mac/i),ha=()=>tr(/^iPad/i)||ma()&&navigator.maxTouchPoints>1,fa=()=>_a()||ha(),F=(...e)=>e.reduce((t,o)=>{if(Array.isArray(o)){const r=F(...o);return r?`${t} ${r}`:t}return o?`${t} ${o}`:t},"").trim();class vn{constructor(){pe(this,"cache",new Map);pe(this,"set",(t,o)=>{const r={},n=this.cache.get(t);Object.keys(o).forEach(s=>{r[s]=t.style.getPropertyValue(s)}),this.cache.set(t,b(b({},r),n)),Object.assign(t.style,o)});pe(this,"reset",()=>{for(const[t,o]of this.cache.entries())Object.assign(t.style,o);this.cache.clear()})}}const yn=new vn,ba=()=>{const e=window.visualViewport,t=(e==null?void 0:e.offsetLeft)||0,o=(e==null?void 0:e.offsetTop)||0,{scrollX:r,scrollY:n}=window;return yn.set(document.body,{position:"fixed",top:`${-(n-Math.floor(o))}px`,left:`${-(r-Math.floor(t))}px`,right:"0",overflow:"hidden"}),()=>{yn.reset(),window.scrollTo({top:n,left:r,behavior:"instant"})}},ga=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),or=new vn,pa=e=>{const{container:t}=e,o=t.getBoundingClientRect(),r=o.left+o.right<window.innerWidth;if(or.set(t,{overflow:"hidden"}),r){const n=ga();or.set(t,{paddingRight:`${n}px`})}return()=>or.reset()},va=e=>{var s,l,a;const t=fa();let o=()=>{};const r=(l=(s=e==null?void 0:e.containerEl)!=null?s:(e==null?void 0:e.originEl)&&_n({el:e.originEl}))!=null?l:document.body,n=r===document.body;if(r.style.overflow!=="hidden")return t&&n?o=ba():o=pa({container:r}),(a=e==null?void 0:e.callback)==null||a.call(e),u=>{var _;o(),(_=u==null?void 0:u.callback)==null||_.call(u)}},No=e=>e.preventDefault(),Jt=()=>{window.addEventListener("wheel",No,{passive:!1}),window.addEventListener("touchmove",No,{passive:!1}),document.body.style.userSelect="none"},zo=()=>{window.removeEventListener("wheel",No),window.removeEventListener("touchmove",No),document.body.style.userSelect=""},xn=c.forwardRef((e,t)=>{const{children:o,render:r,href:n,onClick:s,type:l,disabled:a,as:u,stopPropagation:_,className:m,attributes:d}=e,h=b({},d),p=s||(d==null?void 0:d.onClick),g=(d==null?void 0:d.onFocus)||(d==null?void 0:d.onBlur),f=!!(n||d!=null&&d.href),y=!!(p||g||l||d!=null&&d.ref),x=!f&&y&&(!u||u==="button");let v;if(f)v="a",h.href=a?void 0:n||(d==null?void 0:d.href);else if(x)v="button",h.type=l||(d==null?void 0:d.type)||"button",h.disabled=a||(d==null?void 0:d.disabled);else if(y){const k=!(u==="label")||p||g;v=u||"span",h.role=k?"button":void 0,h.tabIndex=k?0:void 0}else v=u||"span";const w=E=>{var k;a||(_&&E.stopPropagation(),s==null||s(E),(k=d==null?void 0:d.onClick)==null||k.call(d,E))},C=E=>{const k=E.key===Ye.SPACE,S=E.key===Ye.ENTER;!k&&!S||h.role==="button"&&(_&&E.stopPropagation(),E.preventDefault(),w(E))},N=z(b({ref:t},h),{className:F(m),onClick:w,onKeyDown:C,"aria-disabled":a?!0:void 0,children:o});return r?r(N):i.jsx(v,b({},N))});xn.displayName="Headless.Actionable";const Qt="+",rt=new Map;let Rt=[];const wn=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),So=e=>wn(e).split(Qt).sort().join(Qt),Cn=e=>{if(e.key)return e.altKey&&/^[Key|Digit|Numpad]/.test(e.code)?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},kn=(e,t)=>{Object.keys(e).forEach(o=>{o.split(",").forEach(r=>{const n=e[o];n&&t(So(r),n)})})};class ya{constructor(){pe(this,"hotkeyMap",{});pe(this,"getSize",()=>Object.keys(this.hotkeyMap).length);pe(this,"bindHotkeys",(t,o,r)=>{kn(t,(n,s)=>{s&&(this.hotkeyMap[n]||(this.hotkeyMap[n]=new Set),this.hotkeyMap[n].add({callback:s,ref:o,options:r}))})});pe(this,"unbindHotkeys",t=>{kn(t,(o,r)=>{var n,s;r&&((n=this.hotkeyMap[o])==null||n.forEach(l=>{l.callback===r&&this.hotkeyMap[o].delete(l)}),(s=this.hotkeyMap[o])!=null&&s.size||delete this.hotkeyMap[o])})});pe(this,"handleKeyDown",(t,o)=>{if(!t.size)return;const r=[...t.keys()],n=So(r.join(Qt)),s=n.split(Qt),l=this.hotkeyMap[n],a=So(n.replace("control","mod")),u=So(n.replace("meta","mod")),_=s.includes("control")&&this.hotkeyMap[a],m=s.includes("meta")&&this.hotkeyMap[u];[l,_,m].forEach(d=>{d&&d!=null&&d.size&&d.forEach(h=>{const p=o.composedPath()[0];if(h.ref.current&&!(p===h.ref.current||h.ref.current.contains(p)))return;const g=t.get(n);h.options.preventDefault&&(g==null||g.preventDefault(),o.preventDefault()),h.callback(o)})})})}}const rr=new ya,Nn=c.createContext({}),xa=e=>{const{children:t}=e,o=c.useRef(0),r=c.useCallback(m=>{if(m.repeat||o.current===0)return;const d=Cn(m);d&&(rt.set(d,m),m.metaKey&&Rt.push(...rt.keys()),rt.has("Meta")&&Rt.push(d))},[]),n=c.useCallback(m=>{if(o.current===0)return;const d=Cn(m);d&&(rt.delete(d),(d==="meta"||d==="control")&&rt.delete("mod"),d==="meta"&&(Rt.forEach(h=>{rt.has(h)&&rt.delete(h)}),Rt=[]))},[]),s=m=>!wn(m).split(Qt).some(h=>!rt.has(h)),l=c.useCallback(m=>{m.key&&(r(m),rr.handleKeyDown(rt,m))},[r]),a=c.useCallback(m=>{m.key&&n(m)},[n]),u=c.useCallback(()=>{rt.clear(),Rt=[]},[]),_=c.useCallback((m,d,h={})=>(o.current+=1,rr.bindHotkeys(m,d,h),()=>{o.current-=1,rr.unbindHotkeys(m)}),[]);return c.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("keyup",a),window.addEventListener("blur",u),()=>{window.removeEventListener("keydown",l),window.removeEventListener("keyup",a),window.removeEventListener("blur",u)}),[l,a,u]),i.jsx(Nn.Provider,{value:{addHotkeys:_,isPressed:s},children:t})},wa=()=>c.useContext(Nn),Ca="Escape",zn=c.createContext({disabledRef:null,disable:()=>{},enable:()=>{},activate:()=>{},deactivate:()=>{}}),ka=e=>{const t=c.useRef(!1),o=c.useCallback(()=>{t.current=!0},[]),r=c.useCallback(()=>{t.current=!1},[]),n=c.useCallback(()=>{t.current||aa()},[]),s=c.useCallback(()=>{t.current||ca()},[]),l=c.useCallback(_=>{_.metaKey||_.altKey||_.ctrlKey||_.key!==Ca&&n()},[n]),a=c.useCallback(()=>{s()},[s]);c.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("mousedown",a),()=>{window.removeEventListener("keydown",l),window.removeEventListener("mousedown",a)}),[a,l]);const u=c.useMemo(()=>({disabledRef:t,disable:o,enable:r,activate:n,deactivate:s}),[o,r,n,s]);return i.jsx(zn.Provider,{value:u,children:e.children})},Na=()=>c.useContext(zn),be=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,za=c.createContext({rtl:[!1,()=>{}]}),pt=e=>{const t=c.useState(e||!1),[o,r]=t;return be(()=>{const n=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=mn();o!==a&&r(a)})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[o]),be(()=>{document.documentElement.setAttribute("dir",o?"rtl":"ltr")},[o]),t},Sa=e=>{const{children:t,defaultRTL:o}=e,r=pt(o);return i.jsx(za.Provider,{value:{rtl:r},children:t})},Sn=e=>{const{children:t}=e;return i.jsx(Sa,{children:i.jsx(ka,{children:i.jsx(xa,{children:t})})})};Sn.displayName="Headless.ReshapedProvider";const Ne=e=>{const t=c.useRef(e);return be(()=>{t.current=e},[e]),t},Ge=(e,t=[],o)=>{const{addHotkeys:r,isPressed:n}=wa(),s=c.useRef(null),l=(o==null?void 0:o.ref)||s;return c.useEffect(()=>{if(o!=null&&o.disabled)return;const a=r(e,l,{preventDefault:o==null?void 0:o.preventDefault});return()=>a==null?void 0:a()},[r,Object.keys(e).join(","),o==null?void 0:o.disabled,o==null?void 0:o.preventDefault,...t]),{ref:l,checkHotkeyState:n}},nr=e=>{const{ref:t,disabled:o,orientation:r,circular:n}=e,s=[],l=[];(!r||r==="vertical")&&(s.push("ArrowUp"),l.push("ArrowDown")),(!r||r==="horizontal")&&(s.push("ArrowLeft"),l.push("ArrowRight"));const a=c.useCallback(u=>{var p;const{el:_,focusableElements:m}=u,d=m.find(g=>g.getAttribute("tabindex")!=="-1"),h=(p=_!=null?_:d)!=null?p:m[0];m.forEach(g=>g.setAttribute("tabindex","-1")),h==null||h.setAttribute("tabindex","0")},[]);c.useEffect(()=>{if(!t.current||o)return;const u=Xt(t.current);a({focusableElements:u})},[t,a,o]),Ge({[s.join(", ")]:()=>{if(!t.current)return;const u=sa(t.current,{circular:n});a(u)},[l.join(", ")]:()=>{if(!t.current)return;const u=na(t.current,{circular:n});a(u)},Home:()=>{if(!t.current)return;const u=ia(t.current);a(u)},End:()=>{if(!t.current)return;const u=la(t.current);a(u)}},[a,n],{ref:t,preventDefault:!0,disabled:o})},En=(e,t,o)=>{const{disabled:r}=o||{},n=Ne(t),s=c.useRef(!1);c.useEffect(()=>{const l=u=>{s.current=!1;const _=u.composedPath()[0];e.forEach(m=>{m.current&&(m.current===_||m.current.contains(_))&&(s.current=!0)})},a=u=>{[Ye.ENTER,Ye.SPACE].includes(u.key)&&l(u)};return document.addEventListener("mousedown",l,{passive:!0}),document.addEventListener("touchstart",l,{passive:!0}),document.addEventListener("keydown",a,{passive:!0}),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l),document.removeEventListener("keydown",a)}},[...e]),c.useEffect(()=>{if(!n.current||r)return;const l=a=>{var u;"button"in a&&a.button===2||s.current||(u=n.current)==null||u.call(n,a)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[n,r,...e])},sr=e=>{const{containerRef:t,originRef:o}=e||{},[r,n]=c.useState(!1),s=c.useRef(null),l=c.useCallback(()=>{s.current=va({containerEl:t==null?void 0:t.current,originEl:o==null?void 0:o.current,callback:()=>n(!0)})},[t,o]),a=c.useCallback(()=>{var u;(u=s.current)==null||u.call(s,{callback:()=>n(!1)}),s.current=null},[]);return c.useMemo(()=>({scrollLocked:r,lockScroll:l,unlockScroll:a}),[r,l,a])},Ct=e=>{const[t,o]=c.useState(e||!1),r=c.useCallback(()=>{o(!0)},[]),n=c.useCallback(()=>{o(!1)},[]),s=c.useCallback(l=>{o(typeof l=="boolean"?l:a=>!a)},[]);return c.useMemo(()=>({active:t,activate:r,deactivate:n,toggle:s}),[r,n,s,t])},Tn=(e,t,o)=>{const{base:r,excludeValueFromClassName:n}=o||{},s=typeof e=="string"?e:e(t);return t===!0&&r||n?s:t===!0&&!r?`${s}-true`:t===!1&&!r?`${s}-false`:t!==void 0?`${s}-${t}`:null},ce=(e,t,o,r)=>{if(typeof o!="object"){const n=Tn(t,o,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return n?[e[n]]:[]}return Object.keys(o).reduce((n,s)=>{const l=s==="s",a=Tn(t,o[s],{base:l,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),u=l?"":`--${s}`;return[...n,e[`${a}${u}`]]},[])},q=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((o,r)=>{const n=t[r];return n===void 0||n===!1?o:z(b({},o),{[`${e}-${r}`]:n})},{}),Ea=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,de=(e,t)=>Ea(e)?Object.keys(e).reduce((r,n)=>{const s=e[n];return s==null?r:z(b({},r),{[n]:t(s,n)})},{}):t(e,"s"),Ta=e=>e?{variables:q("--rs-align",e)}:{},$a=e=>e?{variables:q("--rs-ratio",e)}:{},$n={root:"_root_23jyt_1","--bleed":"_--bleed_23jyt_8","--bleed-true--m":"_--bleed-true--m_23jyt_1","--bleed-false--m":"_--bleed-false--m_23jyt_1","--bleed-true--l":"_--bleed-true--l_23jyt_1","--bleed-false--l":"_--bleed-false--l_23jyt_1","--bleed-true--xl":"_--bleed-true--xl_23jyt_1","--bleed-false--xl":"_--bleed-false--xl_23jyt_1"},Ma=e=>{if(e===void 0)return{};const t=ce($n,"--bleed",de(e,r=>typeof r=="number"&&r>0)),o=q("--rs-bleed",e);return{classNames:[$n.root,t],variables:o}},Ia={"--border-neutral":"_--border-neutral_xj2hx_1","--border-neutral-faded":"_--border-neutral-faded_xj2hx_1","--border-positive":"_--border-positive_xj2hx_1","--border-positive-faded":"_--border-positive-faded_xj2hx_1","--border-warning":"_--border-warning_xj2hx_1","--border-warning-faded":"_--border-warning-faded_xj2hx_1","--border-critical":"_--border-critical_xj2hx_1","--border-critical-faded":"_--border-critical-faded_xj2hx_1","--border-primary":"_--border-primary_xj2hx_1","--border-primary-faded":"_--border-primary-faded_xj2hx_1","--border-disabled":"_--border-disabled_xj2hx_1","--border-brand":"_--border-brand_xj2hx_1","--border-transparent":"_--border-transparent_xj2hx_1","--border-neutral--m":"_--border-neutral--m_xj2hx_1","--border-neutral-faded--m":"_--border-neutral-faded--m_xj2hx_1","--border-positive--m":"_--border-positive--m_xj2hx_1","--border-positive-faded--m":"_--border-positive-faded--m_xj2hx_1","--border-warning--m":"_--border-warning--m_xj2hx_1","--border-warning-faded--m":"_--border-warning-faded--m_xj2hx_1","--border-critical--m":"_--border-critical--m_xj2hx_1","--border-critical-faded--m":"_--border-critical-faded--m_xj2hx_1","--border-primary--m":"_--border-primary--m_xj2hx_1","--border-primary-faded--m":"_--border-primary-faded--m_xj2hx_1","--border-disabled--m":"_--border-disabled--m_xj2hx_1","--border-brand--m":"_--border-brand--m_xj2hx_1","--border-transparent--m":"_--border-transparent--m_xj2hx_1","--border-neutral--l":"_--border-neutral--l_xj2hx_1","--border-neutral-faded--l":"_--border-neutral-faded--l_xj2hx_1","--border-positive--l":"_--border-positive--l_xj2hx_1","--border-positive-faded--l":"_--border-positive-faded--l_xj2hx_1","--border-warning--l":"_--border-warning--l_xj2hx_1","--border-warning-faded--l":"_--border-warning-faded--l_xj2hx_1","--border-critical--l":"_--border-critical--l_xj2hx_1","--border-critical-faded--l":"_--border-critical-faded--l_xj2hx_1","--border-primary--l":"_--border-primary--l_xj2hx_1","--border-primary-faded--l":"_--border-primary-faded--l_xj2hx_1","--border-disabled--l":"_--border-disabled--l_xj2hx_1","--border-brand--l":"_--border-brand--l_xj2hx_1","--border-transparent--l":"_--border-transparent--l_xj2hx_1","--border-neutral--xl":"_--border-neutral--xl_xj2hx_1","--border-neutral-faded--xl":"_--border-neutral-faded--xl_xj2hx_1","--border-positive--xl":"_--border-positive--xl_xj2hx_1","--border-positive-faded--xl":"_--border-positive-faded--xl_xj2hx_1","--border-warning--xl":"_--border-warning--xl_xj2hx_1","--border-warning-faded--xl":"_--border-warning-faded--xl_xj2hx_1","--border-critical--xl":"_--border-critical--xl_xj2hx_1","--border-critical-faded--xl":"_--border-critical-faded--xl_xj2hx_1","--border-primary--xl":"_--border-primary--xl_xj2hx_1","--border-primary-faded--xl":"_--border-primary-faded--xl_xj2hx_1","--border-disabled--xl":"_--border-disabled--xl_xj2hx_1","--border-brand--xl":"_--border-brand--xl_xj2hx_1","--border-transparent--xl":"_--border-transparent--xl_xj2hx_1"},La=e=>e?{variables:q("--rs-border-w",de(e,t=>t?"1px":"0px"))}:{},Da=e=>e?{variables:q("--rs-border-w-top",de(e,t=>t?"1px":"0px"))}:{},Pa=e=>e?{variables:q("--rs-border-w-bottom",de(e,t=>t?"1px":"0px"))}:{},Fa=e=>e?{variables:q("--rs-border-w-start",de(e,t=>t?"1px":"0px"))}:{},Aa=e=>e?{variables:q("--rs-border-w-end",de(e,t=>t?"1px":"0px"))}:{},Va=e=>e?{variables:q("--rs-border-w-block",de(e,t=>t?"1px":"0px"))}:{},Ba=e=>e?{variables:q("--rs-border-w-inline",de(e,t=>t?"1px":"0px"))}:{},ja=e=>e?{classNames:ce(Ia,"--border",e)}:{},Mn={root:"_root_14o7b_5","--type-literal":"_--type-literal_14o7b_14","--type-unit":"_--type-unit_14o7b_18","--type-literal--m":"_--type-literal--m_14o7b_1","--type-unit--m":"_--type-unit--m_14o7b_1","--type-literal--l":"_--type-literal--l_14o7b_1","--type-unit--l":"_--type-unit--l_14o7b_1","--type-literal--xl":"_--type-literal--xl_14o7b_1","--type-unit--xl":"_--type-unit--xl_14o7b_1"},Ha=e=>{if(!e)return{};const t=q("--rs-h",e),o=ce(Mn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Mn.root,o],variables:t}},Oa=e=>e===void 0?{}:{variables:q("--rs-inset",e)},Wa=e=>e===void 0?{}:{variables:q("--rs-inset-top",e)},qa=e=>e===void 0?{}:{variables:q("--rs-inset-bottom",e)},Ua=e=>e===void 0?{}:{variables:q("--rs-inset-start",e)},Ya=e=>e===void 0?{}:{variables:q("--rs-inset-end",e)},Ka=e=>e===void 0?{}:{variables:q("--rs-inset-inline",e)},Ga=e=>e===void 0?{}:{variables:q("--rs-inset-block",e)},Xa=e=>e?{variables:q("--rs-justify",e)}:{},In={root:"_root_1rdxk_1","--type-literal":"_--type-literal_1rdxk_1","--type-unit":"_--type-unit_1rdxk_1","--type-literal--m":"_--type-literal--m_1rdxk_1","--type-unit--m":"_--type-unit--m_1rdxk_1","--type-literal--l":"_--type-literal--l_1rdxk_1","--type-unit--l":"_--type-unit--l_1rdxk_1","--type-literal--xl":"_--type-literal--xl_1rdxk_1","--type-unit--xl":"_--type-unit--xl_1rdxk_1"},Za=e=>{if(!e)return{};const t=q("--rs-max-h",e),o=ce(In,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[In.root,o],variables:t}},Ln={root:"_root_qeyze_1","--type-literal":"_--type-literal_qeyze_1","--type-unit":"_--type-unit_qeyze_1","--type-literal--m":"_--type-literal--m_qeyze_1","--type-unit--m":"_--type-unit--m_qeyze_1","--type-literal--l":"_--type-literal--l_qeyze_1","--type-unit--l":"_--type-unit--l_qeyze_1","--type-literal--xl":"_--type-literal--xl_qeyze_1","--type-unit--xl":"_--type-unit--xl_qeyze_1"},Ja=e=>{if(!e)return{};const t=q("--rs-max-w",e),o=ce(Ln,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Ln.root,o],variables:t}},Dn={root:"_root_zookh_1","--type-literal":"_--type-literal_zookh_1","--type-unit":"_--type-unit_zookh_1","--type-literal--m":"_--type-literal--m_zookh_1","--type-unit--m":"_--type-unit--m_zookh_1","--type-literal--l":"_--type-literal--l_zookh_1","--type-unit--l":"_--type-unit--l_zookh_1","--type-literal--xl":"_--type-literal--xl_zookh_1","--type-unit--xl":"_--type-unit--xl_zookh_1"},Qa=e=>{if(!e)return{};const t=q("--rs-min-h",e),o=ce(Dn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Dn.root,o],variables:t}},Pn={root:"_root_1nz80_1","--type-literal":"_--type-literal_1nz80_1","--type-unit":"_--type-unit_1nz80_1","--type-literal--m":"_--type-literal--m_1nz80_1","--type-unit--m":"_--type-unit--m_1nz80_1","--type-literal--l":"_--type-literal--l_1nz80_1","--type-unit--l":"_--type-unit--l_1nz80_1","--type-literal--xl":"_--type-literal--xl_1nz80_1","--type-unit--xl":"_--type-unit--xl_1nz80_1"},Ra=e=>{if(!e)return{};const t=q("--rs-min-w",e),o=ce(Pn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Pn.root,o],variables:t}},ec=e=>e?{variables:q("--rs-p",e)}:{},tc=e=>e===void 0?{}:{variables:q("--rs-p-top",e)},oc=e=>e===void 0?{}:{variables:q("--rs-p-bottom",e)},rc=e=>e===void 0?{}:{variables:q("--rs-p-start",e)},nc=e=>e===void 0?{}:{variables:q("--rs-p-end",e)},sc=e=>e===void 0?{}:{variables:q("--rs-p-inline",e)},ic=e=>e===void 0?{}:{variables:q("--rs-p-block",e)},lc=e=>e?{variables:q("--rs-position",e)}:{},Fn={root:"_root_w529z_1","--radius-none":"_--radius-none_w529z_1","--radius-small":"_--radius-small_w529z_1","--radius-medium":"_--radius-medium_w529z_1","--radius-large":"_--radius-large_w529z_1","--radius-circular":"_--radius-circular_w529z_1","--radius-none--m":"_--radius-none--m_w529z_1","--radius-small--m":"_--radius-small--m_w529z_1","--radius-medium--m":"_--radius-medium--m_w529z_1","--radius-large--m":"_--radius-large--m_w529z_1","--radius-circular--m":"_--radius-circular--m_w529z_1","--radius-none--l":"_--radius-none--l_w529z_1","--radius-small--l":"_--radius-small--l_w529z_1","--radius-medium--l":"_--radius-medium--l_w529z_1","--radius-large--l":"_--radius-large--l_w529z_1","--radius-circular--l":"_--radius-circular--l_w529z_1","--radius-none--xl":"_--radius-none--xl_w529z_1","--radius-small--xl":"_--radius-small--xl_w529z_1","--radius-medium--xl":"_--radius-medium--xl_w529z_1","--radius-large--xl":"_--radius-large--xl_w529z_1","--radius-circular--xl":"_--radius-circular--xl_w529z_1"},ac=e=>e?{classNames:[Fn.root,...ce(Fn,"--radius",e)]}:{},cc=e=>e?{variables:q("--rs-text-align",e)}:{},An={root:"_root_1kn8l_1","--type-literal":"_--type-literal_1kn8l_1","--type-unit":"_--type-unit_1kn8l_1","--type-literal--m":"_--type-literal--m_1kn8l_1","--type-unit--m":"_--type-unit--m_1kn8l_1","--type-literal--l":"_--type-literal--l_1kn8l_1","--type-unit--l":"_--type-unit--l_1kn8l_1","--type-literal--xl":"_--type-literal--xl_1kn8l_1","--type-unit--xl":"_--type-unit--xl_1kn8l_1"},dc={align:Ta,aspectRatio:$a,bleed:Ma,border:La,borderTop:Da,borderBottom:Pa,borderStart:Fa,borderEnd:Aa,borderInline:Ba,borderBlock:Va,borderColor:ja,height:Ha,padding:ec,paddingTop:tc,paddingBottom:oc,paddingStart:rc,paddingEnd:nc,paddingInline:sc,paddingBlock:ic,inset:Oa,insetTop:Wa,insetBottom:qa,insetStart:Ua,insetEnd:Ya,insetInline:Ka,insetBlock:Ga,justify:Xa,maxHeight:Za,maxWidth:Ja,minHeight:Qa,minWidth:Ra,position:lc,radius:ac,textAlign:cc,width:e=>{if(!e)return{};const t=q("--rs-w",e),o=ce(An,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[An.root,o],variables:t}}},Qe=e=>{const t={variables:{},classNames:[]};return Object.entries(e).forEach(([r,n])=>{const s=dc[r],l=s(n);l.variables&&(t.variables=b(b({},t.variables),l.variables)),l.classNames&&t.classNames.push(l.classNames)}),t},nt={root:"_root_b6kc5_2","--clamp":"_--clamp_b6kc5_22","--break-all":"_--break-all_b6kc5_29","--wrap-balance":"_--wrap-balance_b6kc5_33","--numeric":"_--numeric_b6kc5_38","--variant-title-1":"_--variant-title-1_b6kc5_1","--variant-title-2":"_--variant-title-2_b6kc5_1","--variant-title-3":"_--variant-title-3_b6kc5_1","--variant-title-4":"_--variant-title-4_b6kc5_1","--variant-title-5":"_--variant-title-5_b6kc5_1","--variant-title-6":"_--variant-title-6_b6kc5_1","--variant-featured-1":"_--variant-featured-1_b6kc5_1","--variant-featured-2":"_--variant-featured-2_b6kc5_1","--variant-featured-3":"_--variant-featured-3_b6kc5_1","--variant-body-1":"_--variant-body-1_b6kc5_1","--variant-body-2":"_--variant-body-2_b6kc5_1","--variant-body-3":"_--variant-body-3_b6kc5_1","--variant-caption-1":"_--variant-caption-1_b6kc5_1","--variant-caption-2":"_--variant-caption-2_b6kc5_1","--weight-regular":"_--weight-regular_b6kc5_1","--weight-medium":"_--weight-medium_b6kc5_1","--weight-semibold":"_--weight-semibold_b6kc5_1","--weight-bold":"_--weight-bold_b6kc5_1","--weight-extrabold":"_--weight-extrabold_b6kc5_1","--color-neutral":"_--color-neutral_b6kc5_1","--color-neutral-faded":"_--color-neutral-faded_b6kc5_1","--color-primary":"_--color-primary_b6kc5_1","--color-warning":"_--color-warning_b6kc5_1","--color-positive":"_--color-positive_b6kc5_1","--color-critical":"_--color-critical_b6kc5_1","--color-disabled":"_--color-disabled_b6kc5_1","--decoration-line-through":"_--decoration-line-through_b6kc5_184","--monospace":"_--monospace_b6kc5_188","--variant-title-1--m":"_--variant-title-1--m_b6kc5_1","--variant-title-2--m":"_--variant-title-2--m_b6kc5_1","--variant-title-3--m":"_--variant-title-3--m_b6kc5_1","--variant-title-4--m":"_--variant-title-4--m_b6kc5_1","--variant-title-5--m":"_--variant-title-5--m_b6kc5_1","--variant-title-6--m":"_--variant-title-6--m_b6kc5_1","--variant-featured-1--m":"_--variant-featured-1--m_b6kc5_1","--variant-featured-2--m":"_--variant-featured-2--m_b6kc5_1","--variant-featured-3--m":"_--variant-featured-3--m_b6kc5_1","--variant-body-1--m":"_--variant-body-1--m_b6kc5_1","--variant-body-2--m":"_--variant-body-2--m_b6kc5_1","--variant-body-3--m":"_--variant-body-3--m_b6kc5_1","--variant-caption-1--m":"_--variant-caption-1--m_b6kc5_1","--variant-caption-2--m":"_--variant-caption-2--m_b6kc5_1","--weight-regular--m":"_--weight-regular--m_b6kc5_1","--weight-medium--m":"_--weight-medium--m_b6kc5_1","--weight-semibold--m":"_--weight-semibold--m_b6kc5_1","--weight-bold--m":"_--weight-bold--m_b6kc5_1","--weight-extrabold--m":"_--weight-extrabold--m_b6kc5_1","--variant-title-1--l":"_--variant-title-1--l_b6kc5_1","--variant-title-2--l":"_--variant-title-2--l_b6kc5_1","--variant-title-3--l":"_--variant-title-3--l_b6kc5_1","--variant-title-4--l":"_--variant-title-4--l_b6kc5_1","--variant-title-5--l":"_--variant-title-5--l_b6kc5_1","--variant-title-6--l":"_--variant-title-6--l_b6kc5_1","--variant-featured-1--l":"_--variant-featured-1--l_b6kc5_1","--variant-featured-2--l":"_--variant-featured-2--l_b6kc5_1","--variant-featured-3--l":"_--variant-featured-3--l_b6kc5_1","--variant-body-1--l":"_--variant-body-1--l_b6kc5_1","--variant-body-2--l":"_--variant-body-2--l_b6kc5_1","--variant-body-3--l":"_--variant-body-3--l_b6kc5_1","--variant-caption-1--l":"_--variant-caption-1--l_b6kc5_1","--variant-caption-2--l":"_--variant-caption-2--l_b6kc5_1","--weight-regular--l":"_--weight-regular--l_b6kc5_1","--weight-medium--l":"_--weight-medium--l_b6kc5_1","--weight-semibold--l":"_--weight-semibold--l_b6kc5_1","--weight-bold--l":"_--weight-bold--l_b6kc5_1","--weight-extrabold--l":"_--weight-extrabold--l_b6kc5_1","--variant-title-1--xl":"_--variant-title-1--xl_b6kc5_1","--variant-title-2--xl":"_--variant-title-2--xl_b6kc5_1","--variant-title-3--xl":"_--variant-title-3--xl_b6kc5_1","--variant-title-4--xl":"_--variant-title-4--xl_b6kc5_1","--variant-title-5--xl":"_--variant-title-5--xl_b6kc5_1","--variant-title-6--xl":"_--variant-title-6--xl_b6kc5_1","--variant-featured-1--xl":"_--variant-featured-1--xl_b6kc5_1","--variant-featured-2--xl":"_--variant-featured-2--xl_b6kc5_1","--variant-featured-3--xl":"_--variant-featured-3--xl_b6kc5_1","--variant-body-1--xl":"_--variant-body-1--xl_b6kc5_1","--variant-body-2--xl":"_--variant-body-2--xl_b6kc5_1","--variant-body-3--xl":"_--variant-body-3--xl_b6kc5_1","--variant-caption-1--xl":"_--variant-caption-1--xl_b6kc5_1","--variant-caption-2--xl":"_--variant-caption-2--xl_b6kc5_1","--weight-regular--xl":"_--weight-regular--xl_b6kc5_1","--weight-medium--xl":"_--weight-medium--xl_b6kc5_1","--weight-semibold--xl":"_--weight-semibold--xl_b6kc5_1","--weight-bold--xl":"_--weight-bold--xl_b6kc5_1","--weight-extrabold--xl":"_--weight-extrabold--xl_b6kc5_1"},uc={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ie=e=>{const{variant:t,color:o,weight:r,align:n,decoration:s,maxLines:l,wrap:a,monospace:u,numeric:_,children:m,className:d,attributes:h}=e,p=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),g=Qe({textAlign:n}),f=e.as||p&&uc[p]||"div",y=F(nt.root,o&&nt[`--color-${o}`],...ce(nt,"--variant",t),...ce(nt,"--weight",r),s&&nt[`--decoration-${s}`],l!==void 0&&nt["--clamp"],l===1&&nt["--break-all"],a&&nt[`--wrap-${a}`],u&&nt["--monospace"],_&&nt["--numeric"],d,g.classNames),x=z(b(b({},h==null?void 0:h.style),g.variables),{"--rs-text-lines":l});return i.jsx(f,z(b({},h),{className:y,style:x,children:m}))};ie.displayName="Text";const Lt={root:"_root_1tl54_1","--color-neutral":"_--color-neutral_1tl54_25","--blank":"_--blank_1tl54_29","--vertical":"_--vertical_1tl54_35",label:"_label_1tl54_63","--content-position-center":"_--content-position-center_1tl54_89","--content-position-start":"_--content-position-start_1tl54_96","--vertical-true--m":"_--vertical-true--m_1tl54_1","--vertical-false--m":"_--vertical-false--m_1tl54_1","--vertical-true--l":"_--vertical-true--l_1tl54_1","--vertical-false--l":"_--vertical-false--l_1tl54_1","--vertical-true--xl":"_--vertical-true--xl_1tl54_1","--vertical-false--xl":"_--vertical-false--xl_1tl54_1"},eo=e=>{const{vertical:t,blank:o,children:r,contentPosition:n="center",color:s,offset:l,className:a,attributes:u}=e,_=F(Lt.root,a,o&&Lt["--blank"],s&&Lt[`--color-${s}`],r?Lt[`--content-position-${n}`]:void 0,...ce(Lt,"--vertical",t));let m;return(typeof t=="boolean"||t===void 0)&&(m=t?"vertical":"horizontal"),i.jsx("div",z(b({},u),{role:"separator","aria-orientation":m,className:_,style:z(b({},u==null?void 0:u.style),{"--rs-divider-offset":l}),children:r&&i.jsx(ie,{color:"neutral-faded",variant:"caption-1",className:Lt.label,children:r})}))};eo.displayName="Divider";const ir={root:"_root_11ilc_1","--hidden":"_--hidden_11ilc_5","--visibility":"_--visibility_11ilc_9","--hidden-true--m":"_--hidden-true--m_11ilc_1","--hidden-false--m":"_--hidden-false--m_11ilc_1","--hidden-true--l":"_--hidden-true--l_11ilc_1","--hidden-false--l":"_--hidden-false--l_11ilc_1","--hidden-true--xl":"_--hidden-true--xl_11ilc_1","--hidden-false--xl":"_--hidden-false--xl_11ilc_1"},kt=e=>{const{as:t="div",children:o,visibility:r,hide:n}=e,s=F(ir.root,...ce(ir,"--hidden",n),r&&ir["--visibility"]);return i.jsx(t,{className:s,children:o})};kt.displayName="Hidden";const ze={root:"_root_9u073_1",item:"_item_9u073_11","--animated":"_--animated_9u073_19","--bg-neutral":"_--bg-neutral_9u073_1","--bg-positive":"_--bg-positive_9u073_1","--bg-warning":"_--bg-warning_9u073_1","--bg-critical":"_--bg-critical_9u073_1","--bg-primary":"_--bg-primary_9u073_1","--bg-neutral-faded":"_--bg-neutral-faded_9u073_1","--bg-positive-faded":"_--bg-positive-faded_9u073_1","--bg-warning-faded":"_--bg-warning-faded_9u073_1","--bg-critical-faded":"_--bg-critical-faded_9u073_1","--bg-primary-faded":"_--bg-primary-faded_9u073_1","--bg-page":"_--bg-page_9u073_1","--bg-page-faded":"_--bg-page-faded_9u073_1","--bg-disabled":"_--bg-disabled_9u073_1","--bg-disabled-faded":"_--bg-disabled-faded_9u073_1","--bg-elevation-base":"_--bg-elevation-base_9u073_1","--bg-elevation-raised":"_--bg-elevation-raised_9u073_1","--bg-elevation-overlay":"_--bg-elevation-overlay_9u073_1","--bg-brand":"_--bg-brand_9u073_39","--bg-white":"_--bg-white_9u073_44","--bg-black":"_--bg-black_9u073_49","--shadow-raised":"_--shadow-raised_9u073_54","--shadow-overlay":"_--shadow-overlay_9u073_58","--overflow-hidden":"_--overflow-hidden_9u073_62","--overflow-auto":"_--overflow-auto_9u073_66","--divided":"_--divided_9u073_70","--flex":"_--flex_9u073_74","--direction-column":"_--direction-column_9u073_1","item--gap-before":"_item--gap-before_9u073_86","item--gap-auto":"_item--gap-auto_9u073_90","--direction-column-reverse":"_--direction-column-reverse_9u073_1","--direction-row":"_--direction-row_9u073_1","--direction-row-reverse":"_--direction-row-reverse_9u073_1","--nowrap":"_--nowrap_9u073_145","--wrap":"_--wrap_9u073_153","--nowrap-false--m":"_--nowrap-false--m_9u073_1","--wrap-true--m":"_--wrap-true--m_9u073_1","--nowrap-true--m":"_--nowrap-true--m_9u073_1","--wrap-false--m":"_--wrap-false--m_9u073_1","--nowrap-false--l":"_--nowrap-false--l_9u073_1","--wrap-true--l":"_--wrap-true--l_9u073_1","--nowrap-true--l":"_--nowrap-true--l_9u073_1","--wrap-false--l":"_--wrap-false--l_9u073_1","--nowrap-false--xl":"_--nowrap-false--xl_9u073_1","--wrap-true--xl":"_--wrap-true--xl_9u073_1","--nowrap-true--xl":"_--nowrap-true--xl_9u073_1","--wrap-false--xl":"_--wrap-false--xl_9u073_1",divider:"_divider_9u073_171","item--grow":"_item--grow_9u073_175","item--shrink":"_item--shrink_9u073_193","item--columns":"_item--columns_9u073_197","item--columns-1":"_item--columns-1_9u073_1","item--columns-2":"_item--columns-2_9u073_1","item--columns-3":"_item--columns-3_9u073_1","item--columns-4":"_item--columns-4_9u073_1","item--columns-5":"_item--columns-5_9u073_1","item--columns-6":"_item--columns-6_9u073_1","item--columns-7":"_item--columns-7_9u073_1","item--columns-8":"_item--columns-8_9u073_1","item--columns-9":"_item--columns-9_9u073_1","item--columns-10":"_item--columns-10_9u073_1","item--columns-11":"_item--columns-11_9u073_1","item--columns-12":"_item--columns-12_9u073_1","item--columns-auto":"_item--columns-auto_9u073_218","item--columns-1--m":"_item--columns-1--m_9u073_1","item--columns-auto--m":"_item--columns-auto--m_9u073_1","item--columns-2--m":"_item--columns-2--m_9u073_1","item--columns-3--m":"_item--columns-3--m_9u073_1","item--columns-4--m":"_item--columns-4--m_9u073_1","item--columns-5--m":"_item--columns-5--m_9u073_1","item--columns-6--m":"_item--columns-6--m_9u073_1","item--columns-7--m":"_item--columns-7--m_9u073_1","item--columns-8--m":"_item--columns-8--m_9u073_1","item--columns-9--m":"_item--columns-9--m_9u073_1","item--columns-10--m":"_item--columns-10--m_9u073_1","item--columns-11--m":"_item--columns-11--m_9u073_1","item--columns-12--m":"_item--columns-12--m_9u073_1","item--columns-1--l":"_item--columns-1--l_9u073_1","item--columns-auto--l":"_item--columns-auto--l_9u073_1","item--columns-2--l":"_item--columns-2--l_9u073_1","item--columns-3--l":"_item--columns-3--l_9u073_1","item--columns-4--l":"_item--columns-4--l_9u073_1","item--columns-5--l":"_item--columns-5--l_9u073_1","item--columns-6--l":"_item--columns-6--l_9u073_1","item--columns-7--l":"_item--columns-7--l_9u073_1","item--columns-8--l":"_item--columns-8--l_9u073_1","item--columns-9--l":"_item--columns-9--l_9u073_1","item--columns-10--l":"_item--columns-10--l_9u073_1","item--columns-11--l":"_item--columns-11--l_9u073_1","item--columns-12--l":"_item--columns-12--l_9u073_1","item--columns-1--xl":"_item--columns-1--xl_9u073_1","item--columns-auto--xl":"_item--columns-auto--xl_9u073_1","item--columns-2--xl":"_item--columns-2--xl_9u073_1","item--columns-3--xl":"_item--columns-3--xl_9u073_1","item--columns-4--xl":"_item--columns-4--xl_9u073_1","item--columns-5--xl":"_item--columns-5--xl_9u073_1","item--columns-6--xl":"_item--columns-6--xl_9u073_1","item--columns-7--xl":"_item--columns-7--xl_9u073_1","item--columns-8--xl":"_item--columns-8--xl_9u073_1","item--columns-9--xl":"_item--columns-9--xl_9u073_1","item--columns-10--xl":"_item--columns-10--xl_9u073_1","item--columns-11--xl":"_item--columns-11--xl_9u073_1","item--columns-12--xl":"_item--columns-12--xl_9u073_1","--direction-column--m":"_--direction-column--m_9u073_1","--direction-column-reverse--m":"_--direction-column-reverse--m_9u073_1","--direction-row--m":"_--direction-row--m_9u073_1","--direction-row-reverse--m":"_--direction-row-reverse--m_9u073_1","item--grow-true--m":"_item--grow-true--m_9u073_1","item--grow-false--m":"_item--grow-false--m_9u073_1","--direction-column--l":"_--direction-column--l_9u073_1","--direction-column-reverse--l":"_--direction-column-reverse--l_9u073_1","--direction-row--l":"_--direction-row--l_9u073_1","--direction-row-reverse--l":"_--direction-row-reverse--l_9u073_1","item--grow-true--l":"_item--grow-true--l_9u073_1","item--grow-false--l":"_item--grow-false--l_9u073_1","--direction-column--xl":"_--direction-column--xl_9u073_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_9u073_1","--direction-row--xl":"_--direction-row--xl_9u073_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_9u073_1","item--grow-true--xl":"_item--grow-true--xl_9u073_1","item--grow-false--xl":"_item--grow-false--xl_9u073_1"},lr=e=>{const{columns:t,grow:o,shrink:r,gapBefore:n,as:s="div",order:l,children:a,className:u,attributes:_}=e,m=F(ze.item,u,n==="auto"&&ze["item--gap-auto"],n!==void 0&&ze["item--gap-before"],t&&ze["item--columns"],r&&ze["item--shrink"],...ce(ze,"item--grow",o),...ce(ze,"item--columns",t)),d=b(b({},q("--rs-view-item-order",l)),q("--rs-view-item-gap-before",n));return i.jsx(s,z(b({},_),{style:b(b({},_==null?void 0:_.style),d),className:m,children:a}))},ar=e=>{var Ie;const{align:t,justify:o,wrap:r,gap:n,height:s,width:l,aspectRatio:a,maxHeight:u,maxWidth:_,minHeight:m,minWidth:d,padding:h,paddingInline:p,paddingBlock:g,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,bleed:w,animated:C,backgroundColor:N,borderColor:E,borderTop:k,borderBottom:S,borderStart:T,borderEnd:$,borderInline:M,borderBlock:L,borderRadius:P,shadow:A,textAlign:V,overflow:D,position:j,inset:W,insetTop:re,insetBottom:X,insetStart:J,insetEnd:U,zIndex:te,grow:G,shrink:ee,as:$e="div",children:_e,divided:ne,className:oe,attributes:se}=e,B=(Ie=e.border)!=null?Ie:E?!k&&!S&&!T&&!$&&!M&&!L:void 0;let Y=!!t||!!o||!!n||!!e.direction;const Q=e.direction||(Y?"column":void 0),fe=Qe({align:t,inset:W,insetTop:re,insetBottom:X,insetStart:J,insetEnd:U,bleed:w,width:l,height:s,maxWidth:_,maxHeight:u,minWidth:d,minHeight:m,position:j,aspectRatio:a,textAlign:V,justify:o,padding:h,paddingInline:p,paddingBlock:g,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,borderColor:E,border:B,borderTop:k,borderBottom:S,borderStart:T,borderEnd:$,borderInline:M,borderBlock:L,radius:P});let Z=0,K;const le=({className:he,key:ye})=>{const xe=F(ze.divider,he);let Ve=!1;return typeof Q=="string"&&Q.startsWith("row")?Ve=!0:Q&&(Ve=Object.keys(Q).reduce((Ze,Be)=>{const je=Q[Be];return je?z(b({},Ze),{[Be]:je.startsWith("row")}):Ze},{})),i.jsx("div",{className:xe,children:i.jsx(eo,{vertical:Ve,blank:!0})},`${ye}-divider`)},ae=({className:he,child:ye,index:xe})=>{var Zo,Jo;const Ve=c.isValidElement(ye),Pe=Ve&&ye.type===lr,Ze=Ve&&ye.type===ar,Be=ye.key,je=!!xe&&ne&&le({className:he,key:Be});let Ee;return Pe?Ee=c.cloneElement(ye,{className:F(he,ye.props.className)}):!he&&(c.isValidElement(ye)||c.Children.count(_e===1)||typeof ye=="string")?Ee=ye:Ee=i.jsx("div",{className:he,children:ye},Be),(Pe||Ze)&&((Zo=ye.props)!=null&&Zo.grow)&&(K=ye.props.grow,Y=!0),Pe&&((Jo=ye.props)==null?void 0:Jo.gap)==="auto"&&(K=!0),i.jsxs(c.Fragment,{children:[je,Ee]},Be?`${Be}-fragment`:void 0)},ue=c.Children.map(_e,(he,ye)=>{if(!he)return null;const xe=Z;if(Z+=1,c.isValidElement(he)&&he.type===kt){const Ve=he.props,{children:Pe}=Ve,Ze=ve(Ve,["children"]),Be=he.key||ye;return c.createElement(kt,z(b({},Ze),{key:Be}),ae({child:Pe,index:xe}))}return he.type===c.Fragment&&c.Children.count(he.props.children)>1?he.props.children.map(Pe=>Pe?(Z+=1,ae({child:Pe,index:Z})):null):ae({child:he,index:xe})}),Ce=F(ze.root,oe,fe.classNames,N&&ze[`--bg-${N}`],A&&ze[`--shadow-${A}`],D&&ze[`--overflow-${D}`],C&&ze["--animated"],ne&&ze["--divided"],(Y||K)&&ze["--flex"],...ce(ze,"--direction",Q),...ce(ze,"--nowrap",K||r===!1),...ce(ze,"--wrap",r),...ce(ze,"item--grow",G),ee&&ze["item--shrink"]),Me=b(b(b(b({},se==null?void 0:se.style),q("--rs-view-gap",n)),fe.variables),te?{"--rs-view-z":te}:{});return i.jsx($e,z(b({},se),{className:Ce,style:Me,children:ue}))};ar.displayName="View",lr.displayName="View.Item";const O=ar;O.Item=lr;const Eo={root:"_root_kbofm_1","--position-top":"_--position-top_kbofm_1","--position-top-start":"_--position-top-start_kbofm_1","--position-top-end":"_--position-top-end_kbofm_1","--position-bottom":"_--position-bottom_kbofm_101","--position-bottom-start":"_--position-bottom-start_kbofm_1","--position-bottom-end":"_--position-bottom-end_kbofm_1","--elevated":"_--elevated_kbofm_66","--active":"_--active_kbofm_80"},_c=["top","bottom"],Vn=e=>{const{position:t="bottom",positionType:o,offset:r,padding:n,paddingBlock:s=3,paddingInline:l=4,children:a,elevated:u,active:_=!0,className:m,attributes:d}=e,h=o!=null?o:r?"absolute":_c.includes(t)?"relative":"absolute",p=r!=null?r:h==="relative"?void 0:4,g=p&&q("--rs-action-bar-offset",p),f=F(Eo.root,(u||!!g)&&Eo["--elevated"],t&&Eo[`--position-${t}`],_&&Eo["--active"],m);return i.jsx(O,{className:f,attributes:z(b({},d),{style:b(b({},d==null?void 0:d.style),g)}),position:h,paddingBlock:n||s,paddingInline:n||l,children:a})};Vn.displayName="ActionBar";const cr={root:"_root_wxiwp_1","--auto":"_--auto_wxiwp_12","--color-neutral":"_--color-neutral_wxiwp_1","--color-neutral-faded":"_--color-neutral-faded_wxiwp_1","--color-primary":"_--color-primary_wxiwp_1","--color-positive":"_--color-positive_wxiwp_1","--color-warning":"_--color-warning_wxiwp_1","--color-critical":"_--color-critical_wxiwp_1","--color-disabled":"_--color-disabled_wxiwp_1"},ge=e=>{const{svg:t,className:o,color:r,size:n="1em",autoWidth:s,attributes:l}=e,a=Qe({height:n}),u=F(cr.root,o,a.classNames,r&&cr[`--color-${r}`],s&&cr["--auto"]),_=c.isValidElement(t)||t===null?t:i.jsx(t,{}),m=b(b({},l==null?void 0:l.style),a.variables);return i.jsx("span",z(b({},l),{"aria-hidden":"true",className:u,style:m,children:_&&c.cloneElement(_,{focusable:!1})}))};ge.displayName="Icon";const mc={icon:"_icon_1elkf_1"},Bn=e=>{const{title:t,children:o,icon:r,actionsSlot:n,color:s="neutral",inline:l,bleed:a,className:u,attributes:_}=e,m=s==="neutral",d=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(ie,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&o&&" ",o&&i.jsx(ie,{variant:"body-3",as:"span",children:o})]}):i.jsxs(O,{gap:1,grow:!0,children:[t&&i.jsx(ie,{variant:"body-3",weight:"medium",children:t}),o&&i.jsx(ie,{variant:"body-3",children:o})]}),h=p=>n?i.jsxs(O,{gap:l?4:2,direction:l?"row":"column",children:[l?i.jsx(O.Item,{grow:!0,children:p}):p,n&&i.jsx(ie,{variant:"body-3",weight:"medium",children:i.jsx(O,{direction:"row",gap:3,children:n})})]}):p;return i.jsx(O,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:u,attributes:z(b({},_),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:mc.icon,children:i.jsx(ge,{svg:r,size:5,color:m?"primary":s})}),i.jsx(O.Item,{grow:!0,children:h(d())})]}):h(d())})};Bn.displayName="Alert";const Ke=e=>{const t=c.useId();return e||t};let Nt={},dt=null;const hc=e=>{Nt[e]&&(e===dt&&(dt=Nt[e].parentId),delete Nt[e],dt===null&&(Nt={}))},fc=(e,t,o)=>{Nt[e]={parentId:dt,triggerRef:o,contentRef:t},dt=e},jn=e=>{const{active:t,contentRef:o,triggerRef:r,hasTrigger:n=!0}=e,s=Ke();return c.useEffect(()=>{if(t)return fc(s,o,r),()=>hc(s)},[t,s,o,r]),c.useCallback(()=>{var d;if(!t)return!0;const l=dt?Nt[dt]:void 0,a=(d=l==null?void 0:l.triggerRef)==null?void 0:d.current,u=l!=null&&l.parentId?Nt[l.parentId]:void 0,_=u==null?void 0:u.contentRef.current,m=_&&a&&_.contains(a);return n&&!m?!0:!dt||dt===s},[s,t,n])},Hn=e=>{const t=e instanceof Date;if(t)return String(t);const o=JSON.stringify(e);return JSON.parse(o)},bc=(e,t=!1)=>{const o=c.useRef(t?Hn(e):e);return c.useEffect(()=>{o.current=t?Hn(e):e},[e,t]),o.current},Re=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},dr="data-rs-no-transition",gc=()=>{document.documentElement.setAttribute(dr,"true")},pc=()=>{document.documentElement.removeAttribute(dr)},vc=()=>!(document.documentElement.hasAttribute(dr)||window.matchMedia("(prefers-reduced-motion: reduce)").matches),yc=600,On=c.createContext({}),Wn=c.createContext(null),qn=c.createContext(null),Dt=()=>c.useContext(On),xc=()=>c.useContext(Wn),wc=()=>c.useContext(qn),Cc=On.Provider,kc=Wn.Provider,Nc=qn.Provider,zc=e=>{const $=e,{triggerElRef:t,flyoutElRef:o,triggerCoordinatesRef:r,contentGap:n,contentShift:s,onClose:l}=$,a=ve($,["triggerElRef","flyoutElRef","triggerCoordinatesRef","contentGap","contentShift","onClose"]),{position:u="bottom",fallbackPositions:_,fallbackAdjustLayout:m,fallbackMinHeight:d,width:h,container:p}=a,[g,f]=c.useState("idle"),[y,x]=c.useState(u),v=c.useRef(null),w=c.useMemo(()=>_,[_==null?void 0:_.join(" ")]),C=c.useCallback(()=>{f("rendered")},[]),N=c.useCallback(()=>{f("hidden")},[]),E=c.useCallback(()=>{if(!o.current)return;const M=getComputedStyle(o.current).getPropertyValue("--rs-unit-x1"),L=M?parseInt(M):4,P=()=>{l==null||l({}),N()};return{trigger:t.current,content:o.current,container:p,triggerCoordinates:r.current,width:h,position:u,fallbackPositions:w,fallbackAdjustLayout:m,fallbackMinHeight:d,contentGap:(n!=null?n:0)*L,contentShift:(s!=null?s:0)*L,onDeactivate:P}},[w,p,n,s,u,m,d,r,t,h,N,l,o]),k=c.useCallback(()=>{const M=E();if(!M)return;v.current=new ra(M);const L=v.current.activate();x(L.position),f("visible")},[E]),S=c.useCallback(()=>{v.current&&(v.current.deactivate(),f("idle"))},[]),T=c.useCallback(()=>{const M=E();if(!v.current||!M)return;const L=v.current.update(M);x(L.position)},[E]);return be(()=>{T()},[u]),c.useMemo(()=>({position:y,status:g,updatePosition:T,render:C,hide:N,remove:S,show:k}),[C,T,N,S,k,y,g])};class Sc{constructor(){pe(this,"status","cold");pe(this,"timer");pe(this,"warm",()=>{if(clearTimeout(this.timer),this.status==="cooling"){this.status="warm";return}this.status="warming",this.timer=setTimeout(()=>{this.status="warm",this.timer=void 0},100)});pe(this,"cool",()=>{if(clearTimeout(this.timer),this.status==="warming"){this.status="cold";return}this.status="cooling",this.timer=setTimeout(()=>{this.status="cold",this.timer=void 0},500)})}}const zt=new Sc;function Ec(e,t){const[o,r,n]=t,s=(r.y-n.y)*(o.x-n.x)+(n.x-r.x)*(o.y-n.y),l=((r.y-n.y)*(e.x-n.x)+(n.x-r.x)*(e.y-n.y))/s,a=((n.y-o.y)*(e.x-n.x)+(o.x-n.x)*(e.y-n.y))/s,u=1-l-a;return l>=0&&l<=1&&a>=0&&a<=1&&u>=0&&u<=1}function Tc(e,t){const o={topLeft:{x:e.left,y:e.top},topRight:{x:e.right,y:e.top},bottomLeft:{x:e.left,y:e.bottom},bottomRight:{x:e.right,y:e.bottom}};return t!=null&&t.startsWith("bottom")?[o.topLeft,o.topRight]:t!=null&&t.startsWith("top")?[o.bottomLeft,o.bottomRight]:t!=null&&t.startsWith("start")?[o.topRight,o.bottomRight]:[o.topLeft,o.bottomLeft]}function $c(e){const{contentRef:t,triggerRef:o,position:r,onClose:n,origin:s}=e;if(!t.current)return n(),()=>{};const l=t.current.getBoundingClientRect(),[a,u]=Tc(l,r),m=[{x:s.x,y:s.y},a,u];let d=null;const h=()=>{document.removeEventListener("mousemove",g),d&&clearTimeout(d)},p=()=>{d&&clearTimeout(d),d=setTimeout(()=>{n(),h()},1e3)},g=f=>{const y={x:f.clientX,y:f.clientY};Ec(y,m)&&t.current&&o.current?p():(n(),h())};return p(),document.addEventListener("mousemove",g),h}const ur=e=>{var Ol;const{triggerType:t="click",groupTimeouts:o,onOpen:r,onClose:n,children:s,disabled:l,forcePosition:a,fallbackAdjustLayout:u,fallbackMinHeight:_,trapFocusMode:m="dialog",width:d,disableHideAnimation:h,disableContentHover:p,disableCloseOnOutsideClick:g,autoFocus:f=!0,originCoordinates:y,contentGap:x=2,contentShift:v,contentMaxHeight:w,contentMaxWidth:C,contentZIndex:N,contentClassName:E,contentAttributes:k,position:S,active:T,id:$,instanceRef:M,containerRef:L,initialFocusRef:P,positionRef:A}=e,V=e.fallbackPositions===!1||a?[]:e.fallbackPositions,D=Ne(r),j=Ne(n),W=l===!0?!1:T,re=bc(W),X=Dt(),{elRef:J}=xc()||{},{elRef:U}=wc()||{},te=X.trapFocusMode==="action-menu"||X.trapFocusMode==="content-menu",G=c.useRef(null),ee=!!(J!=null&&J.current)&&((Ol=U==null?void 0:U.current)==null?void 0:Ol.contains(J.current)),_e=(!U||ee)&&J||G,ne=c.useRef(null),oe=Ke($),se=c.useRef(null),B=c.useRef(null),Y=c.useRef(!1),Q=c.useRef(!1),fe=c.useRef(!0),Z=c.useRef(!1),K=c.useRef(null),le=c.useRef(y!=null?y:null);le.current=y!=null?y:null;const ae=zc({triggerElRef:A!=null?A:_e,flyoutElRef:ne,triggerCoordinatesRef:le,width:d,position:S,defaultActive:W,container:L==null?void 0:L.current,fallbackPositions:V,fallbackAdjustLayout:u,fallbackMinHeight:_,contentGap:x,contentShift:v,onClose:j.current}),{status:ue,updatePosition:Ce,render:Me,hide:Ie,remove:he,show:ye}=ae,xe=ue!=="idle",Ve=jn({active:xe&&t!=="hover",contentRef:ne,triggerRef:_e}),Pe=c.useCallback(()=>{se.current&&clearTimeout(se.current)},[]),Ze=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(R=>{R!==_e.current&&(R.style.pointerEvents="none")})},[_e,t]),Be=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(R=>{R.style.removeProperty("pointer-events")})},[t]),je=c.useCallback(()=>{var R;Y.current||xe&&t!=="hover"||((R=D.current)==null||R.call(D),Ze())},[D,xe,t,Ze]),Ee=c.useCallback(R=>{var yo,xo;!(t==="click"&&!Ve())&&(xe||l)&&((yo=j.current)==null||yo.call(j,{reason:R.reason}),Be(),R!=null&&R.closeParents&&((xo=X==null?void 0:X.handleClose)==null||xo.call(X,{closeParents:!0,reason:R.reason})))},[xe,Ve,t,j,l,X,Be]),Zo=c.useCallback(R=>{var Yt;!Zt()||(Yt=ne.current)!=null&&Yt.contains(R.relatedTarget)||Q.current||Ee({})},[Ee]),Jo=c.useCallback(()=>{t==="hover"&&!Zt()||je()},[je,t]),Nd=c.useCallback(()=>{t==="hover"&&(Z.current=!0)},[t]),cn=c.useCallback(()=>{Pe(),Z.current?(je(),Z.current=!1):(o&&zt.warm(),se.current=setTimeout(()=>{je()},o&&zt.status==="warming"?yc:0))},[Pe,je,o]),zd=c.useCallback(R=>{var ct;R.currentTarget===_e.current&&((ct=K.current)==null||ct.cleanup()),cn()},[_e,cn]),Sd=c.useCallback(R=>{var ct,Yt,yo,xo;if(!(R.relatedTarget===ne.current||R.relatedTarget instanceof Node&&((ct=ne.current)!=null&&ct.contains(R.relatedTarget)))&&!(R.relatedTarget===_e.current||R.relatedTarget instanceof Node&&((Yt=_e.current)!=null&&Yt.contains(R.relatedTarget))))if(zt.cool(),Pe(),(yo=K.current)==null||yo.cleanup(),t==="hover"&&xe){const Wl=R.currentTarget===ne.current&&((xo=K.current)!=null&&xo.origin)?K.current.origin:{x:R.clientX,y:R.clientY},Id=$c({contentRef:ne,triggerRef:_e,position:ae.position,onClose:()=>Ee({}),origin:Wl});K.current={origin:Wl,cleanup:Id}}else Ee({})},[Pe,Ee,_e,ne,t,xe,ae.position]),Ed=c.useCallback(()=>{xe?Ee({}):je()},[xe,je,Ee]),Td=()=>{Q.current=!0,Z.current=!0},$d=()=>{Q.current=!1},Md=c.useCallback(R=>{ne.current!==R.currentTarget||R.propertyName!=="transform"||ue==="hidden"&&he()},[he,ue]);return be(()=>{if(W){Me();return}l&&zt.cool(),re!==W&&(vc()&&!h&&(zt.status==="cooling"||!o)?Ie():he())},[W,re,Me,Ie,he,h,l,o]),be(()=>{ue==="rendered"&&ye()},[ue,ye]),be(()=>{var ct;if(ue!=="visible"||!ne.current||(ct=B.current)!=null&&ct.trapped||m===!1)return;const R=f?P==null?void 0:P.current:ne.current.querySelector("[role][tabindex='-1']");B.current=new It,B.current.trap(ne.current,{mode:m,initialFocusEl:R,includeTrigger:t==="hover"&&m!=="dialog"&&!te,onRelease:()=>{Ee({})}})},[ue,t,m,f]),c.useEffect(()=>{var R;!h&&ue!=="hidden"||h&&xe||(R=B.current)!=null&&R.trapped&&(t==="hover"&&Zt()&&(Y.current=!0,setTimeout(()=>{Y.current=!1},100)),B.current.release({withoutFocusReturn:!fe.current}),fe.current=!0)},[ue,xe,t,h]),c.useEffect(()=>{if(xe)return()=>{var R;return(R=K.current)==null?void 0:R.cleanup()}},[xe]),c.useEffect(()=>()=>{var R;return(R=B.current)==null?void 0:R.release()},[]),c.useImperativeHandle(M,()=>({open:je,close:()=>Ee({}),updatePosition:()=>Ce()}),[je,Ee,Ce]),Ge({Escape:()=>Ee({reason:"escape-key"})},[Ee]),En([ne,_e],()=>{fe.current=!1,Ee({reason:"outside-click"})},{disabled:!xe||g}),i.jsx(Cc,{value:{id:oe,flyout:ae,width:d,triggerElRef:_e,flyoutElRef:ne,handleClose:Ee,handleOpen:je,handleFocus:Jo,handleBlur:Zo,handleTriggerMouseEnter:zd,handleContentMouseEnter:cn,handleMouseLeave:Sd,handleTouchStart:Nd,handleTransitionEnd:Md,handleClick:Ed,handleContentMouseDown:Td,handleContentMouseUp:$d,triggerType:t,trapFocusMode:m,contentZIndex:N,contentClassName:E,contentAttributes:k,contentGap:x,contentMaxHeight:w,contentMaxWidth:C,containerRef:L,disableContentHover:p,autoFocus:f,isSubmenu:te},children:s})};ur.displayName="FlyoutControlled";const Un=e=>{const{defaultActive:t,onClose:o,onOpen:r}=e,[n,s]=c.useState(t||!1),l=u=>{s(!1),o==null||o(u)},a=()=>{s(!0),r==null||r()};return i.jsx(ur,z(b({},e),{defaultActive:void 0,active:n,onClose:l,onOpen:a}))};Un.displayName="FlyoutUncontrolled";const Yn=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(ur,b({},e)):i.jsx(Un,b({},e))};Yn.displayName="Flyout";const Kn=c.createContext({}),_r=c.createContext({}),Mc={root:"_root_153o0_1"},To=e=>e?e.hasAttribute("data-rs-root")||e===document.documentElement||!e.parentElement?e:To(e.parentElement):document.documentElement,mr=()=>c.useContext(_r),Gn=()=>{const{colorMode:e,theme:t,setTheme:o,rootTheme:r,setRootTheme:n}=c.useContext(Kn),{mode:s,setMode:l,invertMode:a}=c.useContext(_r);return c.useMemo(()=>({theme:t,setTheme:o,rootTheme:r,setRootTheme:n,colorMode:e||s,setColorMode:l,invertColorMode:a}),[e,s,l,a,t,o,n,r])},Xn=e=>typeof e=="string"?e:` ${e.join(" ")} `,Pt=e=>i.jsx(Zn,b({},e)),Zn=e=>{const{name:t,defaultName:o,colorMode:r,scoped:n,scopeRef:s,children:l,className:a}=e,[u,_]=c.useState(!1),[m,d]=c.useState(o),h=mr(),p=Gn(),g=!p.theme,f=t||m||p.theme,y=g||n?f:p.rootTheme,x=g||n?h.mode:p.colorMode,w=r==="inverted"?x==="light"?"dark":"light":r||x,C=F(Mc.root,a),N=c.useCallback(S=>{g?d(S):p.setRootTheme(S)},[g,p]),E=c.useCallback(S=>{d(S)},[]);be(()=>{_(!0)},[]),be(()=>{if(!document||!g)return;const S=To(s==null?void 0:s.current),T=S.getAttribute("data-rs-color-mode"),$=Xn(f);return $&&S.setAttribute("data-rs-theme",$),T||S.setAttribute("data-rs-color-mode",w),()=>{S.removeAttribute("data-rs-theme"),T||S.removeAttribute("data-rs-color-mode")}},[f,w,g,s]);const k=c.useMemo(()=>({theme:f,rootTheme:y,colorMode:w,setTheme:E,setRootTheme:N}),[f,w,E,N,y]);return i.jsx(Kn.Provider,{value:k,children:i.jsx("div",{className:C,ref:s,"data-rs-root":n?!0:void 0,"data-rs-theme":g?void 0:Xn(f),"data-rs-color-mode":g||!r&&!u?void 0:w,children:l})})};Pt.displayName="Theme";const Jn=e=>{const{defaultMode:t,mode:o,scopeRef:r,children:n}=e,[s,l]=c.useState(t),a=mr(),u=c.useCallback(m=>{To(r==null?void 0:r.current).setAttribute("data-rs-color-mode",m),a.mode&&!r&&a.setMode(m),l(m)},[r,a]);be(()=>{gc(),Re(()=>{pc()})},[s,o]),be(()=>{const m=To(r==null?void 0:r.current).getAttribute("data-rs-color-mode");m&&u(m)},[u,r]);const _=c.useMemo(()=>({mode:o||s,setMode:u,invertMode:()=>{u(s==="light"?"dark":"light")}}),[s,o,u]);return i.jsx(_r.Provider,{value:_,children:n})};Jn.displayName="GlobalColorMode";const Ic={root:"_root_hqrz2_1"},Qn=c.createContext({}),Lc=()=>c.useContext(Qn),Rn=e=>{var d;const{children:t,targetRef:o}=e,r=Ct(),n=c.useRef(null),s=(d=n.current)==null?void 0:d.getRootNode(),a=s instanceof ShadowRoot?s:document.body,u=Lc(),_=o||u.scopeRef,m=(_==null?void 0:_.current)||a;return be(()=>(r.activate(),()=>r.deactivate()),[]),[He.createPortal(i.jsx(Pt,{children:t}),m),!r.active&&i.jsx("div",{ref:n,className:Ic.root},"root")]};function es(e){const{children:t,scopeRef:o}=e,r=c.useRef(null),n=o||r;return i.jsx(Qn.Provider,{value:{scopeRef:n},children:t(n)})}Rn.displayName="Portal",es.displayName="PortalScope";const $o=Rn;$o.Scope=es;const vt={content:"_content_7wued_1","--hover":"_--hover_7wued_19","--hover-disabled":"_--hover-disabled_7wued_23",inner:"_inner_7wued_24","--width-trigger":"_--width-trigger_7wued_52","--position-top":"_--position-top_7wued_56","--position-top-end":"_--position-top-end_7wued_57","--position-top-start":"_--position-top-start_7wued_58","--position-bottom":"_--position-bottom_7wued_62","--position-bottom-end":"_--position-bottom-end_7wued_63","--position-bottom-start":"_--position-bottom-start_7wued_64","--position-start":"_--position-start_7wued_78","--position-start-top":"_--position-start-top_7wued_79","--position-start-bottom":"_--position-start-bottom_7wued_80","--position-end":"_--position-end_7wued_84","--position-end-top":"_--position-end-top_7wued_85","--position-end-bottom":"_--position-end-bottom_7wued_86","--visible":"_--visible_7wued_100","--animated":"_--animated_7wued_105"},ts=e=>{const{children:t,className:o,attributes:r}=e,{flyout:n,id:s,flyoutElRef:l,handleTransitionEnd:a,triggerType:u,handleContentMouseEnter:_,handleMouseLeave:m,handleContentMouseDown:d,handleContentMouseUp:h,contentClassName:p,contentAttributes:g,contentMaxHeight:f,contentMaxWidth:y,contentZIndex:x,trapFocusMode:v,disableContentHover:w,autoFocus:C,width:N,isSubmenu:E}=Dt(),{status:k,position:S}=n,[T,$]=c.useState(!1);if(be(()=>{$(!0)},[]),k==="idle"||!T)return null;const M=F(vt.content,u==="hover"&&vt["--hover"],k==="visible"&&vt["--visible"],(zt.status==="cooling"||!zt.timer||E||u!=="hover")&&vt["--animated"],S&&vt[`--position-${S}`],N==="trigger"&&vt["--width-trigger"],u==="hover"&&w&&vt["--hover-disabled"]),L=F(vt.inner,o,p);let P=r==null?void 0:r.role;u==="hover"?P="tooltip":v==="dialog"?P="dialog":v==="selection-menu"?P="listbox":v==="action-menu"?P="menu":v==="action-bar"&&(P="menubar");const A=i.jsx(Nc,{value:{elRef:l},children:i.jsx("div",{className:M,style:{"--rs-flyout-max-h":f,"--rs-flyout-max-w":y,"--rs-flyout-z-index":x},ref:l,onTransitionEnd:a,onMouseEnter:u==="hover"?_:void 0,onMouseLeave:u==="hover"?m:void 0,onMouseDown:d,onTouchStart:d,onMouseUp:h,onTouchEnd:h,children:i.jsx("div",z(b({role:P},r),{id:s,tabIndex:C?void 0:-1,"aria-modal":P==="dialog"?!0:void 0,style:b(b({},r==null?void 0:r.style),g==null?void 0:g.style),className:L,children:t}))})});return i.jsx($o,{children:A})};ts.displayName="Flyout.Content";const os=e=>{const{children:t}=e,{id:o,triggerElRef:r,triggerType:n,flyout:s,handleFocus:l,handleBlur:a,handleTriggerMouseEnter:u,handleMouseLeave:_,handleTouchStart:m,handleClick:d,trapFocusMode:h,isSubmenu:p}=Dt(),g=s.status!=="idle",f={ref:r,"data-rs-flyout-active":g};return(n==="click"||h==="action-menu")&&(f.onClick=d),n==="hover"&&(f.onMouseEnter=u,f.onMouseLeave=_,f.onTouchStart=m),(n==="hover"&&!p||n==="focus")&&(f.onFocus=l,f.onBlur=a,f["aria-describedby"]=g?o:void 0),(n==="click"||n==="focus"||h==="action-menu")&&(h==="dialog"?f["aria-haspopup"]="dialog":h==="selection-menu"?(f["aria-haspopup"]="listbox",f["aria-autocomplete"]="list"):f["aria-haspopup"]="menu",f["aria-expanded"]=g,f["aria-controls"]=g?o:void 0),i.jsx(kc,{value:{elRef:r},children:t(f)})};os.displayName="Flyout.Trigger";const ut=Yn;ut.Trigger=os,ut.Content=ts;const St={root:"_root_1ldab_2",touch:"_touch_1ldab_21","--inset":"_--inset_1ldab_44","--disabled-focus-ring":"_--disabled-focus-ring_1ldab_48","--radius-inherit":"_--radius-inherit_1ldab_52","--disabled":"_--disabled_1ldab_48","--full-width":"_--full-width_1ldab_88"},Le=c.forwardRef((e,t)=>{const h=e,{insetFocus:o,disableFocusRing:r,borderRadius:n,fullWidth:s,touchHitbox:l,children:a,className:u,disabled:_}=h,m=ve(h,["insetFocus","disableFocusRing","borderRadius","fullWidth","touchHitbox","children","className","disabled"]),d=[St.root,u,_&&St["--disabled"],n&&St[`--radius-${n}`],o&&St["--inset"],r&&St["--disabled-focus-ring"],s&&St["--full-width"]];return i.jsxs(xn,z(b({},m),{className:d,disabled:_,ref:t,children:[l&&!_&&i.jsx("span",{className:St.touch}),a]}))});Le.displayName="Actionable";const Mo={root:"_root_1f1sc_15","rs-reshaped-loader":"_rs-reshaped-loader_1f1sc_1",inner:"_inner_1f1sc_44","--color-inherit":"_--color-inherit_1f1sc_63","--color-primary":"_--color-primary_1f1sc_67","--color-positive":"_--color-positive_1f1sc_71","--color-critical":"_--color-critical_1f1sc_75","--size-small":"_--size-small_1f1sc_1","--size-medium":"_--size-medium_1f1sc_1","--size-large":"_--size-large_1f1sc_1","--size-small--m":"_--size-small--m_1f1sc_1","--size-medium--m":"_--size-medium--m_1f1sc_1","--size-large--m":"_--size-large--m_1f1sc_1","--size-small--l":"_--size-small--l_1f1sc_1","--size-medium--l":"_--size-medium--l_1f1sc_1","--size-large--l":"_--size-large--l_1f1sc_1","--size-small--xl":"_--size-small--xl_1f1sc_1","--size-medium--xl":"_--size-medium--xl_1f1sc_1","--size-large--xl":"_--size-large--xl_1f1sc_1"},hr=e=>{const{size:t="small",color:o="primary",className:r,attributes:n}=e,s=e.ariaLabel||(n==null?void 0:n["aria-label"]),l=F(Mo.root,r,ce(Mo,"--size",t),o&&Mo[`--color-${o}`]);return i.jsx("span",z(b({},n),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:Mo.inner})}))};hr.displayName="Loader";const De={root:"_root_xnbdp_5","--loading":"_--loading_xnbdp_59","--highlighted":"_--highlighted_xnbdp_59","--disabled":"_--disabled_xnbdp_59",text:"_text_xnbdp_72",icon:"_icon_xnbdp_78","--icon-position-end":"_--icon-position-end_xnbdp_87",loader:"_loader_xnbdp_99","--icon-only":"_--icon-only_xnbdp_107","--rounded":"_--rounded_xnbdp_125","--size-small":"_--size-small_xnbdp_1","--size-medium":"_--size-medium_xnbdp_1","--size-large":"_--size-large_xnbdp_1","--size-xlarge":"_--size-xlarge_xnbdp_1","--full-width":"_--full-width_xnbdp_174","--variant-solid":"_--variant-solid_xnbdp_186","--color-neutral":"_--color-neutral_xnbdp_187","--color-primary":"_--color-primary_xnbdp_296","--color-critical":"_--color-critical_xnbdp_297","--color-positive":"_--color-positive_xnbdp_298","--color-media":"_--color-media_xnbdp_201","--variant-faded":"_--variant-faded_xnbdp_208","--color-inherit":"_--color-inherit_xnbdp_224","--variant-outline":"_--variant-outline_xnbdp_232","--variant-ghost":"_--variant-ghost_xnbdp_268","--elevated":"_--elevated_xnbdp_288",group:"_group_xnbdp_353",aligner:"_aligner_xnbdp_459","--size-small--m":"_--size-small--m_xnbdp_1","--size-medium--m":"_--size-medium--m_xnbdp_1","--size-large--m":"_--size-large--m_xnbdp_1","--size-xlarge--m":"_--size-xlarge--m_xnbdp_1","--full-width-true--m":"_--full-width-true--m_xnbdp_1","--full-width-false--m":"_--full-width-false--m_xnbdp_1","--size-small--l":"_--size-small--l_xnbdp_1","--size-medium--l":"_--size-medium--l_xnbdp_1","--size-large--l":"_--size-large--l_xnbdp_1","--size-xlarge--l":"_--size-xlarge--l_xnbdp_1","--full-width-true--l":"_--full-width-true--l_xnbdp_1","--full-width-false--l":"_--full-width-false--l_xnbdp_1","--size-small--xl":"_--size-small--xl_xnbdp_1","--size-medium--xl":"_--size-medium--xl_xnbdp_1","--size-large--xl":"_--size-large--xl_xnbdp_1","--size-xlarge--xl":"_--size-xlarge--xl_xnbdp_1","--full-width-true--xl":"_--full-width-true--xl_xnbdp_1","--full-width-false--xl":"_--full-width-false--xl_xnbdp_1"},rs=c.forwardRef((e,t)=>{const{variant:o="solid",color:r="neutral",elevated:n,highlighted:s,fullWidth:l,loading:a,loadingAriaLabel:u,disabled:_,type:m,href:d,size:h="medium",children:p,rounded:g,onClick:f,icon:y,endIcon:x,stopPropagation:v,as:w,render:C,className:N,attributes:E}=e,k=(y||x)&&!p,S=F(De.root,N,r&&De[`--color-${r}`],o&&De[`--variant-${o}`],ce(De,"--size",h),ce(De,"--full-width",l),n&&o!=="ghost"&&De["--elevated"],g&&De["--rounded"],_&&De["--disabled"],a&&De["--loading"],s&&De["--highlighted"],k&&De["--icon-only"]),T=$=>{if(!($==="start"&&y||$==="end"&&x))return null;const A=F(De.icon,$==="end"&&De["--icon-position-end"]),V=de(h,D=>D==="large"?5:D==="xlarge"?6:4);return i.jsx(ge,{className:A,svg:$==="start"?y:x,size:V,autoWidth:!0})};return i.jsxs(Le,{disabled:_||a,className:S,attributes:z(b({},E),{"data-rs-aligner-target":!0}),type:m,onClick:f,href:d,ref:t,as:w,stopPropagation:v,render:C,children:[a&&i.jsx("div",{className:De.loader,children:i.jsx(hr,{color:"inherit",attributes:{"aria-label":u}})}),T("start"),p&&i.jsx("span",{className:De.text,children:p}),T("end")]})});rs.displayName="Button";const ns={root:"_root_1quhz_2","--side-all":"_--side-all_1quhz_7","--side-start":"_--side-start_1quhz_11","--side-inline":"_--side-inline_1quhz_12","--side-end":"_--side-end_1quhz_16","--side-top":"_--side-top_1quhz_21","--side-block":"_--side-block_1quhz_22","--side-bottom":"_--side-bottom_1quhz_26"},to=e=>{const{side:t="all",children:o,className:r,attributes:n}=e,s=typeof t=="string"?[t]:t,l=F(ns.root,s.map(a=>ns[`--side-${a}`]),r);return i.jsx("div",z(b({},n),{className:l,children:o}))};to.displayName="Aligner";const ss=e=>i.jsx(to,z(b({},e),{side:e.side||e.position,className:[De.aligner,e.className]}));ss.displayName="Button.Aligner";const is=e=>{const{children:t,className:o,attributes:r}=e,n=F(De.group,o);return i.jsx("div",z(b({},r),{className:n,role:"group",children:t}))};is.displayName="Button.Group";const Te=rs;Te.Aligner=ss,Te.Group=is;const ls=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),oo={root:"_root_1q0pg_1",close:"_close_1q0pg_9","--variant-media":"_--variant-media_1q0pg_16","--hide-close":"_--hide-close_1q0pg_17","--align-center":"_--align-center_1q0pg_26"},fr=e=>{const{children:t,align:o,onClose:r,hideCloseButton:n,variant:s,closeAriaLabel:l,className:a,attributes:u}=e,_=F(oo.root,a,s&&oo[`--variant-${s}`],o&&oo[`--align-${o}`],n&&oo["--hide-close"]),m=s==="media"?"div":Te.Aligner;return i.jsxs("div",z(b({},u),{className:_,children:[t,!n&&i.jsx(m,{className:oo.close,children:i.jsx(Te,z(b({size:"small"},s==="media"?{color:"media",variant:"faded"}:{variant:"ghost"}),{onClick:()=>r==null?void 0:r(),attributes:{"aria-label":r?l:void 0},icon:ls}))})]}))};fr.displayName="Dismissible";const ro={content:"_content_ymj03_1","content--variant-elevated":"_content--variant-elevated_ymj03_9","content--elevation-raised":"_content--elevation-raised_ymj03_16","content--variant-headless":"_content--variant-headless_ymj03_20","content--radius-small":"_content--radius-small_ymj03_24","content--has-width":"_content--has-width_ymj03_28"},as=e=>{var p,g;const h=e,{width:t,variant:o="elevated",triggerType:r="click",position:n="bottom",elevation:s,borderRadius:l}=h,a=ve(h,["width","variant","triggerType","position","elevation","borderRadius"]),u=(p=e.padding)!=null?p:o==="headless"?0:4,_=(g=e.trapFocusMode)!=null?g:r==="hover"?"content-menu":void 0,m=Qe({padding:u}),d=F(ro.content,!!t&&ro["content--has-width"],o&&ro[`content--variant-${o}`],s&&ro[`content--elevation-${s}`],l&&ro[`content--radius-${l}`],m.classNames);return i.jsx(ut,z(b({},a),{position:n,trapFocusMode:_,triggerType:r,width:t,contentClassName:d,contentAttributes:{style:b({},m.variables)}}))},cs=e=>{const{handleClose:t}=Dt();return i.jsx(fr,z(b({},e),{onClose:()=>t({})}))};as.displayName="Popover",cs.displayName="Popover.Dismissible";const _t=as;_t.Dismissible=cs,_t.Trigger=ut.Trigger,_t.Content=ut.Content;const st={root:"_root_44o4b_1",icon:"_icon_44o4b_22",content:"_content_44o4b_27","--rounded-corners":"_--rounded-corners_44o4b_32","--size-small":"_--size-small_44o4b_1","--size-medium":"_--size-medium_44o4b_1","--size-large":"_--size-large_44o4b_1","--color-neutral":"_--color-neutral_44o4b_74","--selected":"_--selected_44o4b_77","--highlighted":"_--highlighted_44o4b_79","--color-critical":"_--color-critical_44o4b_90","--color-primary":"_--color-primary_44o4b_106","--disabled":"_--disabled_44o4b_133",aligner:"_aligner_44o4b_154","--rounded-corners-true--m":"_--rounded-corners-true--m_44o4b_1","--rounded-corners-false--m":"_--rounded-corners-false--m_44o4b_1","--size-small--m":"_--size-small--m_44o4b_1","--size-medium--m":"_--size-medium--m_44o4b_1","--size-large--m":"_--size-large--m_44o4b_1","--rounded-corners-true--l":"_--rounded-corners-true--l_44o4b_1","--rounded-corners-false--l":"_--rounded-corners-false--l_44o4b_1","--size-small--l":"_--size-small--l_44o4b_1","--size-medium--l":"_--size-medium--l_44o4b_1","--size-large--l":"_--size-large--l_44o4b_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_44o4b_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_44o4b_1","--size-small--xl":"_--size-small--xl_44o4b_1","--size-medium--xl":"_--size-medium--xl_44o4b_1","--size-large--xl":"_--size-large--xl_44o4b_1"},ds=c.forwardRef((e,t)=>{const{icon:o,startSlot:r,endSlot:n,children:s,color:l="primary",selected:a,highlighted:u,disabled:_,onClick:m,href:d,size:h="medium",roundedCorners:p,stopPropagation:g,as:f,render:y,className:x,attributes:v}=e,w=F(st.root,x,ce(st,"--size",h),ce(st,"--rounded-corners",p),l&&st[`--color-${l}`],a&&st["--selected"],_&&st["--disabled"],u&&st["--highlighted"]),C=de(h,E=>E==="large"?3:2),N=de(h,E=>E==="large"?5:4);return i.jsx(Le,{disabled:_,className:w,attributes:z(b({},v),{"data-rs-aligner-target":!0}),onClick:m,href:d,ref:t,as:f,stopPropagation:g,render:y,children:i.jsxs(O,{direction:"row",gap:C,align:"center",children:[o&&i.jsx(ge,{svg:o,className:st.icon,size:N}),!o&&r,s&&i.jsx(O.Item,{grow:!0,className:st.content,children:s}),n]})})});ds.displayName="MenuItem";const us=e=>i.jsx(to,z(b({},e),{side:e.side||"inline",className:[st.aligner,e.className]}));us.displayName="MenuItem.Aligner";const br=ds;br.Aligner=us;const Dc="Enter",no="ArrowUp",so="ArrowDown",io="ArrowRight",lo="ArrowLeft",Pc="Backspace",Ft=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Io={menu:"_menu_f04ws_1",section:"_section_f04ws_5",item:"_item_f04ws_11",arrow:"_arrow_f04ws_19"},gr=c.createContext(null),_s=c.createContext(!1),pr=e=>{const a=e,{children:t,position:o="bottom-start",triggerType:r="click",trapFocusMode:n="action-menu",borderRadius:s="small"}=a,l=ve(a,["children","position","triggerType","trapFocusMode","borderRadius"]);return i.jsx(_t,z(b({},l),{position:o,padding:0,trapFocusMode:n,triggerType:r,borderRadius:s,disableHideAnimation:r!=="hover",children:t}))},ms=e=>{const{children:t,attributes:o,className:r}=e,{flyout:n}=Dt(),s=c.useContext(gr),[l]=pt(),{ref:a}=Ge({[l?io:lo]:()=>{var m;(m=s==null?void 0:s.current)==null||m.close()}},[s==null?void 0:s.current],{disabled:n.status==="idle",ref:o==null?void 0:o.ref}),u=F(Io.menu,r),_=m=>{var d;m.stopPropagation(),(d=o==null?void 0:o.onClick)==null||d.call(o,m)};return i.jsx(_t.Content,{className:u,attributes:z(b({},o),{ref:a,onClick:_}),children:t})},hs=e=>{const{children:t}=e;return i.jsx("div",{className:Io.section,role:"group",children:t})},vr=e=>{const{onClick:t}=e,{handleClose:o}=Dt(),r=c.useContext(_s),n=s=>{o&&!r&&o({closeParents:!0,reason:"item-selection"}),t&&t(s)};return i.jsx(br,z(b({},e),{roundedCorners:!0,className:[Io.item,e.className],attributes:b({role:"menuitem"},e.attributes),onClick:n}))},fs=e=>{const l=e,{children:t,position:o="end-top",contentGap:r=.5}=l,n=ve(l,["children","position","contentGap"]),s=c.useRef(null);return i.jsx(gr.Provider,{value:s,children:i.jsx(pr,z(b({},n),{triggerType:"hover",position:o,contentGap:r,instanceRef:s,children:t}))})},Fc=e=>{const a=e,{children:t,attributes:o}=a,r=ve(a,["children","attributes"]),n=c.useContext(gr),[s]=pt(),{ref:l}=Ge({[s?lo:io]:()=>{var u;(u=n==null?void 0:n.current)==null||u.open()}},[],{ref:o==null?void 0:o.ref,preventDefault:!0});return i.jsx(vr,z(b({},r),{attributes:z(b({},o),{ref:l}),endSlot:i.jsx(ge,{autoWidth:!0,svg:Ft,className:Io.arrow}),children:t}))},bs=e=>{const r=e,{attributes:t}=r,o=ve(r,["attributes"]);return i.jsx(_s.Provider,{value:!0,children:i.jsx(_t.Trigger,{children:n=>i.jsx(Fc,z(b({},o),{attributes:b(b({},t),n)}))})})};pr.displayName="DropdownMenu",ms.displayName="DropdownMenu.Content",hs.displayName="DropdownMenu.Section",vr.displayName="DropdownMenu.Item",fs.displayName="DropdownMenu.SubMenu",bs.displayName="DropdownMenu.SubTrigger";const ke=pr;ke.Dismissible=_t.Dismissible,ke.Trigger=_t.Trigger,ke.Content=ms,ke.Section=hs,ke.Item=vr,ke.SubMenu=fs,ke.SubTrigger=bs;const gs=c.createContext({attributes:{}}),Ac=gs.Provider,ao=()=>c.useContext(gs),et=()=>{const{attributes:e,required:t,hasError:o,disabled:r}=ao();return{attributes:e,required:t,hasError:o,disabled:r}},yr=(e,t)=>`${e}-${t||"caption"}`,ps=e=>{const{children:t,id:o,required:r,hasError:n,group:s,disabled:l,size:a}=e,u=Ke(o),_=s?"fieldset":"div",[m,d]=c.useState(!1),[h,p]=c.useState(!1),g=[m&&yr(u),h&&yr(u,"error")].filter(Boolean).join(" "),f={id:u,"aria-describedby":g},y=()=>{p(!0)},x=()=>{d(!0)};return i.jsx(_,{children:i.jsx(Ac,{value:{required:r,hasError:n,errorRef:y,helperRef:x,attributes:f,group:s,disabled:l,size:a},children:t})})};ps.displayName="FormControl";const vs={label:"_label_1v514_5",caption:"_caption_1v514_14"},ys=e=>{const{children:t,variant:o,disabled:r}=e,{attributes:n,size:s,helperRef:l,errorRef:a}=ao(),u=yr(n.id,o),_=o==="error"?"critical":"neutral-faded",m=o==="error"?a:l;return i.jsx(ie,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!o?"disabled":_,attributes:{id:u,role:"alert","aria-disabled":r,ref:m},className:vs.caption,children:t})},xs=e=>{const{children:t}=e,{hasError:o}=ao();return o?i.jsx(ys,{variant:"error",children:t}):null};xs.displayName="FormControl.Error";const ws=e=>{const{children:t}=e,{disabled:o}=ao();return i.jsx(ys,{disabled:o,children:t})};ws.displayName="FormControl.Helper";const Cs=e=>{const{children:t}=e,{attributes:o,required:r,group:n,disabled:s,size:l}=ao(),a=`${o.id}-label`,u=n?"legend":"label";return i.jsxs(ie,{variant:l==="large"?"body-2":"body-3",weight:"medium",className:vs.label,color:s?"disabled":void 0,"aria-disabled":s,children:[i.jsx(u,{id:a,htmlFor:n?void 0:o.id,children:t}),r&&i.jsx(ie,{color:s?"disabled":"critical",as:"span",children:"*"})]})};Cs.displayName="FormControl.Label";const Lo=ps;Lo.Label=Cs,Lo.Helper=ws,Lo.Error=xs;const Fe={root:"_root_pbcul_1",icon:"_icon_pbcul_23","--focused":"_--focused_pbcul_24","--multiline":"_--multiline_pbcul_28",input:"_input_pbcul_31","--rounded":"_--rounded_pbcul_36",affix:"_affix_pbcul_39",inner:"_inner_pbcul_50",slot:"_slot_pbcul_90","icon--position-end":"_icon--position-end_pbcul_103","affix--position-end":"_affix--position-end_pbcul_104","slot--position-end":"_slot--position-end_pbcul_105","slot--position-start":"_slot--position-start_pbcul_109","affix--position-start":"_affix--position-start_pbcul_120","--disabled":"_--disabled_pbcul_145","--size-small":"_--size-small_pbcul_1","--size-medium":"_--size-medium_pbcul_1","--size-large":"_--size-large_pbcul_1","--size-xlarge":"_--size-xlarge_pbcul_1","--variant-faded":"_--variant-faded_pbcul_203","--variant-ghost":"_--variant-ghost_pbcul_209","--variant-headless":"_--variant-headless_pbcul_215","--status-error":"_--status-error_pbcul_222","--size-small--m":"_--size-small--m_pbcul_1","--size-medium--m":"_--size-medium--m_pbcul_1","--size-large--m":"_--size-large--m_pbcul_1","--size-xlarge--m":"_--size-xlarge--m_pbcul_1","--size-small--l":"_--size-small--l_pbcul_1","--size-medium--l":"_--size-medium--l_pbcul_1","--size-large--l":"_--size-large--l_pbcul_1","--size-xlarge--l":"_--size-xlarge--l_pbcul_1","--size-small--xl":"_--size-small--xl_pbcul_1","--size-medium--xl":"_--size-medium--xl_pbcul_1","--size-large--xl":"_--size-large--xl_pbcul_1","--size-xlarge--xl":"_--size-xlarge--xl_pbcul_1"},ks=e=>{const{slot:t,icon:o,size:r,affix:n,position:s,id:l}=e;if(!o&&!t&&!n)return null;const a=c.isValidElement(t)&&t.type===c.Fragment?t.props.children:t,u=t&&c.Children.map(a,h=>i.jsx("div",{className:F(Fe.slot,Fe[`slot--position-${s}`]),children:h},"slot")),_=o&&i.jsx("label",{className:F(Fe.icon,Fe[`icon--position-${s}`]),htmlFor:l,children:i.jsx(ge,{size:de(r,h=>h==="large"?5:h==="xlarge"?6:4),svg:o,autoWidth:!0})},"icon"),m=n&&i.jsx("span",{className:F(Fe.affix,Fe[`affix--position-${s}`]),children:n},"affix");return(s==="start"?[_,u,m]:[_,m,u]).filter(Boolean)},Ns=e=>{var V;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,icon:u,endIcon:_,startSlot:m,endSlot:d,startSlotPadding:h,endSlotPadding:p,prefix:g,suffix:f,size:y="medium",variant:x="outline",focused:v,multiline:w,rounded:C,className:N,attributes:E}=e,k=et(),S=Ke(e.id),T=(k==null?void 0:k.attributes.id)||((V=e.inputAttributes)==null?void 0:V.id)||S,$=(k==null?void 0:k.disabled)||e.disabled,M=(k==null?void 0:k.hasError)||e.hasError,L=b(b({},e.inputAttributes),k==null?void 0:k.attributes),P=F(Fe.root,N,y&&ce(Fe,"--size",y),M&&Fe["--status-error"],$&&Fe["--disabled"],v&&Fe["--focused"],w&&Fe["--multiline"],C&&Fe["--rounded"],x&&Fe[`--variant-${x}`]),A=D=>{t&&t({name:n,value:D.target.value,event:D})};return i.jsxs("div",z(b({},E),{style:z(b({},E==null?void 0:E.style),{"--rs-text-field-start-slot-padding":h!==void 0&&h>=0?`calc(var(--rs-unit-x1) * ${h})`:void 0,"--rs-text-field-end-slot-padding":p!==void 0&&p>=0?`calc(var(--rs-unit-x1) * ${p})`:void 0}),"data-rs-aligner-target":!0,className:P,children:[i.jsx(ks,{position:"start",icon:u,slot:m,size:y,affix:g,id:S}),i.jsxs("div",{className:Fe.inner,children:[i.jsx("input",z(b({type:"text",autoComplete:"off"},L),{className:F(Fe.input,L.className),disabled:$,name:n,placeholder:a,value:s,defaultValue:l,onChange:A,onFocus:o||(L==null?void 0:L.onFocus),onBlur:r||(L==null?void 0:L.onBlur),id:T})),i.jsx(ks,{position:"end",icon:_,slot:d,size:y,affix:f,id:S})]})]}))};Ns.displayName="TextField";const Do=Ns;Do.Aligner=to;const Vc={"item--disabled":"_item--disabled_1vi4i_1"},zs=c.createContext({}),Ss=e=>{var se;const oe=e,{children:t,onChange:o,onInput:r,onItemSelect:n,name:s,containerRef:l,instanceRef:a,onBackspace:u,onEnter:_,active:m,onOpen:d,onClose:h,fallbackAdjustLayout:p,fallbackMinWidth:g,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x}=oe,v=ve(oe,["children","onChange","onInput","onItemSelect","name","containerRef","instanceRef","onBackspace","onEnter","active","onOpen","onClose","fallbackAdjustLayout","fallbackMinWidth","fallbackMinHeight","contentMaxHeight","contentZIndex"]),[w,C]=c.useState(),N=Ne(u),E=c.useRef(null),k=c.useRef(null),S=(se=v.inputAttributes)==null?void 0:se.ref,T=S&&typeof S!="string"&&"current"in S?S:k,[$,M]=c.useState(!1),L=!!c.Children.toArray(t).filter(Boolean).length,P=c.useRef(!1),A=Ne(d),V=Ne(h),D=Ne(o),j=Ne(n),W=Ne(_),re=L&&(m!=null?m:$),X=c.useCallback(()=>{P.current=!0,setTimeout(()=>{P.current=!1},100)},[]),J=c.useCallback(()=>{var B;P.current||(M(!0),(B=A.current)==null||B.call(A))},[A]),U=B=>{var Y;M(!1),(Y=V.current)==null||Y.call(V,B)},te=c.useCallback(B=>{var Y,Q;(Y=D.current)==null||Y.call(D,{value:B.value,name:s}),(Q=j.current)==null||Q.call(j,B),X()},[X,D,j,s]),G=B=>{o==null||o(B),J()},ee=B=>{var Y,Q;r==null||r({value:B.currentTarget.value,name:s,event:B}),(Q=(Y=v.inputAttributes)==null?void 0:Y.onInput)==null||Q.call(Y,B)},$e=()=>{var B;X(),(B=T.current)==null||B.focus()},_e=c.useCallback(()=>{const B=E.current;return B?Array.from(B.querySelectorAll("[role=option]:not([disabled])")):[]},[]);Ge({[Dc]:()=>{var Q;const Y=_e().find(fe=>fe.id===w);Y==null||Y.click(),(Q=W.current)==null||Q.call(W)},[Pc]:()=>{var B;(B=N.current)==null||B.call(N)}},[_e,W,N,w],{ref:T}),Ge({[no]:()=>{const B=_e();if(B.length){const Y=B.findIndex(fe=>fe.id===w),Q=B.at(Y-1)||B.at(-1);C(Q.id)}},[so]:()=>{J();const B=_e();if(B.length){const Y=B.findIndex(fe=>fe.id===w),Q=B.at(Y+1)||B.at(0);C(Q.id)}}},[J,_e,w],{ref:T,preventDefault:!0}),be(()=>{re&&requestAnimationFrame(()=>{var Q;const Y=(Q=_e()[0])==null?void 0:Q.id;Y&&C(Y)})},[re]);const ne=c.useMemo(()=>({onItemClick:te,highlightedId:w,setHighlightedId:C}),[w,te]);return i.jsx(zs.Provider,{value:ne,children:i.jsxs(ke,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:!1,active:re,onClose:U,onOpen:J,containerRef:l,fallbackAdjustLayout:p,fallbackMinWidth:g,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x,disableHideAnimation:!0,instanceRef:a,children:[i.jsx(ke.Trigger,{children:Q=>{var fe=Q,{ref:B}=fe,Y=ve(fe,["ref"]);return i.jsx(Do,z(b({},v),{name:s,onChange:G,focused:re,attributes:z(b({},v.attributes),{ref:B,onClick:Y.onFocus}),inputAttributes:z(b(b({},v.inputAttributes),Y),{onFocus:Z=>{var K,le,ae;(K=Y.onFocus)==null||K.call(Y),(le=v.onFocus)==null||le.call(v,Z),P.current||(ae=T.current)==null||ae.select()},onInput:ee,onClick:Y.onFocus,ref:T,role:"combobox","aria-activedescendant":w,"aria-haspopup":"listbox","aria-autocomplete":"list"})}))}}),i.jsx(ke.Content,{attributes:{onClick:$e,role:"listbox",ref:E},children:t})]})})},Es=e=>{const d=e,{value:t,data:o,onClick:r,disabled:n}=d,s=ve(d,["value","data","onClick","disabled"]),{onItemClick:l,highlightedId:a}=c.useContext(zs),u=Ke(),_=a===u,m=h=>{r==null||r(h),l({value:t,data:o})};return i.jsx(ke.Item,z(b({},s),{className:[n&&Vc["item--disabled"],s.className],highlighted:_,disabled:n,attributes:z(b({},s.attributes),{role:"option",id:u,tabIndex:_?0:-1}),onClick:m}))};Ss.displayName="Autocomplete",Es.displayName="Autocomplete.Item";const Ts=Ss;Ts.Item=Es;const co={root:"_root_1eg8e_1",image:"_image_1eg8e_5",fallback:"_fallback_1eg8e_17","--outline":"_--outline_1eg8e_25","image--display-mode-cover":"_image--display-mode-cover_1eg8e_37","image--display-mode-contain":"_image--display-mode-contain_1eg8e_41"},xr=e=>{const{src:t,alt:o,width:r,maxWidth:n,height:s,aspectRatio:l,onLoad:a,onError:u,fallback:_,outline:m,displayMode:d="cover",borderRadius:h,className:p,attributes:g,imageAttributes:f,renderImage:y}=e,[x,v]=c.useState("loading"),w=Qe({radius:h,width:r,height:s,maxWidth:n,aspectRatio:l}),C=F(co.root,w.classNames,m&&co["--outline"],p),N=F([co.image,d&&co[`image--display-mode-${d}`]]),E=(x==="error"||!t)&&!!_,k=b(b({},g==null?void 0:g.style),w.variables),S=L=>{var P;v("success"),a==null||a(L),(P=f==null?void 0:f.onLoad)==null||P.call(f,L)},T=L=>{var P;v("error"),u==null||u(L),(P=f==null?void 0:f.onError)==null||P.call(f,L)};if(c.useEffect(()=>{v("loading")},[t]),E){if(typeof _=="string"){const L=z(b({},g),{src:_!=null?_:"",alt:o!=null?o:"",role:o?void 0:"presentation",className:C,style:k});return y?y(L):i.jsx("img",b({},L))}return i.jsx("div",z(b({},g),{className:F([co.fallback,C]),style:k,children:_}))}const $=z(b(b({},g),f),{src:t!=null?t:"",alt:o!=null?o:"",role:o?void 0:"presentation",onLoad:S,onError:T,className:m?N:F([N,C]),style:k}),M=y?y($):i.jsx("img",b({},$));return m?i.jsx("div",z(b({},g),{className:C,style:k,children:M})):M};xr.displayName="Image";const wr={root:"_root_1de3p_1","--variant-faded":"_--variant-faded_1de3p_13","--color-neutral":"_--color-neutral_1de3p_14","--color-critical":"_--color-critical_1de3p_18","--color-positive":"_--color-positive_1de3p_22","--color-warning":"_--color-warning_1de3p_26","--color-primary":"_--color-primary_1de3p_30"},$s=e=>{const{color:t="neutral",variant:o,src:r,size:n=12,squared:s,initials:l,icon:a,className:u,renderImage:_,imageAttributes:m,attributes:d}=e,h=e.alt||(m==null?void 0:m.alt),p=s?de(n,y=>y>=24?"large":y>=12?"medium":"small"):"circular";if(r)return i.jsx(xr,{src:r,alt:h,renderImage:_,outline:!0,borderRadius:p,width:n,aspectRatio:1,className:u,attributes:d,imageAttributes:m});const g=Qe({height:n}),f=F(wr.root,u,g==null?void 0:g.classNames,t&&wr[`--color-${t}`],o&&wr[`--variant-${o}`]);return i.jsx(O,{borderRadius:p,attributes:z(b({},d),{style:b({},g==null?void 0:g.variables)}),backgroundColor:o==="faded"?`${t}-${o}`:t,className:f,children:a?i.jsx(ge,{svg:a,size:de(n,y=>Math.ceil(y*.4))}):l})};$s.displayName="Avatar";const Ae={root:"_root_4et1e_1","--empty":"_--empty_4et1e_24",icon:"_icon_4et1e_32",dismiss:"_dismiss_4et1e_38","--highlighted":"_--highlighted_4et1e_44","--actionable":"_--actionable_4et1e_49","--variant-faded":"_--variant-faded_4et1e_1","--variant-outline":"_--variant-outline_4et1e_1","--color-positive":"_--color-positive_4et1e_68","--color-critical":"_--color-critical_4et1e_87","--color-warning":"_--color-warning_4et1e_106","--color-primary":"_--color-primary_4et1e_125","--size-small":"_--size-small_4et1e_1","--size-medium":"_--size-medium_4et1e_1","--size-large":"_--size-large_4et1e_1","--rounded":"_--rounded_4et1e_170","--hidden":"_--hidden_4et1e_174",container:"_container_4et1e_181","--container-overlap":"_--container-overlap_4et1e_207","--container-position-top-end":"_--container-position-top-end_4et1e_211","--container-position-bottom-end":"_--container-position-bottom-end_4et1e_223"},Ms=c.forwardRef((e,t)=>{const{children:o,color:r,rounded:n,size:s="medium",icon:l,endIcon:a,variant:u,hidden:_,highlighted:m,href:d,onClick:h,onDismiss:p,dismissAriaLabel:g,className:f,attributes:y,as:x}=e,v=!!(h||d),w=s==="small"?3:4,C=!o&&!l&&!a,N=F(Ae.root,f,n&&Ae["--rounded"],_&&Ae["--hidden"],s&&Ae[`--size-${s}`],r&&Ae[`--color-${r}`],u&&Ae[`--variant-${u}`],v&&Ae["--actionable"],m&&Ae["--highlighted"],C&&Ae["--empty"]),E=k=>{k.stopPropagation(),p==null||p()};return i.jsxs(Le,{onClick:h,href:d,className:N,attributes:y,ref:t,as:x,touchHitbox:v,children:[l&&i.jsx(ge,{svg:l,autoWidth:!0,size:w,className:Ae.icon}),o&&i.jsx(ie,{variant:s==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":_?"true":void 0},children:o}),a&&i.jsx(ge,{svg:a,autoWidth:!0,size:w,className:Ae.icon}),p&&i.jsx(Le,{onClick:E,className:Ae.dismiss,as:"span",attributes:{"aria-label":g},touchHitbox:!0,children:i.jsx(ge,{svg:ls,size:w})})]})});Ms.displayName="Badge";const Is=e=>{const{children:t,position:o="top-end",overlap:r,className:n,attributes:s}=e,l=F(Ae.container,n,r&&Ae["--container-overlap"],o&&Ae[`--container-position-${o}`]);return i.jsx("div",z(b({},s),{className:l,children:t}))};Is.displayName="Badge.Container";const Ls=Ms;Ls.Container=Is;const Ds=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Ps=e=>{const{children:t,separator:o,color:r,defaultVisibleItems:n,expandAriaLabel:s,disableExpand:l,ariaLabel:a,className:u,attributes:_}=e,m=n&&n>=2?n:null,[d,h]=c.useState(!1),p=F(u),g=c.Children.count(t);let f=0;const y=()=>{h(!0)};return i.jsx("nav",z(b({},_),{"aria-label":a||(_==null?void 0:_["aria-label"]),className:p,children:i.jsx(O,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,v)=>{if(!x)return null;const w=g-(m||0),C=f===0,N=f>w,E=!m||C||N||d,k=f===w;f+=1;let S=null;return E?S=x:k&&(S=l?i.jsx(ge,{svg:Ds,size:4}):i.jsx(Te.Aligner,{children:i.jsx(Te,{variant:"ghost",size:"small",icon:Ds,onClick:y,attributes:{"aria-label":s}})})),S===null?null:i.jsxs(O,{as:"li",gap:2,direction:"row",align:"center",children:[v>0&&(E||k)&&i.jsx(ie,{color:"neutral-faded",children:o||i.jsx(ge,{svg:Ft,size:3})}),i.jsx(ie,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:S})]},v)})})}))};Ps.displayName="Breadcrumbs";const uo={root:"_root_x1qvh_1","--color-primary":"_--color-primary_x1qvh_6","--color-critical":"_--color-critical_x1qvh_10","--color-positive":"_--color-positive_x1qvh_14","--color-warning":"_--color-warning_x1qvh_18","--color-inherit":"_--color-inherit_x1qvh_22","--variant-plain":"_--variant-plain_x1qvh_27","--disabled":"_--disabled_x1qvh_32","--variant-underline":"_--variant-underline_x1qvh_39","--with-icon":"_--with-icon_x1qvh_57"},Cr=c.forwardRef((e,t)=>{const{icon:o,disabled:r,href:n,color:s="primary",variant:l="underline",className:a,children:u,attributes:_,type:m,onClick:d,stopPropagation:h,render:p}=e,g=F(uo.root,a,r&&uo["--disabled"],l&&uo[`--variant-${l}`],s&&uo[`--color-${s}`],o&&uo["--with-icon"]);return i.jsxs(Le,{href:n,disabled:r,className:g,attributes:_,type:m,onClick:d,ref:t,stopPropagation:h,render:p,children:[o&&i.jsx(ge,{svg:o}),u]})});Cr.displayName="Link";const Fs=e=>{const{children:t,onClick:o,href:r,icon:n,disabled:s}=e;return!r&&!o&&!s?i.jsx(ie,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Cr,{onClick:o,href:r,icon:n,disabled:s,variant:"plain",color:"inherit",children:t})};Fs.displayName="Breadcrumbs.Item";const As=Ps;As.Item=Fs;const Vs=7,Bs=1,it=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},kr=e=>{const{date:t,firstWeekDay:o=Bs}=e,r=t.getDay();return r<o?Vs-r-o:r-o},Bc=e=>{const{firstWeekDay:t=Bs,renderWeekDay:o}=e,r=new Date(2021,1,t),n=[];for(let s=t;s<t+Vs;s++){const l=o?o({weekDay:s,date:r}):r.toLocaleDateString("en-US",{weekday:"short"});n.push(l.slice(0,2)),r.setDate(r.getDate()+1)}return n},jc=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((o,r)=>{const n=new Date(0,r);return t?t({month:r,date:n}):n.toLocaleString("default",{month:"short"})})},Hc=e=>{const{date:t,firstWeekDay:o}=e,r=t.getMonth(),n=t.getFullYear(),s=[],l=new Date(n,r,1),a=kr({date:l,firstWeekDay:o});for(a!==0&&s.push(new Array(a).fill(null));r===l.getMonth();)(kr({date:l,firstWeekDay:o})===0||!s.length)&&s.push([]),s[s.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const u=kr({date:l,firstWeekDay:o});return u!==0&&s[s.length-1].push(...new Array(7-u).fill(null)),s},js=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],Nr=(e,t)=>{const o=new Date(e);return o.setMonth(t),o},Oc=e=>Nr(e,e.getMonth()-1),Hs=e=>Nr(e,e.getMonth()+1),Os=(e,t)=>{const o=new Date(e);return o.setFullYear(t),o},Wc=e=>Os(e,e.getFullYear()-1),qc=e=>Os(e,e.getFullYear()+1),Uc=e=>{const{date:t,min:o,max:r}=e,n=t.getMonth(),s=t.getFullYear(),l=new Date(s,n,0),a=Hs(t);return a.setDate(0),{isFirstMonth:o&&o>l,isLastMonth:r&&r<a}},zr=(e,t)=>e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Yc=e=>{const{date:t,startValue:o,lastFocusedDate:r}=e,n=new Date,s=it({date:t}),l=it({date:n}),a=o&&it({date:o}),u=r&&it({date:r});return r&&zr(t,r)?s===u:o&&zr(t,o)?s===a:zr(t,n)?s===l:!0},Kc={root:"_root_p9kz2_1"},Po=e=>{const{children:t}=e;return i.jsx("div",{className:Kc.root,children:t})};Po.displayName="HiddenVisually";const Fo=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})}),Oe={selection:"_selection_1iezs_1",weekday:"_weekday_1iezs_6",control:"_control_1iezs_12",cell:"_cell_1iezs_16","cell-button":"_cell-button_1iezs_21","--active":"_--active_1iezs_26","--selection-range":"_--selection-range_1iezs_31","--selection-start":"_--selection-start_1iezs_37","--selection-end":"_--selection-end_1iezs_47"},Ws=e=>{const{selectionMode:t,onMonthTitleClick:o,monthTitleRef:r,monthDate:n,renderSelectedMonthLabel:s,hidePrevious:l,hideNext:a,onNextClick:u,onPreviousClick:_,monthSelectionAriaLabel:m="Select a month",previousMonthAriaLabel:d="Previous month",previousYearAriaLabel:h="Previous year",nextMonthAriaLabel:p="Next month",nextYearAriaLabel:g="Next year"}=e,f=c.useRef(null),y=c.useRef(null);return c.useEffect(()=>{if(!l||document.activeElement!==f.current)return;const x=y.current||(r==null?void 0:r.current);Re(()=>{x==null||x.focus()})},[l,r]),c.useEffect(()=>{if(!a||document.activeElement!==y.current)return;const x=f.current||(r==null?void 0:r.current);Re(()=>{x==null||x.focus()})},[a,r]),i.jsxs(O,{direction:"row",gap:2,align:"center",children:[i.jsx(kt,{visibility:!0,hide:l,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Fo,onClick:_,attributes:{ref:f,"aria-label":t==="date"?d:h}})})}),i.jsxs(O.Item,{grow:!0,children:[t==="date"&&i.jsxs(Te,{fullWidth:!0,variant:"ghost",onClick:o,attributes:{ref:r},children:[s?s({date:n}):n.toLocaleDateString("en-US",{month:"long",year:"numeric"}),i.jsx(Po,{children:m})]}),t==="month"&&i.jsx(ie,{align:"center",weight:"medium",children:n.toLocaleDateString("en-US",{year:"numeric"})})]}),i.jsx(kt,{visibility:!0,hide:a,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Ft,onClick:u,attributes:{ref:y,"aria-label":t==="date"?p:g}})})})]})};Ws.displayName="CalendarControls";const qs=e=>{const{date:t,isoDate:o,startValue:r,endValue:n,disabled:s,focusable:l,onChange:a,range:u,hoveredDate:_,onDateHover:m,onDateHoverEnd:d,onDateFocus:h,selectedDates:p,disabledDates:g,renderAriaLabel:f,renderSlot:y}=e;if(!t)return i.jsx("td",{className:Oe.cell,"aria-hidden":"true"});const x=r&&it({date:r}),v=n&&it({date:n}),w=!!(o&&x&&o===x),C=!!(o&&v&&o===v),N=!!(o&&x&&o>x),E=!!(o&&v&&o<v),k=!!(_&&!n&&_>t),S=!!(p!=null&&p.some(D=>it({date:D})===o)),T=s||(g==null?void 0:g.some(D=>it({date:D})===o));let $;switch(!0){case(N&&k):case(N&&E):$="range";break;case(w&&(!u||C)):case S:$="standalone";break;case w:$="start";break;case C:$="end";break}const M=F([Oe.cell,$&&Oe["--active"],$&&Oe[`--selection-${$}`]]),L=()=>{if(!u){a==null||a({value:t});return}const D=r&&n,j=!r&&!n,W=r&&t<r,re=D||j||W,X=re?t:r,J=re?null:t;a==null||a({value:{start:X,end:J}})},P=()=>{m(t)},A=()=>{d(t)},V=()=>{P(),h(t)};return i.jsx("td",{className:M,role:T?"presentation":"gridcell",children:i.jsxs(Le,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:T,onClick:L,attributes:{role:"checkbox",tabIndex:l?0:-1,"aria-hidden":T,"aria-label":f?f({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":!!$,"data-rs-date":it({date:t}),onMouseEnter:P,onMouseLeave:A,onFocus:V,onBlur:A},children:[t.getDate(),y==null?void 0:y({date:t,selected:!!($&&$!=="range")})]})})};qs.displayName="CalendarDate";const Us=e=>{const{date:t,value:o,onChange:r,min:n,max:s,range:l,firstWeekDay:a,selectedDates:u,disabledDates:_,hoveredDate:m,onDateHover:d,onDateHoverEnd:h,renderWeekDay:p,renderDateAriaLabel:g,renderDateSlot:f}=e;let y=!1;const[x,v]=c.useState(),w=t.getMonth(),C=Hc({date:t,firstWeekDay:a}),N=Bc({firstWeekDay:a,renderWeekDay:p});return i.jsxs("table",{className:Oe.selection,role:"grid",children:[i.jsx("thead",{"aria-hidden":"true",children:i.jsx("tr",{children:N.map(E=>i.jsx("th",{className:Oe.weekday,scope:"col",children:E},E))})}),i.jsx("tbody",{children:C.map(E=>{var S;const k=[w,(S=E[0])==null?void 0:S.getDate()].filter(Boolean).join("-");return i.jsx("tr",{className:Oe.row,children:E.map((T,$)=>{const M=!!T&&(n&&T<n||s&&T>s),L=o&&"start"in o?o.start:o,P=o&&"end"in o?o.end:o,A=T&&it({date:T}),V=M?!1:!y&&!!T&&Yc({date:T,lastFocusedDate:x,startValue:L});return V&&(y=!0),i.jsx(qs,{date:T,isoDate:A,disabled:M,range:l,focusable:V,startValue:L,endValue:P,onChange:r,hoveredDate:m,onDateHover:d,onDateHoverEnd:h,onDateFocus:v,renderAriaLabel:g,selectedDates:u,disabledDates:_,renderSlot:f},$)})},k)})})]})};Us.displayName="CalendarMonth";const Sr=3,Ys=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:o,monthDate:r,min:n,max:s,onMonthClick:l}=e,a=c.useRef(null),u=jc({renderMonthLabel:t}),_=[];for(let m=0;m<u.length;m+=Sr){const d=u.slice(m,m+Sr);_.push(d)}return c.useEffect(()=>{var d;const m=(d=a.current)==null?void 0:d.querySelector('[tabIndex="0"]');Re(()=>{m==null||m.focus()})},[]),i.jsx("table",{ref:a,role:"grid",className:Oe.selection,children:i.jsx("tbody",{children:_.map((m,d)=>i.jsx("tr",{className:Oe.row,children:m.map((h,p)=>{const g=d*Sr+p,f=new Date(r.getFullYear(),g),y=n&&n.getFullYear()>=f.getFullYear()&&n.getMonth()>f.getMonth(),v=s&&s.getFullYear()<=f.getFullYear()&&s.getMonth()<f.getMonth()||y;return i.jsx("td",{role:v?"presentation":"gridcell",className:Oe.cell,children:i.jsx(Le,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:v,onClick:()=>l(g),attributes:{tabIndex:g===r.getMonth()?0:-1,"aria-hidden":v,"aria-label":o?o({month:g}):h,"data-rs-date":`${r.getFullYear()}-${(g+1).toString().padStart(2,"0")}`},children:h})},h)})},d))})})};Ys.displayName="CalendarYear";const Gc=e=>{const{rootRef:t,changeToNextMonth:o,changeToPreviousMonth:r,monthDate:n,verticalDelta:s,min:l,max:a}=e,u=c.useRef(0),_=c.useCallback(m=>{const{delta:d,onMonthChange:h}=m,p=document.activeElement;if(!p)return;const g=js(t.current),f=Array.from(g),x=f.findIndex(T=>T===p)+d,v=f[x],w=p.getAttribute("data-rs-date");if(!w)return;const[C,N,E]=w==null?void 0:w.split("-").map(Number);let k;if(E?k=new Date(C,N-1,E+d):d>0?k=new Date(C,N-1+d,1):k=new Date(C,N-1+d+1,0),!(l&&k<l||a&&k>a)){if(v){v.focus();return}u.current=x<0?x:x-(f.length-1),h()}},[t,l,a]);c.useEffect(()=>{const m=u.current;if(m===0)return;const d=js(t.current),h=m<0?d.length+m:m-1,p=d[h];p&&p.focus(),u.current=0},[n,t]),Ge({[lo]:()=>_({delta:-1,onMonthChange:r}),[io]:()=>_({delta:1,onMonthChange:o}),[no]:()=>_({delta:-s,onMonthChange:r}),[so]:()=>_({delta:s,onMonthChange:o})},[o,r,_,s],{ref:t,preventDefault:!0})},Ao=e=>{const{value:t,onChange:o,defaultMonth:r,month:n,onMonthChange:s,min:l,max:a,range:u,firstWeekDay:_,selectedDates:m,disabledDates:d,monthsToRender:h=1,renderMonthLabel:p,renderSelectedMonthLabel:g,renderWeekDay:f,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,renderMonthAriaLabel:N,renderDateAriaLabel:E,renderDateSlot:k}=e,[S,T]=c.useState("date"),[$,M]=c.useState(n||r||new Date),[L,P]=c.useState(null),A=c.useRef(null),V=c.useRef(S),D=Uc({date:$,min:l,max:a}),j=c.useRef(null),W=()=>{if(S==="month"){const ee=Wc($);s==null||s({date:ee}),n===void 0&&M(ee);return}const G=Oc($);s==null||s({date:G}),n===void 0&&M(G)},re=()=>{if(S==="month"){const ee=qc($);s==null||s({date:ee}),n===void 0&&M(ee);return}const G=Hs($);s==null||s({date:G}),n===void 0&&M(G)},X=()=>{T("month")},J=G=>{const ee=Nr($,G);s==null||s({date:ee}),n===void 0&&M(ee),T("date")},U=G=>{P(G)},te=G=>{L&&+L==+G&&P(null)};return c.useEffect(()=>{S==="date"&&S!==V.current&&Re(()=>{var G;(G=A.current)==null||G.focus()}),V.current=S},[S]),c.useEffect(()=>{n&&M(n)},[n]),Gc({monthDate:$,rootRef:j,changeToNextMonth:re,changeToPreviousMonth:W,verticalDelta:S==="date"?7:3,min:l,max:a}),i.jsxs(O,{gap:2,children:[i.jsx(O,{direction:"row",gap:4,children:Array.from({length:S==="date"?h:1}).map((G,ee)=>{const $e=D.isFirstMonth||h>0&&ee>0,_e=D.isLastMonth||S==="date"&&h>0&&ee<h-1,ne=new Date($);return ne.setMonth(ne.getMonth()+ee),i.jsx(O.Item,{grow:!0,children:i.jsx(Ws,{renderSelectedMonthLabel:g,monthDate:ne,selectionMode:S,hidePrevious:$e,hideNext:_e,monthTitleRef:ee===0?A:void 0,onMonthTitleClick:X,onNextClick:re,onPreviousClick:W,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,monthsToRender:h})},ee)})}),i.jsxs(O,{direction:"row",gap:4,attributes:{ref:j},children:[S==="date"&&Array.from({length:h}).map((G,ee)=>{const $e=new Date($);return $e.setMonth($e.getMonth()+ee),i.jsx(O.Item,{grow:!0,children:i.jsx(Us,{date:$e,value:t,onChange:o,min:l,max:a,range:u,firstWeekDay:_,hoveredDate:L,selectedDates:m,disabledDates:d,onDateHover:U,onDateHoverEnd:te,renderWeekDay:f,renderDateAriaLabel:E,renderDateSlot:k})},ee)}),S==="month"&&i.jsx(Ys,{monthDate:$,onMonthClick:J,renderMonthLabel:p,renderMonthAriaLabel:N,min:l,max:a})]})]})};Ao.displayName="CalendarControlled";const Ks=e=>{const a=e,{onChange:t,defaultValue:o,range:r}=a,n=ve(a,["onChange","defaultValue","range"]),[s,l]=c.useState(o||null);return r?i.jsx(Ao,z(b({range:!0},n),{value:s,onChange:u=>{l(u.value),t==null||t(u)}})):i.jsx(Ao,z(b({},n),{value:s,onChange:u=>{l(u.value),t==null||t(u)}}))};Ks.displayName="CalendarUncontrolled";const Gs=e=>e.value!==void 0?i.jsx(Ao,b({},e)):i.jsx(Ks,b({},e));Gs.displayName="Calendar";const Vo={root:"_root_158rr_1","--selected":"_--selected_158rr_15","--elevated":"_--elevated_158rr_21","--actionable":"_--actionable_158rr_26"},Xs=c.forwardRef((e,t)=>{const{padding:o=4}=e,{selected:r,elevated:n,bleed:s,height:l,onClick:a,href:u,children:_,className:m,attributes:d,as:h="div"}=e,p=!!u||!!a,g=Qe({radius:"medium",bleed:s,height:l,padding:o}),f=F(Vo.root,g.classNames,p&&Vo["--actionable"],n&&Vo["--elevated"],r&&Vo["--selected"],m),y=b(b({},d==null?void 0:d.style),g.variables);return p?i.jsx(Le,{className:f,attributes:z(b({},d),{style:y}),href:u,as:h,onClick:a,ref:t,children:_}):i.jsx(h,z(b({},d),{onClick:a,href:u,ref:t,className:f,style:y,children:_}))});Xs.displayName="Card";const mt={root:"_root_k04za_1",control:"_control_k04za_9","--control-prev":"_--control-prev_k04za_21","--control-next":"_--control-next_k04za_25","--control-visible":"_--control-visible_k04za_29",scroll:"_scroll_k04za_34",item:"_item_k04za_61","--control-rendered":"_--control-rendered_k04za_73","--bleed":"_--bleed_k04za_79","--bleed-true--m":"_--bleed-true--m_k04za_1","--bleed-false--m":"_--bleed-false--m_k04za_1","--bleed-true--l":"_--bleed-true--l_k04za_1","--bleed-false--l":"_--bleed-false--l_k04za_1","--bleed-true--xl":"_--bleed-true--xl_k04za_1","--bleed-false--xl":"_--bleed-false--xl_k04za_1"},Er=c.forwardRef((e,t)=>{const{type:o,scrollElRef:r,oppositeControlElRef:n,scrollPosition:s,onClick:l,isRTL:a,mounted:u}=e,[_,m]=c.useState(!1),[d,h]=c.useState(!1),p=o==="forward",g=o===(a?"back":"forward"),f=F(mt.control,g?mt["--control-next"]:mt["--control-prev"],_&&mt["--control-visible"],d&&mt["--control-rendered"]);return be(()=>{var E;const y=r.current;if(!y||!u)return;let x;const v=Math.abs(s),w=v<=0,C=v+y.clientWidth>=y.scrollWidth-1;return(p?C:w)?(m(!1),x=setTimeout(()=>h(!1),1500),(E=n.current)==null||E.focus()):(h(!0),m(!0)),()=>{x&&clearTimeout(x)}},[s,r,u,p]),i.jsx("div",{className:f,children:i.jsx(Te,{size:"small",onClick:l,icon:g?Ft:Fo,rounded:!0,variant:"outline",elevated:!0,attributes:{"aria-disabled":!_,"aria-hidden":!0},ref:t})})});Er.displayName="CarouselControl";const Zs=e=>{const{children:t,gap:o=3,visibleItems:r,bleed:n,navigationDisplay:s,onChange:l,onScroll:a,instanceRef:u,className:_,attributes:m}=e,d=c.useRef(0),h=c.useRef([]),[p,g]=c.useState(!1),[f,y]=c.useState(0),[x]=pt(),v=c.useRef(null),w=c.useRef(null),C=c.useRef(null),N={};typeof n=="object"&&Object.entries(n).forEach(([D,j])=>{N[D]=typeof j=="number"&&j>0});const E=F(mt.root,_,...ce(mt,"--bleed",typeof n=="number"?!0:N)),k=(D,j)=>{h.current[j]=D},S=Ro(D=>{const j=D.target,W=$();y(j.scrollLeft),a==null||a(D),d.current!==W&&(l==null||l({index:W})),d.current=W}),T=()=>{const j=getComputedStyle(v.current).gap.split(" ")[0];return Number(j.replace("px",""))},$=()=>{let D=0,j=0;const W=v.current;if(!W)return D;const re=x?-W.scrollLeft:W.scrollLeft,X=T();return h.current.some((J,U)=>J?j+J.clientWidth/2>=re?(D=U,!0):(j+=(J==null?void 0:J.clientWidth)+X,!1):!1),D},M=D=>{const j=v.current,W=h.current[D];W&&j.scrollTo({left:x?W.offsetLeft-(j.clientWidth-W.clientWidth):W.offsetLeft,top:0,behavior:"smooth"})},L=()=>{const D=v.current;D.scrollBy({left:D.clientWidth+T(),top:0,behavior:"smooth"})},P=()=>{const D=v.current;D.scrollBy({left:-D.clientWidth-T(),top:0,behavior:"smooth"})},A=x?L:P,V=x?P:L;return c.useImperativeHandle(u,()=>({navigateBack:A,navigateForward:V,navigateTo:M})),be(()=>{g(!0)},[]),i.jsxs("section",z(b({},m),{className:E,style:b(b(b({},q("--rs-carousel-items",r)),q("--rs-carousel-bleed",n)),m==null?void 0:m.style),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Er,{isRTL:x,type:"back",ref:w,oppositeControlElRef:C,scrollElRef:v,scrollPosition:f,onClick:A,mounted:p}),i.jsx(Er,{isRTL:x,type:"forward",ref:C,oppositeControlElRef:w,scrollElRef:v,scrollPosition:f,onClick:V,mounted:p})]}),i.jsx(O,{as:"ul",direction:"row",wrap:!1,gap:o,className:mt.scroll,attributes:{ref:v,onScroll:S},children:c.Children.map(t,(D,j)=>i.jsx(O.Item,{className:mt.item,as:"li",attributes:{ref:W=>k(W,j)},children:D}))})]}))};Zs.displayName="Carousel";const Js=c.createContext(null),Qs=()=>c.useContext(Js),Tr=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=u=>{const{event:_,value:m,checked:d}=u;if(!m)return;let h=[...n];d?h.push(m):h=h.filter(p=>p!==m),t&&t({name:o,value:h,event:_})};return i.jsx(Js.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};Tr.displayName="CheckboxGroupControlled";const Rs=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(Tr,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};Rs.displayName="CheckboxGroupUncontrolled";const ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Tr,b({},e)):i.jsx(Rs,b({},e))};ei.displayName="CheckboxGroup";const ti=c.createContext(null),oi=()=>c.useContext(ti),$r=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=({event:u,value:_})=>{_&&t&&t({name:o,value:_,event:u})};return i.jsx(ti.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};$r.displayName="RadioGroupControlled";const ri=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||null),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx($r,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};ri.displayName="RadioGroupUncontrolled";const ni=e=>{const{value:t}=e;return t!==void 0?i.jsx($r,b({},e)):i.jsx(ri,b({},e))};ni.displayName="RadioGroup";const Xc={root:"_root_1feer_1"},_o=e=>{var x,v,w,C,N,E,k;const{type:t,value:o,className:r,onBlur:n,onFocus:s,onChange:l,attributes:a}=e,u=F(Xc.root,r),_=Qs(),m=oi(),d=et(),h=(v=(x=_==null?void 0:_.name)!=null?x:m==null?void 0:m.name)!=null?v:e.name,p=(N=(C=(w=d==null?void 0:d.disabled)!=null?w:e.disabled)!=null?C:_==null?void 0:_.disabled)!=null?N:m==null?void 0:m.disabled,g=o&&((k=(E=_==null?void 0:_.value)==null?void 0:E.includes(o))!=null?k:(m==null?void 0:m.value)===o)||e.checked,f=_?void 0:e.defaultChecked,y=S=>{if(!h)return;const{checked:T}=S.target,$={name:h,value:o,checked:T,event:S};l&&l($),_!=null&&_.onChange&&_.onChange($),m!=null&&m.onChange&&m.onChange($)};return i.jsx("input",z(b({},a),{className:u,type:t,name:h,value:o,checked:g,defaultChecked:f,disabled:p,onChange:y,onFocus:s||(a==null?void 0:a.onFocus),onBlur:n||(a==null?void 0:a.onBlur),"data-rs-hidden-input":!0}))};_o.displayName="HiddenInput";const Mr=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),yt={root:"_root_ykdxc_12",decorator:"_decorator_ykdxc_23",field:"_field_ykdxc_28","--size-small":"_--size-small_ykdxc_1","--size-medium":"_--size-medium_ykdxc_1","--size-large":"_--size-large_ykdxc_1",icon:"_icon_ykdxc_75",input:"_input_ykdxc_85","--error":"_--error_ykdxc_92","--disabled":"_--disabled_ykdxc_114","--size-small--m":"_--size-small--m_ykdxc_1","--size-medium--m":"_--size-medium--m_ykdxc_1","--size-large--m":"_--size-large--m_ykdxc_1","--size-small--l":"_--size-small--l_ykdxc_1","--size-medium--l":"_--size-medium--l_ykdxc_1","--size-large--l":"_--size-large--l_ykdxc_1","--size-small--xl":"_--size-small--xl_ykdxc_1","--size-medium--xl":"_--size-medium--xl_ykdxc_1","--size-large--xl":"_--size-large--xl_ykdxc_1"},si=e=>{var C;const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,indeterminate:l,size:a="medium",className:u,attributes:_,inputAttributes:m}=e,d=Qs(),h=et(),p=(h==null?void 0:h.hasError)||e.hasError||(d==null?void 0:d.hasError),g=(h==null?void 0:h.disabled)||e.disabled||(d==null?void 0:d.disabled),f=d?(C=d.value)==null?void 0:C.includes(o):e.checked,y=d?void 0:e.defaultChecked,x=d?d.name:e.name,v=c.useRef(null),w=F(yt.root,u,a&&p&&yt["--error"],g&&yt["--disabled"],a&&ce(yt,"--size",a));return be(()=>{v.current.indeterminate=l||!1},[l,f]),i.jsxs("label",z(b({},_),{className:w,children:[i.jsxs("span",{className:yt.field,children:[i.jsx(_o,{className:yt.input,type:"checkbox",checked:f,defaultChecked:y,name:x,disabled:g,value:o,onChange:r,onFocus:n,onBlur:s,attributes:z(b({},m),{ref:v})}),i.jsx("div",{className:yt.decorator,children:i.jsx(ge,{svg:Mr,className:yt.icon,size:de(a,N=>N==="large"?5:N==="small"?3:4)})})]}),t&&i.jsx(ie,{as:"span",variant:de(a,N=>N==="large"?"body-2":N==="small"?"caption-1":"body-3"),children:t})]}))};si.displayName="Checkbox";const Zc={root:"_root_th78q_1"},ii=e=>{const d=e,{position:t="end-top",onOpen:o,onClose:r}=d,n=ve(d,["position","onOpen","onClose"]),[s,l]=c.useState(),a=c.useRef(null),{lockScroll:u,unlockScroll:_}=sr({originRef:a}),m=Ne(o);return c.useEffect(()=>{const h=a.current;if(!h)return;const p=g=>{var f;g.preventDefault(),l({x:g.clientX,y:g.clientY}),u(),(f=m.current)==null||f.call(m)};return h.addEventListener("contextmenu",p),()=>h.removeEventListener("contextmenu",p)},[u,m]),c.useEffect(()=>()=>_(),[_]),i.jsx("div",{className:Zc.root,ref:a,children:i.jsx(ke,z(b({},n),{position:t,originCoordinates:s,active:!!s,onClose:h=>{l(void 0),_(),r==null||r(h)}}))})};ii.displayName="ContextMenu";const At=ii;At.Content=ke.Content,At.Item=ke.Item,At.Section=ke.Section,At.SubMenu=ke.SubMenu,At.SubTrigger=ke.SubTrigger;const ht={root:"_root_1vs2n_1",triggerLayer:"_triggerLayer_1vs2n_13",trigger:"_trigger_1vs2n_13","--inline":"_--inline_1vs2n_29","--variant-outline":"_--variant-outline_1vs2n_47","--highlighted":"_--highlighted_1vs2n_54","--disabled":"_--disabled_1vs2n_67"},li=e=>{const{children:t}=e;return i.jsx("span",{className:ht.trigger,children:t})},ai=e=>{const{name:t,children:o,height:r,variant:n="outline",inline:s,className:l,disabled:a,attributes:u,inputAttributes:_,onChange:m}=e,d=Ct(),h=F(ht.root,n&&ht[`--variant-${n}`],s&&ht["--inline"],d.active&&ht["--highlighted"],a&&ht["--disabled"],l),p=C=>{var N;C.preventDefault(),(N=u==null?void 0:u.onDragOver)==null||N.call(u,C)},g=C=>{var N;d.activate(),(N=u==null?void 0:u.onDragEnter)==null||N.call(u,C)},f=C=>{var N;C.currentTarget.contains(C.relatedTarget)||(d.deactivate(),(N=u==null?void 0:u.onDragLeave)==null||N.call(u,C))},y=C=>{var N;C.preventDefault(),d.deactivate(),m==null||m({name:t,value:Array.from(C.dataTransfer.files),event:C}),(N=u==null?void 0:u.onDrop)==null||N.call(u,C)},x=C=>{var E;const N=C.target.files;N&&(m==null||m({name:t,event:C,value:Array.from(N)}),(E=_==null?void 0:_.onChange)==null||E.call(_,C))},v=i.jsx(Po,{children:i.jsx("input",z(b({},_),{type:"file",className:ht.field,name:t,disabled:a,onChange:x}))}),w=typeof o=="function"?o({highlighted:d.active}):o;return i.jsx(O,{className:h,height:r,borderRadius:"medium",attributes:z(b({},u),{onDragOver:p,onDragEnter:g,onDragLeave:f,onDrop:y}),children:n==="outline"&&!s?i.jsxs(O,{as:"label",className:ht.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",justify:"center",textAlign:"center",height:"100%",children:[v,i.jsx(O.Item,{children:w})]}):i.jsxs("label",{className:ht.triggerLayer,children:[v,w]})})};ai.displayName="FileUpload",li.displayName="FileUpload.Trigger";const ci=ai;ci.Trigger=li;const di={root:"_root_bzk9x_1","--active":"_--active_bzk9x_14"},ui=e=>{const{children:t,active:o,className:r,attributes:n}=e,s=F(di.root,o&&di["--active"],r);return i.jsx(ie,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:n,children:t})};ui.displayName="Hotkey";const lt={root:"_root_1irm5_1",wrapper:"_wrapper_1irm5_26",inner:"_inner_1irm5_32",content:"_content_1irm5_38","--visible":"_--visible_1irm5_44","--click-through":"_--click-through_1irm5_49","--blurred":"_--blurred_1irm5_54","--contained":"_--contained_1irm5_72","--animated":"_--animated_1irm5_76","--overflow-auto":"_--overflow-auto_1irm5_85"},Ir=e=>{const{active:t,children:o,transparent:r,blurred:n,overflow:s,onClose:l,onOpen:a,onAfterClose:u,onAfterOpen:_,disableCloseOnClick:m,containerRef:d,contained:h,className:p,attributes:g}=e,f=Ne(l),y=Ne(a),x=r===!0,v=x?0:(1-(r||0))*.7,[w,C]=c.useState(!1),[N,E]=c.useState(!1),[k,S]=c.useState([0,0]),T=c.useRef(null),$=c.useRef(null),{lockScroll:M,unlockScroll:L}=sr({containerRef:d}),P=c.useRef(null),A=c.useRef(!1),{active:V,activate:D,deactivate:j}=Ct(t||!1),{active:W,activate:re,deactivate:X}=Ct(t||!1),J=jn({active:t,contentRef:$,hasTrigger:!1}),U=d&&h!==!1,te=F(lt.root,W&<["--visible"],x&<["--click-through"],n&<["--blurred"],N&<["--animated"],U&<["--contained"],s==="auto"&<["--overflow-auto"],p),G=oe=>{var se,B;return(se=T.current)!=null&&se.contains(oe)?oe===$.current&&oe.firstElementChild?!1:!!((B=$.current)!=null&&B.contains(oe)):!0},ee=c.useCallback(oe=>{var se;!W||!J()||(P.current&&(d!=null&&d.current)&&(d.current.style.overflow=P.current,d.current.style.removeProperty("isolation"),P.current=null),(se=f.current)==null||se.call(f,{reason:oe.reason}))},[W,J,f,d]),$e=oe=>{A.current=!G(oe.target)},_e=oe=>{const se=!G(oe.target);!(A.current&&se&&!x)||m||ee({reason:"overlay-click"})},ne=oe=>{if(!(oe.propertyName!=="opacity"||oe.target!==oe.currentTarget)){if(E(!1),W){_==null||_();return}L(),j(),u==null||u()}};return Ge({Escape:()=>ee({reason:"escape-key"})},[ee]),c.useEffect(()=>{E(!0),t&&!V&&D(),!t&&V&&X()},[t,D,X,V]),c.useEffect(()=>{V&&(x||M(),Re(()=>{re()}))},[V,re,M,x]),c.useEffect(()=>{var B;if(!V||!$.current)return;const oe=new It,se=d==null?void 0:d.current;return se&&(P.current=se.style.overflow,se.style.setProperty("overflow","hidden"),se.style.setProperty("isolation","isolate"),S([se.scrollLeft,se.scrollTop])),oe.trap($.current,{initialFocusEl:$.current.querySelector("[role=dialog][tabindex='-1']")}),(B=y.current)==null||B.call(y),()=>oe.release()},[V,y,d]),c.useEffect(()=>()=>L(),[L]),be(()=>{C(!0)},[]),!V||!w?null:i.jsx($o,{targetRef:d,children:i.jsx($o.Scope,{scopeRef:T,children:oe=>i.jsx("div",z(b({},g),{ref:oe,style:{"--rs-overlay-opacity":v,"--rs-overlay-offset-x":d?`${k[0]}px`:void 0,"--rs-overlay-offset-y":d?`${k[1]}px`:void 0},role:"button",tabIndex:-1,className:te,onMouseDown:$e,onMouseUp:_e,onTransitionEnd:ne,children:i.jsx("div",{className:lt.wrapper,children:i.jsx("div",{className:lt.inner,children:i.jsx("div",{className:lt.content,ref:$,children:typeof o=="function"?o({active:W}):o})})})}))})})};Ir.displayName="Overlay";const Lr={m:660,l:900,xl:1280},_i=c.createContext({viewport:"s"}),Jc=e=>{const{children:t,defaultViewport:o="s"}=e,[r,n]=c.useState(o);return be(()=>{const s=document.querySelector("[data-rs-theme]"),l=s&&window.getComputedStyle(s),a={m:l&&Number(l.getPropertyValue("--rs-viewport-m-min"))||Lr.m,l:l&&Number(l.getPropertyValue("--rs-viewport-l-min"))||Lr.l,xl:l&&Number(l.getPropertyValue("--rs-viewport-xl-min"))||Lr.xl},u={s:`(max-width: ${a.m-1}px)`,m:`(min-width: ${a.m}px) and (max-width: ${a.l-1}px)`,l:`(min-width: ${a.l}px) and (max-width: ${a.xl-1}px)`,xl:`(min-width: ${a.xl}px)`},m=Object.keys(u).map(d=>{const h=window.matchMedia(u[d]);return{mq:h,handler:()=>h.matches&&n(d)}});return m.forEach(({handler:d,mq:h})=>{d(),h.addEventListener("change",d)}),()=>{m.forEach(({handler:d,mq:h})=>{h.removeEventListener("change",d)})}},[]),i.jsx(_i.Provider,{value:{viewport:r},children:t})},Qc=()=>c.useContext(_i),Rc=()=>{const{viewport:e}=Qc();return e},mi=e=>{const t=Rc();return c.useMemo(()=>{var o,r,n,s,l,a;return typeof e!="object"||e===null||!("s"in e)?e:t==="xl"?(n=(r=(o=e.xl)!=null?o:e.l)!=null?r:e.m)!=null?n:e.s:t==="l"?(l=(s=e.l)!=null?s:e.m)!=null?l:e.s:t==="m"&&(a=e.m)!=null?a:e.s},[t,e])},Vt={root:"_root_1pbt3_1","--contained":"_--contained_1pbt3_17","--position-center":"_--position-center_1pbt3_1","--active":"_--active_1pbt3_43","--position-bottom":"_--position-bottom_1pbt3_1","--position-start":"_--position-start_1pbt3_1","--position-end":"_--position-end_1pbt3_1","--position-full-screen":"_--position-full-screen_1pbt3_1","--dragging":"_--dragging_1pbt3_156","--overflow-visible":"_--overflow-visible_1pbt3_160","--position-center--m":"_--position-center--m_1pbt3_1","--position-bottom--m":"_--position-bottom--m_1pbt3_1","--position-start--m":"_--position-start--m_1pbt3_1","--position-end--m":"_--position-end--m_1pbt3_1","--position-full-screen--m":"_--position-full-screen--m_1pbt3_1","--position-center--l":"_--position-center--l_1pbt3_1","--position-bottom--l":"_--position-bottom--l_1pbt3_1","--position-start--l":"_--position-start--l_1pbt3_1","--position-end--l":"_--position-end--l_1pbt3_1","--position-full-screen--l":"_--position-full-screen--l_1pbt3_1","--position-center--xl":"_--position-center--xl_1pbt3_1","--position-bottom--xl":"_--position-bottom--xl_1pbt3_1","--position-start--xl":"_--position-start--xl_1pbt3_1","--position-end--xl":"_--position-end--xl_1pbt3_1","--position-full-screen--xl":"_--position-full-screen--xl_1pbt3_1"},Dr=32,ed=100,td=32,hi=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),fi=()=>c.useContext(hi),bi=e=>{const{children:t}=e,{id:o,setTitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ie,{variant:"featured-3",weight:"bold",attributes:{id:`${o}-title`},children:t})},gi=e=>{const{children:t}=e,{id:o,setSubtitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ie,{variant:"body-3",color:"neutral-faded",attributes:{id:`${o}-subtitle`},children:t})},pi=e=>{const{children:t,onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,active:l,size:a,padding:u=4,position:_="center",overflow:m,transparentOverlay:d,blurredOverlay:h,ariaLabel:p,autoFocus:g=!0,disableSwipeGesture:f,disableCloseOnOutsideClick:y,containerRef:x,contained:v,overlayClassName:w,className:C,attributes:N}=e,E=Ne(o),k=Ke(),S=mi(_),[T,$]=c.useState(!1),[M,L]=c.useState(!1),[P,A]=c.useState(!1),V=c.useRef(null),D=(N==null?void 0:N.ref)||V,j=c.useRef({x:0,y:0}),W=c.useRef(0),re=c.useRef(0),X=c.useRef(0),[J,U]=c.useState(0),[te,G]=c.useState(0),ee=Qe({padding:u}),$e=x&&v!==!1,_e=c.useMemo(()=>({titleMounted:T,setTitleMounted:$,subtitleMounted:M,setSubtitleMounted:L,id:k}),[k,M,T]),ne=()=>{j.current={x:0,y:0},W.current=0,X.current=0,U(0)},oe=B=>{var fe;if(f||(fe=window.getSelection())!=null&&fe.toString())return;let Y=B.target;const Q=D.current;for(;Y&&(Y===Q||Q!=null&&Q.contains(Y));){if(Y.scrollTop!==0||Y.scrollLeft!==0||Y.matches("input,textarea"))return;Y=Y?Y.parentElement:null}S==="start"&&B.targetTouches[0].clientX<td||(x!=null&&x.current&&Jt(),A(!0))},se=B=>{l||B.propertyName==="transform"&&B.currentTarget===B.target&&ne()};return c.useEffect(()=>{if(!P)return;const B=()=>{var fe;x!=null&&x.current&&zo(),A(!1);const Q=S==="start"?X.current<0:X.current>0;Math.abs(re.current)>Dr&&Q?(fe=E.current)==null||fe.call(E,{reason:"drag"}):ne()},Y=Q=>{var Ce,Me;if(!P||S==="center"||((Ce=D.current)==null?void 0:Ce.scrollTop)!==0||((Me=D.current)==null?void 0:Me.scrollLeft)!==0)return;const fe=Q.targetTouches[0],Z={x:fe.clientX,y:fe.clientY},K=S==="bottom"?"y":"x",le=S==="bottom"?"x":"y";j.current[K]||(j.current=Z,W.current=Z[K]);const ae=Math.abs(Z[K]-j.current[K]),ue=Math.abs(Z[le]-j.current[le]);if(_!=="bottom"&&(ae<ue||ue>ed)){W.current=Z[K];return}X.current=Z[K]-W.current,W.current=Z[K],U(Ie=>S==="start"?Math.min(0,Ie+X.current):Math.max(0,Ie+X.current))};return document.addEventListener("touchmove",Y,{passive:!0}),document.addEventListener("touchend",B,{passive:!0}),()=>{document.removeEventListener("touchmove",Y),document.removeEventListener("touchend",B)}},[P,S,E,_,D,x]),c.useEffect(()=>{const B=D.current;if(!B||!S)return;const Q=["start","end"].includes(S)?B.clientWidth:B.clientHeight,fe=Math.abs(J)/Q;G(fe/2),re.current=J},[J,S,D]),i.jsx(Ir,{onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,disableCloseOnClick:y,active:l,transparent:d||te,blurred:h,overflow:S==="center"?"auto":"hidden",className:w,contained:v,containerRef:x,attributes:{onTouchStart:oe},children:({active:B})=>{const Y=F(Vt.root,C,B&&Vt["--active"],P&&Vt["--dragging"],m&&Vt[`--overflow-${m}`],$e&&Vt["--contained"],ce(Vt,"--position",_),ee.classNames);return i.jsx(hi.Provider,{value:_e,children:i.jsx("div",z(b({},N),{style:z(b(b({},ee.variables),q("--rs-modal-size",a)),{"--rs-modal-drag":Math.abs(J)<Dr?"0px":`${J+Dr*(S==="start"?1:-1)}px`}),"aria-labelledby":T?`${k}-title`:void 0,"aria-describedby":M?`${k}-subtitle`:void 0,"aria-label":p||(N==null?void 0:N["aria-label"]),className:Y,"aria-modal":"true",role:"dialog",tabIndex:g?void 0:-1,ref:D,onTransitionEnd:se,children:t}))})}})};pi.displayName="Modal",bi.displayName="Modal.Title",gi.displayName="Modal.Subtitle";const Pr=pi;Pr.Title=bi,Pr.Subtitle=gi;const vi=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),od=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"18 15 12 9 6 15"})}),rd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),nd=()=>i.jsxs("svg",{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",children:[i.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),tt={field:"_field_meivp_1","controls-wrapper":"_controls-wrapper_meivp_5",controls:"_controls_meivp_5","controls--size-small":"_controls--size-small_meivp_1",control:"_control_meivp_5","controls--size-medium":"_controls--size-medium_meivp_1","controls--size-large":"_controls--size-large_meivp_1","controls--size-xlarge":"_controls--size-xlarge_meivp_1","icon--touch":"_icon--touch_meivp_107","--outline":"_--outline_meivp_111","icon--mouse":"_icon--mouse_meivp_139","controls--size-small--m":"_controls--size-small--m_meivp_1","controls--size-medium--m":"_controls--size-medium--m_meivp_1","controls--size-large--m":"_controls--size-large--m_meivp_1","controls--size-xlarge--m":"_controls--size-xlarge--m_meivp_1","controls--size-small--l":"_controls--size-small--l_meivp_1","controls--size-medium--l":"_controls--size-medium--l_meivp_1","controls--size-large--l":"_controls--size-large--l_meivp_1","controls--size-xlarge--l":"_controls--size-xlarge--l_meivp_1","controls--size-small--xl":"_controls--size-small--xl_meivp_1","controls--size-medium--xl":"_controls--size-medium--xl_meivp_1","controls--size-large--xl":"_controls--size-large--xl_meivp_1","controls--size-xlarge--xl":"_controls--size-xlarge--xl_meivp_1"},Fr=e=>{var J;const X=e,{increaseAriaLabel:t,decreaseAriaLabel:o,min:r,max:n,step:s=1,name:l,value:a,onChange:u,size:_="medium"}=X,m=ve(X,["increaseAriaLabel","decreaseAriaLabel","min","max","step","name","value","onChange","size"]),d=et(),h=Ke(m.id),p=(d==null?void 0:d.attributes.id)||((J=e.inputAttributes)==null?void 0:J.id)||h,g=(d==null?void 0:d.disabled)||e.disabled,f=(d==null?void 0:d.hasError)||e.hasError,y=g||(a&&n?a>=n:!1),x=g||(a&&r?a<=r:!1),v=c.useRef(null),w=c.useRef(null),[C,N]=c.useState((a==null?void 0:a.toString())||""),E=c.useRef(a),k=Ne(u),S=c.useRef(null),T=c.useRef(null),$=c.useCallback(U=>{var oe,se;const te=s*U,G=E.current;let ee=G===null?te:G+te;n!==void 0&&ee>n&&(ee=n),r!==void 0&&ee<r&&(ee=r);const $e=((oe=s.toString().split(".")[1])==null?void 0:oe.length)||0,_e=((se=G==null?void 0:G.toString().split(".")[1])==null?void 0:se.length)||0,ne=Math.max($e,_e);return Number(ee.toFixed(ne))},[s,r,n]),M=c.useCallback((U,te)=>{var G;(G=k.current)==null||G.call(k,{value:U,name:l}),te!=null&&te.programmatic||(E.current=U)},[l,k]),L=c.useCallback(()=>{const U=$(1);M(U,{programmatic:!0})},[$,M]),P=c.useCallback(()=>{const U=$(-1);M(U,{programmatic:!0})},[$,M]),A=U=>{if(!U.value.match(/^(-?)[0-9]*(\.?)[0-9]*$/))return;const te=parseFloat(U.value);te>Number.MAX_SAFE_INTEGER||te<Number.MIN_SAFE_INTEGER||(N(U.value),!isNaN(te)&&M(te))},V=(U,te)=>{var G;g||(te(),U.pointerType!=="touch"&&((G=v.current)==null||G.focus()),S.current=setTimeout(()=>{T.current=setInterval(()=>{te()},50)},500))},D=()=>{g||(S.current&&(clearTimeout(S.current),S.current=null),T.current&&(clearTimeout(T.current),T.current=null))};Ge({[no]:L,[so]:P},[L,P],{preventDefault:!0,ref:w}),c.useEffect(()=>{var U;E.current=a,N((U=a==null?void 0:a.toString())!=null?U:"")},[a]);const j=de(_,U=>U==="large"||U==="xlarge"?4:3),W=de(_,U=>U==="small"?3:4),re=i.jsx("span",{className:tt["controls-wrapper"],children:i.jsxs("span",{className:tt.controls,children:[i.jsxs(Le,{className:tt.control,disabled:y,disableFocusRing:!0,as:"span",attributes:{"aria-label":t,"aria-controls":p,role:"button",tabIndex:y?void 0:-1,onPointerDown:U=>V(U,L),onPointerUp:D,onPointerLeave:D,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:od,size:j,className:tt["icon--mouse"]}),i.jsx(ge,{svg:nd,size:W,className:tt["icon--touch"]})]}),i.jsxs(Le,{className:tt.control,disabled:x,disableFocusRing:!0,as:"span",attributes:{"aria-label":o,"aria-controls":p,role:"button",tabIndex:x?void 0:-1,onPointerDown:U=>V(U,P),onPointerUp:D,onPointerLeave:D,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:vi,size:j,className:tt["icon--mouse"]}),i.jsx(ge,{svg:rd,size:W,className:tt["icon--touch"]})]})]})});return i.jsx(Do,z(b({},m),{className:[m.className,ce(tt,"controls--size",_),!(m.variant==="faded"||m.variant==="headless")&&tt["--outline"]],attributes:z(b({},m.attributes),{role:"group",ref:w}),inputAttributes:z(b({},m.inputAttributes),{ref:v,inputMode:"numeric",autoComplete:"off",autoCorrect:"off",spellCheck:"false",min:r,max:n,step:s,className:tt.field}),size:_,id:p,hasError:f,disabled:g,value:C,onChange:A,name:l,endSlot:re,endSlotPadding:0}))};Fr.displayName="NumberFieldControlled";const yi=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t!=null?t:null),s=l=>{n(l.value),o&&o(l)};return i.jsx(Fr,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};yi.displayName="NumberFieldUncontrolled";const xi=e=>{const{value:t}=e;return t!==void 0?i.jsx(Fr,b({},e)):i.jsx(yi,b({},e))};xi.displayName="NumberField";const Ar=(e,t)=>e>t?[]:Array.from({length:t-e+1},(o,r)=>e+r),wi={page:"_page_j10le_1"},Vr=e=>{const{total:t,page:o=1,onChange:r,pageAriaLabel:n,previousAriaLabel:s,nextAriaLabel:l,className:a,attributes:u}=e,_=1,m=1,d=[],h=(m+1)*2+_*2+1,p=t>h&&o-_>m+2,g=t>h&&o+_<t-m;let f=_*2+1;p||(f+=m+1),g||(f+=m+1);const y=p?Math.min(t-f+1,Math.max(1,o-_)):1,x=g?Math.min(y+f-1,t):t;p&&d.push(...Ar(1,m),null),d.push(...Ar(y,x)),g&&d.push(null,...Ar(t-m+1,t));const v=w=>{const C=Math.min(t,Math.max(1,w));r==null||r({page:C})};return i.jsxs(O,{direction:"row",align:"center",gap:1,className:a,attributes:u,children:[i.jsx(Te,{variant:"ghost",size:"small",icon:Fo,onClick:()=>v(o-1),disabled:o===1,attributes:{"aria-label":s}}),d.map((w,C)=>w===null?i.jsx(O,{width:7,align:"center",children:"..."},`dots-${C}`):i.jsx(Te,{size:"small",variant:w===o?"solid":"ghost",color:w===o?"primary":"neutral",onClick:()=>v(w),attributes:{"aria-label":n==null?void 0:n({page:w}),"aria-current":w===o},className:wi.page,children:w},C)),i.jsx(Te,{variant:"ghost",size:"small",className:wi.page,icon:Ft,onClick:()=>v(o+1),disabled:o===t,attributes:{"aria-label":l}})]})};Vr.displayName="PaginationControlled";const Ci=e=>{const a=e,{defaultPage:t=1,onChange:o}=a,r=ve(a,["defaultPage","onChange"]),[n,s]=c.useState(t||1),l=u=>{s(u.page),o==null||o(u)};return i.jsx(Vr,z(b({},r),{onChange:l,page:n}))};Ci.displayName="PaginationUncontrolled";const ki=e=>{const{page:t}=e;return t!==void 0?i.jsx(Vr,b({},e)):i.jsx(Ci,b({},e))};ki.displayName="Pagination";const Ni="\\d",zi="[a-zA-Z]",sd=`(${Ni}|${zi})`,mo={root:"_root_5na4g_1",inputWrapper:"_inputWrapper_5na4g_6",input:"_input_5na4g_6",item:"_item_5na4g_31","item--focused":"_item--focused_5na4g_36"},id={small:7,medium:9,large:12,xlarge:14},ld={numeric:Ni,alphabetic:zi,alphanumeric:sd},Br=e=>{const{valueLength:t=4,value:o,onChange:r,name:n,pattern:s="numeric",size:l="medium",variant:a="outline",className:u,attributes:_,inputAttributes:m}=e,d=ld[s],h=de(l,M=>id[M]),p=de(l,M=>M==="medium"?"body-3":"body-2"),g=de(l,M=>M==="xlarge"?"medium":"small"),[f,y]=c.useState(null),x=et(),v=c.useRef(o.length===t?"edit":"type"),w=c.useRef(null),C=[],N=c.useCallback(M=>{var D;const L=w.current;if(!L||L.selectionStart===null)return;const P=v.current,A=(D=M!=null?M:L.selectionStart)!=null?D:0,V=Math.min(P==="type"?L.value.length:L.value.length-1,Math.max(0,A));v.current==="type"?(L.selectionStart=V,L.selectionEnd=V):(L.selectionStart=V,L.selectionEnd=V+1),y(Math.min(L.selectionStart,t-1))},[t]);Ge({[`${lo},${no}`]:()=>{Re(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const L=v.current,P=o.length?"edit":"type";v.current=P,N(L==="type"&&P==="edit"?M.selectionStart:M.selectionStart-1)})},[`${io},${so}`]:()=>{Re(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const L=M.selectionStart===o.length&&M.selectionStart!==t?"type":"edit";v.current=L,N(M.selectionStart)})}},[o,N,t],{ref:w});const E=()=>{N(o.length)},k=()=>{y(null)},S=M=>{if(f===null||!w.current)return;const L=M.clipboardData.getData("text"),P=o.slice(0,f)+o.slice(f+L.length);w.current.value=P,w.current.selectionEnd=f},T=M=>{const L=M.currentTarget,P=L.value,A=new RegExp(`^${d}+$`);if(P&&!P.match(A)||L.selectionStart===null)return;const V=P.length===t||P.length>L.selectionStart?"edit":"type";v.current=V,r==null||r({event:M,name:n,value:P}),Re(()=>{N()})},$=(M,L)=>{w.current&&(M.preventDefault(),w.current.focus(),v.current=L>=o.length?"type":"edit",N(L))};for(let M=0;M<t;M++)C.push(i.jsx(O,{height:h,width:h,borderRadius:g,borderColor:a==="faded"?"transparent":"neutral",backgroundColor:a==="faded"?"neutral-faded":"elevation-base",align:"center",justify:"center",className:[mo.item,f===M&&mo["item--focused"]],attributes:{onMouseDown:L=>{$(L,M)},onTouchStart:L=>{$(L,M)}},children:o[M]&&i.jsx(ie,{variant:p,children:o[M]})},M));return i.jsxs(O,{gap:2,direction:"row",className:[mo.root,u],attributes:_,children:[C,i.jsx("div",{className:mo.inputWrapper,children:i.jsx("input",z(b(b({},m),x.attributes),{type:"text",className:mo.input,onFocus:E,onBlur:k,onPaste:S,onInput:T,value:o,name:n,maxLength:t,ref:w,autoComplete:(m==null?void 0:m.autoComplete)||"one-time-code",inputMode:s==="numeric"?"numeric":void 0,pattern:`${d}{${t}}`}))})]})};Br.displayName="PinFieldControlled";const Si=e=>{const a=e,{defaultValue:t,onChange:o}=a,r=ve(a,["defaultValue","onChange"]),[n,s]=c.useState(t||""),l=u=>{s(u.value),o==null||o(u)};return i.jsx(Br,z(b({},r),{value:n,onChange:l}))};Si.displayName="PinFieldUncontrolled";const Ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Br,b({},e)):i.jsx(Si,b({},e))};Ei.displayName="PinField";const ho={root:"_root_1qk35_1",value:"_value_1qk35_9","--duration":"_--duration_1qk35_24","--size-small":"_--size-small_1qk35_28","--size-medium":"_--size-medium_1qk35_32","--color-primary":"_--color-primary_1qk35_36","--color-critical":"_--color-critical_1qk35_40","--color-warning":"_--color-warning_1qk35_44","--color-positive":"_--color-positive_1qk35_48","--color-media":"_--color-media_1qk35_52"},Ti=e=>{const{value:t=0,min:o=0,max:r=100,color:n="primary",size:s="medium",duration:l,ariaLabel:a,className:u,attributes:_}=e,m=F(ho.root,u,n&&ho[`--color-${n}`],s&&ho[`--size-${s}`],!!l&&ho["--duration"]),d=r-o,h=t-o,f=`${Math.max(o,Math.min(r,h))/d*100-100}%`;return i.jsx("div",z(b({role:"progressbar"},_),{className:m,"aria-label":a||(_==null?void 0:_["aria-label"]),"aria-valuemax":r,"aria-valuemin":o,"aria-valuenow":t,children:i.jsx("div",{className:ho.value,style:{"--rs-progress-value":f,"--rs-progress-duration":l?`${l}ms`:void 0}})}))};Ti.displayName="Progress";const Bt={root:"_root_1r02e_1",container:"_container_1r02e_17",item:"_item_1r02e_26","item--active":"_item--active_1r02e_40","item--variant-secondary":"_item--variant-secondary_1r02e_45","--color-media":"_--color-media_1r02e_50"},jr=7,Hr=Math.floor(jr/2),$i=e=>{const{total:t,activeIndex:o=0,color:r="primary",ariaLabel:n,className:s,attributes:l}=e,a=F(Bt.root,s,r&&Bt[`--color-${r}`]),u=n?{"aria-label":n,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t-1}:{},_=t>jr?Math.min(t-jr,Math.max(0,o-Hr)):0;return i.jsx("div",z(b({},l),{className:a,children:i.jsx("div",z(b({},u),{className:Bt.container,style:{"--rs-progress-indicator-mod":_},children:Array.from({length:t}).map((m,d)=>{const h=F(Bt.item,d===o&&Bt["item--active"],(d<o-(Hr-1)||d>o+(Hr-1))&&Bt["item--variant-secondary"]);return i.jsx("div",{className:h},d)})}))}))};$i.displayName="ProgressIndicator";const Et={root:"_root_2agld_12",decorator:"_decorator_2agld_22",field:"_field_2agld_28","--size-small":"_--size-small_2agld_1","--size-medium":"_--size-medium_2agld_1","--size-large":"_--size-large_2agld_1",input:"_input_2agld_74","--error":"_--error_2agld_81","--disabled":"_--disabled_2agld_101","--size-small--m":"_--size-small--m_2agld_1","--size-medium--m":"_--size-medium--m_2agld_1","--size-large--m":"_--size-large--m_2agld_1","--size-small--l":"_--size-small--l_2agld_1","--size-medium--l":"_--size-medium--l_2agld_1","--size-large--l":"_--size-large--l_2agld_1","--size-small--xl":"_--size-small--xl_2agld_1","--size-medium--xl":"_--size-medium--xl_2agld_1","--size-large--xl":"_--size-large--xl_2agld_1"},Mi=e=>{const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,size:l="medium",className:a,attributes:u,inputAttributes:_}=e,m=et(),d=oi(),h=(m==null?void 0:m.hasError)||e.hasError||(d==null?void 0:d.hasError),p=(m==null?void 0:m.disabled)||e.disabled||(d==null?void 0:d.disabled),g=d?d.value===o:e.checked,f=d?void 0:e.defaultChecked,y=d?d.name:e.name,x=F(Et.root,a,h&&Et["--error"],p&&Et["--disabled"],l&&ce(Et,"--size",l));return i.jsxs("label",z(b({},u),{className:x,children:[i.jsxs("span",{className:Et.field,children:[i.jsx(_o,{className:Et.input,type:"radio",checked:g,defaultChecked:f,name:y,disabled:p,value:o,onChange:r,onFocus:n,onBlur:s,attributes:_}),i.jsx("div",{className:Et.decorator})]}),t&&i.jsx(ie,{as:"span",variant:de(l,v=>v==="large"?"body-2":v==="small"?"caption-1":"body-3"),children:t})]}))};Mi.displayName="Radio";const Or={root:"_root_1t6gl_1",scrim:"_scrim_1t6gl_16","--position-cover":"_--position-cover_1t6gl_28","--position-top":"_--position-top_1t6gl_42","--position-bottom":"_--position-bottom_1t6gl_48","--position-start":"_--position-start_1t6gl_54","--position-end":"_--position-end_1t6gl_65"},Ii=e=>{var p,g;const{children:t,backgroundSlot:o,position:r="cover",paddingInline:n,paddingBlock:s,padding:l,borderRadius:a,attributes:u,className:_,scrimClassName:m}=e,d=F(Or.root,r&&Or[`--position-${r}`],_),h=F(Or.scrim,m);return i.jsxs(O,{borderRadius:a,attributes:u,className:d,position:o?"relative":"absolute",inset:o?void 0:0,overflow:"hidden",children:[o,i.jsx("div",{className:h,children:i.jsx(O,{paddingInline:(p=n!=null?n:l)!=null?p:4,paddingBlock:(g=s!=null?s:l)!=null?g:3,zIndex:5,height:["start","end"].includes(r)?"100%":void 0,width:["top","bottom","cover"].includes(r)?"100%":void 0,textAlign:r==="cover"?"center":void 0,children:t})})]})};Ii.displayName="Scrim";const We={root:"_root_1v9qj_1",input:"_input_1v9qj_25","input--placeholder":"_input--placeholder_1v9qj_52",slot:"_slot_1v9qj_57",arrow:"_arrow_1v9qj_72",group:"_group_1v9qj_83","group-label":"_group-label_1v9qj_94","--size-small":"_--size-small_1v9qj_1","--size-medium":"_--size-medium_1v9qj_1","--size-large":"_--size-large_1v9qj_1","--size-xlarge":"_--size-xlarge_1v9qj_1","--variant-faded":"_--variant-faded_1v9qj_158","--variant-ghost":"_--variant-ghost_1v9qj_170","--variant-headless":"_--variant-headless_1v9qj_171","--status-error":"_--status-error_1v9qj_179","--disabled":"_--disabled_1v9qj_201","--size-small--m":"_--size-small--m_1v9qj_1","--size-medium--m":"_--size-medium--m_1v9qj_1","--size-large--m":"_--size-large--m_1v9qj_1","--size-xlarge--m":"_--size-xlarge--m_1v9qj_1","--size-small--l":"_--size-small--l_1v9qj_1","--size-medium--l":"_--size-medium--l_1v9qj_1","--size-large--l":"_--size-large--l_1v9qj_1","--size-xlarge--l":"_--size-xlarge--l_1v9qj_1","--size-small--xl":"_--size-small--xl_1v9qj_1","--size-medium--xl":"_--size-medium--xl_1v9qj_1","--size-large--xl":"_--size-large--xl_1v9qj_1","--size-xlarge--xl":"_--size-xlarge--xl_1v9qj_1"},ad=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Li=e=>{const{disabled:t,size:o}=e;return i.jsx("div",{className:We.arrow,children:i.jsx(ge,{svg:ad,color:t?"disabled":"neutral-faded",size:de(o,r=>r==="large"||r==="xlarge"?5:4)})})},Di=e=>{const{startSlot:t,icon:o,size:r}=e;return!t&&!o?null:o?i.jsx("div",{className:We.slot,children:i.jsx(ge,{size:de(r,n=>n==="large"?5:n==="xlarge"?6:4),svg:o})}):i.jsx("div",{className:We.slot,children:t})},cd=e=>{const{startSlot:t,icon:o,size:r,inputAttributes:n,onFocus:s,onBlur:l,disabled:a,name:u,value:_,defaultValue:m,onChange:d,onClick:h,placeholder:p,id:g,children:f}=e,[y,x]=c.useState(_===void 0?!m:!_),v=F(We.input,p&&y&&We["input--placeholder"]),w=C=>{const N=C.target.value;_===void 0&&x(!N),d&&d({name:u,value:N,event:C})};return c.useEffect(()=>{_!==void 0&&x(!_)},[_]),i.jsxs(i.Fragment,{children:[i.jsx(Di,{startSlot:t,icon:o,size:r}),i.jsxs("select",z(b({},n),{onFocus:s||(n==null?void 0:n.onFocus),onBlur:l||(n==null?void 0:n.onBlur),onClick:h||(n==null?void 0:n.onClick),className:v,disabled:a,name:u,value:_,defaultValue:m,onChange:w,id:g,children:[p&&i.jsx("option",{value:"",children:p}),f]})),i.jsx(Li,{disabled:a,size:r})]})},Pi=e=>{var h,p;const t=et(),o=Ke(e.id),r=z(b({},e),{id:((h=t==null?void 0:t.attributes)==null?void 0:h.id)||((p=e.inputAttributes)==null?void 0:p.id)||o,disabled:(t==null?void 0:t.disabled)||e.disabled,hasError:(t==null?void 0:t.hasError)||e.hasError,inputAttributes:b(b({},e.inputAttributes),t==null?void 0:t.attributes)}),{children:n,className:s,size:l="medium",variant:a="outline",hasError:u,disabled:_,attributes:m}=r,d=F(We.root,s,l&&ce(We,"--size",l),u&&We["--status-error"],_&&We["--disabled"],a&&We[`--variant-${a}`]);return i.jsx("div",z(b({},m),{className:d,children:n(r)}))},Fi=e=>{const{children:t,disabled:o,onClick:r,onFocus:n,onBlur:s,inputAttributes:l,startSlot:a,icon:u,size:_,placeholder:m,value:d,name:h,id:p}=e;return i.jsxs(i.Fragment,{children:[i.jsxs(Le,{className:We.input,disabled:o,disableFocusRing:!0,onClick:r,attributes:b({onFocus:n||(l==null?void 0:l.onFocus),onBlur:s||(l==null?void 0:l.onBlur)},l),children:[i.jsx(Di,{startSlot:a,icon:u,size:_}),t?i.jsx(ie,{maxLines:typeof t=="string"?1:void 0,children:t}):null,m&&!t?i.jsx(ie,{color:"disabled",children:m}):null,i.jsx(Li,{disabled:o,size:_})]}),i.jsx("input",{type:"hidden",value:typeof d=="string"?d:JSON.stringify(d),name:h,id:p})]})},Ai=e=>{const{children:t}=e;return i.jsx(Pi,z(b({},e),{children:o=>{const{options:r}=o,n=c.Children.toArray(t).some(l=>c.isValidElement(l)&&(l.type==="option"||l.type==="optgroup"));return!(r||n)?i.jsx(Fi,z(b({},o),{children:t})):i.jsxs(cd,z(b({},o),{children:[r==null?void 0:r.map(l=>i.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value)),t]}))}}))};Ai.displayName="Select";const Bo=e=>{const{label:t,children:o}=e;return i.jsxs(O,{attributes:{role:"group"},gap:1,className:We.group,children:[t&&i.jsx("div",{className:We["group-label"],children:i.jsx(ie,{variant:"caption-1",color:"neutral-faded",children:t})}),i.jsx(O.Item,{children:o})]})};Bo.displayName="Select.Group";const Wr=e=>{const r=e,{value:t}=r,o=ve(r,["value"]);return i.jsx(ke.Item,z(b({},o),{className:[o.className,We.option],color:"neutral",attributes:z(b({},o.attributes),{value:t,role:"option"})}))};Wr.displayName="Select.Option";const qr=e=>{const{children:t,value:o,name:r,placeholder:n,size:s,multiple:l,width:a="trigger",position:u,fallbackPositions:_,positionRef:m,renderValue:d}=e,h=c.useRef(null),p=c.useRef(""),g=c.useRef(null),f=c.useRef(null),y=[],x=[],v=l?o.length>0:o,w=k=>c.Children.map(k,(S,T)=>{var $;if(!c.isValidElement(S))return null;if(S.type===Wr){const M=S,L=M.props,A=(l?o.includes(L.value):L.value===o)||!n&&!o&&T===0;return A&&x.push(L),y.push({value:L.value,text:typeof L.children=="string"?L.children:L.value}),c.cloneElement(M,{key:L.value,onClick:V=>{var D,j,W;if((D=L.onClick)==null||D.call(L,V),l){const re=A?o.filter(X=>X!==L.value):[...o,L.value];(j=e.onChange)==null||j.call(e,{value:re,name:r})}else(W=e.onChange)==null||W.call(e,{value:L.value,name:r})},startSlot:(L==null?void 0:L.startSlot)!==void 0?L.startSlot:v&&i.jsx(ge,{svg:A?Mr:null}),attributes:z(b({},M.props.attributes),{ref:A?h:void 0})})}if(S.type===Bo){const M=S,L=M.props;return c.cloneElement(M,{key:($=L.label)!=null?$:T,children:w(L.children)})}return S}),C=w(t),N=k=>{var $;const S=k.key;if((($=document.activeElement)==null?void 0:$.tagName)==="INPUT"||S.length!==1||!S.match(/[\w\s]/))return;g.current&&clearTimeout(g.current),p.current+=S.toLowerCase();const T=y.find(M=>M.text.toLowerCase().startsWith(p.current));if(T&&f.current){const M=f.current.querySelector(`[value="${T.value}"]`);M==null||M.focus()}g.current=setTimeout(()=>{p.current=""},1e3)},E=()=>d?d(l?{value:o}:{value:o}):x.length===1?x[0].children:x.length>1?i.jsx(O,{direction:"row",gap:4,children:x.map(k=>i.jsx(O.Item,{children:k.children},k.value))}):null;return i.jsx(Pi,z(b({},e),{children:k=>i.jsxs(ke,{width:a,disableHideAnimation:!0,position:u!=null?u:"bottom",fallbackPositions:_!=null?_:u?void 0:["bottom","top"],fallbackAdjustLayout:!0,fallbackMinHeight:"220px",borderRadius:de(s,S=>S==="large"||S==="xlarge"?"medium":"small"),initialFocusRef:h,positionRef:m,children:[i.jsx(ke.Trigger,{children:S=>{const T=z(b({},k),{inputAttributes:b(b({},k.inputAttributes),S)});return i.jsx(Fi,z(b({},T),{value:o,children:E()}))}}),i.jsx(ke.Content,{attributes:{ref:f,onKeyDown:N,role:void 0},children:C})]})}))};qr.displayName="SelectCustomControlled";const Vi=e=>{const a=e,{defaultValue:t,onChange:o,multiple:r}=a,n=ve(a,["defaultValue","onChange","multiple"]),[s,l]=c.useState(t||(r?[]:""));return i.jsx(qr,z(b({},n),{multiple:r,value:s,onChange:u=>{l(u.value),o==null||o(u)}}))};Vi.displayName="SelectCustomUncontrolled";const Bi=e=>{const{value:t}=e;return t!==void 0?i.jsx(qr,b({},e)):i.jsx(Vi,b({},e))};Bi.displayName="SelectCustom";const fo=Ai;fo.Custom=Bi,fo.Option=Wr,fo.Group=Bo,fo.OptionGroup=Bo;const dd={root:"_root_xavah_1"},ji=e=>{const{borderRadius:t="small",width:o,height:r,className:n,attributes:s}=e,l=F(dd.root,n);return i.jsx(O,{backgroundColor:"disabled",width:o,height:r,borderRadius:t,className:l,attributes:s})};ji.displayName="Skeleton";const at={root:"_root_7bdnx_1",thumb:"_thumb_7bdnx_13","thumb--active":"_thumb--active_7bdnx_13",input:"_input_7bdnx_13",bar:"_bar_7bdnx_18",selection:"_selection_7bdnx_34",tooltip:"_tooltip_7bdnx_39",thumbs:"_thumbs_7bdnx_61","--orientation-horizontal":"_--orientation-horizontal_7bdnx_1","--orientation-vertical":"_--orientation-vertical_7bdnx_1","--disabled":"_--disabled_7bdnx_220"},Hi=e=>{const t=e.toString().split(".")[1];return(t==null?void 0:t.length)||0},Ur=(e,t)=>{const o=t%1!==0,r=Math.round(e/t)*t;if(o){const n=Hi(t);return Number(r.toFixed(n))}return r},Oi=({event:e,vertical:t})=>t?e instanceof MouseEvent?e.clientY:e.changedTouches[0].clientY:e instanceof MouseEvent?e.clientX:e.changedTouches[0].clientX,Wi=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))},Yr=c.forwardRef((e,t)=>{const{name:o,value:r,disabled:n,active:s,position:l,max:a,min:u,step:_,onChange:m,onDragStart:d,renderValue:h,tooltipRef:p,inputRef:g,orientation:f}=e,y=c.useId(),x=F(at.thumb,s&&at["thumb--active"]),v=Hi(_),w=h?h({value:r}):r.toFixed(v),C=N=>{m(+N.target.value,{native:!0})};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:at.input,type:"range",name:o,value:r,onChange:C,disabled:n,max:a,min:u,step:_,"aria-labelledby":y,"aria-orientation":f,ref:g}),i.jsx("div",{ref:t,className:x,onMouseDown:d,onTouchStart:d,style:{"--ts-slider-thumb-position":`${l}%`},id:y,"aria-hidden":"true",children:h!==!1&&i.jsx(Pt,{colorMode:"inverted",children:i.jsx(ie,{variant:"caption-1",weight:"medium",className:at.tooltip,attributes:{ref:p},children:w})})})]})});Yr.displayName="SliderThumb";const qi=16,jo=e=>{var Y,Q,fe;const{name:t,range:o,max:r,min:n,step:s=1,onChange:l,onChangeCommit:a,renderValue:u,className:_,attributes:m,orientation:d="horizontal"}=e,h=Ne(l),p=Ne(a),g=d==="vertical",f=o&&e.minValue!==void 0?Ur(e.minValue,s):void 0,y=Ur(o?e.maxValue:e.value,s),x=(Y=e.minName)!=null?Y:e.name,v=(Q=e.maxName)!=null?Q:e.name,w=c.useRef(null),C=c.useRef(null),N=c.useRef(null),E=c.useRef(null),k=c.useRef(null),S=c.useRef(null),T=c.useRef(null),[$,M]=c.useState(null),[L]=pt(),P=et(),A=Ke(),V=((fe=P==null?void 0:P.attributes)==null?void 0:fe.id)||A,D=`${V}-min`,j=`${V}-max`,W=(P==null?void 0:P.disabled)||e.disabled,re=F(at.root,W&&at["--disabled"],d&&at[`--orientation-${d}`],_),X=c.useCallback(Z=>{const K=w.current;if(!K)return;const le=g?K.clientHeight:K.clientWidth,ue=K.getBoundingClientRect()[g?"top":"left"]+qi/2,Ce=Z-ue,Me=le-qi;let Ie=Ce/Me;(L||g)&&(Ie=1-Ie);let he=(r-n)*Ie+n;return he=Math.max(n,Math.min(r,he)),Ur(he,s)},[r,n,L,s,g]),J=Z=>(Z-n)/(r-n)*100,U=c.useCallback(Z=>{var Pe,Ze,Be;if(g)return;const K=Z===D?E:k,le=Z===D?C:N;let ae=0;const ue=(Pe=w.current)==null?void 0:Pe.getBoundingClientRect(),Ce=(Ze=K.current)==null?void 0:Ze.getBoundingClientRect(),Me=(Be=le.current)==null?void 0:Be.getBoundingClientRect(),Ie=ue==null?void 0:ue.left,he=Ie&&Ie+(ue==null?void 0:ue.width),ye=Me&&Ce&&Me.left-Ce.width/2,xe=Me&&Ce&&Me.left+Ce.width/2;ye&&Ie&&ye<Ie&&(ae=Ce.width/2-8),xe&&he&&xe>he&&(ae=-(Ce.width/2-8));const Ve=K.current;Ve&&Ve.style.setProperty("--rs-slider-tooltip-offset",`${ae||0}px`)},[D,g]),te=c.useCallback((Z,K={})=>{var ae,ue,Ce;if(!o)return;const le={minValue:Z,maxValue:y,name:t,minName:x,maxName:v};K.commit&&((ae=p.current)==null||ae.call(p,le)),K.native&&!$&&((ue=p.current)==null||ue.call(p,le)),K.native&&((Ce=h.current)==null||Ce.call(h,le)),Wi(S.current,Z.toString())},[o,y,t,x,v,$,p,h]),G=c.useCallback((Z,K={})=>{var ae,ue,Ce;const le=o?{minValue:f,maxValue:Z,name:t,minName:x,maxName:v}:{value:Z,name:t};K.commit&&((ae=p.current)==null||ae.call(p,le)),K.native&&!$&&((ue=p.current)==null||ue.call(p,le)),K.native&&((Ce=h.current)==null||Ce.call(h,le)),Wi(T.current,Z.toString())},[o,f,t,x,v,p,$,h]),ee=({nativeEvent:Z})=>{if(W)return;let K,le;const ae=Oi({event:Z,vertical:g}),ue=X(ae);[{ref:C,id:D},{ref:N,id:j}].forEach(Me=>{if(!Me.ref.current)return;const he=Me.ref.current.getBoundingClientRect(),ye=Math.abs((g?he.top:he.left)-ae);(K===void 0||ye<=K)&&(K=ye,le=Me.id)}),!(!le||ue===void 0)&&(le===D&&te(ue),le===j&&G(ue),M(le))},$e=Z=>{W||(Z.stopPropagation(),Jt(),M(D))},_e=Z=>{W||(Z.stopPropagation(),Jt(),M(j))},ne=c.useCallback(()=>{var Z,K;$===D&&f!==void 0&&(te(f,{commit:!0}),(Z=S.current)==null||Z.focus()),$===j&&(G(y,{commit:!0}),(K=T.current)==null||K.focus()),zo(),M(null)},[f,y,te,G,$,D,j]),oe=c.useCallback(Z=>{if(!$)return;const K=Oi({event:Z,vertical:g}),le=X(K);if(le===void 0)return;let ae=$;$===D&&le>y&&(ae=j),$===j&&f&&le<f&&(ae=D),ae===D&&te(le),ae===j&&G(le),$!==ae&&M(ae)},[$,f,y,X,G,te,j,D,g]);c.useEffect(()=>{U(D),U(j)},[D,j,f,y,U]),c.useEffect(()=>(window.addEventListener("mouseup",ne),window.addEventListener("touchend",ne),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[ne,oe]);const se=f&&J(f),B=J(y);return i.jsxs("div",z(b({},m),{className:re,onMouseDown:ee,onTouchStart:ee,children:[i.jsx("div",{className:at.bar,ref:w,children:i.jsx("div",{className:at.selection,style:{"--rs-slider-selection-start":`${se||0}%`,"--rs-slider-selection-size":`${B-(se||0)}%`}})}),i.jsxs("div",{className:at.thumbs,children:[f!==void 0&&se!==void 0&&i.jsx(Yr,{id:D,active:D===$,name:x,disabled:W,onChange:te,value:f,onDragStart:$e,position:se,max:r,min:n,ref:C,tooltipRef:E,inputRef:S,renderValue:u,step:s,orientation:d}),i.jsx(Yr,{id:j,active:j===$,name:v,disabled:W,onChange:G,value:y,onDragStart:_e,position:B,max:r,min:n,ref:N,tooltipRef:k,inputRef:T,renderValue:u,step:s,orientation:d})]})]}))};jo.displayName="SliderControlled";const Ui=(e,t,o)=>Math.min(Math.max(e,t),o),Yi=e=>{const{min:t,max:o,onChange:r,range:n}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(n?o:t),[a,u]=c.useState(Ui(s,t,o)),[_,m]=c.useState(Ui(l,t,o)),d=p=>{n||(m(p.value),r==null||r(p))},h=p=>{n&&(u(p.minValue),m(p.maxValue),r==null||r(p))};return n?i.jsx(jo,z(b({},e),{min:t,max:o,minValue:a,maxValue:_,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:h})):i.jsx(jo,z(b({},e),{min:t,max:o,value:_,defaultValue:void 0,onChange:d}))};Yi.displayName="SliderUncontrolled";const Ki=e=>{const n=e,{min:t=0,max:o=100}=n,r=ve(n,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(jo,z(b({},r),{min:t,max:o})):i.jsx(Yi,z(b({},r),{min:t,max:o}))};Ki.displayName="Slider";const Gi={root:"_root_1as3o_1","--animated":"_--animated_1as3o_6"},Kr=e=>{const{children:t,active:o,attributes:r}=e,n=c.useRef(null),s=c.useRef(!1),[l,a]=c.useState(o?"auto":null),u=F(Gi.root,s.current&&l!=="auto"&&Gi["--animated"]),_=m=>{m.propertyName==="height"&&a(o?"auto":null)};return c.useEffect(()=>{Re(()=>{s.current=!0})},[]),be(()=>{const m=n.current;!m||!s.current||(o?(m.style.height="auto",requestAnimationFrame(()=>{const d=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{a(d)})})):(m.style.height=`${m.clientHeight}px`,requestAnimationFrame(()=>{a(0)})))},[o]),i.jsx("div",z(b({},r),{className:u,ref:n,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:_,role:"region",hidden:!o&&l===null,children:t}))};Kr.displayName="Expandable";const ud={verticalDivider:"_verticalDivider_oa23g_1"},_d=e=>{const{title:t,subtitle:o,children:r,direction:n,className:s,attributes:l,labelDisplay:a,step:u,completed:_,active:m,last:d}=e,h=a&&de(a,g=>g==="hidden"),p=i.jsx(O,{gap:3,grow:!0,children:i.jsxs(O.Item,{children:[i.jsx(ie,{variant:"body-3",weight:"medium",children:t}),i.jsx(ie,{variant:"caption-1",color:"neutral-faded",children:o})]})});return i.jsxs(O,{attributes:l,className:s,children:[i.jsxs(O,{direction:"row",gap:2,align:"center",position:"static",children:[i.jsxs(O.Item,{children:[i.jsx(O,{align:"center",justify:"center",backgroundColor:m||_?"primary":"neutral-faded",borderColor:m||_?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:i.jsx(ie,{variant:"body-3",weight:m?"bold":"medium",children:_?i.jsx(ge,{svg:Mr,size:4}):u})}),n==="column"&&!d&&i.jsx(eo,{vertical:!0,className:ud.verticalDivider})]}),a?i.jsx(kt,{hide:h,children:p}):p]}),n==="column"&&r&&i.jsx(Kr,{active:m,children:i.jsx(O,{paddingStart:10,paddingTop:2,children:r})})]})},Gr=e=>null,Xi=e=>{const{children:t,direction:o="row",activeId:r,labelDisplay:n,gap:s=3,className:l,attributes:a}=e,u=o==="column",_=c.Children.count(t);return i.jsx(O,{attributes:a,direction:o,align:u?"stretch":"center",className:l,gap:s,wrap:!1,children:c.Children.map(t,(m,d)=>{if(!c.isValidElement(m)||m.type!==Gr)return null;const h=m.props,p=h.id||`${d}`;return i.jsxs(c.Fragment,{children:[i.jsx(_d,z(b({},h),{id:p,active:(r==null?void 0:r.toString())===p,step:d+1,last:d===_-1,direction:o,labelDisplay:n})),!u&&d<_-1&&i.jsx(O,{grow:!0,children:i.jsx(eo,{})})]},d)})})};Xi.displayName="Stepper",Gr.displayName="Stepper.Item";const Zi=Xi;Zi.Item=Gr;const Tt={root:"_root_icbs0_1","--reversed":"_--reversed_icbs0_9",input:"_input_icbs0_14",area:"_area_icbs0_26",thumb:"_thumb_icbs0_30",hitbox:"_hitbox_icbs0_76","--size-small":"_--size-small_icbs0_1","--size-medium":"_--size-medium_icbs0_1","--size-large":"_--size-large_icbs0_1","--size-small--m":"_--size-small--m_icbs0_1","--size-medium--m":"_--size-medium--m_icbs0_1","--size-large--m":"_--size-large--m_icbs0_1","--size-small--l":"_--size-small--l_icbs0_1","--size-medium--l":"_--size-medium--l_icbs0_1","--size-large--l":"_--size-large--l_icbs0_1","--size-small--xl":"_--size-small--xl_icbs0_1","--size-medium--xl":"_--size-medium--xl_icbs0_1","--size-large--xl":"_--size-large--xl_icbs0_1"},Ji=e=>{var v;const{children:t,name:o,checked:r,size:n="medium",reversed:s,defaultChecked:l,onChange:a,onFocus:u,onBlur:_,className:m,attributes:d}=e,h=F(Tt.root,n&&ce(Tt,"--size",n),s&&Tt["--reversed"],m),p=et(),g=Ke((p==null?void 0:p.attributes.id)||e.id||((v=e.inputAttributes)==null?void 0:v.id)),f=b(b({},e.inputAttributes),p==null?void 0:p.attributes),y=(p==null?void 0:p.disabled)||e.disabled,x=w=>{a&&a({name:o,event:w,checked:w.target.checked})};return i.jsxs("label",z(b({},d),{className:h,children:[i.jsx("input",z(b({type:"checkbox"},f),{className:Tt.input,name:o,checked:r,defaultChecked:l,disabled:y,onChange:x,onFocus:u||(f==null?void 0:f.onFocus),onBlur:_||(f==null?void 0:f.onBlur),id:g})),i.jsxs("span",{className:Tt.area,"aria-hidden":"true",children:[i.jsx("span",{className:Tt.hitbox}),i.jsx("span",{className:Tt.thumb})]}),t&&i.jsx(ie,{variant:de(n,w=>w==="large"?"body-2":w==="medium"?"body-3":"caption-1"),weight:"medium",color:y?"disabled":void 0,children:t})]}))};Ji.displayName="Switch";const Qi=(e,t={})=>{const{disabled:o}=t,[r]=pt(),[n,s]=c.useState(null),l=c.useCallback(()=>{const a=e.current;if(!a)return;a.clientWidth<a.scrollWidth||s(null);const _=a.scrollLeft*(r?-1:1),m=_>1,d=_+a.clientWidth<a.scrollWidth-1;if(d&&m)return s("both");if(m)return s("start");if(d)return s("end")},[r,e]);return be(()=>{const a=e.current;if(!a||o)return;const u=Ro(l);return requestAnimationFrame(()=>l()),window.addEventListener("resize",u),a.addEventListener("scroll",u),()=>{window.removeEventListener("resize",u),a.removeEventListener("scroll",u)}},[r,o]),n},qe={root:"_root_1qtvd_15",table:"_table_1qtvd_28",row:"_row_1qtvd_34",cell:"_cell_1qtvd_48",head:"_head_1qtvd_63",body:"_body_1qtvd_63","cell--align-start":"_cell--align-start_1qtvd_1","cell--align-center":"_cell--align-center_1qtvd_1","cell--align-end":"_cell--align-end_1qtvd_1","cell--valign-start":"_cell--valign-start_1qtvd_1","cell--valign-center":"_cell--valign-center_1qtvd_1","cell--valign-end":"_cell--valign-end_1qtvd_1","cell--width-auto":"_cell--width-auto_1qtvd_79","--row-highlighted":"_--row-highlighted_1qtvd_83","--border-outer":"_--border-outer_1qtvd_87","--border-column":"_--border-column_1qtvd_92","--fade-start":"_--fade-start_1qtvd_102","--fade-end":"_--fade-end_1qtvd_103"},Ri=e=>{const{minWidth:t,rowSpan:o,colSpan:r,align:n,verticalAlign:s,tagName:l,padding:a,paddingInline:u,paddingBlock:_,children:m,className:d,attributes:h}=e,p=e.width==="auto"?"0px":e.width,g=Qe({width:p,minWidth:t}),f=F(qe.cell,g.classNames,(p===0||p==="0px")&&qe["cell--width-auto"],n&&qe[`cell--align-${n}`],s&&qe[`cell--valign-${s}`],d),y=b(b(b({},g.variables),q("--rs-table-p-vertical",_!=null?_:a)),q("--rs-table-p-horizontal",u!=null?u:a));return i.jsx(l,z(b({},h),{className:f,rowSpan:o,colSpan:r,style:y,children:m}))},el=e=>i.jsx(Ri,z(b({},e),{tagName:"td"})),tl=e=>i.jsx(Ri,z(b({},e),{tagName:"th"})),ol=e=>{const{highlighted:t,children:o,className:r,attributes:n}=e,s=e.onClick||(n==null?void 0:n.onClick),l=F(qe.row,t&&qe["--row-highlighted"],r);return i.jsx("tr",z(b({},n),{className:l,onClick:s,tabIndex:s?0:void 0,children:o}))},Ho=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("tbody",z(b({},o),{className:F(qe.body,r),children:t}))},Xr=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("thead",z(b({},o),{className:F(qe.head,r),children:t}))},rl=e=>{const{children:t,border:o,columnBorder:r,className:n,attributes:s}=e,l=c.useRef(null),a=Qi(l),u=F(qe.root,n,o&&qe["--border-outer"],r&&qe["--border-column"],(a==="start"||a==="both")&&qe["--fade-start"],(a==="end"||a==="both")&&qe["--fade-end"]),[_]=c.Children.toArray(t),m=c.isValidElement(_),d=m&&_.type===Ho,h=m&&_.type===Xr;return i.jsx("div",z(b({},s),{className:u,ref:l,children:i.jsx("table",{className:qe.table,children:d||h?t:i.jsx(Ho,{children:t})})}))};rl.displayName="Table",el.displayName="TableCell",tl.displayName="TableHeading",ol.displayName="TableRow",Ho.displayName="TableBody",Xr.displayName="TableHead";const jt=rl;jt.Cell=el,jt.Heading=tl,jt.Row=ol,jt.Body=Ho,jt.Head=Xr;const nl=c.createContext({}),md=nl.Provider,Zr=e=>{const r=c.useContext(nl),{id:t}=r,o=ve(r,["id"]);return z(b({},o),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Jr=e=>{const{children:t,value:o,onChange:r,onSilentChange:n,itemWidth:s,variant:l,name:a,disableSelectionAnimation:u,direction:_="row",size:m="medium"}=e,d=Ke(),h=c.useRef(null),p=c.useRef(h.current),g=c.useRef(null),[f,y]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),x=v=>{v!==void 0&&n&&n({value:v,name:a})};return i.jsx(md,{value:{value:o,name:a,size:m,direction:_,itemWidth:s,variant:l,onChange:r,id:d,setDefaultValue:x,elActiveRef:h,elPrevActiveRef:p,elScrollableRef:g,selection:f,setSelection:y,disableSelectionAnimation:u},children:t})};Jr.displayName="TabsControlled";const sl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t),s=({value:a})=>{n(a),o&&o({value:a})},l=({value:a})=>{n(a)};return i.jsx(Jr,z(b({},e),{onChange:s,onSilentChange:l,value:r,defaultValue:void 0}))};sl.displayName="TabsUncontrolled";const il=e=>{const{value:t}=e;return t!==void 0?i.jsx(Jr,b({},e)):i.jsx(sl,b({},e))};il.displayName="Tabs";const me={root:"_root_z0kzv_27",inner:"_inner_z0kzv_41",list:"_list_z0kzv_50",listItem:"_listItem_z0kzv_55",button:"_button_z0kzv_60",buttonContent:"_buttonContent_z0kzv_87",icon:"_icon_z0kzv_95",radio:"_radio_z0kzv_104",item:"_item_z0kzv_108","item--active":"_item--active_z0kzv_116","item--disabled":"_item--disabled_z0kzv_121",selector:"_selector_z0kzv_127","selector--hidden":"_selector--hidden_z0kzv_150","selector--animated":"_selector--animated_z0kzv_154",control:"_control_z0kzv_161","control--active":"_control--active_z0kzv_172","control--next":"_control--next_z0kzv_181","control--prev":"_control--prev_z0kzv_185",panel:"_panel_z0kzv_190","panel--hidden":"_panel--hidden_z0kzv_197","--scrollable":"_--scrollable_z0kzv_202","--direction-row":"_--direction-row_z0kzv_227","--direction-column":"_--direction-column_z0kzv_269","--variant-borderless":"_--variant-borderless_z0kzv_314","--variant-pills":"_--variant-pills_z0kzv_315","--variant-pills-elevated":"_--variant-pills-elevated_z0kzv_316","--size-medium":"_--size-medium_z0kzv_396","--size-large":"_--size-large_z0kzv_401","--item-width-equal":"_--item-width-equal_z0kzv_406",buttonText:"_buttonText_z0kzv_424","--fade-start":"_--fade-start_z0kzv_434","--fade-end":"_--fade-end_z0kzv_435"},Qr=c.forwardRef((e,t)=>{const{value:o,children:r,icon:n,href:s,disabled:l,attributes:a}=e,{onChange:u,panelId:_,buttonId:m,name:d,size:h,value:p,selection:g,elActiveRef:f,elPrevActiveRef:y,elScrollableRef:x}=Zr(o),v=c.useRef(null),w=p===o,C=w&&g.status==="idle",N=F(me.item,C&&me["item--active"],l&&me["item--disabled"]),E=!!d,k={role:"tab",tabIndex:w?0:-1,"aria-selected":w},S=c.useCallback(()=>{y.current=f.current,f.current=v.current},[f,y]),T=()=>{var W,re;if(s&&!u)return;const $=x.current,M=(W=v.current)==null?void 0:W.parentElement,L=(re=f.current)==null?void 0:re.parentElement;if(u&&u({value:o,name:d}),!$||!M||!L||$.scrollWidth===$.clientWidth||!x.current)return;const P=48,A=v.current&&Gl(v.current,X=>X.hasAttribute("data-rs-tabs-item"));if(!A)return;const V=x.current,D=A.offsetLeft-V.scrollLeft,j=V.scrollLeft+V.clientWidth-(A.offsetLeft+A.clientWidth);(D<P||j<P)&&x.current.scrollTo({left:A.offsetLeft+A.clientWidth/2-V.clientWidth/2,behavior:"smooth"})};return be(()=>{w&&S()},[w,S]),i.jsx("div",z(b({},a),{className:N,ref:v,role:"presentation",children:i.jsxs(Le,{ref:t,href:s,disableFocusRing:!0,disabled:l,onClick:d?void 0:T,className:me.button,as:d?"label":void 0,attributes:z(b({},!E&&k),{"aria-controls":_,id:m}),children:[d&&i.jsx(_o,{type:"radio",name:d,value:o,checked:C,onChange:T,className:me.radio}),i.jsxs("span",{className:me.buttonContent,children:[n&&i.jsx(ge,{svg:n,className:me.icon,size:4}),r&&i.jsx(ie,{variant:h==="large"?"body-2":"body-3",weight:"medium",className:me.buttonText,children:r})]})]})}))});Qr.displayName="Tabs.Item";const ll=(e,t)=>e===t||!e?null:e.classList.contains(me.listItem)?e:ll(e.parentElement,t),al=e=>{const{children:t,className:o,attributes:r}=e,{value:n,setDefaultValue:s,itemWidth:l,variant:a,name:u,direction:_,size:m,selection:d,setSelection:h,elActiveRef:p,elPrevActiveRef:g,elScrollableRef:f,disableSelectionAnimation:y}=Zr(),[x]=pt(),v=Qi(f,{disabled:l==="equal"}),w=F(me.root,m&&me[`--size-${m}`],_&&me[`--direction-${_}`],l&&me[`--item-width-${l}`],a&&me[`--variant-${a}`],v&&me["--scrollable"],(v==="start"||v==="both")&&me["--fade-start"],(v==="end"||v==="both")&&me["--fade-end"],o),C=F(me.selector,d.status==="idle"&&me["selector--hidden"],d.status==="animated"&&me["selector--animated"]),N=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?-1:1),behavior:"smooth"})},E=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?1:-1),behavior:"smooth"})},k=()=>{h(T=>z(b({},T),{status:"idle"}))},S=c.useCallback(T=>{if(!f.current)return null;const $=ll(T,f.current);return $?{scaleX:$.clientWidth,scaleY:$.clientHeight,top:$.offsetTop,left:$.offsetLeft}:null},[f]);return nr({ref:f,disabled:!!u}),be(()=>{if(n)return;const T=c.Children.toArray(t)[0];if(!c.isValidElement(T)||!T||T.type!==Qr)return;const $=T.props;s($.value)},[n]),be(()=>{if(!g.current||g.current===p.current)return;const T=S(g.current);if(T){if(y){h(z(b({},T),{status:"idle"}));return}h(z(b({},T),{status:"prepared"}))}},[n,S,y]),be(()=>{if(d.status!=="prepared"||!p.current)return;const T=S(p.current);T&&h(z(b({},T),{status:"animated"}))},[d]),i.jsxs("div",z(b({},r),{className:w,children:[i.jsx("div",{className:me.inner,ref:f,children:i.jsxs("div",{className:me.list,role:"tablist",children:[c.Children.map(t,(T,$)=>{if(!c.isValidElement(T))return null;const M=T.props;return i.jsx("div",{className:me.listItem,"data-rs-tabs-item":!0,children:T},M.value||T.key||$)}),!y&&i.jsx("div",{onTransitionEnd:k,className:C,style:{"--rs-tab-selection-x":d.left,"--rs-tab-selection-y":d.top,"--rs-tab-selection-scale-x":d.scaleX,"--rs-tab-selection-scale-y":d.scaleY}})]})}),i.jsx(Le,{onClick:E,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[me.control,me["control--prev"],(v==="start"||v==="both")&&me["control--active"]],children:i.jsx(ge,{svg:Fo,size:5})}),i.jsx(Le,{onClick:N,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[me.control,me["control--next"],(v==="end"||v==="both")&&me["control--active"]],children:i.jsx(ge,{svg:Ft,size:5})})]}))};al.displayName="Tabs.List";const cl=e=>{const{value:t,children:o,className:r,attributes:n}=e,{value:s,panelId:l,buttonId:a}=Zr(t),[u,_]=c.useState(!0),m=c.useRef(null),d=t===s,h=F(me.panel,!d&&me["panel--hidden"],r);return c.useEffect(()=>{const p=m.current;if(!p)return;const g=()=>{_(!Xt(p).length)};g();const f=new MutationObserver(g);return f.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex","disabled","href"]}),()=>f.disconnect()},[]),i.jsx("div",z(b({},n),{ref:m,className:h,tabIndex:u?0:void 0,role:"tabpanel",id:l,"aria-labelledby":a,children:d&&o}))};cl.displayName="Tabs.Panel";const Oo=il;Oo.Item=Qr,Oo.List=al,Oo.Panel=cl;const $t={root:"_root_1twkl_1",input:"_input_1twkl_20","--size-medium":"_--size-medium_1twkl_1","--size-large":"_--size-large_1twkl_1","--size-xlarge":"_--size-xlarge_1twkl_1","--variant-faded":"_--variant-faded_1twkl_87","--variant-ghost":"_--variant-ghost_1twkl_95","--variant-headless":"_--variant-headless_1twkl_103","--status-error":"_--status-error_1twkl_111","--resize-none":"_--resize-none_1twkl_122","--resize-auto":"_--resize-auto_1twkl_123","--size-medium--m":"_--size-medium--m_1twkl_1","--size-large--m":"_--size-large--m_1twkl_1","--size-xlarge--m":"_--size-xlarge--m_1twkl_1","--size-medium--l":"_--size-medium--l_1twkl_1","--size-large--l":"_--size-large--l_1twkl_1","--size-xlarge--l":"_--size-xlarge--l_1twkl_1","--size-medium--xl":"_--size-medium--xl_1twkl_1","--size-large--xl":"_--size-large--xl_1twkl_1","--size-xlarge--xl":"_--size-xlarge--xl_1twkl_1"},dl=e=>{var k,S;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,size:u="medium",variant:_="outline",resize:m,className:d,attributes:h}=e,[p,g]=c.useState(s||l||""),f=et(),y=Ke(e.id),x=((k=f==null?void 0:f.attributes)==null?void 0:k.id)||((S=e.inputAttributes)==null?void 0:S.id)||y,v=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,C=b(b({},e.inputAttributes),f==null?void 0:f.attributes),N=F($t.root,u&&ce($t,"--size",u),w&&$t["--status-error"],v&&$t["--disabled"],_&&$t[`--variant-${_}`],m!==void 0&&$t[`--resize-${m}`],d),E=T=>{const $=T.target.value;t==null||t({name:n,value:$,event:T}),m==="auto"&&typeof s!="string"&&g($)};return c.useEffect(()=>{typeof s!="string"||m!=="auto"||g(s)},[s,m]),i.jsx("div",z(b({},h),{"data-rs-aligner-target":!0,className:N,"data-rs-textarea-value":p,children:i.jsx("textarea",z(b({rows:3},C),{className:$t.input,disabled:v,name:n,placeholder:a,value:s,defaultValue:l,onChange:E,onFocus:o||(C==null?void 0:C.onFocus),onBlur:r||(C==null?void 0:C.onBlur),id:x}))}))};dl.displayName="TextArea";const ul=dl;ul.Aligner=to;const Rr={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wo=e=>{const{children:t,markerSlot:o,className:r,attributes:n}=e,s=o!==null,l=F(Rr.item,!s&&Rr["item--full-width"],r);return i.jsxs(O,{as:"li",direction:"row",align:"stretch",gap:3,attributes:n,className:l,children:[s&&i.jsx("span",{className:Rr.marker,children:o}),i.jsx(O.Item,{grow:!0,children:t})]})},_l=e=>{const{children:t,className:o,attributes:r}=e,n=F(o);return i.jsx("ul",z(b({},r),{className:n,children:c.Children.map(t,(s,l)=>c.isValidElement(s)&&s.type===Wo?s:i.jsx(Wo,{children:s},l))}))};_l.displayName="Timeline",Wo.displayName="Timeline.Item";const ml=_l;ml.Item=Wo;const hl={short:4e3,long:8e3},bo=["top-start","top","top-end","bottom-start","bottom","bottom-end"],fl={queues:bo.reduce((e,t)=>b({[t]:[]},e),{}),id:"",show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},qo=c.createContext(fl),bl=()=>{const{add:e,hide:t,id:o}=c.useContext(qo);return c.useMemo(()=>({show:e,hide:t,id:o}),[e,t,o])},ot={container:"_container_13298_1","container--visible":"_container--visible_13298_1",wrapper:"_wrapper_13298_12","container--index-0":"_container--index-0_13298_1","container--index-1":"_container--index-1_13298_1","container--index-2":"_container--index-2_13298_112","container--index-overflow":"_container--index-overflow_13298_116",region:"_region_13298_65","region--nested":"_region--nested_13298_1","region--position-top":"_region--position-top_13298_1","region--position-top-start":"_region--position-top-start_13298_1","region--position-top-end":"_region--position-top-end_13298_1","region--position-bottom":"_region--position-bottom_13298_1","region--position-bottom-start":"_region--position-bottom-start_13298_1","region--position-bottom-end":"_region--position-bottom-end_13298_1"},gl=e=>{const{size:t="small",text:o,children:r,color:n="inverted",icon:s,title:l,actionsSlot:a,startSlot:u,collapsed:_,className:m,attributes:d}=e;let h=n==="inverted"||n==="neutral"?"elevation-overlay":n;n==="neutral"&&(h=_?"neutral":"elevation-overlay");const p=n==="neutral"?"neutral-faded":"transparent",g=t==="small"?"span":"div",f=t==="large";let y=[];a&&(y=Array.isArray(a)?a:[a]);const x=(l||o)&&i.jsxs(c.Fragment,{children:[l&&i.jsxs(ie,{variant:"body-3",weight:"bold",as:g,children:[l," "]}),i.jsx(ie,{variant:"body-3",as:g,children:o})]}),v=i.jsxs(O,{backgroundColor:h,borderColor:p,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:f?"start":"center",className:[ot.toast,m],attributes:d,children:[s&&i.jsx(ge,{size:5,svg:s,className:ot.icon}),u&&!s&&i.jsx(O.Item,{children:u}),i.jsx(O.Item,{grow:!0,children:i.jsxs(O,{direction:f?"column":"row",align:f?"start":"center",gap:3,children:[i.jsx(O.Item,{grow:!0,children:x&&r||t!=="small"?i.jsxs(O,{gap:.5,children:[x,r&&i.jsx(O,{gap:3,children:r})]}):x||r}),y.length&&i.jsx(O,{direction:"row",align:"center",gap:2,children:y.map((w,C)=>{const N=t==="large"?C===0:C===y.length-1,k={variant:N?"solid":"ghost",size:"small",color:N?n==="neutral"||n==="inverted"?"neutral":"media":"inherit",elevated:n!=="neutral"};return w.type===Te?c.createElement(Te,z(b(b({},k),w.props),{key:C})):w})})]})})]});return n==="inverted"?i.jsx(Pt,{colorMode:"inverted",children:v}):v};gl.displayName="Toast";const pl=e=>{const{toastProps:t,id:o,status:r,inspected:n,index:s}=e,{timeout:l="short"}=t,{show:a,hide:u,remove:_}=c.useContext(qo),[m,d]=c.useState(),h=c.useRef(null),p=c.useRef(!1),g=c.useRef(null),f=r==="entered",y=F(ot.container,f&&ot["container--visible"],s===0&&ot[`container--index-${s}`],!n&&(s===1||s===2)&&ot[`container--index-${s}`],!n&&s>=3&&ot["container--index-overflow"]),x=c.useCallback(()=>{h.current&&clearTimeout(h.current)},[]),v=c.useCallback(()=>{x();const C=typeof l=="string"?hl[l]:l;l!==0&&(h.current=setTimeout(()=>{u(o)},C!=null?C:hl.short))},[u,o,l,x]),w=C=>{C.propertyName==="height"&&(f||_(o))};return c.useEffect(()=>{f&&(n?x():v())},[n,v,x,f]),c.useEffect(()=>{g.current&&d(g.current.clientHeight),a(o),v()},[a,o,v]),c.useEffect(()=>{if(!g.current)return;const C=new It;f?C.trap(g.current,{includeTrigger:!0,mode:"content-menu"}):Zt()&&C.release()},[f]),c.useEffect(()=>{if(!f||s>0)return;const C=()=>{p.current=!0,Re(()=>{p.current=!1}),g.current&&d(g.current.clientHeight)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[f,s]),i.jsx("li",{className:y,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:p.current?"0s":void 0},onTransitionEnd:w,onFocus:x,onBlur:v,children:i.jsx("span",{className:ot.wrapper,children:i.jsx(gl,z(b({},t),{collapsed:s>0&&!n,attributes:z(b({},t.attributes),{ref:g})}))})})};pl.displayName="ToastContainer";const vl=e=>{const{position:t,nested:o}=e,{queues:r,options:n}=c.useContext(qo),[s,l]=c.useState(!1),a=c.useRef(!1),u=c.useRef(null),_=r[t],{width:m,expanded:d}=(n==null?void 0:n[t])||{},h=F(ot.region,ot[`region--position-${t}`],o&&ot["region--nested"]),p=_.filter(w=>w.status==="entered").length;let g=0;const f=()=>{a.current=!0},y=w=>{let C=w.target,N=!1;for(;C&&C!==u.current&&!N;)N=C.matches(gn),C=C.parentElement;N||l(E=>!E),a.current=!1},x=()=>{a.current||l(!0)},v=()=>{a.current||l(!1)};return c.useEffect(()=>{_.length===0&&l(!1)},[_.length]),_.length?i.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:u,onTouchStart:f,onClick:y,onMouseEnter:x,onMouseLeave:v,style:{width:m},children:_.map((w,C)=>{const N=p-C+g-1;return w.status!=="entered"&&(g+=1),i.jsx(pl,z(b({},w),{index:N,inspected:s||!!d}),w.id)})}):null};vl.displayName="ToastRegion";let hd=0;const fd=()=>`__rs-toast-${hd++}`,bd=(e,t)=>{let o;switch(t.type){case"add":{const r=t.payload.toastProps||{},{position:n="bottom-end"}=r,s=ve(r,["position"]);return z(b({},e),{[n]:[...e[n],{id:t.payload.id,toastProps:s,status:"entering"}]})}case"show":{const{id:n}=t.payload;return o=b({},e),bo.forEach(s=>{o[s]=o[s].map(l=>l.status!=="entering"?l:l.id===n?z(b({},l),{status:"entered"}):l)}),o}case"hide":{const{id:n}=t.payload;return o=b({},e),bo.forEach(s=>{o[s]=o[s].map(l=>l.id===n?z(b({},l),{status:"exiting"}):l)}),o}case"remove":{const{id:n}=t.payload;return o=b({},e),bo.forEach(s=>{o[s]=o[s].filter(l=>l.id!==n)}),o}}},en=e=>{const{children:t,options:o}=e,r=bl(),n=c.useId(),[s,l]=c.useReducer(bd,fl.queues),a=c.useCallback(h=>{const p=fd();return l({type:"add",payload:{toastProps:h,id:p}}),p},[]),u=c.useCallback(h=>{l({type:"show",payload:{id:h}})},[]),_=c.useCallback(h=>{l({type:"hide",payload:{id:h}})},[]),m=c.useCallback(h=>{l({type:"remove",payload:{id:h}})},[]),d=c.useMemo(()=>({queues:s,id:n,add:a,show:u,hide:_,remove:m,inspecting:!1,options:o}),[s,u,_,a,m,n,o]);return i.jsxs(qo.Provider,{value:d,children:[t,bo.map(h=>i.jsx(vl,{position:h,nested:!!r.id},h))]})};en.displayName="ToastProiver";const yl=c.createContext(null),gd=()=>c.useContext(yl),tn=e=>{const d=e,{onChange:t,value:o,selectionMode:r="single",children:n,color:s,selectedColor:l,selectedVariant:a}=d,u=ve(d,["onChange","value","selectionMode","children","color","selectedColor","selectedVariant"]),_=c.useRef(null),m=h=>{const{event:p,value:g,checked:f}=h;if(!g)return;let y=r==="single"?[g]:[...o];r==="multiple"&&(f?y.push(g):y=y.filter(x=>x!==g)),t&&t({value:y,event:p})};return nr({ref:_}),i.jsx(yl.Provider,{value:{onChange:m,value:o,selectedColor:l,color:s,selectedVariant:a},children:i.jsx(Te.Group,z(b({},u),{attributes:b({ref:_},u==null?void 0:u.attributes),children:n}))})};tn.displayName="ToggleButtonGroupControlled";const xl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(tn,z(b({},e),{value:r,defaultValue:void 0,onChange:s}))};xl.displayName="ToggleButtonGroupUncontrolled";const wl=e=>{const{value:t}=e;return t!==void 0?i.jsx(tn,b({},e)):i.jsx(xl,b({},e))};wl.displayName="ToggleButtonGroup";const on=e=>{var f,y,x;const g=e,{selectedColor:t,selectedVariant:o,value:r,onChange:n,onClick:s,color:l,variant:a="outline"}=g,u=ve(g,["selectedColor","selectedVariant","value","onChange","onClick","color","variant"]),_=gd(),m=(y=r?(f=_==null?void 0:_.value)==null?void 0:f.includes(r):void 0)!=null?y:e.checked,d=m&&(t||(_==null?void 0:_.selectedColor))||l||(_==null?void 0:_.color),h=m&&(o||(_==null?void 0:_.selectedVariant))||a,p=v=>{var C;const w={checked:!m,value:r!=null?r:"",event:v};s==null||s(v),_?(C=_==null?void 0:_.onChange)==null||C.call(_,w):n==null||n(w)};return i.jsx(Te,z(b({},u),{color:d,variant:h,onClick:p,highlighted:m,attributes:z(b({},u.attributes),{"aria-pressed":m,tabIndex:(x=_==null?void 0:_.value)!=null&&x.length?m?0:-1:void 0})}))};on.displayName="ToggleButtonControlled";const Cl=e=>{const l=e,{defaultChecked:t,onChange:o}=l,r=ve(l,["defaultChecked","onChange"]),n=Ct(t),s=a=>{o==null||o(a),n.toggle(a.checked)};return i.jsx(on,z(b({},r),{onChange:s,checked:n.active}))};Cl.displayName="ToggleButtonUncontrolled";const kl=e=>{const{checked:t}=e;return t!==void 0?i.jsx(on,b({},e)):i.jsx(Cl,b({},e))};kl.displayName="ToggleButton";const pd={root:"_root_1vb26_1"},Nl=e=>{const a=e,{text:t,children:o,position:r="bottom",color:n="inverted",contentMaxWidth:s="360px"}=a,l=ve(a,["text","children","position","color","contentMaxWidth"]);return t?i.jsxs(ut,z(b({},l),{position:r,triggerType:"hover",groupTimeouts:l.active===void 0,contentMaxWidth:s,children:[i.jsx(ut.Trigger,{children:o}),i.jsx(ut.Content,{children:i.jsx(Pt,{colorMode:n,children:i.jsx(ie,{variant:"caption-1",className:pd.root,children:t})})})]})):o({ref:null})};Nl.displayName="Tooltip";const vd={root:"_root_1cpr1_1"},zl=e=>{const{theme:t,defaultTheme:o="reshaped",colorMode:r,defaultColorMode:n,defaultViewport:s,toastOptions:l,scoped:a,className:u}=e,_=F(vd.root,u),m=c.useRef(null),d=mr();return i.jsx(Sn,{children:i.jsx(Jn,{defaultMode:n||d.mode||"light",mode:r,scopeRef:d&&a?m:void 0,children:i.jsx(Zn,{name:t,defaultName:o,className:_,scoped:a,scopeRef:d&&a?m:void 0,children:i.jsx(Jc,{defaultViewport:s,children:i.jsx(en,{options:l,children:e.children})})})})})};zl.displayName="Reshaped";const rn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),nn=e=>{const{children:t,onToggle:o,active:r,iconPosition:n,iconSize:s,gap:l,className:a,attributes:u}=e,_=F(a),m=Ke(),d=Ne(o),h=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:d.current,iconPosition:n,iconSize:s,gap:l}),[r,n,s,m,d,l]);return i.jsx("div",z(b({},u),{className:_,children:i.jsx(rn.Provider,{value:h,children:t})}))};nn.displayName="AccordionControlled";const Sl=e=>{const a=e,{defaultActive:t,onToggle:o}=a,r=ve(a,["defaultActive","onToggle"]),[n,s]=c.useState(t||!1),l=u=>{s(u),o==null||o(u)};return i.jsx(nn,z(b({},r),{onToggle:l,active:n}))};Sl.displayName="AccordionUncontrolled";const El=e=>{const{active:t}=e;return t!==void 0?i.jsx(nn,b({},e)):i.jsx(Sl,b({},e))};El.displayName="Accordion";const Tl=e=>{const{children:t}=e,{active:o,triggerId:r,contentId:n,gap:s}=c.useContext(rn);return i.jsx(Kr,{active:o,attributes:{"aria-labelledby":r,id:n},children:s?i.jsx(O,{paddingTop:s,children:t}):t})};Tl.displayName="Accordion.Content";const $l={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ml=e=>{const{children:t}=e,{active:o,onToggle:r,triggerId:n,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext(rn),u=F($l.icon,o&&$l["icon--active"]),_=()=>{r==null||r(!o)},m={"aria-expanded":o,"aria-controls":s,id:n};return typeof t=="function"?i.jsx(i.Fragment,{children:t(z(b({},m),{onClick:_}),{active:o})}):i.jsx(Le,{onClick:_,fullWidth:!0,attributes:m,children:i.jsxs(O,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(O.Item,{grow:!0,children:t}),i.jsx(ge,{size:a||4,svg:vi,className:u})]})})};Ml.displayName="Accordion.Trigger";const sn=El;sn.Trigger=Ml,sn.Content=Tl;const yd={root:"_root_1yz7x_1"},Il=e=>{const{children:t,padding:o=4,width:r,align:n,justify:s,height:l,maxHeight:a,className:u,attributes:_}=e,m=F(yd.root,u);return i.jsx(O,{attributes:_,className:m,paddingInline:o,align:n,justify:s,height:l,maxHeight:a,width:r,maxWidth:"100%",children:t})};Il.displayName="Container";const Ll={root:"_root_3bv1t_1",item:"_item_3bv1t_67"},Dl=e=>{const{area:t,colStart:o,colEnd:r,colSpan:n,rowStart:s,rowEnd:l,rowSpan:a,children:u,className:_,as:m="div",attributes:d}=e,h=F(Ll.item,_),p=de(n,y=>y&&`span ${y}`),g=de(a,y=>y&&`span ${y}`),f=b(b(b(b(b(b(b(b({},d==null?void 0:d.style),q("--rs-grid-area",t)),q("--rs-grid-col-end",p)),q("--rs-grid-col-end",r)),q("--rs-grid-col-start",o)),q("--rs-grid-row-end",g)),q("--rs-grid-row-end",l)),q("--rs-grid-row-start",s));return i.jsx(m,z(b({},d),{className:h,style:f,children:u}))},Pl=e=>{const{areas:t,columns:o,rows:r,gap:n,columnGap:s,rowGap:l,align:a,justify:u,autoColumns:_,autoRows:m,autoFlow:d,children:h,className:p,width:g,height:f,maxWidth:y,as:x="div",attributes:v}=e,w=Qe({align:a,justify:u,width:g,height:f,maxWidth:y}),C=de(r,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),N=de(o,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),E=de(t,T=>T?`"${T==null?void 0:T.join('" "')}"
|
|
2
|
+
`:void 0),k=F(Ll.root,w.classNames,p),S=b(b(b(b(b(b(b(b(b(b(b({},v==null?void 0:v.style),q("--rs-grid-gap",n)),q("--rs-grid-column-gap",s)),q("--rs-grid-row-gap",l)),q("--rs-grid-rows",C)),q("--rs-grid-columns",N)),q("--rs-grid-areas",E)),q("--rs-grid-auto-flow",d)),q("--rs-grid-auto-columns",_)),q("--rs-grid-auto-rows",m)),w.variables);return i.jsx(x,z(b({},v),{className:k,style:S,children:h}))};Pl.displayName="Grid",Dl.displayName="Grid.Item";const Fl=Pl;Fl.Item=Dl;const Ht={root:"_root_17pp4_1",item:"_item_17pp4_5",handle:"_handle_17pp4_16","--variant-bordered":"_--variant-bordered_17pp4_34","handle--dragging":"_handle--dragging_17pp4_60","--variant-borderless":"_--variant-borderless_17pp4_46","--direction-row":"_--direction-row_17pp4_69","--direction-column":"_--direction-column_17pp4_73"},xd=(e,t)=>{const{disabled:o,containerRef:r,orientation:n="all"}=t||{},s=Ne(e),l=Ct(),a=c.useRef(null),u=c.useRef(null),_=r||u,m=c.useRef({x:0,y:0}),d=n==="vertical"||n==="all",h=n==="horizontal"||n==="all",p=(g,f)=>{var N;const y=a.current;if(!y)return;const v=((N=_.current)!=null?N:document.body).getBoundingClientRect(),w=y==null?void 0:y.getBoundingClientRect(),C={x:0,y:0,triggerX:0,triggerY:0};if(d){const E=Math.round(w.y)-v.y+f;C.y=Math.max(0,Math.min(E,v.height-w.height)),C.triggerY=w.y-v.y}if(h){const E=Math.round(w.x)-v.x+g;C.x=Math.max(0,Math.min(E,v.width-w.width)),C.triggerX=w.x-v.x}e(C)};return Ge({[lo]:()=>h&&p(-20,0),[io]:()=>h&&p(20,0),[no]:()=>d&&p(0,-20),[so]:()=>d&&p(0,20)},[],{ref:a,preventDefault:!0,disabled:o}),c.useEffect(()=>{const g=a.current;if(!g||!l.active)return;const f=x=>{var $,M;const v=x instanceof MouseEvent?x:x.changedTouches[0],C=(($=_.current)!=null?$:document.body).getBoundingClientRect(),N=g.getBoundingClientRect(),E=v.clientX-C.x,k=v.clientY-C.y,S=E-m.current.x,T=k-m.current.y;(M=s.current)==null||M.call(s,{x:h?Math.max(0,Math.min(S,C.width-N.width)):0,y:d?Math.max(0,Math.min(T,C.height-N.height)):0,triggerX:N.x-C.x,triggerY:N.y-C.y})},y=()=>{m.current={x:0,y:0},l.deactivate(),zo()};return document.addEventListener("touchmove",f,{passive:!0}),document.addEventListener("touchend",y,{passive:!0}),document.addEventListener("mousemove",f,{passive:!0}),document.addEventListener("mouseup",y,{passive:!0}),()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",y),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",y)}},[l,h,d,_,s]),c.useEffect(()=>{const g=a.current;if(!g||o)return;const f=y=>{const x=y instanceof MouseEvent?y:y.changedTouches[0],v=g.getBoundingClientRect();m.current={x:x.clientX-v.x,y:x.clientY-v.y},l.activate(),Jt()};return g.addEventListener("touchstart",f,{passive:!0}),g.addEventListener("mousedown",f,{passive:!0}),()=>{g.removeEventListener("touchstart",f),g.removeEventListener("mousedown",f)}},[l,o]),{ref:a,containerRef:_,active:l.active}},Al=c.createContext({}),wd=e=>{const{children:t}=e,{containerRef:o,onDrag:r,index:n,direction:s}=c.useContext(Al),{ref:l,active:a}=xd(_=>{r(z(b({},_),{index:n}))},{containerRef:o,orientation:s==="row"?"horizontal":"vertical"}),u=F(Ht.handle,a&&Ht["handle--dragging"]);return t?i.jsx(O.Item,{children:t({ref:l},{direction:s,status:a?"dragging":"idle"})}):i.jsx(O.Item,{className:u,attributes:{role:"button",tabIndex:0,"aria-hidden":!0,ref:_=>{l.current=_}}})},ln=()=>null,Cd=c.forwardRef((e,t)=>{const{children:o,defaultSize:r,minSize:n,maxSize:s}=e,l=c.useRef(null);return i.jsx(O.Item,{grow:!0,className:Ht.item,attributes:{ref:a=>{typeof t=="function"&&t(a),l.current=a},style:{"--rs-resizable-default-size":r,"--rs-resizable-min-size":n,"--rs-resizable-max-size":s}},children:o})}),Vl=e=>{const{children:t,variant:o="borderless",height:r,direction:n="row",gap:s=2,className:l,attributes:a}=e,u=F(Ht.root,Ht[`--direction-${n}`],o&&Ht[`--variant-${o}`],l),_=c.useRef(null),m=c.useRef([]),d=n==="row";let h=0,p=0;m.current=[];const g=x=>{const{item:v,grow:w,itemsSize:C,itemsCount:N}=x,{minSize:E,maxSize:k}=v.props,S=w/N/100*C,T=E&&Number(E.replace("px","")),$=k&&Number(k==null?void 0:k.replace("px",""));return!!(T&&T>S||$&&$<S)},f=x=>{const{index:v,x:w,y:C,triggerX:N,triggerY:E}=x,k=m.current[v],S=m.current[v+1];if(!k.el||!S.el)return;const T=m.current.length;let $=T*100,M=0;m.current.forEach((J,U)=>{J.el&&(M+=d?J.el.clientWidth:J.el.clientHeight,!(U===v||U===v+1)&&($-=Number(J.el.style.flexGrow||100)))},0);const L=d?k.el.clientWidth:k.el.clientHeight,P=d?k.el.offsetLeft:k.el.offsetTop,A=d?S.el.clientWidth:S.el.clientHeight,V=(d?N:E)-L-P,D=(d?w:C)-V,j=L+A,W=Math.min(1,Math.max(0,(D-P)/j)),re=Math.floor(W*$),X=Math.floor($-re);g({item:k,itemsSize:M,grow:re,itemsCount:T})||g({item:S,itemsSize:M,grow:X,itemsCount:T})||(k.el.style.flexGrow=re.toString(),S.el.style.flexGrow=X.toString())};c.useEffect(()=>{const x=[];let v=0;m.current.forEach(w=>{w.el&&(v+=d?w.el.clientWidth:w.el.clientHeight)}),m.current.forEach((w,C)=>{if(!w.el)return;const N=(d?w.el.clientWidth:w.el.clientHeight)/v;x[C]=m.current.length*N*100}),m.current.forEach((w,C)=>{!w.el||!x[C]||(w.el.style.flexGrow=x[C].toString(),w.el.setAttribute("data-rs-resizable-item-mounted",""))})},[d]);const y=c.Children.map(t,x=>{const v=c.isValidElement(x);if(v&&x.props&&x.type!==ln)return i.jsx(Al.Provider,{value:{containerRef:_,index:h++,onDrag:f,direction:n},children:x});if(v&&x.props&&x.type===ln){const w=h;return i.jsx(Cd,z(b({},x.props),{index:p++,ref:C=>{m.current[w]={el:C,props:x.props}}}))}return null});return i.jsx(O,{attributes:z(b({},a),{ref:_}),className:u,height:r,direction:n,align:"stretch",gap:s,children:y})};Vl.displayName="Resizable";const an=Vl;an.Item=ln,an.Handle=wd;const ft={root:"_root_xnsfu_1",scrollable:"_scrollable_xnsfu_9",content:"_content_xnsfu_30",scrollbar:"_scrollbar_xnsfu_37",thumb:"_thumb_xnsfu_43","--scrollbar-y":"_--scrollbar-y_xnsfu_59","--scrollbar-x":"_--scrollbar-x_xnsfu_71","--display-visible":"_--display-visible_xnsfu_91","--display-hover":"_--display-hover_xnsfu_96","--scrollbar-dragging":"_--scrollbar-dragging_xnsfu_100"},Bl=e=>{const{ratio:t,position:o,vertical:r,onThumbMove:n}=e,s=Ne(n),[l,a]=c.useState(!1),u=c.useRef(0),_=c.useRef(null),m=F(ft.scrollbar,r?ft["--scrollbar-y"]:ft["--scrollbar-x"],l&&ft["--scrollbar-dragging"]),d=f=>{const y=_.current,x=u.current;if(u.current=0,x||!y||f.currentTarget!==y)return;const v=y.getBoundingClientRect(),w=r?f.pageY-v.top:f.pageX-v.left,C=r?y.clientHeight:y.clientWidth;n({value:w/C-t/2,type:"absolute"})},h=c.useCallback(f=>{var w;u.current||(u.current=r?f.pageY:f.pageX);const y=_.current;if(!y||!l)return;const x=r?f.movementY:f.movementX,v=r?y.scrollHeight:y.scrollWidth;(w=s.current)==null||w.call(s,{value:x/v,type:"relative"})},[r,l,s]),p=()=>{a(!0),Jt()},g=c.useCallback(()=>{a(!1),zo()},[]);return c.useEffect(()=>{if(l)return document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g)}},[h,g,l]),i.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":o},ref:_,onClick:d,onMouseDown:p,"aria-hidden":"true",children:i.jsx("div",{className:ft.thumb})})},jl=c.forwardRef((e,t)=>{const{children:o,height:r,maxHeight:n,scrollbarDisplay:s="hover",onScroll:l,className:a,attributes:u}=e,[_,m]=c.useState({x:1,y:1}),[d,h]=c.useState({x:0,y:0}),p=c.useRef(null),g=c.useRef(null),f=Qe({height:r,maxHeight:n}),y=F(ft.root,s&&ft[`--display-${s}`],a),x=F(ft.content,f.classNames),v=c.useCallback(()=>{const E=p.current;E&&m({x:E.clientWidth/E.scrollWidth,y:E.clientHeight/E.scrollHeight})},[]),w=E=>{const{scrollLeft:k,scrollTop:S,clientWidth:T,clientHeight:$,scrollWidth:M,scrollHeight:L}=E.currentTarget;h({x:k/M,y:S/L}),l==null||l({x:M===T?0:k/(M-T),y:L===$?0:S/(L-$)})},C=E=>{const k=p.current;if(!k)return;const S=k.scrollHeight*E.value;E.type==="absolute"?k.scrollTop=S:k.scrollTop+=S},N=E=>{const k=p.current;if(!k)return;const S=k.scrollWidth*E.value;E.type==="absolute"?k.scrollLeft=S:k.scrollLeft+=S};return c.useImperativeHandle(t,()=>p.current),be(()=>{v()},[v]),be(()=>{const E=g.current;if(!E)return;const k=new ResizeObserver(v);return k.observe(E),()=>k.disconnect()},[v]),i.jsxs("div",z(b({},u),{ref:g,className:y,children:[i.jsx("div",{className:ft.scrollable,ref:p,onScroll:w,children:i.jsx("div",{className:x,style:b({},f.variables),children:o})}),_.y<1&&s!=="hidden"&&i.jsx(Bl,{vertical:!0,onThumbMove:C,ratio:_.y,position:d.y}),_.x<1&&s!=="hidden"&&i.jsx(Bl,{onThumbMove:N,ratio:_.x,position:d.x})]}))});jl.displayName="ScrollArea";const kd=e=>{const{w:t="auto",h:o=50,minW:r=o,children:n}=e;return i.jsx("div",{style:{width:t,height:o,minWidth:r,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-radius-small)"},children:n})};I.Accordion=sn,I.ActionBar=Vn,I.Actionable=Le,I.Alert=Bn,I.Autocomplete=Ts,I.Avatar=$s,I.Badge=Ls,I.Breadcrumbs=As,I.Button=Te,I.Calendar=Gs,I.Card=Xs,I.Carousel=Zs,I.Checkbox=si,I.CheckboxGroup=ei,I.Container=Il,I.ContextMenu=At,I.Dismissible=fr,I.Divider=eo,I.DropdownMenu=ke,I.FileUpload=ci,I.Flyout=ut,I.FormControl=Lo,I.Grid=Fl,I.Hidden=kt,I.HiddenInput=_o,I.HiddenVisually=Po,I.Hotkey=ui,I.Icon=ge,I.Image=xr,I.Link=Cr,I.Loader=hr,I.MenuItem=br,I.Modal=Pr,I.NumberField=xi,I.Overlay=Ir,I.Pagination=ki,I.PinField=Ei,I.Placeholder=kd,I.Popover=_t,I.Progress=Ti,I.ProgressIndicator=$i,I.Radio=Mi,I.RadioGroup=ni,I.Reshaped=zl,I.Resizable=an,I.Scrim=Ii,I.ScrollArea=jl,I.Select=fo,I.Skeleton=ji,I.Slider=Ki,I.Stepper=Zi,I.Switch=Ji,I.Table=jt,I.Tabs=Oo,I.Text=ie,I.TextArea=ul,I.TextField=Do,I.Theme=Pt,I.Timeline=ml,I.ToastProvider=en,I.ToggleButton=kl,I.ToggleButtonGroup=wl,I.Tooltip=Nl,I.TrapFocus=It,I.View=O,I.classNames=F,I.responsivePropDependency=de,I.useFormControl=et,I.useHandlerRef=Ne,I.useHotkeys=Ge,I.useIsomorphicLayoutEffect=be,I.useKeyboardArrowNavigation=nr,I.useKeyboardMode=Na,I.useOnClickOutside=En,I.useRTL=pt,I.useResponsiveClientValue=mi,I.useScrollLock=sr,I.useTheme=Gn,I.useToast=bl,I.useToggle=Ct,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -32,14 +32,6 @@ function getContentCorners(contentRect, position) {
|
|
|
32
32
|
return [corners.topLeft, corners.bottomLeft];
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Checks if the mouse is over the trigger or content elements
|
|
37
|
-
*/
|
|
38
|
-
function isMouseOverElement(point, contentRef, triggerRef) {
|
|
39
|
-
const elements = document.elementsFromPoint(point.x, point.y);
|
|
40
|
-
return elements.some((el) => (contentRef.current && contentRef.current.contains(el)) ||
|
|
41
|
-
(triggerRef.current && triggerRef.current.contains(el)));
|
|
42
|
-
}
|
|
43
35
|
export function createSafeArea(options) {
|
|
44
36
|
const { contentRef, triggerRef, position, onClose, origin: passedOrigin } = options;
|
|
45
37
|
if (!contentRef.current) {
|
|
@@ -68,10 +60,6 @@ export function createSafeArea(options) {
|
|
|
68
60
|
};
|
|
69
61
|
const handleMouseMove = (e) => {
|
|
70
62
|
const currentPoint = { x: e.clientX, y: e.clientY };
|
|
71
|
-
if (isMouseOverElement(currentPoint, contentRef, triggerRef)) {
|
|
72
|
-
cleanup();
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
63
|
if (isPointInTriangle(currentPoint, triangle) && contentRef.current && triggerRef.current) {
|
|
76
64
|
startTimeout();
|
|
77
65
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reshaped",
|
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"email": "hello@reshaped.so",
|
|
7
7
|
"homepage": "https://reshaped.so",
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"cssnano": "7.1.2",
|
|
92
92
|
"csstype": "3.2.3",
|
|
93
93
|
"culori": "4.0.2",
|
|
94
|
-
"
|
|
94
|
+
"postcss-custom-media": "12.0.1",
|
|
95
|
+
"@reshaped/headless": "3.10.2"
|
|
95
96
|
},
|
|
96
97
|
"scripts": {
|
|
97
98
|
"clean": "bash ./bin/clean.sh",
|