rechtspilot-ui 1.1.3 → 1.1.5
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/index.cjs +52 -53
- package/dist/index.es.js +318 -320
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
43
43
|
|
|
44
44
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
45
45
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
46
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function If(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function _t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(If.apply(void 0,Pt([Df[e]],t,!1)).trim())}var kf=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw _t(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),d=(a=0,n.length);a<d;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(ko);return n},e}(),Mf=1<<30,Pn=new Map,Mn=new Map,jn=1,cn=function(e){if(Pn.has(e))return Pn.get(e);for(;Mn.has(jn);)jn++;var t=jn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Mf))throw _t(16,"".concat(t));return Pn.set(e,t),Mn.set(t,e),t},_f=function(e,t){jn=t+1,Pn.set(e,t),Mn.set(t,e)},Lf="style[".concat(st,"][").concat(ua,'="').concat(Zn,'"]'),Ff=new RegExp("^".concat(st,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wf=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},Bf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ko),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var d=c.match(Ff);if(d){var u=0|parseInt(d[1],10),p=d[2];u!==0&&(_f(p,u),Wf(e,p,d[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Xs=function(e){for(var t=document.querySelectorAll(Lf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(st)!==la&&(Bf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var xa=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var d=Array.from(c.querySelectorAll("style[".concat(st,"]")));return d[d.length-1]}(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(st,la),r.setAttribute(ua,Zn);var a=Vf();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Hf=function(){function e(t){this.element=xa(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw _t(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Uf=function(){function e(t){this.element=xa(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),zf=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Gs=kn,Yf={isServer:!kn,useCSSOMInjection:!xf},ya=function(){function e(t,n,r){t===void 0&&(t=At),n===void 0&&(n={});var o=this;this.options=me(me({},Yf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&kn&&Gs&&(Gs=!1,Xs(this)),_o(this,function(){return function(s){for(var a=s.getTag(),c=a.length,d="",u=function(m){var g=function(x){return Mn.get(x)}(m);if(g===void 0)return"continue";var v=s.names.get(g),E=a.getGroup(m);if(v===void 0||!v.size||E.length===0)return"continue";var f="".concat(st,".g").concat(m,'[id="').concat(g,'"]'),h="";v!==void 0&&v.forEach(function(x){x.length>0&&(h+="".concat(x,","))}),d+="".concat(E).concat(f,'{content:"').concat(h,'"}').concat(ko)},p=0;p<c;p++)u(p);return d}(o)})}return e.registerId=function(t){return cn(t)},e.prototype.rehydrate=function(){!this.server&&kn&&Xs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new zf(o):r?new Hf(o):new Uf(o)}(this.options),new kf(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(cn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(cn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(cn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Kf=/&/g,Xf=/^\s*\/\/.*$/gm;function Ea(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ea(n.children,t)),n})}function Gf(e){var t,n,r,o=At,s=o.options,a=s===void 0?At:s,c=o.plugins,d=c===void 0?Qn:c,u=function(g,v,E){return E.startsWith(n)&&E.endsWith(n)&&E.replaceAll(n,"").length>0?".".concat(t):g},p=d.slice();p.push(function(g){g.type===Kn&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Kf,n).replace(r,u))}),a.prefix&&p.push(vf),p.push(pf);var m=function(g,v,E,f){v===void 0&&(v=""),E===void 0&&(E=""),f===void 0&&(f="&"),t=f,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var h=g.replace(Xf,""),x=df(E||v?"".concat(E," ").concat(v," { ").concat(h," }"):h);a.namespace&&(x=Ea(x,a.namespace));var y=[];return In(x,mf(p.concat(hf(function(b){return y.push(b)})))),y};return m.hash=d.length?d.reduce(function(g,v){return v.name||_t(15),tt(g,v.name)},da).toString():"",m}var qf=new ya,no=Gf(),wa=Q.createContext({shouldForwardProp:void 0,styleSheet:qf,stylis:no});wa.Consumer;Q.createContext(void 0);function qs(){return Q.useContext(wa)}var Zs=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=no);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,_o(this,function(){throw _t(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=no),this.name+t.hash},e}(),Zf=function(e){return e>="A"&&e<="Z"};function Qs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Zf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ba=function(e){return e==null||e===!1||e===""},Ra=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!ba(s)&&(Array.isArray(s)&&s.isCss||$t(s)?r.push("".concat(Qs(o),":"),s,";"):Nt(s)?r.push.apply(r,Pt(Pt(["".concat(o," {")],Ra(s),!1),["}"],!1)):r.push("".concat(Qs(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in gf||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(ba(e))return[];if(Mo(e))return[".".concat(e.styledComponentId)];if($t(e)){if(!$t(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Zs||Nt(o)||o===null||console.error("".concat(pa(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof Zs?n?(e.inject(n,r),[e.getName(r)]):[e]:Nt(e)?Ra(e):Array.isArray(e)?Array.prototype.concat.apply(Qn,e.map(function(a){return ot(a,t,n,r)})):[e.toString()]}function Qf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($t(n)&&!Mo(n))return!1}return!0}var Jf=fa(Zn),ep=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Qf(t),this.componentId=n,this.baseHash=tt(Jf,n),this.baseStyle=r,ya.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=nt(o,this.staticRulesId);else{var s=Ks(ot(this.rules,t,n,r)),a=eo(tt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=nt(o,a),this.staticRulesId=a}else{for(var d=tt(this.baseHash,r.hash),u="",p=0;p<this.rules.length;p++){var m=this.rules[p];if(typeof m=="string")u+=m,process.env.NODE_ENV!=="production"&&(d=tt(d,m));else if(m){var g=Ks(ot(m,t,n,r));d=tt(d,g+p),u+=g}}if(u){var v=eo(d>>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(u,".".concat(v),void 0,this.componentId)),o=nt(o,v)}}return o},e}(),Ca=Q.createContext(void 0);Ca.Consumer;var Sr={},Js=new Set;function tp(e,t,n){var r=Mo(e),o=e,s=!Cr(e),a=t.attrs,c=a===void 0?Qn:a,d=t.componentId,u=d===void 0?function(R,C){var S=typeof R!="string"?"sc":Vs(R);Sr[S]=(Sr[S]||0)+1;var w="".concat(S,"-").concat(Cf(Zn+S+Sr[S]));return C?"".concat(C,"-").concat(w):w}(t.displayName,t.parentComponentId):d,p=t.displayName,m=p===void 0?function(R){return Cr(R)?"styled.".concat(R):"Styled(".concat(pa(R),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Vs(t.displayName),"-").concat(t.componentId):t.componentId||u,v=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,E=t.shouldForwardProp;if(r&&o.shouldForwardProp){var f=o.shouldForwardProp;if(t.shouldForwardProp){var h=t.shouldForwardProp;E=function(R,C){return f(R,C)&&h(R,C)}}else E=f}var x=new ep(n,g,r?o.componentStyle:void 0);function y(R,C){return function(S,w,j){var $=S.attrs,I=S.componentStyle,z=S.defaultProps,Y=S.foldedComponentIds,F=S.styledComponentId,T=S.target,W=Q.useContext(Ca),k=qs(),M=S.shouldForwardProp||k.shouldForwardProp;process.env.NODE_ENV!=="production"&&Q.useDebugValue(F);var N=Ef(w,W,z)||At,B=function(O,H,A){for(var L,V=me(me({},H),{className:void 0,theme:A}),G=0;G<O.length;G+=1){var Z=$t(L=O[G])?L(V):L;for(var K in Z)V[K]=K==="className"?nt(V[K],Z[K]):K==="style"?me(me({},V[K]),Z[K]):Z[K]}return H.className&&(V.className=nt(V.className,H.className)),V}($,w,N),te=B.as||T,J={};for(var P in B)B[P]===void 0||P[0]==="$"||P==="as"||P==="theme"&&B.theme===N||(P==="forwardedAs"?J.as=B.forwardedAs:M&&!M(P,te)||(J[P]=B[P],M||process.env.NODE_ENV!=="development"||Zd(P)||Js.has(P)||!Jr.has(te)||(Js.add(P),console.warn('styled-components: it looks like an unknown prop "'.concat(P,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=function(O,H){var A=qs(),L=O.generateAndInjectStyles(H,A.styleSheet,A.stylis);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(L),L}(I,B);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(D);var _=nt(Y,F);return D&&(_+=" "+D),B.className&&(_+=" "+B.className),J[Cr(te)&&!Jr.has(te)?"class":"className"]=_,J.ref=j,Q.createElement(te,J)}(b,R,C)}y.displayName=m;var b=Q.forwardRef(y);return b.attrs=v,b.componentStyle=x,b.displayName=m,b.shouldForwardProp=E,b.foldedComponentIds=r?nt(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=g,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=r?function(C){for(var S=[],w=1;w<arguments.length;w++)S[w-1]=arguments[w];for(var j=0,$=S;j<$.length;j++)to(C,$[j],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(yf(m,g),b.warnTooManyClasses=function(R,C){var S={},w=!1;return function(j){if(!w&&(S[j]=!0,Object.keys(S).length>=200)){var $=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat($,`.
|
|
46
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function If(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function _t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(If.apply(void 0,Pt([Df[e]],t,!1)).trim())}var kf=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw _t(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),d=(a=0,n.length);a<d;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(ko);return n},e}(),Mf=1<<30,Pn=new Map,Mn=new Map,jn=1,cn=function(e){if(Pn.has(e))return Pn.get(e);for(;Mn.has(jn);)jn++;var t=jn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Mf))throw _t(16,"".concat(t));return Pn.set(e,t),Mn.set(t,e),t},_f=function(e,t){jn=t+1,Pn.set(e,t),Mn.set(t,e)},Lf="style[".concat(st,"][").concat(ua,'="').concat(Zn,'"]'),Ff=new RegExp("^".concat(st,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wf=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},Bf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ko),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var d=c.match(Ff);if(d){var u=0|parseInt(d[1],10),p=d[2];u!==0&&(_f(p,u),Wf(e,p,d[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Xs=function(e){for(var t=document.querySelectorAll(Lf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(st)!==la&&(Bf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var xa=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var d=Array.from(c.querySelectorAll("style[".concat(st,"]")));return d[d.length-1]}(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(st,la),r.setAttribute(ua,Zn);var a=Vf();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Hf=function(){function e(t){this.element=xa(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw _t(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Uf=function(){function e(t){this.element=xa(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),zf=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Gs=kn,Yf={isServer:!kn,useCSSOMInjection:!xf},ya=function(){function e(t,n,r){t===void 0&&(t=At),n===void 0&&(n={});var o=this;this.options=me(me({},Yf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&kn&&Gs&&(Gs=!1,Xs(this)),_o(this,function(){return function(s){for(var a=s.getTag(),c=a.length,d="",u=function(m){var g=function(x){return Mn.get(x)}(m);if(g===void 0)return"continue";var v=s.names.get(g),E=a.getGroup(m);if(v===void 0||!v.size||E.length===0)return"continue";var f="".concat(st,".g").concat(m,'[id="').concat(g,'"]'),h="";v!==void 0&&v.forEach(function(x){x.length>0&&(h+="".concat(x,","))}),d+="".concat(E).concat(f,'{content:"').concat(h,'"}').concat(ko)},p=0;p<c;p++)u(p);return d}(o)})}return e.registerId=function(t){return cn(t)},e.prototype.rehydrate=function(){!this.server&&kn&&Xs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new zf(o):r?new Hf(o):new Uf(o)}(this.options),new kf(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(cn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(cn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(cn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Kf=/&/g,Xf=/^\s*\/\/.*$/gm;function Ea(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ea(n.children,t)),n})}function Gf(e){var t,n,r,o=At,s=o.options,a=s===void 0?At:s,c=o.plugins,d=c===void 0?Qn:c,u=function(g,v,E){return E.startsWith(n)&&E.endsWith(n)&&E.replaceAll(n,"").length>0?".".concat(t):g},p=d.slice();p.push(function(g){g.type===Kn&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Kf,n).replace(r,u))}),a.prefix&&p.push(vf),p.push(pf);var m=function(g,v,E,f){v===void 0&&(v=""),E===void 0&&(E=""),f===void 0&&(f="&"),t=f,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var h=g.replace(Xf,""),x=df(E||v?"".concat(E," ").concat(v," { ").concat(h," }"):h);a.namespace&&(x=Ea(x,a.namespace));var y=[];return In(x,mf(p.concat(hf(function(b){return y.push(b)})))),y};return m.hash=d.length?d.reduce(function(g,v){return v.name||_t(15),tt(g,v.name)},da).toString():"",m}var qf=new ya,no=Gf(),wa=Q.createContext({shouldForwardProp:void 0,styleSheet:qf,stylis:no});wa.Consumer;Q.createContext(void 0);function qs(){return Q.useContext(wa)}var Zs=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=no);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,_o(this,function(){throw _t(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=no),this.name+t.hash},e}(),Zf=function(e){return e>="A"&&e<="Z"};function Qs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Zf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ba=function(e){return e==null||e===!1||e===""},Ra=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!ba(s)&&(Array.isArray(s)&&s.isCss||$t(s)?r.push("".concat(Qs(o),":"),s,";"):Nt(s)?r.push.apply(r,Pt(Pt(["".concat(o," {")],Ra(s),!1),["}"],!1)):r.push("".concat(Qs(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in gf||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(ba(e))return[];if(Mo(e))return[".".concat(e.styledComponentId)];if($t(e)){if(!$t(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Zs||Nt(o)||o===null||console.error("".concat(pa(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof Zs?n?(e.inject(n,r),[e.getName(r)]):[e]:Nt(e)?Ra(e):Array.isArray(e)?Array.prototype.concat.apply(Qn,e.map(function(a){return ot(a,t,n,r)})):[e.toString()]}function Qf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($t(n)&&!Mo(n))return!1}return!0}var Jf=fa(Zn),ep=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Qf(t),this.componentId=n,this.baseHash=tt(Jf,n),this.baseStyle=r,ya.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=nt(o,this.staticRulesId);else{var s=Ks(ot(this.rules,t,n,r)),a=eo(tt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=nt(o,a),this.staticRulesId=a}else{for(var d=tt(this.baseHash,r.hash),u="",p=0;p<this.rules.length;p++){var m=this.rules[p];if(typeof m=="string")u+=m,process.env.NODE_ENV!=="production"&&(d=tt(d,m));else if(m){var g=Ks(ot(m,t,n,r));d=tt(d,g+p),u+=g}}if(u){var v=eo(d>>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(u,".".concat(v),void 0,this.componentId)),o=nt(o,v)}}return o},e}(),Ca=Q.createContext(void 0);Ca.Consumer;var Sr={},Js=new Set;function tp(e,t,n){var r=Mo(e),o=e,s=!Cr(e),a=t.attrs,c=a===void 0?Qn:a,d=t.componentId,u=d===void 0?function(R,C){var S=typeof R!="string"?"sc":Vs(R);Sr[S]=(Sr[S]||0)+1;var w="".concat(S,"-").concat(Cf(Zn+S+Sr[S]));return C?"".concat(C,"-").concat(w):w}(t.displayName,t.parentComponentId):d,p=t.displayName,m=p===void 0?function(R){return Cr(R)?"styled.".concat(R):"Styled(".concat(pa(R),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Vs(t.displayName),"-").concat(t.componentId):t.componentId||u,v=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,E=t.shouldForwardProp;if(r&&o.shouldForwardProp){var f=o.shouldForwardProp;if(t.shouldForwardProp){var h=t.shouldForwardProp;E=function(R,C){return f(R,C)&&h(R,C)}}else E=f}var x=new ep(n,g,r?o.componentStyle:void 0);function y(R,C){return function(S,w,j){var $=S.attrs,I=S.componentStyle,U=S.defaultProps,Y=S.foldedComponentIds,F=S.styledComponentId,T=S.target,W=Q.useContext(Ca),k=qs(),M=S.shouldForwardProp||k.shouldForwardProp;process.env.NODE_ENV!=="production"&&Q.useDebugValue(F);var N=Ef(w,W,U)||At,B=function(O,H,A){for(var L,V=me(me({},H),{className:void 0,theme:A}),G=0;G<O.length;G+=1){var Z=$t(L=O[G])?L(V):L;for(var K in Z)V[K]=K==="className"?nt(V[K],Z[K]):K==="style"?me(me({},V[K]),Z[K]):Z[K]}return H.className&&(V.className=nt(V.className,H.className)),V}($,w,N),te=B.as||T,J={};for(var P in B)B[P]===void 0||P[0]==="$"||P==="as"||P==="theme"&&B.theme===N||(P==="forwardedAs"?J.as=B.forwardedAs:M&&!M(P,te)||(J[P]=B[P],M||process.env.NODE_ENV!=="development"||Zd(P)||Js.has(P)||!Jr.has(te)||(Js.add(P),console.warn('styled-components: it looks like an unknown prop "'.concat(P,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=function(O,H){var A=qs(),L=O.generateAndInjectStyles(H,A.styleSheet,A.stylis);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(L),L}(I,B);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(D);var _=nt(Y,F);return D&&(_+=" "+D),B.className&&(_+=" "+B.className),J[Cr(te)&&!Jr.has(te)?"class":"className"]=_,J.ref=j,Q.createElement(te,J)}(b,R,C)}y.displayName=m;var b=Q.forwardRef(y);return b.attrs=v,b.componentStyle=x,b.displayName=m,b.shouldForwardProp=E,b.foldedComponentIds=r?nt(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=g,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=r?function(C){for(var S=[],w=1;w<arguments.length;w++)S[w-1]=arguments[w];for(var j=0,$=S;j<$.length;j++)to(C,$[j],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(yf(m,g),b.warnTooManyClasses=function(R,C){var S={},w=!1;return function(j){if(!w&&(S[j]=!0,Object.keys(S).length>=200)){var $=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat($,`.
|
|
47
47
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
48
48
|
Example:
|
|
49
49
|
const Component = styled.div.attrs(props => ({
|
|
@@ -52,11 +52,11 @@ Example:
|
|
|
52
52
|
},
|
|
53
53
|
}))\`width: 100%;\`
|
|
54
54
|
|
|
55
|
-
<Component />`),w=!0,S={}}}}(m,g)),_o(b,function(){return".".concat(b.styledComponentId)}),s&&ga(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function ei(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ti=function(e){return Object.assign(e,{isCss:!0})};function Sa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($t(e)||Nt(e))return ti(ot(ei(Qn,Pt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):ti(ot(ei(r,t)))}function ro(e,t,n){if(n===void 0&&(n=At),!t)throw _t(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,Sa.apply(void 0,Pt([o],s,!1)))};return r.attrs=function(o){return ro(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ro(e,t,me(me({},n),o))},r}var Pa=function(e){return ro(tp,e)},
|
|
55
|
+
<Component />`),w=!0,S={}}}}(m,g)),_o(b,function(){return".".concat(b.styledComponentId)}),s&&ga(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function ei(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ti=function(e){return Object.assign(e,{isCss:!0})};function Sa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($t(e)||Nt(e))return ti(ot(ei(Qn,Pt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):ti(ot(ei(r,t)))}function ro(e,t,n){if(n===void 0&&(n=At),!t)throw _t(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,Sa.apply(void 0,Pt([o],s,!1)))};return r.attrs=function(o){return ro(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ro(e,t,me(me({},n),o))},r}var Pa=function(e){return ro(tp,e)},z=Pa;Jr.forEach(function(e){z[e]=Pa(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
56
56
|
Perhaps you're looking to import 'styled-components/native'?
|
|
57
57
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ln="__sc-".concat(st,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ln]||(window[ln]=0),window[ln]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
58
58
|
|
|
59
|
-
See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=
|
|
59
|
+
See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=z.svg`
|
|
60
60
|
animation: spin 1s linear infinite;
|
|
61
61
|
|
|
62
62
|
@keyframes spin {
|
|
@@ -68,7 +68,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
68
68
|
transform: rotate(360deg);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`;function ja({variant:e="primary",dark:t}){const n=()=>{switch(e){case"secondary":return l.colors.fg.secondary;case"error":return l.colors.fg.accent.error;default:return t?l.colors.white:l.colors.fg.primary}},r=()=>t?l.colors.neutral["0-A8"]:l.colors.neutral["800-A8"];return l.jsxRuntimeExports.jsxs(np,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:r(),strokeOpacity:"0.08",strokeWidth:"3"}),l.jsxRuntimeExports.jsx("path",{d:"M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",stroke:n(),strokeWidth:"3",strokeLinecap:"round"})]})}const rp=e=>{switch(e){case"primary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[500]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.primary[600]}`}};case"secondary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[900]}`,color:`${l.colors.white}`,"&:hover":{backgroundColor:`${l.colors.primary[950]}`}};case"tertiary":return{borderColor:`${l.colors.neutral["800-A08"]}`,backgroundColor:`${l.colors.neutral["800-A04"]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.neutral["800-A08"]}`}};case"destructive":return{borderColor:`${l.colors.palePeach}`,backgroundColor:`${l.colors.cream}`,color:`${l.colors.fg.accent.error}`,"&:hover":{backgroundColor:`${l.colors.coralTint}`}}}},op=
|
|
71
|
+
`;function ja({variant:e="primary",dark:t}){const n=()=>{switch(e){case"secondary":return l.colors.fg.secondary;case"error":return l.colors.fg.accent.error;default:return t?l.colors.white:l.colors.fg.primary}},r=()=>t?l.colors.neutral["0-A8"]:l.colors.neutral["800-A8"];return l.jsxRuntimeExports.jsxs(np,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:r(),strokeOpacity:"0.08",strokeWidth:"3"}),l.jsxRuntimeExports.jsx("path",{d:"M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",stroke:n(),strokeWidth:"3",strokeLinecap:"round"})]})}const rp=e=>{switch(e){case"primary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[500]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.primary[600]}`}};case"secondary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[900]}`,color:`${l.colors.white}`,"&:hover":{backgroundColor:`${l.colors.primary[950]}`}};case"tertiary":return{borderColor:`${l.colors.neutral["800-A08"]}`,backgroundColor:`${l.colors.neutral["800-A04"]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.neutral["800-A08"]}`}};case"destructive":return{borderColor:`${l.colors.palePeach}`,backgroundColor:`${l.colors.cream}`,color:`${l.colors.fg.accent.error}`,"&:hover":{backgroundColor:`${l.colors.coralTint}`}}}},op=z.button`
|
|
72
72
|
${l.typography.label};
|
|
73
73
|
${e=>rp(e.$variant)};
|
|
74
74
|
align-items: center;
|
|
@@ -87,14 +87,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
87
87
|
&:disabled {
|
|
88
88
|
opacity: 0.4;
|
|
89
89
|
}
|
|
90
|
-
`;function sp({variant:e="primary",fullWidth:t,children:n,loading:r,...o}){const s=()=>{switch(e){case"tertiary":return"secondary";case"destructive":return"error";default:return"primary"}};return l.jsxRuntimeExports.jsxs(op,{$variant:e,$fullWidth:!!t,...o,children:[n,r&&l.jsxRuntimeExports.jsx(ja,{variant:s(),dark:e==="secondary"})]})}const ip=
|
|
90
|
+
`;function sp({variant:e="primary",fullWidth:t,children:n,loading:r,...o}){const s=()=>{switch(e){case"tertiary":return"secondary";case"destructive":return"error";default:return"primary"}};return l.jsxRuntimeExports.jsxs(op,{$variant:e,$fullWidth:!!t,...o,children:[n,r&&l.jsxRuntimeExports.jsx(ja,{variant:s(),dark:e==="secondary"})]})}const ip=z.div`
|
|
91
91
|
padding: 0.375rem 0.5rem;
|
|
92
92
|
font-size: 0.688rem;
|
|
93
93
|
color: ${e=>e.$error?l.colors.fg.accent.error:l.colors.fg.secondary};
|
|
94
94
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
95
95
|
background-color: ${e=>e.$error?l.colors.sf.light.error:l.colors.sf.tertiary};
|
|
96
96
|
margin: 0 0.625rem;
|
|
97
|
-
`;function _n({error:e,children:t,...n}){return l.jsxRuntimeExports.jsx(ip,{$error:!!e,...n,children:t})}const ap=
|
|
97
|
+
`;function _n({error:e,children:t,...n}){return l.jsxRuntimeExports.jsx(ip,{$error:!!e,...n,children:t})}const ap=z.div`
|
|
98
98
|
height: 3.063rem;
|
|
99
99
|
border-radius: 0.75rem;
|
|
100
100
|
background: ${l.colors.sf.tertiary};
|
|
@@ -103,6 +103,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
103
103
|
align-items: center;
|
|
104
104
|
gap: 0.625rem;
|
|
105
105
|
padding: 0 0.75rem;
|
|
106
|
+
cursor: pointer;
|
|
106
107
|
|
|
107
108
|
&:focus-within {
|
|
108
109
|
border: 2px solid ${e=>e.$error?l.colors.fg.accent.error:l.colors.fg.base};
|
|
@@ -112,7 +113,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
`,cp=
|
|
116
|
+
`,cp=z.input`
|
|
116
117
|
width: 100%;
|
|
117
118
|
padding-top: 0.25rem;
|
|
118
119
|
background: transparent;
|
|
@@ -124,12 +125,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
124
125
|
&::-webkit-calendar-picker-indicator {
|
|
125
126
|
visibility: hidden;
|
|
126
127
|
}
|
|
127
|
-
`,lp=
|
|
128
|
+
`,lp=z.div`
|
|
128
129
|
position: relative;
|
|
129
130
|
height: 100%;
|
|
130
131
|
width: 100%;
|
|
131
132
|
padding: 0.875rem 0;
|
|
132
|
-
`,up=
|
|
133
|
+
`,up=z.label`
|
|
133
134
|
position: absolute;
|
|
134
135
|
top: 0;
|
|
135
136
|
left: 0;
|
|
@@ -142,7 +143,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
142
143
|
height: 50%;
|
|
143
144
|
transform: translateY(-5%);
|
|
144
145
|
font-size: 0.75rem;
|
|
145
|
-
`;function dp({label:e,value:t,onChange:n,error:r,helperText:o,time:s,...a}){const c=Q.useRef(null),d=Q.useId(),u=()=>{if(c.current)try{c.current.showPicker()}catch{c.current.focus()}};return l.jsxRuntimeExports.jsxs(ap,{$error:!!r,onClick:u,children:[l.jsxRuntimeExports.jsx(l.Calendar,{}),l.jsxRuntimeExports.jsxs(lp,{children:[l.jsxRuntimeExports.jsx(cp,{ref:c,type:s?"datetime-local":"date",id:`${d}-${e}`,required:!0,onChange:p=>n(p.target.value),value:t,...a}),l.jsxRuntimeExports.jsx(up,{htmlFor:`${d}-${e}`,children:e})]}),(r||o)&&l.jsxRuntimeExports.jsx(_n,{error:!!r,children:r||o})]})}function Ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function fp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ta(...e){return t=>e.forEach(n=>fp(n,t))}function dt(...e){return i.useCallback(Ta(...e),e)}function pp(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ft(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var x;const{scope:g,children:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,mp(o,...t)]}function mp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},hp=i.useId||(()=>{}),vp=0;function xe(e){const[t,n]=i.useState(hp());return ce(()=>{n(r=>r??String(vp++))},[e]),t?`radix-${t}`:""}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gp({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,c=ae(n),d=i.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else o(u)},[s,e,o,c]);return[a,d]}function gp({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),s=ae(t);return i.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Lo=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(yp);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(oo,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(oo,{...r,ref:t,children:n})});Lo.displayName="Slot";var oo=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=wp(n);return i.cloneElement(n,{...Ep(r,n.props),ref:t?Ta(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});oo.displayName="SlotClone";var xp=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function yp(e){return i.isValidElement(e)&&e.type===xp}function Ep(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=bp.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Lo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rp(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function Jn(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Cp="DismissableLayer",so="dismissableLayer.update",Sp="dismissableLayer.pointerDownOutside",Pp="dismissableLayer.focusOutside",ni,Aa=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$a=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Aa),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=dt(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Ap(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=$p(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ni=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),ri(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ni)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),ri())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(so,w),()=>document.removeEventListener(so,w)},[]),l.jsxRuntimeExports.jsx(Fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,C.onPointerDownCapture)})});$a.displayName=Cp;var jp="DismissableLayerBranch",Tp=i.forwardRef((e,t)=>{const n=i.useContext(Aa),r=i.useRef(null),o=dt(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(Fe.div,{...e,ref:o})});Tp.displayName=jp;function Ap(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Na(Sp,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $p(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Na(Pp,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ri(){const e=new CustomEvent(so);document.dispatchEvent(e)}function Na(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Rp(o,s):o.dispatchEvent(s)}var Pr="focusScope.autoFocusOnMount",jr="focusScope.autoFocusOnUnmount",oi={bubbles:!1,cancelable:!0},Np="FocusScope",Oa=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=dt(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Be(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Be(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Be(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ii.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Pr,oi);c.addEventListener(Pr,u),c.dispatchEvent(x),x.defaultPrevented||(Op(_p(Da(c)),{select:!0}),document.activeElement===f&&Be(c))}return()=>{c.removeEventListener(Pr,u),setTimeout(()=>{const x=new CustomEvent(jr,oi);c.addEventListener(jr,p),c.dispatchEvent(x),x.defaultPrevented||Be(f??document.body,{select:!0}),c.removeEventListener(jr,p),ii.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Dp(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Be(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Be(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(Fe.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Oa.displayName=Np;function Op(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Be(r,{select:t}),document.activeElement!==n)return}function Dp(e){const t=Da(e),n=si(t,e),r=si(t.reverse(),e);return[n,r]}function Da(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function si(e,t){for(const n of e)if(!Ip(n,{upTo:t}))return n}function Ip(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kp(e){return e instanceof HTMLInputElement&&"select"in e}function Be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kp(e)&&t&&e.select()}}var ii=Mp();function Mp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ai(e,t),e.unshift(t)},remove(t){var n;e=ai(e,t),(n=e[0])==null||n.resume()}}}function ai(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _p(e){return e.filter(t=>t.tagName!=="A")}var Lp="Portal",Ia=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Yn.createPortal(l.jsxRuntimeExports.jsx(Fe.div,{...r,ref:t}),a):null});Ia.displayName=Lp;function Fp(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var er=e=>{const{present:t,children:n}=e,r=Wp(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=dt(r.ref,Bp(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};er.displayName="Presence";function Wp(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Fp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=un(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=un(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=un(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=un(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function un(e){return(e==null?void 0:e.animationName)||"none"}function Bp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tr=0;function ka(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ci()),document.body.insertAdjacentElement("beforeend",e[1]??ci()),Tr++,()=>{Tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tr--}},[])}function ci(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ie.apply(this,arguments)};function en(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Fo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Tn="right-scroll-bar-position",An="width-before-scroll-bar",Vp="with-scroll-bars-hidden",Hp="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Up(e,t){var n=Q.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zp=typeof window<"u"?i.useLayoutEffect:i.useEffect,li=new WeakMap;function Yp(e,t){var n=Up(null,function(r){return e.forEach(function(o){return Ar(o,r)})});return zp(function(){var r=li.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Ar(c,null)}),s.forEach(function(c){o.has(c)||Ar(c,a)})}li.set(n,e)},[e]),n}function Kp(e){return e}function Xp(e,t){t===void 0&&(t=Kp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function Ma(e){e===void 0&&(e={});var t=Xp(null);return t.options=ie({async:!0,ssr:!1},e),t}var _a=function(e){var t=e.sideCar,n=en(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};_a.isSideCarExport=!0;function La(e,t){return e.useMedium(t),_a}var Fa=Ma(),$r=function(){},tr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:$r,onWheelCapture:$r,onTouchMoveCapture:$r}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Yp([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Fa,removeScrollBar:u,shards:m,noIsolation:v,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(x,ie({},S,{className:d,ref:C}),c))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tr.classNames={fullWidth:An,zeroRight:Tn};var Wa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wa();return t&&e.setAttribute("nonce",t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gp())&&(qp(t,n),Zp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jp=function(){var e=Qp();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wo=function(){var e=Jp(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},em={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},tm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nr(n),Nr(r),Nr(o)]},nm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return em;var t=tm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rm=Wo(),Rt="data-scroll-locked",om=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
`;function dp({label:e,value:t,onChange:n,error:r,helperText:o,time:s,...a}){const c=Q.useRef(null),d=Q.useId(),u=()=>{if(c.current)try{c.current.showPicker(),c.current.focus()}catch{c.current.focus()}};return l.jsxRuntimeExports.jsxs(ap,{$error:!!r,onClick:u,children:[l.jsxRuntimeExports.jsx(l.Calendar,{}),l.jsxRuntimeExports.jsxs(lp,{children:[l.jsxRuntimeExports.jsx(cp,{style:{cursor:"text",width:"fit-content"},ref:c,type:s?"datetime-local":"date",id:`${d}-${e}`,required:!0,onClick:p=>p.stopPropagation(),onChange:p=>n(p.target.value),value:t,...a}),l.jsxRuntimeExports.jsx(up,{htmlFor:`${d}-${e}`,children:e})]}),(r||o)&&l.jsxRuntimeExports.jsx(_n,{error:!!r,children:r||o})]})}function Ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function fp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ta(...e){return t=>e.forEach(n=>fp(n,t))}function dt(...e){return i.useCallback(Ta(...e),e)}function pp(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ft(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var x;const{scope:g,children:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,mp(o,...t)]}function mp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},hp=i.useId||(()=>{}),vp=0;function xe(e){const[t,n]=i.useState(hp());return ce(()=>{n(r=>r??String(vp++))},[e]),t?`radix-${t}`:""}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gp({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,c=ae(n),d=i.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else o(u)},[s,e,o,c]);return[a,d]}function gp({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),s=ae(t);return i.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Lo=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(yp);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(oo,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(oo,{...r,ref:t,children:n})});Lo.displayName="Slot";var oo=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=wp(n);return i.cloneElement(n,{...Ep(r,n.props),ref:t?Ta(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});oo.displayName="SlotClone";var xp=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function yp(e){return i.isValidElement(e)&&e.type===xp}function Ep(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=bp.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Lo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rp(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function Jn(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Cp="DismissableLayer",so="dismissableLayer.update",Sp="dismissableLayer.pointerDownOutside",Pp="dismissableLayer.focusOutside",ni,Aa=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$a=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Aa),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=dt(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Ap(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=$p(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ni=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),ri(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ni)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),ri())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(so,w),()=>document.removeEventListener(so,w)},[]),l.jsxRuntimeExports.jsx(Fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,C.onPointerDownCapture)})});$a.displayName=Cp;var jp="DismissableLayerBranch",Tp=i.forwardRef((e,t)=>{const n=i.useContext(Aa),r=i.useRef(null),o=dt(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(Fe.div,{...e,ref:o})});Tp.displayName=jp;function Ap(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Na(Sp,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $p(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Na(Pp,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ri(){const e=new CustomEvent(so);document.dispatchEvent(e)}function Na(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Rp(o,s):o.dispatchEvent(s)}var Pr="focusScope.autoFocusOnMount",jr="focusScope.autoFocusOnUnmount",oi={bubbles:!1,cancelable:!0},Np="FocusScope",Oa=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=dt(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Be(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Be(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Be(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ii.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Pr,oi);c.addEventListener(Pr,u),c.dispatchEvent(x),x.defaultPrevented||(Op(_p(Da(c)),{select:!0}),document.activeElement===f&&Be(c))}return()=>{c.removeEventListener(Pr,u),setTimeout(()=>{const x=new CustomEvent(jr,oi);c.addEventListener(jr,p),c.dispatchEvent(x),x.defaultPrevented||Be(f??document.body,{select:!0}),c.removeEventListener(jr,p),ii.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Dp(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Be(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Be(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(Fe.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Oa.displayName=Np;function Op(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Be(r,{select:t}),document.activeElement!==n)return}function Dp(e){const t=Da(e),n=si(t,e),r=si(t.reverse(),e);return[n,r]}function Da(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function si(e,t){for(const n of e)if(!Ip(n,{upTo:t}))return n}function Ip(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kp(e){return e instanceof HTMLInputElement&&"select"in e}function Be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kp(e)&&t&&e.select()}}var ii=Mp();function Mp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ai(e,t),e.unshift(t)},remove(t){var n;e=ai(e,t),(n=e[0])==null||n.resume()}}}function ai(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _p(e){return e.filter(t=>t.tagName!=="A")}var Lp="Portal",Ia=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Yn.createPortal(l.jsxRuntimeExports.jsx(Fe.div,{...r,ref:t}),a):null});Ia.displayName=Lp;function Fp(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var er=e=>{const{present:t,children:n}=e,r=Wp(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=dt(r.ref,Bp(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};er.displayName="Presence";function Wp(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Fp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=un(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=un(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=un(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=un(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function un(e){return(e==null?void 0:e.animationName)||"none"}function Bp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tr=0;function ka(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ci()),document.body.insertAdjacentElement("beforeend",e[1]??ci()),Tr++,()=>{Tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tr--}},[])}function ci(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ie.apply(this,arguments)};function en(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Fo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Tn="right-scroll-bar-position",An="width-before-scroll-bar",Vp="with-scroll-bars-hidden",Hp="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Up(e,t){var n=Q.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zp=typeof window<"u"?i.useLayoutEffect:i.useEffect,li=new WeakMap;function Yp(e,t){var n=Up(null,function(r){return e.forEach(function(o){return Ar(o,r)})});return zp(function(){var r=li.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Ar(c,null)}),s.forEach(function(c){o.has(c)||Ar(c,a)})}li.set(n,e)},[e]),n}function Kp(e){return e}function Xp(e,t){t===void 0&&(t=Kp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function Ma(e){e===void 0&&(e={});var t=Xp(null);return t.options=ie({async:!0,ssr:!1},e),t}var _a=function(e){var t=e.sideCar,n=en(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};_a.isSideCarExport=!0;function La(e,t){return e.useMedium(t),_a}var Fa=Ma(),$r=function(){},tr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:$r,onWheelCapture:$r,onTouchMoveCapture:$r}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Yp([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Fa,removeScrollBar:u,shards:m,noIsolation:v,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(x,ie({},S,{className:d,ref:C}),c))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tr.classNames={fullWidth:An,zeroRight:Tn};var Wa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wa();return t&&e.setAttribute("nonce",t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gp())&&(qp(t,n),Zp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jp=function(){var e=Qp();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wo=function(){var e=Jp(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},em={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},tm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nr(n),Nr(r),Nr(o)]},nm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return em;var t=tm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rm=Wo(),Rt="data-scroll-locked",om=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
146
148
|
.`.concat(Vp,` {
|
|
147
149
|
overflow: hidden `).concat(r,`;
|
|
148
150
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
@@ -182,11 +184,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=U.svg`
|
|
|
182
184
|
`)},ui=function(){var e=parseInt(document.body.getAttribute(Rt)||"0",10);return isFinite(e)?e:0},sm=function(){i.useEffect(function(){return document.body.setAttribute(Rt,(ui()+1).toString()),function(){var e=ui()-1;e<=0?document.body.removeAttribute(Rt):document.body.setAttribute(Rt,e.toString())}},[])},im=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;sm();var s=i.useMemo(function(){return nm(o)},[o]);return i.createElement(rm,{styles:om(s,!t,o,n?"":"!important")})},io=!1;if(typeof window<"u")try{var dn=Object.defineProperty({},"passive",{get:function(){return io=!0,!0}});window.addEventListener("test",dn,dn),window.removeEventListener("test",dn,dn)}catch{io=!1}var mt=io?{passive:!1}:!1,am=function(e){return e.tagName==="TEXTAREA"},Ba=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!am(e)&&n[t]==="visible")},cm=function(e){return Ba(e,"overflowY")},lm=function(e){return Ba(e,"overflowX")},di=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Va(e,r);if(o){var s=Ha(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},um=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Va=function(e,t){return e==="v"?cm(t):lm(t)},Ha=function(e,t){return e==="v"?um(t):dm(t)},fm=function(e,t){return e==="h"&&t==="rtl"?-1:1},pm=function(e,t,n,r,o){var s=fm(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{var v=Ha(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&Va(e,c)&&(m+=x,g+=E),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},fn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fi=function(e){return[e.deltaX,e.deltaY]},pi=function(e){return e&&"current"in e?e.current:e},mm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hm=function(e){return`
|
|
183
185
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
184
186
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
185
|
-
`)},vm=0,ht=[];function gm(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(vm++)[0],s=i.useState(Wo)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Fo([e.lockRef.current],(e.shards||[]).map(pi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=fn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var j=di(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=di(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return pm($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!ht.length||ht[ht.length-1]!==s)){var x="deltaY"in h?fi(h):fn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&mm(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(pi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:xm(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=fn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,fi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,fn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return ht.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,mt),document.addEventListener("touchmove",d,mt),document.addEventListener("touchstart",p,mt),function(){ht=ht.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,mt),document.removeEventListener("touchmove",d,mt),document.removeEventListener("touchstart",p,mt)}},[]);var v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:hm(o)}):null,v?i.createElement(im,{gapMode:e.gapMode}):null)}function xm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ym=La(Fa,gm);var Ua=i.forwardRef(function(e,t){return i.createElement(tr,ie({},e,{ref:t,sideCar:ym}))});Ua.classNames=tr.classNames;var Em=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,pn=new WeakMap,mn={},Or=0,za=function(e){return e&&(e.host||za(e.parentNode))},wm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=za(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bm=function(e,t,n,r){var o=wm(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var s=mn[n],a=[],c=new Set,d=new Set(o),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))p(g);else try{var v=g.getAttribute(r),E=v!==null&&v!=="false",f=(vt.get(g)||0)+1,h=(s.get(g)||0)+1;vt.set(g,f),s.set(g,h),a.push(g),f===1&&E&&pn.set(g,!0),h===1&&g.setAttribute(n,"true"),E||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return p(t),c.clear(),Or++,function(){a.forEach(function(m){var g=vt.get(m)-1,v=s.get(m)-1;vt.set(m,g),s.set(m,v),g||(pn.has(m)||m.removeAttribute(r),pn.delete(m)),v||m.removeAttribute(n)}),Or--,Or||(vt=new WeakMap,vt=new WeakMap,pn=new WeakMap,mn={})}},nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Em(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),bm(r,o,n,"aria-hidden")):function(){return null}},Bo="Dialog",[Ya,
|
|
187
|
+
`)},vm=0,ht=[];function gm(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(vm++)[0],s=i.useState(Wo)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Fo([e.lockRef.current],(e.shards||[]).map(pi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=fn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var j=di(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=di(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return pm($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!ht.length||ht[ht.length-1]!==s)){var x="deltaY"in h?fi(h):fn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&mm(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(pi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:xm(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=fn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,fi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,fn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return ht.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,mt),document.addEventListener("touchmove",d,mt),document.addEventListener("touchstart",p,mt),function(){ht=ht.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,mt),document.removeEventListener("touchmove",d,mt),document.removeEventListener("touchstart",p,mt)}},[]);var v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:hm(o)}):null,v?i.createElement(im,{gapMode:e.gapMode}):null)}function xm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ym=La(Fa,gm);var Ua=i.forwardRef(function(e,t){return i.createElement(tr,ie({},e,{ref:t,sideCar:ym}))});Ua.classNames=tr.classNames;var Em=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,pn=new WeakMap,mn={},Or=0,za=function(e){return e&&(e.host||za(e.parentNode))},wm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=za(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bm=function(e,t,n,r){var o=wm(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var s=mn[n],a=[],c=new Set,d=new Set(o),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))p(g);else try{var v=g.getAttribute(r),E=v!==null&&v!=="false",f=(vt.get(g)||0)+1,h=(s.get(g)||0)+1;vt.set(g,f),s.set(g,h),a.push(g),f===1&&E&&pn.set(g,!0),h===1&&g.setAttribute(n,"true"),E||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return p(t),c.clear(),Or++,function(){a.forEach(function(m){var g=vt.get(m)-1,v=s.get(m)-1;vt.set(m,g),s.set(m,v),g||(pn.has(m)||m.removeAttribute(r),pn.delete(m)),v||m.removeAttribute(n)}),Or--,Or||(vt=new WeakMap,vt=new WeakMap,pn=new WeakMap,mn={})}},nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Em(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),bm(r,o,n,"aria-hidden")):function(){return null}},Bo="Dialog",[Ya,Xw]=ft(Bo),[Rm,Pe]=Ya(Bo),Ka=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u=!1,p]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx(Rm,{scope:t,triggerRef:c,contentRef:d,contentId:xe(),titleId:xe(),descriptionId:xe(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};Ka.displayName=Bo;var Xa="DialogTrigger",Cm=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(Xa,n),s=dt(t,o.triggerRef);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yo(o.open),...r,ref:s,onClick:Ue(e.onClick,o.onOpenToggle)})});Cm.displayName=Xa;var Vo="DialogPortal",[Sm,Ga]=Ya(Vo,{forceMount:void 0}),Ho=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Pe(Vo,t);return l.jsxRuntimeExports.jsx(Sm,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(er,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ia,{asChild:!0,container:o,children:a})}))})};Ho.displayName=Vo;var Ln="DialogOverlay",qa=i.forwardRef((e,t)=>{const n=Ga(Ln,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Pe(Ln,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(er,{present:r||s.open,children:l.jsxRuntimeExports.jsx(Pm,{...o,ref:t})}):null});qa.displayName=Ln;var Pm=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(Ln,n);return l.jsxRuntimeExports.jsx(Ua,{as:Lo,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(Fe.div,{"data-state":Yo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",Uo=i.forwardRef((e,t)=>{const n=Ga(it,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Pe(it,e.__scopeDialog);return l.jsxRuntimeExports.jsx(er,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(jm,{...o,ref:t}):l.jsxRuntimeExports.jsx(Tm,{...o,ref:t})})});Uo.displayName=it;var jm=i.forwardRef((e,t)=>{const n=Pe(it,e.__scopeDialog),r=i.useRef(null),o=dt(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return nr(s)},[]),l.jsxRuntimeExports.jsx(Za,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,s=>s.preventDefault())})}),Tm=i.forwardRef((e,t)=>{const n=Pe(it,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Za,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Za=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Pe(it,n),d=i.useRef(null),u=dt(t,d);return ka(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Oa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx($a,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Yo(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Am,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(Nm,{contentRef:d,descriptionId:c.descriptionId})]})]})}),zo="DialogTitle",Qa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(zo,n);return l.jsxRuntimeExports.jsx(Fe.h2,{id:o.titleId,...r,ref:t})});Qa.displayName=zo;var Ja="DialogDescription",ec=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(Ja,n);return l.jsxRuntimeExports.jsx(Fe.p,{id:o.descriptionId,...r,ref:t})});ec.displayName=Ja;var tc="DialogClose",nc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(tc,n);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button",...r,ref:t,onClick:Ue(e.onClick,()=>o.onOpenChange(!1))})});nc.displayName=tc;function Yo(e){return e?"open":"closed"}var rc="DialogTitleWarning",[Gw,oc]=pp(rc,{contentName:it,titleName:zo,docsSlug:"dialog"}),Am=({titleId:e})=>{const t=oc(rc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
186
188
|
|
|
187
189
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
188
190
|
|
|
189
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$m="DialogDescriptionWarning",Nm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oc($m).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Om=Ka,Dm=Ho,rr=qa,Ko=Uo,sc=Qa,ic=ec,Im=nc;const km=Om,Mm=Dm,ac=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(rr,{ref:n,className:l.cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ac.displayName=rr.displayName;const _m=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Mm,{children:[l.jsxRuntimeExports.jsx(ac,{}),l.jsxRuntimeExports.jsxs(Ko,{ref:r,className:l.cn("fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,l.jsxRuntimeExports.jsxs(Im,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[l.jsxRuntimeExports.jsx(l.Close,{className:"h-4 w-4"}),l.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_m.displayName=Ko.displayName;const cc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(sc,{ref:n,className:l.cn("text-lg font-semibold leading-none tracking-tight hidden",e),...t}));cc.displayName=sc.displayName;const Lm=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ic,{ref:n,className:l.cn("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));Lm.displayName=ic.displayName;function Fm({open:e,toggleDialog:t,children:n,...r}){return l.jsxRuntimeExports.jsx(km,{open:e,onOpenChange:t,...r,children:n})}const Xo=()=>{const[e,t]=Q.useState(window.innerWidth<=768),n=Q.useRef(window.innerWidth);return Q.useEffect(()=>{const r=()=>{const o=window.innerWidth;o<=768&&n.current>768?t(!0):o>768&&n.current<=768&&t(!1),n.current=o};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e},lc=Q.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(rr,{ref:n,className:l.cn("fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));lc.displayName=rr.displayName;const Wm=
|
|
191
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$m="DialogDescriptionWarning",Nm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oc($m).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Om=Ka,Dm=Ho,rr=qa,Ko=Uo,sc=Qa,ic=ec,Im=nc;const km=Om,Mm=Dm,ac=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(rr,{ref:n,className:l.cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ac.displayName=rr.displayName;const _m=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Mm,{children:[l.jsxRuntimeExports.jsx(ac,{}),l.jsxRuntimeExports.jsxs(Ko,{ref:r,className:l.cn("fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,l.jsxRuntimeExports.jsxs(Im,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[l.jsxRuntimeExports.jsx(l.Close,{className:"h-4 w-4"}),l.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_m.displayName=Ko.displayName;const cc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(sc,{ref:n,className:l.cn("text-lg font-semibold leading-none tracking-tight hidden",e),...t}));cc.displayName=sc.displayName;const Lm=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ic,{ref:n,className:l.cn("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));Lm.displayName=ic.displayName;function Fm({open:e,toggleDialog:t,children:n,...r}){return l.jsxRuntimeExports.jsx(km,{open:e,onOpenChange:t,...r,children:n})}const Xo=()=>{const[e,t]=Q.useState(window.innerWidth<=768),n=Q.useRef(window.innerWidth);return Q.useEffect(()=>{const r=()=>{const o=window.innerWidth;o<=768&&n.current>768?t(!0):o>768&&n.current<=768&&t(!1),n.current=o};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e},lc=Q.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(rr,{ref:n,className:l.cn("fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));lc.displayName=rr.displayName;const Wm=z(Ko)`
|
|
190
192
|
width: ${({$width:e,$fullScreen:t})=>t?"100vw":e||"25.4rem"};
|
|
191
193
|
height: ${({$height:e,$fullScreen:t})=>t?"100vh":e||"29.8rem"};
|
|
192
194
|
border-radius: ${({$fullScreen:e})=>e?"0":"1.5rem"};
|
|
@@ -194,12 +196,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
194
196
|
overflow: hidden;
|
|
195
197
|
display: flex;
|
|
196
198
|
flex-direction: column;
|
|
197
|
-
`,uc=Q.forwardRef(({width:e,height:t,fullScreen:n,children:r,...o},s)=>{const a=Xo();return l.jsxRuntimeExports.jsxs(Ho,{children:[l.jsxRuntimeExports.jsx(lc,{}),l.jsxRuntimeExports.jsxs(Wm,{$width:e,$height:t,$fullScreen:n!==void 0?n:a,ref:s,className:l.cn("fixed left-1/2 top-1/2 z-50 transform -translate-x-1/2 -translate-y-1/2"),...o,children:[l.jsxRuntimeExports.jsx(cc,{})," ",r]})]})});uc.displayName=Uo.displayName;const Bm=
|
|
199
|
+
`,uc=Q.forwardRef(({width:e,height:t,fullScreen:n,children:r,...o},s)=>{const a=Xo();return l.jsxRuntimeExports.jsxs(Ho,{children:[l.jsxRuntimeExports.jsx(lc,{}),l.jsxRuntimeExports.jsxs(Wm,{$width:e,$height:t,$fullScreen:n!==void 0?n:a,ref:s,className:l.cn("fixed left-1/2 top-1/2 z-50 transform -translate-x-1/2 -translate-y-1/2"),...o,children:[l.jsxRuntimeExports.jsx(cc,{})," ",r]})]})});uc.displayName=Uo.displayName;const Bm=z.div`
|
|
198
200
|
width: 100%;
|
|
199
201
|
height: 100%;
|
|
200
202
|
padding: 0 2.5rem 2.5rem 2.5rem;
|
|
201
203
|
overflow: auto;
|
|
202
|
-
`;function Vm({children:e,...t}){return l.jsxRuntimeExports.jsx(Bm,{...t,children:e})}const Hm=
|
|
204
|
+
`;function Vm({children:e,...t}){return l.jsxRuntimeExports.jsx(Bm,{...t,children:e})}const Hm=z.button`
|
|
203
205
|
color: ${l.colors.primary[900]};
|
|
204
206
|
display: flex;
|
|
205
207
|
justify-content: center;
|
|
@@ -217,17 +219,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
217
219
|
&:hover {
|
|
218
220
|
background: ${l.colors.sf.tertiaryHover};
|
|
219
221
|
}
|
|
220
|
-
`,Fn=Q.forwardRef(({onClick:e,variant:t="light",children:n,...r},o)=>l.jsxRuntimeExports.jsx(Hm,{onClick:e,$variant:t,ref:o,...r,children:n}));Fn.displayName="IconButton";const Um=
|
|
222
|
+
`,Fn=Q.forwardRef(({onClick:e,variant:t="light",children:n,...r},o)=>l.jsxRuntimeExports.jsx(Hm,{onClick:e,$variant:t,ref:o,...r,children:n}));Fn.displayName="IconButton";const Um=z.div`
|
|
221
223
|
padding: 1.25rem;
|
|
222
224
|
width: 100%;
|
|
223
225
|
display: flex;
|
|
224
226
|
justify-content: space-between;
|
|
225
|
-
`;function zm({onGoBack:e,onClose:t,...n}){const r=o=>o?"visible":"hidden";return l.jsxRuntimeExports.jsxs(Um,{...n,children:[l.jsxRuntimeExports.jsx(Fn,{onClick:e,style:{visibility:r(!!e)},children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"left"})}),l.jsxRuntimeExports.jsx(Fn,{onClick:t,style:{visibility:r(!!t)},children:l.jsxRuntimeExports.jsx(l.Close,{})})]})}const Ym=
|
|
227
|
+
`;function zm({onGoBack:e,onClose:t,...n}){const r=o=>o?"visible":"hidden";return l.jsxRuntimeExports.jsxs(Um,{...n,children:[l.jsxRuntimeExports.jsx(Fn,{onClick:e,style:{visibility:r(!!e)},children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"left"})}),l.jsxRuntimeExports.jsx(Fn,{onClick:t,style:{visibility:r(!!t)},children:l.jsxRuntimeExports.jsx(l.Close,{})})]})}const Ym=z.div`
|
|
226
228
|
height: 0.063rem;
|
|
227
229
|
width: 100%;
|
|
228
230
|
background-color: ${l.colors.border.default};
|
|
229
231
|
margin: 0.75rem 0;
|
|
230
|
-
`;function Km({...e}){return l.jsxRuntimeExports.jsx(Ym,{...e})}const Xm=
|
|
232
|
+
`;function Km({...e}){return l.jsxRuntimeExports.jsx(Ym,{...e})}const Xm=z.div`
|
|
231
233
|
display: flex;
|
|
232
234
|
padding: 0.69rem 0.5rem;
|
|
233
235
|
gap: 0.25rem;
|
|
@@ -235,7 +237,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
235
237
|
justify-content: center;
|
|
236
238
|
border-radius: 0.75rem;
|
|
237
239
|
background: rgba(0, 0, 0, 0.04);
|
|
238
|
-
`,Gm=
|
|
240
|
+
`,Gm=z.div`
|
|
239
241
|
position: relative;
|
|
240
242
|
width: 0.375rem;
|
|
241
243
|
height: 0.375rem;
|
|
@@ -284,7 +286,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
284
286
|
background-color: rgba(125, 137, 131, 0.2);
|
|
285
287
|
}
|
|
286
288
|
}
|
|
287
|
-
`;function qm(){return l.jsxRuntimeExports.jsx(Xm,{children:l.jsxRuntimeExports.jsx(Gm,{})})}const Zm=
|
|
289
|
+
`;function qm(){return l.jsxRuntimeExports.jsx(Xm,{children:l.jsxRuntimeExports.jsx(Gm,{})})}const Zm=z.div`
|
|
288
290
|
display: flex;
|
|
289
291
|
gap: ${({$isMobile:e})=>e?"0.25rem":"0.38rem"};
|
|
290
292
|
border-radius: 1rem;
|
|
@@ -293,10 +295,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
293
295
|
background: ${({$variant:e})=>e==="ai"?l.colors.bg.base:"hsla(120, 26%, 91%, 1)"};
|
|
294
296
|
border: ${({$isMobile:e})=>e?"none":"1px solid rgba(0, 0, 0, 0.04)"};
|
|
295
297
|
padding: ${({$variant:e,$isMobile:t})=>e==="ai"?t?"0.5rem 0":"1rem 0.75rem":"0.62rem 0.75rem"};
|
|
296
|
-
`,Qm=
|
|
298
|
+
`,Qm=z.div`
|
|
297
299
|
width: 1.75rem;
|
|
298
300
|
height: 1.75rem;
|
|
299
|
-
`,Jm=
|
|
301
|
+
`,Jm=z.div`
|
|
300
302
|
${l.typography.body};
|
|
301
303
|
font-size: 0.938rem;
|
|
302
304
|
font-weight: ${({$variant:e})=>e==="ai"?"400":"500"};
|
|
@@ -313,7 +315,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
313
315
|
p {
|
|
314
316
|
margin-bottom: 0.5rem;
|
|
315
317
|
}
|
|
316
|
-
`;function eh({loading:e=!1,variant:t,showAvatar:n=!1,children:r,...o}){const s=Xo();return l.jsxRuntimeExports.jsxs(Zm,{$variant:t,$isMobile:s,...o,children:[t==="ai"&&(n||!s||e)&&l.jsxRuntimeExports.jsx(Qm,{children:l.jsxRuntimeExports.jsx(l.LogoOutlined,{size:"small"})}),e?l.jsxRuntimeExports.jsx(qm,{}):l.jsxRuntimeExports.jsx(Jm,{$variant:t,$isMobile:s,children:r})]})}const th=
|
|
318
|
+
`;function eh({loading:e=!1,variant:t,showAvatar:n=!1,children:r,...o}){const s=Xo();return l.jsxRuntimeExports.jsxs(Zm,{$variant:t,$isMobile:s,...o,children:[t==="ai"&&(n||!s||e)&&l.jsxRuntimeExports.jsx(Qm,{children:l.jsxRuntimeExports.jsx(l.LogoOutlined,{size:"small"})}),e?l.jsxRuntimeExports.jsx(qm,{}):l.jsxRuntimeExports.jsx(Jm,{$variant:t,$isMobile:s,children:r})]})}const th=z.button`
|
|
317
319
|
display: flex;
|
|
318
320
|
text-align: left;
|
|
319
321
|
gap: 0.375rem;
|
|
@@ -326,7 +328,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
326
328
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
327
329
|
white-space: pre-line;
|
|
328
330
|
width: fit-content;
|
|
329
|
-
`;function nh({onClick:e,children:t,...n}){return l.jsxRuntimeExports.jsx(th,{onClick:e,...n,children:t})}function mi(e,[t,n]){return Math.min(n,Math.max(t,e))}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function hi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ze(...e){return t=>{let n=!1;const r=e.map(o=>{const s=hi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():hi(e[o],null)}}}}function ne(...e){return i.useCallback(ze(...e),e)}var Zt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(oh);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:n})});Zt.displayName="Slot";var ao=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=ih(n);return i.cloneElement(n,{...sh(r,n.props),ref:t?ze(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});ao.displayName="SlotClone";var rh=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function oh(e){return i.isValidElement(e)&&e.type===rh}function sh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ih(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function dc(e){const t=e+"CollectionProvider",[n,r]=ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:E,children:f}=v,h=Q.useRef(null),x=Q.useRef(new Map).current;return l.jsxRuntimeExports.jsx(o,{scope:E,itemMap:x,collectionRef:h,children:f})};a.displayName=t;const c=e+"CollectionSlot",d=Q.forwardRef((v,E)=>{const{scope:f,children:h}=v,x=s(c,f),y=ne(E,x.collectionRef);return l.jsxRuntimeExports.jsx(Zt,{ref:y,children:h})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((v,E)=>{const{scope:f,children:h,...x}=v,y=Q.useRef(null),b=ne(E,y),R=s(u,f);return Q.useEffect(()=>(R.itemMap.set(y,{ref:y,...x}),()=>void R.itemMap.delete(y))),l.jsxRuntimeExports.jsx(Zt,{[p]:"",ref:b,children:h})});m.displayName=u;function g(v){const E=s(e+"CollectionConsumer",v);return Q.useCallback(()=>{const h=E.collectionRef.current;if(!h)return[];const x=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(E.itemMap.values()).sort((R,C)=>x.indexOf(R.ref.current)-x.indexOf(C.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},g,r]}var ah=i.createContext(void 0);function ch(e){const t=i.useContext(ah);return e||t||"ltr"}var lh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=lh.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Zt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Go(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var uh="DismissableLayer",co="dismissableLayer.update",dh="dismissableLayer.pointerDownOutside",fh="dismissableLayer.focusOutside",vi,fc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(fc),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=hh(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=vh(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),gi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=vi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),gi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(co,w),()=>document.removeEventListener(co,w)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});pc.displayName=uh;var ph="DismissableLayerBranch",mh=i.forwardRef((e,t)=>{const n=i.useContext(fc),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});mh.displayName=ph;function hh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){mc(dh,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&mc(fh,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gi(){const e=new CustomEvent(co);document.dispatchEvent(e)}function mc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Go(o,s):o.dispatchEvent(s)}var Dr="focusScope.autoFocusOnMount",Ir="focusScope.autoFocusOnUnmount",xi={bubbles:!1,cancelable:!0},gh="FocusScope",hc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=ne(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Ve(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Ve(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ei.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Dr,xi);c.addEventListener(Dr,u),c.dispatchEvent(x),x.defaultPrevented||(xh(Rh(vc(c)),{select:!0}),document.activeElement===f&&Ve(c))}return()=>{c.removeEventListener(Dr,u),setTimeout(()=>{const x=new CustomEvent(Ir,xi);c.addEventListener(Ir,p),c.dispatchEvent(x),x.defaultPrevented||Ve(f??document.body,{select:!0}),c.removeEventListener(Ir,p),Ei.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=yh(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Ve(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Ve(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(re.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});hc.displayName=gh;function xh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function yh(e){const t=vc(e),n=yi(t,e),r=yi(t.reverse(),e);return[n,r]}function vc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yi(e,t){for(const n of e)if(!Eh(n,{upTo:t}))return n}function Eh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wh(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wh(e)&&t&&e.select()}}var Ei=bh();function bh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wi(e,t),e.unshift(t)},remove(t){var n;e=wi(e,t),(n=e[0])==null||n.resume()}}}function wi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Rh(e){return e.filter(t=>t.tagName!=="A")}const Ch=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Wn=Math.round,hn=Math.floor,$e=e=>({x:e,y:e}),Sh={left:"right",right:"left",bottom:"top",top:"bottom"},Ph={start:"end",end:"start"};function lo(e,t,n){return ge(e,Ye(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function qo(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(Le(e))?"y":"x"}function Qo(e){return qo(Ke(e))}function jh(e,t,n){n===void 0&&(n=!1);const r=Lt(e),o=Qo(e),s=Zo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Bn(a)),[a,Bn(a)]}function Th(e){const t=Bn(e);return[uo(e),t,uo(t)]}function uo(e){return e.replace(/start|end/g,t=>Ph[t])}function Ah(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function $h(e,t,n,r){const o=Lt(e);let s=Ah(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(uo)))),s}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>Sh[t])}function Nh(e){return{top:0,right:0,bottom:0,left:0,...e}}function gc(e){return typeof e!="number"?Nh(e):{top:e,right:e,bottom:e,left:e}}function Vn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function bi(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),a=Qo(t),c=Zo(a),d=Le(t),u=s==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let v;switch(d){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-o.width,y:m};break;default:v={x:r.x,y:r.y}}switch(Lt(t)){case"start":v[a]-=g*(n&&u?-1:1);break;case"end":v[a]+=g*(n&&u?-1:1);break}return v}const Oh=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=bi(u,r,d),g=r,v={},E=0;for(let f=0;f<c.length;f++){const{name:h,fn:x}=c[f],{x:y,y:b,data:R,reset:C}=await x({x:p,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});p=y??p,m=b??m,v={...v,[h]:{...v[h],...R}},C&&E<=50&&(E++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:m}=bi(u,g,d)),f=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:v}};async function Qt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:v=0}=_e(t,e),E=gc(v),h=c[g?m==="floating"?"reference":"floating":m],x=Vn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:p,strategy:d})),y=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),R=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Vn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:d}):y);return{top:(x.top-C.top+E.top)/R.y,bottom:(C.bottom-x.bottom+E.bottom)/R.y,left:(x.left-C.left+E.left)/R.x,right:(C.right-x.right+E.right)/R.x}}const Dh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:p=0}=_e(e,t)||{};if(u==null)return{};const m=gc(p),g={x:n,y:r},v=Qo(o),E=Zo(v),f=await a.getDimensions(u),h=v==="y",x=h?"top":"left",y=h?"bottom":"right",b=h?"clientHeight":"clientWidth",R=s.reference[E]+s.reference[v]-g[v]-s.floating[E],C=g[v]-s.reference[v],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let w=S?S[b]:0;(!w||!await(a.isElement==null?void 0:a.isElement(S)))&&(w=c.floating[b]||s.floating[E]);const j=R/2-C/2,$=w/2-f[E]/2-1,I=Ye(m[x],$),z=Ye(m[y],$),Y=I,F=w-f[E]-z,T=w/2-f[E]/2+j,W=lo(Y,T,F),k=!d.arrow&&Lt(o)!=null&&T!==W&&s.reference[E]/2-(T<Y?I:z)-f[E]/2<0,M=k?T<Y?T-Y:T-F:0;return{[v]:g[v]+M,data:{[v]:W,centerOffset:T-W-M,...k&&{alignmentOffset:M}},reset:k}}}),Ih=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0,...h}=_e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Le(o),y=Ke(c),b=Le(c)===c,R=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=g||(b||!f?[Bn(c)]:Th(c)),S=E!=="none";!g&&S&&C.push(...$h(c,f,E,R));const w=[c,...C],j=await Qt(t,h),$=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&$.push(j[x]),m){const T=jh(o,a,R);$.push(j[T[0]],j[T[1]])}if(I=[...I,{placement:o,overflows:$}],!$.every(T=>T<=0)){var z,Y;const T=(((z=s.flip)==null?void 0:z.index)||0)+1,W=w[T];if(W)return{data:{index:T,overflows:I},reset:{placement:W}};let k=(Y=I.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:Y.placement;if(!k)switch(v){case"bestFit":{var F;const M=(F=I.filter(N=>{if(S){const B=Ke(N.placement);return B===y||B==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(B=>B>0).reduce((B,te)=>B+te,0)]).sort((N,B)=>N[1]-B[1])[0])==null?void 0:F[0];M&&(k=M);break}case"initialPlacement":k=c;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Ri(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ci(e){return Ch.some(t=>e[t]>=0)}const kh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ri(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ci(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ri(s,n.floating);return{data:{escapedOffsets:a,escaped:Ci(a)}}}default:return{}}}}};async function Mh(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),c=Lt(n),d=Ke(n)==="y",u=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,m=_e(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof E=="number"&&(v=c==="end"?E*-1:E),d?{x:v*p,y:g*u}:{x:g*u,y:v*p}}const _h=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await Mh(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},Lh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:h=>{let{x,y}=h;return{x,y}}},...d}=_e(e,t),u={x:n,y:r},p=await Qt(t,d),m=Ke(Le(o)),g=qo(m);let v=u[g],E=u[m];if(s){const h=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=v+p[h],b=v-p[x];v=lo(y,v,b)}if(a){const h=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=E+p[h],b=E-p[x];E=lo(y,E,b)}const f=c.fn({...t,[g]:v,[m]:E});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:s,[m]:a}}}}}},Fh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=_e(e,t),p={x:n,y:r},m=Ke(o),g=qo(m);let v=p[g],E=p[m];const f=_e(c,t),h=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=g==="y"?"height":"width",R=s.reference[g]-s.floating[b]+h.mainAxis,C=s.reference[g]+s.reference[b]-h.mainAxis;v<R?v=R:v>C&&(v=C)}if(u){var x,y;const b=g==="y"?"width":"height",R=["top","left"].includes(Le(o)),C=s.reference[m]-s.floating[b]+(R&&((x=a.offset)==null?void 0:x[m])||0)+(R?0:h.crossAxis),S=s.reference[m]+s.reference[b]+(R?0:((y=a.offset)==null?void 0:y[m])||0)-(R?h.crossAxis:0);E<C?E=C:E>S&&(E=S)}return{[g]:v,[m]:E}}}},Wh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=_e(e,t),p=await Qt(t,u),m=Le(o),g=Lt(o),v=Ke(o)==="y",{width:E,height:f}=s.floating;let h,x;m==="top"||m==="bottom"?(h=m,x=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,h=g==="end"?"top":"bottom");const y=f-p.top-p.bottom,b=E-p.left-p.right,R=Ye(f-p[h],y),C=Ye(E-p[x],b),S=!t.middlewareData.shift;let w=R,j=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=y),S&&!g){const I=ge(p.left,0),z=ge(p.right,0),Y=ge(p.top,0),F=ge(p.bottom,0);v?j=E-2*(I!==0||z!==0?I+z:ge(p.left,p.right)):w=f-2*(Y!==0||F!==0?Y+F:ge(p.top,p.bottom))}await d({...t,availableWidth:j,availableHeight:w});const $=await a.getDimensions(c.floating);return E!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function Ft(e){return xc(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(xc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xc(e){return or()?e instanceof Node||e instanceof ye(e).Node:!1}function Ce(e){return or()?e instanceof Element||e instanceof ye(e).Element:!1}function Ne(e){return or()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Si(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Bh(e){return["table","td","th"].includes(Ft(e))}function sr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jo(e){const t=es(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Vh(e){let t=Xe(e);for(;Ne(t)&&!Ot(t);){if(Jo(t))return t;if(sr(t))return null;t=Xe(t)}return null}function es(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ot(e){return["html","body","#document"].includes(Ft(e))}function Se(e){return ye(e).getComputedStyle(e)}function ir(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Ft(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Si(e)&&e.host||Oe(e);return Si(t)?t.host:t}function yc(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&tn(t)?t:yc(t)}function Jt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(s){const c=fo(a);return t.concat(a,a.visualViewport||[],tn(o)?o:[],c&&n?Jt(c):[])}return t.concat(o,Jt(o,[],n))}function fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Wn(n)!==s||Wn(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function ts(e){return Ce(e)?e:e.contextElement}function Ct(e){const t=ts(e);if(!Ne(t))return $e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ec(t);let a=(s?Wn(n.width):n.width)/r,c=(s?Wn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Hh=$e(0);function wc(e){const t=ye(e);return!es()||!t.visualViewport?Hh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function at(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ts(e);let a=$e(1);t&&(r?Ce(r)&&(a=Ct(r)):a=Ct(e));const c=Uh(s,n,r)?wc(s):$e(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(s){const g=ye(s),v=r&&Ce(r)?ye(r):r;let E=g,f=fo(E);for(;f&&r&&v!==E;){const h=Ct(f),x=f.getBoundingClientRect(),y=Se(f),b=x.left+(f.clientLeft+parseFloat(y.paddingLeft))*h.x,R=x.top+(f.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,u*=h.y,p*=h.x,m*=h.y,d+=b,u+=R,E=ye(f),f=fo(E)}}return Vn({width:p,height:m,x:d,y:u})}function ns(e,t){const n=ir(e).scrollLeft;return t?t.left+n:at(Oe(e)).left+n}function bc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ns(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function zh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?sr(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=$e(1);const p=$e(0),m=Ne(r);if((m||!m&&!s)&&((Ft(r)!=="body"||tn(a))&&(d=ir(r)),Ne(r))){const v=at(r);u=Ct(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const g=a&&!m&&!s?bc(a,d,!0):$e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-d.scrollTop*u.y+p.y+g.y}}function Yh(e){return Array.from(e.getClientRects())}function Kh(e){const t=Oe(e),n=ir(e),r=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ns(e);const c=-n.scrollTop;return Se(r).direction==="rtl"&&(a+=ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}function Xh(e,t){const n=ye(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const u=es();(!u||u&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:c,y:d}}function Gh(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?Ct(e):$e(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function Pi(e,t,n){let r;if(t==="viewport")r=Xh(e,n);else if(t==="document")r=Kh(Oe(e));else if(Ce(t))r=Gh(t,n);else{const o=wc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vn(r)}function Rc(e,t){const n=Xe(e);return n===t||!Ce(n)||Ot(n)?!1:Se(n).position==="fixed"||Rc(n,t)}function qh(e,t){const n=t.get(e);if(n)return n;let r=Jt(e,[],!1).filter(c=>Ce(c)&&Ft(c)!=="body"),o=null;const s=Se(e).position==="fixed";let a=s?Xe(e):e;for(;Ce(a)&&!Ot(a);){const c=Se(a),d=Jo(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||tn(a)&&!d&&Rc(e,a))?r=r.filter(p=>p!==a):o=c,a=Xe(a)}return t.set(e,r),r}function Zh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?sr(t)?[]:qh(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,p)=>{const m=Pi(t,p,o);return u.top=ge(m.top,u.top),u.right=Ye(m.right,u.right),u.bottom=Ye(m.bottom,u.bottom),u.left=ge(m.left,u.left),u},Pi(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Qh(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}}function Jh(e,t,n){const r=Ne(t),o=Oe(t),s=n==="fixed",a=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=$e(0);if(r||!r&&!s)if((Ft(t)!=="body"||tn(o))&&(c=ir(t)),r){const g=at(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&(d.x=ns(o));const u=o&&!r&&!s?bc(o,c):$e(0),p=a.left+c.scrollLeft-d.x-u.x,m=a.top+c.scrollTop-d.y-u.y;return{x:p,y:m,width:a.width,height:a.height}}function kr(e){return Se(e).position==="static"}function ji(e,t){if(!Ne(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function Cc(e,t){const n=ye(e);if(sr(e))return n;if(!Ne(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Ce(o)&&!kr(o))return o;o=Xe(o)}return n}let r=ji(e,t);for(;r&&Bh(r)&&kr(r);)r=ji(r,t);return r&&Ot(r)&&kr(r)&&!Jo(r)?n:r||Vh(e)||n}const ev=async function(e){const t=this.getOffsetParent||Cc,n=this.getDimensions,r=await n(e.floating);return{reference:Jh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tv(e){return Se(e).direction==="rtl"}const nv={convertOffsetParentRelativeRectToViewportRelativeRect:zh,getDocumentElement:Oe,getClippingRect:Zh,getOffsetParent:Cc,getElementRects:ev,getClientRects:Yh,getDimensions:Qh,getScale:Ct,isElement:Ce,isRTL:tv};function Sc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rv(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:p,top:m,width:g,height:v}=u;if(c||t(),!g||!v)return;const E=hn(m),f=hn(o.clientWidth-(p+g)),h=hn(o.clientHeight-(m+v)),x=hn(p),b={rootMargin:-E+"px "+-f+"px "+-h+"px "+-x+"px",threshold:ge(0,Ye(1,d))||1};let R=!0;function C(S){const w=S[0].intersectionRatio;if(w!==d){if(!R)return a();w?a(!1,w):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w===1&&!Sc(u,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(C,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return a(!0),s}function rs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=ts(e),p=o||s?[...u?Jt(u):[],...Jt(t)]:[];p.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const m=u&&c?rv(u,n):null;let g=-1,v=null;a&&(v=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let E,f=d?at(e):null;d&&h();function h(){const x=at(e);f&&!Sc(f,x)&&n(),f=x,E=requestAnimationFrame(h)}return n(),()=>{var x;p.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(x=v)==null||x.disconnect(),v=null,d&&cancelAnimationFrame(E)}}const ov=_h,sv=Lh,iv=Ih,av=Wh,cv=kh,Ti=Dh,lv=Fh,uv=(e,t,n)=>{const r=new Map,o={platform:nv,...n},s={...o.platform,_c:r};return Oh(e,t,{...o,platform:s})};var $n=typeof document<"u"?Q.useLayoutEffect:Q.useEffect;function Hn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Hn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Pc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ai(e,t){const n=Pc(e);return Math.round(t*n)/n}function Mr(e){const t=i.useRef(e);return $n(()=>{t.current=e}),t}function os(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[p,m]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=i.useState(r);Hn(g,r)||v(r);const[E,f]=i.useState(null),[h,x]=i.useState(null),y=i.useCallback(N=>{N!==S.current&&(S.current=N,f(N))},[]),b=i.useCallback(N=>{N!==w.current&&(w.current=N,x(N))},[]),R=s||E,C=a||h,S=i.useRef(null),w=i.useRef(null),j=i.useRef(p),$=d!=null,I=Mr(d),z=Mr(o),Y=Mr(u),F=i.useCallback(()=>{if(!S.current||!w.current)return;const N={placement:t,strategy:n,middleware:g};z.current&&(N.platform=z.current),uv(S.current,w.current,N).then(B=>{const te={...B,isPositioned:Y.current!==!1};T.current&&!Hn(j.current,te)&&(j.current=te,Ze.flushSync(()=>{m(te)}))})},[g,t,n,z,Y]);$n(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(N=>({...N,isPositioned:!1})))},[u]);const T=i.useRef(!1);$n(()=>(T.current=!0,()=>{T.current=!1}),[]),$n(()=>{if(R&&(S.current=R),C&&(w.current=C),R&&C){if(I.current)return I.current(R,C,F);F()}},[R,C,F,I,$]);const W=i.useMemo(()=>({reference:S,floating:w,setReference:y,setFloating:b}),[y,b]),k=i.useMemo(()=>({reference:R,floating:C}),[R,C]),M=i.useMemo(()=>{const N={position:n,left:0,top:0};if(!k.floating)return N;const B=Ai(k.floating,p.x),te=Ai(k.floating,p.y);return c?{...N,transform:"translate("+B+"px, "+te+"px)",...Pc(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:te}},[n,c,k.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:F,refs:W,elements:k,floatingStyles:M}),[p,F,W,k,M])}const dv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ti({element:r.current,padding:o}).fn(n):{}:r?Ti({element:r,padding:o}).fn(n):{}}}},ss=(e,t)=>({...ov(e),options:[e,t]}),is=(e,t)=>({...sv(e),options:[e,t]}),as=(e,t)=>({...lv(e),options:[e,t]}),cs=(e,t)=>({...iv(e),options:[e,t]}),ls=(e,t)=>({...av(e),options:[e,t]}),us=(e,t)=>({...cv(e),options:[e,t]}),ds=(e,t)=>({...dv(e),options:[e,t]});var fv="Arrow",jc=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});jc.displayName=fv;var pv=jc;function Tc(e){const[t,n]=i.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var fs="Popper",[Ac,$c]=ft(fs),[mv,Nc]=Ac(fs),Oc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(mv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Oc.displayName=fs;var Dc="PopperAnchor",Ic=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Nc(Dc,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(re.div,{...o,ref:c})});Ic.displayName=Dc;var ps="PopperContent",[hv,vv]=Ac(ps),kc=i.forwardRef((e,t)=>{var A,L,V,G,Z,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:E,...f}=e,h=Nc(ps,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Tc(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(u)?u:[u],Y=z.length>0,F={padding:I,boundary:z.filter(xv),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),yv({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=Lc(k),J=ae(E);ce(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return ce(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(hv,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(re.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});kc.displayName=ps;var Mc="PopperArrow",gv={top:"bottom",right:"left",bottom:"top",left:"right"},_c=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=vv(Mc,r),a=gv[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(pv,{...o,ref:n,style:{...o.style,display:"block"}})})});_c.displayName=Mc;function xv(e){return e!==null}var yv=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Lc(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Lc(e){const[t,n="center"]=e.split("-");return[t,n]}var Ev=Oc,wv=Ic,bv=kc,Rv=_c,Cv="Portal",ms=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Yn.createPortal(l.jsxRuntimeExports.jsx(re.div,{...r,ref:t}),a):null});ms.displayName=Cv;function Sv(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pv="VisuallyHidden",ar=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(re.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ar.displayName=Pv;var Kt="right-scroll-bar-position",Xt="width-before-scroll-bar",jv="with-scroll-bars-hidden",Tv="--removed-body-scroll-bar-size";function _r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Av(e,t){var n=Q.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var $v=typeof window<"u"?i.useLayoutEffect:i.useEffect,$i=new WeakMap;function Fc(e,t){var n=Av(null,function(r){return e.forEach(function(o){return _r(o,r)})});return $v(function(){var r=$i.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||_r(c,null)}),s.forEach(function(c){o.has(c)||_r(c,a)})}$i.set(n,e)},[e]),n}var Wc=Ma(),Lr=function(){},cr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Lr,onWheelCapture:Lr,onTouchMoveCapture:Lr}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Fc([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Wc,removeScrollBar:u,shards:m,noIsolation:v,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(x,ie({},S,{className:d,ref:C}),c))});cr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cr.classNames={fullWidth:Xt,zeroRight:Kt};function Nv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wa();return t&&e.setAttribute("nonce",t),e}function Ov(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Iv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nv())&&(Ov(t,n),Dv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kv=function(){var e=Iv();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bc=function(){var e=kv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Mv={left:0,top:0,right:0,gap:0},Fr=function(e){return parseInt(e||"",10)||0},_v=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fr(n),Fr(r),Fr(o)]},Lv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Mv;var t=_v(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fv=Bc(),St="data-scroll-locked",Wv=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
331
|
+
`;function nh({onClick:e,children:t,...n}){return l.jsxRuntimeExports.jsx(th,{onClick:e,...n,children:t})}function mi(e,[t,n]){return Math.min(n,Math.max(t,e))}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function hi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ze(...e){return t=>{let n=!1;const r=e.map(o=>{const s=hi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():hi(e[o],null)}}}}function ne(...e){return i.useCallback(ze(...e),e)}var Zt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(oh);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:n})});Zt.displayName="Slot";var ao=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=ih(n);return i.cloneElement(n,{...sh(r,n.props),ref:t?ze(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});ao.displayName="SlotClone";var rh=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function oh(e){return i.isValidElement(e)&&e.type===rh}function sh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ih(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function dc(e){const t=e+"CollectionProvider",[n,r]=ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:E,children:f}=v,h=Q.useRef(null),x=Q.useRef(new Map).current;return l.jsxRuntimeExports.jsx(o,{scope:E,itemMap:x,collectionRef:h,children:f})};a.displayName=t;const c=e+"CollectionSlot",d=Q.forwardRef((v,E)=>{const{scope:f,children:h}=v,x=s(c,f),y=ne(E,x.collectionRef);return l.jsxRuntimeExports.jsx(Zt,{ref:y,children:h})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((v,E)=>{const{scope:f,children:h,...x}=v,y=Q.useRef(null),b=ne(E,y),R=s(u,f);return Q.useEffect(()=>(R.itemMap.set(y,{ref:y,...x}),()=>void R.itemMap.delete(y))),l.jsxRuntimeExports.jsx(Zt,{[p]:"",ref:b,children:h})});m.displayName=u;function g(v){const E=s(e+"CollectionConsumer",v);return Q.useCallback(()=>{const h=E.collectionRef.current;if(!h)return[];const x=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(E.itemMap.values()).sort((R,C)=>x.indexOf(R.ref.current)-x.indexOf(C.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},g,r]}var ah=i.createContext(void 0);function ch(e){const t=i.useContext(ah);return e||t||"ltr"}var lh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=lh.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Zt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Go(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var uh="DismissableLayer",co="dismissableLayer.update",dh="dismissableLayer.pointerDownOutside",fh="dismissableLayer.focusOutside",vi,fc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(fc),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=hh(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=vh(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),gi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=vi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),gi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(co,w),()=>document.removeEventListener(co,w)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});pc.displayName=uh;var ph="DismissableLayerBranch",mh=i.forwardRef((e,t)=>{const n=i.useContext(fc),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});mh.displayName=ph;function hh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){mc(dh,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&mc(fh,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gi(){const e=new CustomEvent(co);document.dispatchEvent(e)}function mc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Go(o,s):o.dispatchEvent(s)}var Dr="focusScope.autoFocusOnMount",Ir="focusScope.autoFocusOnUnmount",xi={bubbles:!1,cancelable:!0},gh="FocusScope",hc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=ne(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Ve(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Ve(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ei.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Dr,xi);c.addEventListener(Dr,u),c.dispatchEvent(x),x.defaultPrevented||(xh(Rh(vc(c)),{select:!0}),document.activeElement===f&&Ve(c))}return()=>{c.removeEventListener(Dr,u),setTimeout(()=>{const x=new CustomEvent(Ir,xi);c.addEventListener(Ir,p),c.dispatchEvent(x),x.defaultPrevented||Ve(f??document.body,{select:!0}),c.removeEventListener(Ir,p),Ei.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=yh(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Ve(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Ve(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(re.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});hc.displayName=gh;function xh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function yh(e){const t=vc(e),n=yi(t,e),r=yi(t.reverse(),e);return[n,r]}function vc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yi(e,t){for(const n of e)if(!Eh(n,{upTo:t}))return n}function Eh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wh(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wh(e)&&t&&e.select()}}var Ei=bh();function bh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wi(e,t),e.unshift(t)},remove(t){var n;e=wi(e,t),(n=e[0])==null||n.resume()}}}function wi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Rh(e){return e.filter(t=>t.tagName!=="A")}const Ch=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Wn=Math.round,hn=Math.floor,$e=e=>({x:e,y:e}),Sh={left:"right",right:"left",bottom:"top",top:"bottom"},Ph={start:"end",end:"start"};function lo(e,t,n){return ge(e,Ye(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function qo(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(Le(e))?"y":"x"}function Qo(e){return qo(Ke(e))}function jh(e,t,n){n===void 0&&(n=!1);const r=Lt(e),o=Qo(e),s=Zo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Bn(a)),[a,Bn(a)]}function Th(e){const t=Bn(e);return[uo(e),t,uo(t)]}function uo(e){return e.replace(/start|end/g,t=>Ph[t])}function Ah(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function $h(e,t,n,r){const o=Lt(e);let s=Ah(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(uo)))),s}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>Sh[t])}function Nh(e){return{top:0,right:0,bottom:0,left:0,...e}}function gc(e){return typeof e!="number"?Nh(e):{top:e,right:e,bottom:e,left:e}}function Vn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function bi(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),a=Qo(t),c=Zo(a),d=Le(t),u=s==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let v;switch(d){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-o.width,y:m};break;default:v={x:r.x,y:r.y}}switch(Lt(t)){case"start":v[a]-=g*(n&&u?-1:1);break;case"end":v[a]+=g*(n&&u?-1:1);break}return v}const Oh=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=bi(u,r,d),g=r,v={},E=0;for(let f=0;f<c.length;f++){const{name:h,fn:x}=c[f],{x:y,y:b,data:R,reset:C}=await x({x:p,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});p=y??p,m=b??m,v={...v,[h]:{...v[h],...R}},C&&E<=50&&(E++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:m}=bi(u,g,d)),f=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:v}};async function Qt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:v=0}=_e(t,e),E=gc(v),h=c[g?m==="floating"?"reference":"floating":m],x=Vn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:p,strategy:d})),y=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),R=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Vn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:d}):y);return{top:(x.top-C.top+E.top)/R.y,bottom:(C.bottom-x.bottom+E.bottom)/R.y,left:(x.left-C.left+E.left)/R.x,right:(C.right-x.right+E.right)/R.x}}const Dh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:p=0}=_e(e,t)||{};if(u==null)return{};const m=gc(p),g={x:n,y:r},v=Qo(o),E=Zo(v),f=await a.getDimensions(u),h=v==="y",x=h?"top":"left",y=h?"bottom":"right",b=h?"clientHeight":"clientWidth",R=s.reference[E]+s.reference[v]-g[v]-s.floating[E],C=g[v]-s.reference[v],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let w=S?S[b]:0;(!w||!await(a.isElement==null?void 0:a.isElement(S)))&&(w=c.floating[b]||s.floating[E]);const j=R/2-C/2,$=w/2-f[E]/2-1,I=Ye(m[x],$),U=Ye(m[y],$),Y=I,F=w-f[E]-U,T=w/2-f[E]/2+j,W=lo(Y,T,F),k=!d.arrow&&Lt(o)!=null&&T!==W&&s.reference[E]/2-(T<Y?I:U)-f[E]/2<0,M=k?T<Y?T-Y:T-F:0;return{[v]:g[v]+M,data:{[v]:W,centerOffset:T-W-M,...k&&{alignmentOffset:M}},reset:k}}}),Ih=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0,...h}=_e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Le(o),y=Ke(c),b=Le(c)===c,R=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=g||(b||!f?[Bn(c)]:Th(c)),S=E!=="none";!g&&S&&C.push(...$h(c,f,E,R));const w=[c,...C],j=await Qt(t,h),$=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&$.push(j[x]),m){const T=jh(o,a,R);$.push(j[T[0]],j[T[1]])}if(I=[...I,{placement:o,overflows:$}],!$.every(T=>T<=0)){var U,Y;const T=(((U=s.flip)==null?void 0:U.index)||0)+1,W=w[T];if(W)return{data:{index:T,overflows:I},reset:{placement:W}};let k=(Y=I.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:Y.placement;if(!k)switch(v){case"bestFit":{var F;const M=(F=I.filter(N=>{if(S){const B=Ke(N.placement);return B===y||B==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(B=>B>0).reduce((B,te)=>B+te,0)]).sort((N,B)=>N[1]-B[1])[0])==null?void 0:F[0];M&&(k=M);break}case"initialPlacement":k=c;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Ri(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ci(e){return Ch.some(t=>e[t]>=0)}const kh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ri(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ci(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ri(s,n.floating);return{data:{escapedOffsets:a,escaped:Ci(a)}}}default:return{}}}}};async function Mh(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),c=Lt(n),d=Ke(n)==="y",u=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,m=_e(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof E=="number"&&(v=c==="end"?E*-1:E),d?{x:v*p,y:g*u}:{x:g*u,y:v*p}}const _h=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await Mh(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},Lh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:h=>{let{x,y}=h;return{x,y}}},...d}=_e(e,t),u={x:n,y:r},p=await Qt(t,d),m=Ke(Le(o)),g=qo(m);let v=u[g],E=u[m];if(s){const h=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=v+p[h],b=v-p[x];v=lo(y,v,b)}if(a){const h=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=E+p[h],b=E-p[x];E=lo(y,E,b)}const f=c.fn({...t,[g]:v,[m]:E});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:s,[m]:a}}}}}},Fh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=_e(e,t),p={x:n,y:r},m=Ke(o),g=qo(m);let v=p[g],E=p[m];const f=_e(c,t),h=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=g==="y"?"height":"width",R=s.reference[g]-s.floating[b]+h.mainAxis,C=s.reference[g]+s.reference[b]-h.mainAxis;v<R?v=R:v>C&&(v=C)}if(u){var x,y;const b=g==="y"?"width":"height",R=["top","left"].includes(Le(o)),C=s.reference[m]-s.floating[b]+(R&&((x=a.offset)==null?void 0:x[m])||0)+(R?0:h.crossAxis),S=s.reference[m]+s.reference[b]+(R?0:((y=a.offset)==null?void 0:y[m])||0)-(R?h.crossAxis:0);E<C?E=C:E>S&&(E=S)}return{[g]:v,[m]:E}}}},Wh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=_e(e,t),p=await Qt(t,u),m=Le(o),g=Lt(o),v=Ke(o)==="y",{width:E,height:f}=s.floating;let h,x;m==="top"||m==="bottom"?(h=m,x=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,h=g==="end"?"top":"bottom");const y=f-p.top-p.bottom,b=E-p.left-p.right,R=Ye(f-p[h],y),C=Ye(E-p[x],b),S=!t.middlewareData.shift;let w=R,j=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=y),S&&!g){const I=ge(p.left,0),U=ge(p.right,0),Y=ge(p.top,0),F=ge(p.bottom,0);v?j=E-2*(I!==0||U!==0?I+U:ge(p.left,p.right)):w=f-2*(Y!==0||F!==0?Y+F:ge(p.top,p.bottom))}await d({...t,availableWidth:j,availableHeight:w});const $=await a.getDimensions(c.floating);return E!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function Ft(e){return xc(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(xc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xc(e){return or()?e instanceof Node||e instanceof ye(e).Node:!1}function Ce(e){return or()?e instanceof Element||e instanceof ye(e).Element:!1}function Ne(e){return or()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Si(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Bh(e){return["table","td","th"].includes(Ft(e))}function sr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jo(e){const t=es(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Vh(e){let t=Xe(e);for(;Ne(t)&&!Ot(t);){if(Jo(t))return t;if(sr(t))return null;t=Xe(t)}return null}function es(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ot(e){return["html","body","#document"].includes(Ft(e))}function Se(e){return ye(e).getComputedStyle(e)}function ir(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Ft(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Si(e)&&e.host||Oe(e);return Si(t)?t.host:t}function yc(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&tn(t)?t:yc(t)}function Jt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(s){const c=fo(a);return t.concat(a,a.visualViewport||[],tn(o)?o:[],c&&n?Jt(c):[])}return t.concat(o,Jt(o,[],n))}function fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Wn(n)!==s||Wn(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function ts(e){return Ce(e)?e:e.contextElement}function Ct(e){const t=ts(e);if(!Ne(t))return $e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ec(t);let a=(s?Wn(n.width):n.width)/r,c=(s?Wn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Hh=$e(0);function wc(e){const t=ye(e);return!es()||!t.visualViewport?Hh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function at(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ts(e);let a=$e(1);t&&(r?Ce(r)&&(a=Ct(r)):a=Ct(e));const c=Uh(s,n,r)?wc(s):$e(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(s){const g=ye(s),v=r&&Ce(r)?ye(r):r;let E=g,f=fo(E);for(;f&&r&&v!==E;){const h=Ct(f),x=f.getBoundingClientRect(),y=Se(f),b=x.left+(f.clientLeft+parseFloat(y.paddingLeft))*h.x,R=x.top+(f.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,u*=h.y,p*=h.x,m*=h.y,d+=b,u+=R,E=ye(f),f=fo(E)}}return Vn({width:p,height:m,x:d,y:u})}function ns(e,t){const n=ir(e).scrollLeft;return t?t.left+n:at(Oe(e)).left+n}function bc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ns(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function zh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?sr(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=$e(1);const p=$e(0),m=Ne(r);if((m||!m&&!s)&&((Ft(r)!=="body"||tn(a))&&(d=ir(r)),Ne(r))){const v=at(r);u=Ct(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const g=a&&!m&&!s?bc(a,d,!0):$e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-d.scrollTop*u.y+p.y+g.y}}function Yh(e){return Array.from(e.getClientRects())}function Kh(e){const t=Oe(e),n=ir(e),r=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ns(e);const c=-n.scrollTop;return Se(r).direction==="rtl"&&(a+=ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}function Xh(e,t){const n=ye(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const u=es();(!u||u&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:c,y:d}}function Gh(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?Ct(e):$e(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function Pi(e,t,n){let r;if(t==="viewport")r=Xh(e,n);else if(t==="document")r=Kh(Oe(e));else if(Ce(t))r=Gh(t,n);else{const o=wc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vn(r)}function Rc(e,t){const n=Xe(e);return n===t||!Ce(n)||Ot(n)?!1:Se(n).position==="fixed"||Rc(n,t)}function qh(e,t){const n=t.get(e);if(n)return n;let r=Jt(e,[],!1).filter(c=>Ce(c)&&Ft(c)!=="body"),o=null;const s=Se(e).position==="fixed";let a=s?Xe(e):e;for(;Ce(a)&&!Ot(a);){const c=Se(a),d=Jo(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||tn(a)&&!d&&Rc(e,a))?r=r.filter(p=>p!==a):o=c,a=Xe(a)}return t.set(e,r),r}function Zh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?sr(t)?[]:qh(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,p)=>{const m=Pi(t,p,o);return u.top=ge(m.top,u.top),u.right=Ye(m.right,u.right),u.bottom=Ye(m.bottom,u.bottom),u.left=ge(m.left,u.left),u},Pi(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Qh(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}}function Jh(e,t,n){const r=Ne(t),o=Oe(t),s=n==="fixed",a=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=$e(0);if(r||!r&&!s)if((Ft(t)!=="body"||tn(o))&&(c=ir(t)),r){const g=at(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&(d.x=ns(o));const u=o&&!r&&!s?bc(o,c):$e(0),p=a.left+c.scrollLeft-d.x-u.x,m=a.top+c.scrollTop-d.y-u.y;return{x:p,y:m,width:a.width,height:a.height}}function kr(e){return Se(e).position==="static"}function ji(e,t){if(!Ne(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function Cc(e,t){const n=ye(e);if(sr(e))return n;if(!Ne(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Ce(o)&&!kr(o))return o;o=Xe(o)}return n}let r=ji(e,t);for(;r&&Bh(r)&&kr(r);)r=ji(r,t);return r&&Ot(r)&&kr(r)&&!Jo(r)?n:r||Vh(e)||n}const ev=async function(e){const t=this.getOffsetParent||Cc,n=this.getDimensions,r=await n(e.floating);return{reference:Jh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tv(e){return Se(e).direction==="rtl"}const nv={convertOffsetParentRelativeRectToViewportRelativeRect:zh,getDocumentElement:Oe,getClippingRect:Zh,getOffsetParent:Cc,getElementRects:ev,getClientRects:Yh,getDimensions:Qh,getScale:Ct,isElement:Ce,isRTL:tv};function Sc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rv(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:p,top:m,width:g,height:v}=u;if(c||t(),!g||!v)return;const E=hn(m),f=hn(o.clientWidth-(p+g)),h=hn(o.clientHeight-(m+v)),x=hn(p),b={rootMargin:-E+"px "+-f+"px "+-h+"px "+-x+"px",threshold:ge(0,Ye(1,d))||1};let R=!0;function C(S){const w=S[0].intersectionRatio;if(w!==d){if(!R)return a();w?a(!1,w):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w===1&&!Sc(u,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(C,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return a(!0),s}function rs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=ts(e),p=o||s?[...u?Jt(u):[],...Jt(t)]:[];p.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const m=u&&c?rv(u,n):null;let g=-1,v=null;a&&(v=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let E,f=d?at(e):null;d&&h();function h(){const x=at(e);f&&!Sc(f,x)&&n(),f=x,E=requestAnimationFrame(h)}return n(),()=>{var x;p.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(x=v)==null||x.disconnect(),v=null,d&&cancelAnimationFrame(E)}}const ov=_h,sv=Lh,iv=Ih,av=Wh,cv=kh,Ti=Dh,lv=Fh,uv=(e,t,n)=>{const r=new Map,o={platform:nv,...n},s={...o.platform,_c:r};return Oh(e,t,{...o,platform:s})};var $n=typeof document<"u"?Q.useLayoutEffect:Q.useEffect;function Hn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Hn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Pc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ai(e,t){const n=Pc(e);return Math.round(t*n)/n}function Mr(e){const t=i.useRef(e);return $n(()=>{t.current=e}),t}function os(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[p,m]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=i.useState(r);Hn(g,r)||v(r);const[E,f]=i.useState(null),[h,x]=i.useState(null),y=i.useCallback(N=>{N!==S.current&&(S.current=N,f(N))},[]),b=i.useCallback(N=>{N!==w.current&&(w.current=N,x(N))},[]),R=s||E,C=a||h,S=i.useRef(null),w=i.useRef(null),j=i.useRef(p),$=d!=null,I=Mr(d),U=Mr(o),Y=Mr(u),F=i.useCallback(()=>{if(!S.current||!w.current)return;const N={placement:t,strategy:n,middleware:g};U.current&&(N.platform=U.current),uv(S.current,w.current,N).then(B=>{const te={...B,isPositioned:Y.current!==!1};T.current&&!Hn(j.current,te)&&(j.current=te,Ze.flushSync(()=>{m(te)}))})},[g,t,n,U,Y]);$n(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(N=>({...N,isPositioned:!1})))},[u]);const T=i.useRef(!1);$n(()=>(T.current=!0,()=>{T.current=!1}),[]),$n(()=>{if(R&&(S.current=R),C&&(w.current=C),R&&C){if(I.current)return I.current(R,C,F);F()}},[R,C,F,I,$]);const W=i.useMemo(()=>({reference:S,floating:w,setReference:y,setFloating:b}),[y,b]),k=i.useMemo(()=>({reference:R,floating:C}),[R,C]),M=i.useMemo(()=>{const N={position:n,left:0,top:0};if(!k.floating)return N;const B=Ai(k.floating,p.x),te=Ai(k.floating,p.y);return c?{...N,transform:"translate("+B+"px, "+te+"px)",...Pc(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:te}},[n,c,k.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:F,refs:W,elements:k,floatingStyles:M}),[p,F,W,k,M])}const dv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ti({element:r.current,padding:o}).fn(n):{}:r?Ti({element:r,padding:o}).fn(n):{}}}},ss=(e,t)=>({...ov(e),options:[e,t]}),is=(e,t)=>({...sv(e),options:[e,t]}),as=(e,t)=>({...lv(e),options:[e,t]}),cs=(e,t)=>({...iv(e),options:[e,t]}),ls=(e,t)=>({...av(e),options:[e,t]}),us=(e,t)=>({...cv(e),options:[e,t]}),ds=(e,t)=>({...dv(e),options:[e,t]});var fv="Arrow",jc=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});jc.displayName=fv;var pv=jc;function Tc(e){const[t,n]=i.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var fs="Popper",[Ac,$c]=ft(fs),[mv,Nc]=Ac(fs),Oc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(mv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Oc.displayName=fs;var Dc="PopperAnchor",Ic=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Nc(Dc,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(re.div,{...o,ref:c})});Ic.displayName=Dc;var ps="PopperContent",[hv,vv]=Ac(ps),kc=i.forwardRef((e,t)=>{var A,L,V,G,Z,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:E,...f}=e,h=Nc(ps,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Tc(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,F={padding:I,boundary:U.filter(xv),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),yv({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=Lc(k),J=ae(E);ce(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return ce(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(hv,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(re.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});kc.displayName=ps;var Mc="PopperArrow",gv={top:"bottom",right:"left",bottom:"top",left:"right"},_c=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=vv(Mc,r),a=gv[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(pv,{...o,ref:n,style:{...o.style,display:"block"}})})});_c.displayName=Mc;function xv(e){return e!==null}var yv=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Lc(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Lc(e){const[t,n="center"]=e.split("-");return[t,n]}var Ev=Oc,wv=Ic,bv=kc,Rv=_c,Cv="Portal",ms=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Yn.createPortal(l.jsxRuntimeExports.jsx(re.div,{...r,ref:t}),a):null});ms.displayName=Cv;function Sv(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pv="VisuallyHidden",ar=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(re.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ar.displayName=Pv;var Kt="right-scroll-bar-position",Xt="width-before-scroll-bar",jv="with-scroll-bars-hidden",Tv="--removed-body-scroll-bar-size";function _r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Av(e,t){var n=Q.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var $v=typeof window<"u"?i.useLayoutEffect:i.useEffect,$i=new WeakMap;function Fc(e,t){var n=Av(null,function(r){return e.forEach(function(o){return _r(o,r)})});return $v(function(){var r=$i.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||_r(c,null)}),s.forEach(function(c){o.has(c)||_r(c,a)})}$i.set(n,e)},[e]),n}var Wc=Ma(),Lr=function(){},cr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Lr,onWheelCapture:Lr,onTouchMoveCapture:Lr}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Fc([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Wc,removeScrollBar:u,shards:m,noIsolation:v,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(x,ie({},S,{className:d,ref:C}),c))});cr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cr.classNames={fullWidth:Xt,zeroRight:Kt};function Nv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wa();return t&&e.setAttribute("nonce",t),e}function Ov(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Iv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nv())&&(Ov(t,n),Dv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kv=function(){var e=Iv();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bc=function(){var e=kv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Mv={left:0,top:0,right:0,gap:0},Fr=function(e){return parseInt(e||"",10)||0},_v=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fr(n),Fr(r),Fr(o)]},Lv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Mv;var t=_v(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fv=Bc(),St="data-scroll-locked",Wv=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
330
332
|
.`.concat(jv,` {
|
|
331
333
|
overflow: hidden `).concat(r,`;
|
|
332
334
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
@@ -366,7 +368,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
366
368
|
`)},Ni=function(){var e=parseInt(document.body.getAttribute(St)||"0",10);return isFinite(e)?e:0},Bv=function(){i.useEffect(function(){return document.body.setAttribute(St,(Ni()+1).toString()),function(){var e=Ni()-1;e<=0?document.body.removeAttribute(St):document.body.setAttribute(St,e.toString())}},[])},Vc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Bv();var s=i.useMemo(function(){return Lv(o)},[o]);return i.createElement(Fv,{styles:Wv(s,!t,o,n?"":"!important")})},po=!1;if(typeof window<"u")try{var vn=Object.defineProperty({},"passive",{get:function(){return po=!0,!0}});window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{po=!1}var gt=po?{passive:!1}:!1,Vv=function(e){return e.tagName==="TEXTAREA"},Hc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Vv(e)&&n[t]==="visible")},Hv=function(e){return Hc(e,"overflowY")},Uv=function(e){return Hc(e,"overflowX")},Oi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Uc(e,r);if(o){var s=zc(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zv=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Yv=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Uc=function(e,t){return e==="v"?Hv(t):Uv(t)},zc=function(e,t){return e==="v"?zv(t):Yv(t)},Kv=function(e,t){return e==="h"&&t==="rtl"?-1:1},Xv=function(e,t,n,r,o){var s=Kv(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{var v=zc(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&Uc(e,c)&&(m+=x,g+=E),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},gn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Di=function(e){return[e.deltaX,e.deltaY]},Ii=function(e){return e&&"current"in e?e.current:e},Gv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qv=function(e){return`
|
|
367
369
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
368
370
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
369
|
-
`)},Zv=0,xt=[];function Qv(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Zv++)[0],s=i.useState(Wo)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Fo([e.lockRef.current],(e.shards||[]).map(Ii),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=gn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var j=Oi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Oi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return Xv($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!xt.length||xt[xt.length-1]!==s)){var x="deltaY"in h?Di(h):gn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&Gv(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Ii).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:Jv(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=gn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Di(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,gn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return xt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,gt),document.addEventListener("touchmove",d,gt),document.addEventListener("touchstart",p,gt),function(){xt=xt.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,gt),document.removeEventListener("touchmove",d,gt),document.removeEventListener("touchstart",p,gt)}},[]);var v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:qv(o)}):null,v?i.createElement(Vc,{gapMode:e.gapMode}):null)}function Jv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eg=La(Wc,Qv);var Yc=i.forwardRef(function(e,t){return i.createElement(cr,ie({},e,{ref:t,sideCar:eg}))});Yc.classNames=cr.classNames;var tg=[" ","Enter","ArrowUp","ArrowDown"],ng=[" ","Enter"],nn="Select",[lr,ur,rg]=dc(nn),[Wt,Zw]=ft(nn,[rg,$c]),dr=$c(),[og,Qe]=Wt(nn),[sg,ig]=Wt(nn),Kc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:p,autoComplete:m,disabled:g,required:v,form:E}=e,f=dr(t),[h,x]=i.useState(null),[y,b]=i.useState(null),[R,C]=i.useState(!1),S=ch(u),[w=!1,j]=qt({prop:r,defaultProp:o,onChange:s}),[$,I]=qt({prop:a,defaultProp:c,onChange:d}),z=i.useRef(null),Y=h?E||!!h.closest("form"):!0,[F,T]=i.useState(new Set),W=Array.from(F).map(k=>k.props.value).join(";");return l.jsxRuntimeExports.jsx(Ev,{...f,children:l.jsxRuntimeExports.jsxs(og,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:xe(),value:$,onValueChange:I,open:w,onOpenChange:j,dir:S,triggerPointerDownPosRef:z,disabled:g,children:[l.jsxRuntimeExports.jsx(lr.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(sg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(k=>{T(M=>new Set(M).add(k))},[]),onNativeOptionRemove:i.useCallback(k=>{T(M=>{const N=new Set(M);return N.delete(k),N})},[]),children:n})}),Y?l.jsxRuntimeExports.jsxs(xl,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:m,value:$,onChange:k=>I(k.target.value),disabled:g,form:E,children:[$===void 0?l.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(F)]},W):null]})})};Kc.displayName=nn;var Xc="SelectTrigger",Gc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=dr(n),a=Qe(Xc,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=ur(n),p=i.useRef("touch"),[m,g,v]=yl(f=>{const h=u().filter(b=>!b.disabled),x=h.find(b=>b.value===a.value),y=El(h,f,x);y!==void 0&&a.onValueChange(y.value)}),E=f=>{c||(a.onOpenChange(!0),v()),f&&(a.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsxRuntimeExports.jsx(wv,{asChild:!0,...s,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":gl(a.value)?"":void 0,...o,ref:d,onClick:X(o.onClick,f=>{f.currentTarget.focus(),p.current!=="mouse"&&E(f)}),onPointerDown:X(o.onPointerDown,f=>{p.current=f.pointerType;const h=f.target;h.hasPointerCapture(f.pointerId)&&h.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(E(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const h=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(h&&f.key===" ")&&tg.includes(f.key)&&(E(),f.preventDefault())})})})});Gc.displayName=Xc;var qc="SelectValue",Zc=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Qe(qc,n),{onValueNodeHasChildrenChange:u}=d,p=s!==void 0,m=ne(t,d.onValueNodeChange);return ce(()=>{u(p)},[u,p]),l.jsxRuntimeExports.jsx(re.span,{...c,ref:m,style:{pointerEvents:"none"},children:gl(d.value)?l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:a}):s})});Zc.displayName=qc;var ag="SelectIcon",Qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Qc.displayName=ag;var cg="SelectPortal",Jc=e=>l.jsxRuntimeExports.jsx(ms,{asChild:!0,...e});Jc.displayName=cg;var ct="SelectContent",el=i.forwardRef((e,t)=>{const n=Qe(ct,e.__scopeSelect),[r,o]=i.useState();if(ce(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Ze.createPortal(l.jsxRuntimeExports.jsx(tl,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx(lr.Slot,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx("div",{children:e.children})})}),s):null}return l.jsxRuntimeExports.jsx(nl,{...e,ref:t})});el.displayName=ct;var be=10,[tl,Je]=Wt(ct),lg="SelectContentImpl",nl=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:v,sticky:E,hideWhenDetached:f,avoidCollisions:h,...x}=e,y=Qe(ct,n),[b,R]=i.useState(null),[C,S]=i.useState(null),w=ne(t,A=>R(A)),[j,$]=i.useState(null),[I,z]=i.useState(null),Y=ur(n),[F,T]=i.useState(!1),W=i.useRef(!1);i.useEffect(()=>{if(b)return nr(b)},[b]),ka();const k=i.useCallback(A=>{const[L,...V]=Y().map(K=>K.ref.current),[G]=V.slice(-1),Z=document.activeElement;for(const K of A)if(K===Z||(K==null||K.scrollIntoView({block:"nearest"}),K===L&&C&&(C.scrollTop=0),K===G&&C&&(C.scrollTop=C.scrollHeight),K==null||K.focus(),document.activeElement!==Z))return},[Y,C]),M=i.useCallback(()=>k([j,b]),[k,j,b]);i.useEffect(()=>{F&&M()},[F,M]);const{onOpenChange:N,triggerPointerDownPosRef:B}=y;i.useEffect(()=>{if(b){let A={x:0,y:0};const L=G=>{var Z,K;A={x:Math.abs(Math.round(G.pageX)-(((Z=B.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(G.pageY)-(((K=B.current)==null?void 0:K.y)??0))}},V=G=>{A.x<=10&&A.y<=10?G.preventDefault():b.contains(G.target)||N(!1),document.removeEventListener("pointermove",L),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",V,{capture:!0})}}},[b,N,B]),i.useEffect(()=>{const A=()=>N(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[N]);const[te,J]=yl(A=>{const L=Y().filter(Z=>!Z.disabled),V=L.find(Z=>Z.ref.current===document.activeElement),G=El(L,A,V);G&&setTimeout(()=>G.ref.current.focus())}),P=i.useCallback((A,L,V)=>{const G=!W.current&&!V;(y.value!==void 0&&y.value===L||G)&&($(A),G&&(W.current=!0))},[y.value]),D=i.useCallback(()=>b==null?void 0:b.focus(),[b]),_=i.useCallback((A,L,V)=>{const G=!W.current&&!V;(y.value!==void 0&&y.value===L||G)&&z(A)},[y.value]),O=r==="popper"?mo:rl,H=O===mo?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:v,sticky:E,hideWhenDetached:f,avoidCollisions:h}:{};return l.jsxRuntimeExports.jsx(tl,{scope:n,content:b,viewport:C,onViewportChange:S,itemRefCallback:P,selectedItem:j,onItemLeave:D,itemTextRefCallback:_,focusSelectedItem:M,selectedItemText:I,position:r,isPositioned:F,searchRef:te,children:l.jsxRuntimeExports.jsx(Yc,{as:Zt,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(hc,{asChild:!0,trapped:y.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var L;(L=y.trigger)==null||L.focus({preventScroll:!0}),A.preventDefault()}),children:l.jsxRuntimeExports.jsx(pc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(O,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:A=>A.preventDefault(),...x,...H,onPlaced:()=>T(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:X(x.onKeyDown,A=>{const L=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!L&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let G=Y().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Z=A.target,K=G.indexOf(Z);G=G.slice(K+1)}setTimeout(()=>k(G)),A.preventDefault()}})})})})})})});nl.displayName=lg;var ug="SelectItemAlignedPosition",rl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Qe(ct,n),a=Je(ct,n),[c,d]=i.useState(null),[u,p]=i.useState(null),m=ne(t,w=>p(w)),g=ur(n),v=i.useRef(!1),E=i.useRef(!0),{viewport:f,selectedItem:h,selectedItemText:x,focusSelectedItem:y}=a,b=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&f&&h&&x){const w=s.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(s.dir!=="rtl"){const Z=I.left-j.left,K=$.left-Z,oe=w.left-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=mi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.left=ke+"px"}else{const Z=j.right-I.right,K=window.innerWidth-$.right-Z,oe=window.innerWidth-w.right-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=mi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.right=ke+"px"}const z=g(),Y=window.innerHeight-be*2,F=f.scrollHeight,T=window.getComputedStyle(u),W=parseInt(T.borderTopWidth,10),k=parseInt(T.paddingTop,10),M=parseInt(T.borderBottomWidth,10),N=parseInt(T.paddingBottom,10),B=W+k+F+N+M,te=Math.min(h.offsetHeight*5,B),J=window.getComputedStyle(f),P=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),_=w.top+w.height/2-be,O=Y-_,H=h.offsetHeight/2,A=h.offsetTop+H,L=W+k+A,V=B-L;if(L<=_){const Z=z.length>0&&h===z[z.length-1].ref.current;c.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,oe=Math.max(O,H+(Z?D:0)+K+M),de=L+oe;c.style.height=de+"px"}else{const Z=z.length>0&&h===z[0].ref.current;c.style.top="0px";const oe=Math.max(_,W+f.offsetTop+(Z?P:0)+H)+V;c.style.height=oe+"px",f.scrollTop=L-_+f.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=te+"px",c.style.maxHeight=Y+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[g,s.trigger,s.valueNode,c,u,f,h,x,s.dir,r]);ce(()=>b(),[b]);const[R,C]=i.useState();ce(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=i.useCallback(w=>{w&&E.current===!0&&(b(),y==null||y(),E.current=!1)},[b,y]);return l.jsxRuntimeExports.jsx(fg,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:l.jsxRuntimeExports.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:l.jsxRuntimeExports.jsx(re.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rl.displayName=ug;var dg="SelectPopperPosition",mo=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=e,a=dr(n);return l.jsxRuntimeExports.jsx(bv,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});mo.displayName=dg;var[fg,hs]=Wt(ct,{}),ho="SelectViewport",ol=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Je(ho,n),a=hs(ho,n),c=ne(t,s.onViewportChange),d=i.useRef(0);return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsxRuntimeExports.jsx(lr.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&m){const v=Math.abs(d.current-p.scrollTop);if(v>0){const E=window.innerHeight-be*2,f=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),x=Math.max(f,h);if(x<E){const y=x+v,b=Math.min(E,y),R=y-b;m.style.height=b+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});ol.displayName=ho;var sl="SelectGroup",[pg,mg]=Wt(sl),hg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return l.jsxRuntimeExports.jsx(pg,{scope:n,id:o,children:l.jsxRuntimeExports.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});hg.displayName=sl;var il="SelectLabel",al=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mg(il,n);return l.jsxRuntimeExports.jsx(re.div,{id:o.id,...r,ref:t})});al.displayName=il;var Un="SelectItem",[vg,cl]=Wt(Un),ll=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Qe(Un,n),d=Je(Un,n),u=c.value===r,[p,m]=i.useState(s??""),[g,v]=i.useState(!1),E=ne(t,y=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,y,r,o)}),f=xe(),h=i.useRef("touch"),x=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsxRuntimeExports.jsx(vg,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:i.useCallback(y=>{m(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsxRuntimeExports.jsx(lr.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:l.jsxRuntimeExports.jsx(re.div,{role:"option","aria-labelledby":f,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:E,onFocus:X(a.onFocus,()=>v(!0)),onBlur:X(a.onBlur,()=>v(!1)),onClick:X(a.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:X(a.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:X(a.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:X(a.onPointerMove,y=>{var b;h.current=y.pointerType,o?(b=d.onItemLeave)==null||b.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:X(a.onKeyDown,y=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&y.key===" "||(ng.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ll.displayName=Un;var zt="SelectItemText",ul=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Qe(zt,n),c=Je(zt,n),d=cl(zt,n),u=ig(zt,n),[p,m]=i.useState(null),g=ne(t,x=>m(x),d.onItemTextChange,x=>{var y;return(y=c.itemTextRefCallback)==null?void 0:y.call(c,x,d.value,d.disabled)}),v=p==null?void 0:p.textContent,E=i.useMemo(()=>l.jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:f,onNativeOptionRemove:h}=u;return ce(()=>(f(E),()=>h(E)),[f,h,E]),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(re.span,{id:d.textId,...s,ref:g}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ze.createPortal(s.children,a.valueNode):null]})});ul.displayName=zt;var dl="SelectItemIndicator",fl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cl(dl,n).isSelected?l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});fl.displayName=dl;var vo="SelectScrollUpButton",pl=i.forwardRef((e,t)=>{const n=Je(vo,e.__scopeSelect),r=hs(vo,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(hl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});pl.displayName=vo;var go="SelectScrollDownButton",ml=i.forwardRef((e,t)=>{const n=Je(go,e.__scopeSelect),r=hs(go,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<u;s(p)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(hl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});ml.displayName=go;var hl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Je("SelectScrollButton",n),a=i.useRef(null),c=ur(n),d=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),ce(()=>{var p;const u=c().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{d()})})}),gg="SelectSeparator",vl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});vl.displayName=gg;var xo="SelectArrow",xg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dr(n),s=Qe(xo,n),a=Je(xo,n);return s.open&&a.position==="popper"?l.jsxRuntimeExports.jsx(Rv,{...o,...r,ref:t}):null});xg.displayName=xo;function gl(e){return e===""||e===void 0}var xl=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),s=ne(t,o),a=Sv(n);return i.useEffect(()=>{const c=o.current,d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==n&&p){const m=new Event("change",{bubbles:!0});p.call(c,n),c.dispatchEvent(m)}},[a,n]),l.jsxRuntimeExports.jsx(ar,{asChild:!0,children:l.jsxRuntimeExports.jsx("select",{...r,ref:s,defaultValue:n})})});xl.displayName="BubbleSelect";function yl(e){const t=ae(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(a=>{const c=n.current+a;t(c),function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function El(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=yg(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function yg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Eg=Kc,wl=Gc,wg=Zc,bg=Qc,Rg=Jc,bl=el,Cg=ol,Rl=al,Cl=ll,Sg=ul,Pg=fl,Sl=pl,Pl=ml,jl=vl;const Tl=Eg,Al=wg,vs=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(wl,{ref:r,className:l.cn("flex h-10 items-center justify-between placeholder:text-neutral-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsxRuntimeExports.jsx(bg,{asChild:!0,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})})]}));vs.displayName=wl.displayName;const $l=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Sl,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"up",className:"h-4 w-4"})}));$l.displayName=Sl.displayName;const Nl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Pl,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})}));Nl.displayName=Pl.displayName;const Ol=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsxRuntimeExports.jsx(Rg,{children:l.jsxRuntimeExports.jsxs(bl,{ref:o,className:l.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[l.jsxRuntimeExports.jsx($l,{}),l.jsxRuntimeExports.jsx(Cg,{className:l.cn(n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsxRuntimeExports.jsx(Nl,{})]})}));Ol.displayName=bl.displayName;const jg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Rl,{ref:n,className:l.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));jg.displayName=Rl.displayName;const Dl=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Cl,{ref:r,className:l.cn("relative flex w-full cursor-default select-none items-center outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsxRuntimeExports.jsx("span",{className:"absolute right-6 flex h-3.5 w-3.5 items-center justify-center",children:l.jsxRuntimeExports.jsx(Pg,{children:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[900]})})}),l.jsxRuntimeExports.jsx(Sg,{children:t})]}));Dl.displayName=Cl.displayName;const Tg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(jl,{ref:n,className:l.cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));Tg.displayName=jl.displayName;const Ag=U(Al)``,Il=U.label`
|
|
371
|
+
`)},Zv=0,xt=[];function Qv(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Zv++)[0],s=i.useState(Wo)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Fo([e.lockRef.current],(e.shards||[]).map(Ii),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=gn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var j=Oi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Oi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return Xv($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!xt.length||xt[xt.length-1]!==s)){var x="deltaY"in h?Di(h):gn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&Gv(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Ii).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:Jv(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=gn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Di(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,gn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return xt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,gt),document.addEventListener("touchmove",d,gt),document.addEventListener("touchstart",p,gt),function(){xt=xt.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,gt),document.removeEventListener("touchmove",d,gt),document.removeEventListener("touchstart",p,gt)}},[]);var v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:qv(o)}):null,v?i.createElement(Vc,{gapMode:e.gapMode}):null)}function Jv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eg=La(Wc,Qv);var Yc=i.forwardRef(function(e,t){return i.createElement(cr,ie({},e,{ref:t,sideCar:eg}))});Yc.classNames=cr.classNames;var tg=[" ","Enter","ArrowUp","ArrowDown"],ng=[" ","Enter"],nn="Select",[lr,ur,rg]=dc(nn),[Wt,qw]=ft(nn,[rg,$c]),dr=$c(),[og,Qe]=Wt(nn),[sg,ig]=Wt(nn),Kc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:p,autoComplete:m,disabled:g,required:v,form:E}=e,f=dr(t),[h,x]=i.useState(null),[y,b]=i.useState(null),[R,C]=i.useState(!1),S=ch(u),[w=!1,j]=qt({prop:r,defaultProp:o,onChange:s}),[$,I]=qt({prop:a,defaultProp:c,onChange:d}),U=i.useRef(null),Y=h?E||!!h.closest("form"):!0,[F,T]=i.useState(new Set),W=Array.from(F).map(k=>k.props.value).join(";");return l.jsxRuntimeExports.jsx(Ev,{...f,children:l.jsxRuntimeExports.jsxs(og,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:xe(),value:$,onValueChange:I,open:w,onOpenChange:j,dir:S,triggerPointerDownPosRef:U,disabled:g,children:[l.jsxRuntimeExports.jsx(lr.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(sg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(k=>{T(M=>new Set(M).add(k))},[]),onNativeOptionRemove:i.useCallback(k=>{T(M=>{const N=new Set(M);return N.delete(k),N})},[]),children:n})}),Y?l.jsxRuntimeExports.jsxs(xl,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:m,value:$,onChange:k=>I(k.target.value),disabled:g,form:E,children:[$===void 0?l.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(F)]},W):null]})})};Kc.displayName=nn;var Xc="SelectTrigger",Gc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=dr(n),a=Qe(Xc,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=ur(n),p=i.useRef("touch"),[m,g,v]=yl(f=>{const h=u().filter(b=>!b.disabled),x=h.find(b=>b.value===a.value),y=El(h,f,x);y!==void 0&&a.onValueChange(y.value)}),E=f=>{c||(a.onOpenChange(!0),v()),f&&(a.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsxRuntimeExports.jsx(wv,{asChild:!0,...s,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":gl(a.value)?"":void 0,...o,ref:d,onClick:X(o.onClick,f=>{f.currentTarget.focus(),p.current!=="mouse"&&E(f)}),onPointerDown:X(o.onPointerDown,f=>{p.current=f.pointerType;const h=f.target;h.hasPointerCapture(f.pointerId)&&h.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(E(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const h=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(h&&f.key===" ")&&tg.includes(f.key)&&(E(),f.preventDefault())})})})});Gc.displayName=Xc;var qc="SelectValue",Zc=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Qe(qc,n),{onValueNodeHasChildrenChange:u}=d,p=s!==void 0,m=ne(t,d.onValueNodeChange);return ce(()=>{u(p)},[u,p]),l.jsxRuntimeExports.jsx(re.span,{...c,ref:m,style:{pointerEvents:"none"},children:gl(d.value)?l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:a}):s})});Zc.displayName=qc;var ag="SelectIcon",Qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Qc.displayName=ag;var cg="SelectPortal",Jc=e=>l.jsxRuntimeExports.jsx(ms,{asChild:!0,...e});Jc.displayName=cg;var ct="SelectContent",el=i.forwardRef((e,t)=>{const n=Qe(ct,e.__scopeSelect),[r,o]=i.useState();if(ce(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Ze.createPortal(l.jsxRuntimeExports.jsx(tl,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx(lr.Slot,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx("div",{children:e.children})})}),s):null}return l.jsxRuntimeExports.jsx(nl,{...e,ref:t})});el.displayName=ct;var be=10,[tl,Je]=Wt(ct),lg="SelectContentImpl",nl=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:v,sticky:E,hideWhenDetached:f,avoidCollisions:h,...x}=e,y=Qe(ct,n),[b,R]=i.useState(null),[C,S]=i.useState(null),w=ne(t,A=>R(A)),[j,$]=i.useState(null),[I,U]=i.useState(null),Y=ur(n),[F,T]=i.useState(!1),W=i.useRef(!1);i.useEffect(()=>{if(b)return nr(b)},[b]),ka();const k=i.useCallback(A=>{const[L,...V]=Y().map(K=>K.ref.current),[G]=V.slice(-1),Z=document.activeElement;for(const K of A)if(K===Z||(K==null||K.scrollIntoView({block:"nearest"}),K===L&&C&&(C.scrollTop=0),K===G&&C&&(C.scrollTop=C.scrollHeight),K==null||K.focus(),document.activeElement!==Z))return},[Y,C]),M=i.useCallback(()=>k([j,b]),[k,j,b]);i.useEffect(()=>{F&&M()},[F,M]);const{onOpenChange:N,triggerPointerDownPosRef:B}=y;i.useEffect(()=>{if(b){let A={x:0,y:0};const L=G=>{var Z,K;A={x:Math.abs(Math.round(G.pageX)-(((Z=B.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(G.pageY)-(((K=B.current)==null?void 0:K.y)??0))}},V=G=>{A.x<=10&&A.y<=10?G.preventDefault():b.contains(G.target)||N(!1),document.removeEventListener("pointermove",L),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",V,{capture:!0})}}},[b,N,B]),i.useEffect(()=>{const A=()=>N(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[N]);const[te,J]=yl(A=>{const L=Y().filter(Z=>!Z.disabled),V=L.find(Z=>Z.ref.current===document.activeElement),G=El(L,A,V);G&&setTimeout(()=>G.ref.current.focus())}),P=i.useCallback((A,L,V)=>{const G=!W.current&&!V;(y.value!==void 0&&y.value===L||G)&&($(A),G&&(W.current=!0))},[y.value]),D=i.useCallback(()=>b==null?void 0:b.focus(),[b]),_=i.useCallback((A,L,V)=>{const G=!W.current&&!V;(y.value!==void 0&&y.value===L||G)&&U(A)},[y.value]),O=r==="popper"?mo:rl,H=O===mo?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:v,sticky:E,hideWhenDetached:f,avoidCollisions:h}:{};return l.jsxRuntimeExports.jsx(tl,{scope:n,content:b,viewport:C,onViewportChange:S,itemRefCallback:P,selectedItem:j,onItemLeave:D,itemTextRefCallback:_,focusSelectedItem:M,selectedItemText:I,position:r,isPositioned:F,searchRef:te,children:l.jsxRuntimeExports.jsx(Yc,{as:Zt,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(hc,{asChild:!0,trapped:y.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var L;(L=y.trigger)==null||L.focus({preventScroll:!0}),A.preventDefault()}),children:l.jsxRuntimeExports.jsx(pc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(O,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:A=>A.preventDefault(),...x,...H,onPlaced:()=>T(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:X(x.onKeyDown,A=>{const L=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!L&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let G=Y().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Z=A.target,K=G.indexOf(Z);G=G.slice(K+1)}setTimeout(()=>k(G)),A.preventDefault()}})})})})})})});nl.displayName=lg;var ug="SelectItemAlignedPosition",rl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Qe(ct,n),a=Je(ct,n),[c,d]=i.useState(null),[u,p]=i.useState(null),m=ne(t,w=>p(w)),g=ur(n),v=i.useRef(!1),E=i.useRef(!0),{viewport:f,selectedItem:h,selectedItemText:x,focusSelectedItem:y}=a,b=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&f&&h&&x){const w=s.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(s.dir!=="rtl"){const Z=I.left-j.left,K=$.left-Z,oe=w.left-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=mi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.left=ke+"px"}else{const Z=j.right-I.right,K=window.innerWidth-$.right-Z,oe=window.innerWidth-w.right-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=mi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.right=ke+"px"}const U=g(),Y=window.innerHeight-be*2,F=f.scrollHeight,T=window.getComputedStyle(u),W=parseInt(T.borderTopWidth,10),k=parseInt(T.paddingTop,10),M=parseInt(T.borderBottomWidth,10),N=parseInt(T.paddingBottom,10),B=W+k+F+N+M,te=Math.min(h.offsetHeight*5,B),J=window.getComputedStyle(f),P=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),_=w.top+w.height/2-be,O=Y-_,H=h.offsetHeight/2,A=h.offsetTop+H,L=W+k+A,V=B-L;if(L<=_){const Z=U.length>0&&h===U[U.length-1].ref.current;c.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,oe=Math.max(O,H+(Z?D:0)+K+M),de=L+oe;c.style.height=de+"px"}else{const Z=U.length>0&&h===U[0].ref.current;c.style.top="0px";const oe=Math.max(_,W+f.offsetTop+(Z?P:0)+H)+V;c.style.height=oe+"px",f.scrollTop=L-_+f.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=te+"px",c.style.maxHeight=Y+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[g,s.trigger,s.valueNode,c,u,f,h,x,s.dir,r]);ce(()=>b(),[b]);const[R,C]=i.useState();ce(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=i.useCallback(w=>{w&&E.current===!0&&(b(),y==null||y(),E.current=!1)},[b,y]);return l.jsxRuntimeExports.jsx(fg,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:l.jsxRuntimeExports.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:l.jsxRuntimeExports.jsx(re.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rl.displayName=ug;var dg="SelectPopperPosition",mo=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=e,a=dr(n);return l.jsxRuntimeExports.jsx(bv,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});mo.displayName=dg;var[fg,hs]=Wt(ct,{}),ho="SelectViewport",ol=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Je(ho,n),a=hs(ho,n),c=ne(t,s.onViewportChange),d=i.useRef(0);return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsxRuntimeExports.jsx(lr.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&m){const v=Math.abs(d.current-p.scrollTop);if(v>0){const E=window.innerHeight-be*2,f=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),x=Math.max(f,h);if(x<E){const y=x+v,b=Math.min(E,y),R=y-b;m.style.height=b+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});ol.displayName=ho;var sl="SelectGroup",[pg,mg]=Wt(sl),hg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return l.jsxRuntimeExports.jsx(pg,{scope:n,id:o,children:l.jsxRuntimeExports.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});hg.displayName=sl;var il="SelectLabel",al=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mg(il,n);return l.jsxRuntimeExports.jsx(re.div,{id:o.id,...r,ref:t})});al.displayName=il;var Un="SelectItem",[vg,cl]=Wt(Un),ll=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Qe(Un,n),d=Je(Un,n),u=c.value===r,[p,m]=i.useState(s??""),[g,v]=i.useState(!1),E=ne(t,y=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,y,r,o)}),f=xe(),h=i.useRef("touch"),x=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsxRuntimeExports.jsx(vg,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:i.useCallback(y=>{m(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsxRuntimeExports.jsx(lr.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:l.jsxRuntimeExports.jsx(re.div,{role:"option","aria-labelledby":f,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:E,onFocus:X(a.onFocus,()=>v(!0)),onBlur:X(a.onBlur,()=>v(!1)),onClick:X(a.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:X(a.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:X(a.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:X(a.onPointerMove,y=>{var b;h.current=y.pointerType,o?(b=d.onItemLeave)==null||b.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:X(a.onKeyDown,y=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&y.key===" "||(ng.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ll.displayName=Un;var zt="SelectItemText",ul=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Qe(zt,n),c=Je(zt,n),d=cl(zt,n),u=ig(zt,n),[p,m]=i.useState(null),g=ne(t,x=>m(x),d.onItemTextChange,x=>{var y;return(y=c.itemTextRefCallback)==null?void 0:y.call(c,x,d.value,d.disabled)}),v=p==null?void 0:p.textContent,E=i.useMemo(()=>l.jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:f,onNativeOptionRemove:h}=u;return ce(()=>(f(E),()=>h(E)),[f,h,E]),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(re.span,{id:d.textId,...s,ref:g}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ze.createPortal(s.children,a.valueNode):null]})});ul.displayName=zt;var dl="SelectItemIndicator",fl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cl(dl,n).isSelected?l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});fl.displayName=dl;var vo="SelectScrollUpButton",pl=i.forwardRef((e,t)=>{const n=Je(vo,e.__scopeSelect),r=hs(vo,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(hl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});pl.displayName=vo;var go="SelectScrollDownButton",ml=i.forwardRef((e,t)=>{const n=Je(go,e.__scopeSelect),r=hs(go,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<u;s(p)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(hl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});ml.displayName=go;var hl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Je("SelectScrollButton",n),a=i.useRef(null),c=ur(n),d=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),ce(()=>{var p;const u=c().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{d()})})}),gg="SelectSeparator",vl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});vl.displayName=gg;var xo="SelectArrow",xg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dr(n),s=Qe(xo,n),a=Je(xo,n);return s.open&&a.position==="popper"?l.jsxRuntimeExports.jsx(Rv,{...o,...r,ref:t}):null});xg.displayName=xo;function gl(e){return e===""||e===void 0}var xl=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),s=ne(t,o),a=Sv(n);return i.useEffect(()=>{const c=o.current,d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==n&&p){const m=new Event("change",{bubbles:!0});p.call(c,n),c.dispatchEvent(m)}},[a,n]),l.jsxRuntimeExports.jsx(ar,{asChild:!0,children:l.jsxRuntimeExports.jsx("select",{...r,ref:s,defaultValue:n})})});xl.displayName="BubbleSelect";function yl(e){const t=ae(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(a=>{const c=n.current+a;t(c),function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function El(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=yg(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function yg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Eg=Kc,wl=Gc,wg=Zc,bg=Qc,Rg=Jc,bl=el,Cg=ol,Rl=al,Cl=ll,Sg=ul,Pg=fl,Sl=pl,Pl=ml,jl=vl;const Tl=Eg,Al=wg,vs=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(wl,{ref:r,className:l.cn("flex h-10 items-center justify-between placeholder:text-neutral-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsxRuntimeExports.jsx(bg,{asChild:!0,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})})]}));vs.displayName=wl.displayName;const $l=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Sl,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"up",className:"h-4 w-4"})}));$l.displayName=Sl.displayName;const Nl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Pl,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})}));Nl.displayName=Pl.displayName;const Ol=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsxRuntimeExports.jsx(Rg,{children:l.jsxRuntimeExports.jsxs(bl,{ref:o,className:l.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[l.jsxRuntimeExports.jsx($l,{}),l.jsxRuntimeExports.jsx(Cg,{className:l.cn(n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsxRuntimeExports.jsx(Nl,{})]})}));Ol.displayName=bl.displayName;const jg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Rl,{ref:n,className:l.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));jg.displayName=Rl.displayName;const Dl=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Cl,{ref:r,className:l.cn("relative flex w-full cursor-default select-none items-center outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsxRuntimeExports.jsx("span",{className:"absolute right-6 flex h-3.5 w-3.5 items-center justify-center",children:l.jsxRuntimeExports.jsx(Pg,{children:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[900]})})}),l.jsxRuntimeExports.jsx(Sg,{children:t})]}));Dl.displayName=Cl.displayName;const Tg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(jl,{ref:n,className:l.cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));Tg.displayName=jl.displayName;const Ag=z(Al)``,Il=z.label`
|
|
370
372
|
position: absolute;
|
|
371
373
|
top: 0;
|
|
372
374
|
left: 0;
|
|
@@ -378,7 +380,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
378
380
|
transition: 200ms all;
|
|
379
381
|
display: flex;
|
|
380
382
|
align-items: center;
|
|
381
|
-
`,$g=
|
|
383
|
+
`,$g=z(vs)`
|
|
382
384
|
width: 100%;
|
|
383
385
|
position: relative;
|
|
384
386
|
height: 3rem;
|
|
@@ -408,14 +410,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
408
410
|
color: ${l.colors.fg.primary};
|
|
409
411
|
margin-top: 0.875rem;
|
|
410
412
|
}
|
|
411
|
-
`,kl=
|
|
413
|
+
`,kl=z(Ol)`
|
|
412
414
|
padding: 0.375rem 0;
|
|
413
415
|
border-radius: 0.75rem;
|
|
414
416
|
border: 1px solid ${l.colors.border.default};
|
|
415
417
|
background: rgba(255, 255, 255, 0.6);
|
|
416
418
|
box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.08);
|
|
417
419
|
backdrop-filter: blur(1rem);
|
|
418
|
-
`,Ml=
|
|
420
|
+
`,Ml=z(Dl)`
|
|
419
421
|
padding: 0.875rem 1rem;
|
|
420
422
|
${l.typography.label}
|
|
421
423
|
color: ${l.colors.fg.primary};
|
|
@@ -425,19 +427,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
425
427
|
background: ${l.colors.neutral[50]};
|
|
426
428
|
cursor: pointer;
|
|
427
429
|
}
|
|
428
|
-
`;function Ng({label:e,options:t,onChange:n,value:r}){return Q.useEffect(()=>{t.length===1&&!r&&n(t[0].value)},[t,r]),l.jsxRuntimeExports.jsxs(Tl,{value:r,onValueChange:o=>n(o),children:[l.jsxRuntimeExports.jsxs($g,{children:[l.jsxRuntimeExports.jsx(Il,{children:e}),l.jsxRuntimeExports.jsx(Ag,{})]}),l.jsxRuntimeExports.jsx(kl,{children:t.map(o=>l.jsxRuntimeExports.jsx(Ml,{$selected:r===o.value,value:o.value,children:o.text},o.value))})]})}const Og=
|
|
430
|
+
`;function Ng({label:e,options:t,onChange:n,value:r}){return Q.useEffect(()=>{t.length===1&&!r&&n(t[0].value)},[t,r]),l.jsxRuntimeExports.jsxs(Tl,{value:r,onValueChange:o=>n(o),children:[l.jsxRuntimeExports.jsxs($g,{children:[l.jsxRuntimeExports.jsx(Il,{children:e}),l.jsxRuntimeExports.jsx(Ag,{})]}),l.jsxRuntimeExports.jsx(kl,{children:t.map(o=>l.jsxRuntimeExports.jsx(Ml,{$selected:r===o.value,value:o.value,children:o.text},o.value))})]})}const Og=z(vs)`
|
|
429
431
|
& span {
|
|
430
432
|
color: ${l.colors.fg.primary};
|
|
431
433
|
margin: 0;
|
|
432
434
|
margin-right: 0.25rem;
|
|
433
435
|
}
|
|
434
|
-
`,Dg=
|
|
436
|
+
`,Dg=z.div`
|
|
435
437
|
height: 1.313rem;
|
|
436
438
|
width: 0.063rem;
|
|
437
439
|
background: ${l.colors.border.default};
|
|
438
|
-
`;function Ig({value:e,onChange:t,children:n}){const[r,o]=Q.useState(e);Q.useEffect(()=>{o(e)},[e]);const s=a=>{o(a),t&&t(a)};return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsxs(Tl,{value:r,onValueChange:s,children:[l.jsxRuntimeExports.jsx(Og,{children:l.jsxRuntimeExports.jsx(Al,{children:r})}),l.jsxRuntimeExports.jsx(kl,{children:n})]}),l.jsxRuntimeExports.jsx(Dg,{})]})}const kg=
|
|
440
|
+
`;function Ig({value:e,onChange:t,children:n}){const[r,o]=Q.useState(e);Q.useEffect(()=>{o(e)},[e]);const s=a=>{o(a),t&&t(a)};return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsxs(Tl,{value:r,onValueChange:s,children:[l.jsxRuntimeExports.jsx(Og,{children:l.jsxRuntimeExports.jsx(Al,{children:r})}),l.jsxRuntimeExports.jsx(kl,{children:n})]}),l.jsxRuntimeExports.jsx(Dg,{})]})}const kg=z.div`
|
|
439
441
|
z-index: 1;
|
|
440
|
-
`,Mg=
|
|
442
|
+
`,Mg=z.div`
|
|
441
443
|
position: absolute;
|
|
442
444
|
display: flex;
|
|
443
445
|
padding: 0.5rem 0.75rem;
|
|
@@ -457,7 +459,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
457
459
|
transform: translateY(-5%);
|
|
458
460
|
font-size: 0.75rem;
|
|
459
461
|
color: ${l.colors.fg.secondary};
|
|
460
|
-
`,Ll=
|
|
462
|
+
`,Ll=z.div`
|
|
461
463
|
height: 3.063rem;
|
|
462
464
|
padding: 0 0.75rem;
|
|
463
465
|
border-radius: 0.75rem;
|
|
@@ -469,12 +471,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
469
471
|
&:focus-within {
|
|
470
472
|
border: 2px solid ${e=>e.$error?l.colors.fg.accent.error:l.colors.fg.base};
|
|
471
473
|
}
|
|
472
|
-
`,Fl=
|
|
474
|
+
`,Fl=z.div`
|
|
473
475
|
position: relative;
|
|
474
476
|
padding: 0.875rem 0;
|
|
475
477
|
width: 100%;
|
|
476
478
|
height: 100%;
|
|
477
|
-
`,gs=
|
|
479
|
+
`,gs=z.label`
|
|
478
480
|
position: absolute;
|
|
479
481
|
top: 0;
|
|
480
482
|
left: 0;
|
|
@@ -487,7 +489,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
487
489
|
color: ${l.colors.fg.tertiary};
|
|
488
490
|
font-size: 0.938rem;
|
|
489
491
|
${({$hasValue:e})=>e&&_l}
|
|
490
|
-
`,Wl=
|
|
492
|
+
`,Wl=z.input`
|
|
491
493
|
width: 100%;
|
|
492
494
|
padding-top: 0.25rem;
|
|
493
495
|
background: transparent;
|
|
@@ -504,7 +506,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
504
506
|
&::-webkit-inner-spin-button {
|
|
505
507
|
-webkit-appearance: none;
|
|
506
508
|
}
|
|
507
|
-
`;function Lg({label:e,value:t,type:n,currency:r,onChange:o,onBlur:s,tooltipText:a,error:c,helperText:d,...u}){const p=r?"number":n||"text",m=Q.useId();return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(Ll,{$error:!!c,children:[r&&l.jsxRuntimeExports.jsx(Ig,{value:"€",children:l.jsxRuntimeExports.jsx(Ml,{value:"€",children:"EUR (€)"})}),l.jsxRuntimeExports.jsxs(Fl,{children:[l.jsxRuntimeExports.jsx(Wl,{type:p,id:`${m}-${e}`,onChange:g=>o(g.target.value),onBlur:s,value:t,...u}),l.jsxRuntimeExports.jsx(gs,{htmlFor:`${m}-${e}`,$hasValue:!!t,children:e})]}),a&&l.jsxRuntimeExports.jsx(_g,{children:a})]}),(c||d)&&l.jsxRuntimeExports.jsx(_n,{error:!!c,children:c||d})]})}const Fg=
|
|
509
|
+
`;function Lg({label:e,value:t,type:n,currency:r,onChange:o,onBlur:s,tooltipText:a,error:c,helperText:d,...u}){const p=r?"number":n||"text",m=Q.useId();return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(Ll,{$error:!!c,children:[r&&l.jsxRuntimeExports.jsx(Ig,{value:"€",children:l.jsxRuntimeExports.jsx(Ml,{value:"€",children:"EUR (€)"})}),l.jsxRuntimeExports.jsxs(Fl,{children:[l.jsxRuntimeExports.jsx(Wl,{type:p,id:`${m}-${e}`,onChange:g=>o(g.target.value),onBlur:s,value:t,...u}),l.jsxRuntimeExports.jsx(gs,{htmlFor:`${m}-${e}`,$hasValue:!!t,children:e})]}),a&&l.jsxRuntimeExports.jsx(_g,{children:a})]}),(c||d)&&l.jsxRuntimeExports.jsx(_n,{error:!!c,children:c||d})]})}const Fg=z.div`
|
|
508
510
|
margin: 0 auto;
|
|
509
511
|
vertical-align: middle;
|
|
510
512
|
position: relative;
|
|
@@ -551,7 +553,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
551
553
|
transform: translate(-50%, -50%) scale(0);
|
|
552
554
|
}
|
|
553
555
|
}
|
|
554
|
-
`;function Bl({size:e="4rem",color:t=l.colors.fg.primary}){return l.jsxRuntimeExports.jsx(Fg,{$size:e,$color:t})}const Wg=1,Bg=1e6;let Wr=0;function Vg(){return Wr=(Wr+1)%Number.MAX_SAFE_INTEGER,Wr.toString()}const Br=new Map,ki=e=>{if(Br.has(e))return;const t=setTimeout(()=>{Br.delete(e),Gt({type:"REMOVE_TOAST",toastId:e})},Bg);Br.set(e,t)},Hg=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Wg)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ki(n):e.toasts.forEach(r=>{ki(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Nn=[];let On={toasts:[]};function Gt(e){On=Hg(On,e),Nn.forEach(t=>{t(On)})}function Ug({...e}){const t=Vg(),n=o=>Gt({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Gt({type:"DISMISS_TOAST",toastId:t});return Gt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Vl(){const[e,t]=i.useState(On);return i.useEffect(()=>(Nn.push(t),()=>{const n=Nn.indexOf(t);n>-1&&Nn.splice(n,1)}),[e]),{...e,toast:Ug,dismiss:n=>Gt({type:"DISMISS_TOAST",toastId:n})}}function zg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z",fill:"#FE4C00"})})}function Yg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z",fill:"#9DA7A2"})})}function Kg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z",fill:"#3B872C"})})}function Xg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z",fill:"#FEA900"})})}var Gg="DismissableLayer",yo="dismissableLayer.update",qg="dismissableLayer.pointerDownOutside",Zg="dismissableLayer.focusOutside",Mi,Hl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ul=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Hl),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Jg(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=ex(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Mi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),_i(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Mi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),_i())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(yo,w),()=>document.removeEventListener(yo,w)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});Ul.displayName=Gg;var Qg="DismissableLayerBranch",zl=i.forwardRef((e,t)=>{const n=i.useContext(Hl),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});zl.displayName=Qg;function Jg(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Yl(qg,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ex(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yl(Zg,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _i(){const e=new CustomEvent(yo);document.dispatchEvent(e)}function Yl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Go(o,s):o.dispatchEvent(s)}var tx=Ul,nx=zl;function rx(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var xs=e=>{const{present:t,children:n}=e,r=ox(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ne(r.ref,sx(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};xs.displayName="Presence";function ox(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=rx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=xn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=xn(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=xn(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=xn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function xn(e){return(e==null?void 0:e.animationName)||"none"}function sx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ys="ToastProvider",[Es,ix,ax]=dc("Toast"),[Kl,Qw]=ft("Toast",[ax]),[cx,fr]=Kl(ys),Xl=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[c,d]=i.useState(null),[u,p]=i.useState(0),m=i.useRef(!1),g=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ys}\`. Expected non-empty \`string\`.`),l.jsxRuntimeExports.jsx(Es.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(cx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:i.useCallback(()=>p(v=>v+1),[]),onToastRemove:i.useCallback(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Xl.displayName=ys;var Gl="ToastViewport",lx=["F8"],Eo="toast.viewportPause",wo="toast.viewportResume",ql=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=lx,label:o="Notifications ({hotkey})",...s}=e,a=fr(Gl,n),c=ix(n),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=ne(t,m,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=a.toastCount>0;i.useEffect(()=>{const h=x=>{var b;r.length!==0&&r.every(R=>x[R]||x.code===R)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r]),i.useEffect(()=>{const h=d.current,x=m.current;if(E&&h&&x){const y=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(Eo);x.dispatchEvent(S),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(wo);x.dispatchEvent(S),a.isClosePausedRef.current=!1}},R=S=>{!h.contains(S.relatedTarget)&&b()},C=()=>{h.contains(document.activeElement)||b()};return h.addEventListener("focusin",y),h.addEventListener("focusout",R),h.addEventListener("pointermove",y),h.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{h.removeEventListener("focusin",y),h.removeEventListener("focusout",R),h.removeEventListener("pointermove",y),h.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[E,a.isClosePausedRef]);const f=i.useCallback(({tabbingDirection:h})=>{const y=c().map(b=>{const R=b.ref.current,C=[R,...bx(R)];return h==="forwards"?C:C.reverse()});return(h==="forwards"?y.reverse():y).flat()},[c]);return i.useEffect(()=>{const h=m.current;if(h){const x=y=>{var C,S,w;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const j=document.activeElement,$=y.shiftKey;if(y.target===h&&$){(C=u.current)==null||C.focus();return}const Y=f({tabbingDirection:$?"backwards":"forwards"}),F=Y.findIndex(T=>T===j);Vr(Y.slice(F+1))?y.preventDefault():$?(S=u.current)==null||S.focus():(w=p.current)==null||w.focus()}};return h.addEventListener("keydown",x),()=>h.removeEventListener("keydown",x)}},[c,f]),l.jsxRuntimeExports.jsxs(nx,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&l.jsxRuntimeExports.jsx(bo,{ref:u,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"forwards"});Vr(h)}}),l.jsxRuntimeExports.jsx(Es.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.ol,{tabIndex:-1,...s,ref:g})}),E&&l.jsxRuntimeExports.jsx(bo,{ref:p,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"backwards"});Vr(h)}})]})});ql.displayName=Gl;var Zl="ToastFocusProxy",bo=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=fr(Zl,n);return l.jsxRuntimeExports.jsx(ar,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const c=a.relatedTarget;!((u=s.viewport)!=null&&u.contains(c))&&r()}})});bo.displayName=Zl;var pr="Toast",ux="toast.swipeStart",dx="toast.swipeMove",fx="toast.swipeCancel",px="toast.swipeEnd",Ql=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[c=!0,d]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx(xs,{present:n||c,children:l.jsxRuntimeExports.jsx(vx,{open:c,...a,ref:t,onClose:()=>d(!1),onPause:ae(e.onPause),onResume:ae(e.onResume),onSwipeStart:X(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:X(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:X(e.onSwipeEnd,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});Ql.displayName=pr;var[mx,hx]=Kl(pr,{onClose(){}}),vx=i.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:v,...E}=e,f=fr(pr,n),[h,x]=i.useState(null),y=ne(t,T=>x(T)),b=i.useRef(null),R=i.useRef(null),C=o||f.duration,S=i.useRef(0),w=i.useRef(C),j=i.useRef(0),{onToastAdd:$,onToastRemove:I}=f,z=ae(()=>{var W;(h==null?void 0:h.contains(document.activeElement))&&((W=f.viewport)==null||W.focus()),a()}),Y=i.useCallback(T=>{!T||T===1/0||(window.clearTimeout(j.current),S.current=new Date().getTime(),j.current=window.setTimeout(z,T))},[z]);i.useEffect(()=>{const T=f.viewport;if(T){const W=()=>{Y(w.current),u==null||u()},k=()=>{const M=new Date().getTime()-S.current;w.current=w.current-M,window.clearTimeout(j.current),d==null||d()};return T.addEventListener(Eo,k),T.addEventListener(wo,W),()=>{T.removeEventListener(Eo,k),T.removeEventListener(wo,W)}}},[f.viewport,C,d,u,Y]),i.useEffect(()=>{s&&!f.isClosePausedRef.current&&Y(C)},[s,C,f.isClosePausedRef,Y]),i.useEffect(()=>($(),()=>I()),[$,I]);const F=i.useMemo(()=>h?su(h):null,[h]);return f.viewport?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[F&&l.jsxRuntimeExports.jsx(gx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),l.jsxRuntimeExports.jsx(mx,{scope:n,onClose:z,children:Ze.createPortal(l.jsxRuntimeExports.jsx(Es.ItemSlot,{scope:n,children:l.jsxRuntimeExports.jsx(tx,{asChild:!0,onEscapeKeyDown:X(c,()=>{f.isFocusedToastEscapeKeyDownRef.current||z(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsxRuntimeExports.jsx(re.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":f.swipeDirection,...E,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,T=>{T.key==="Escape"&&(c==null||c(T.nativeEvent),T.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:X(e.onPointerDown,T=>{T.button===0&&(b.current={x:T.clientX,y:T.clientY})}),onPointerMove:X(e.onPointerMove,T=>{if(!b.current)return;const W=T.clientX-b.current.x,k=T.clientY-b.current.y,M=!!R.current,N=["left","right"].includes(f.swipeDirection),B=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,te=N?B(0,W):0,J=N?0:B(0,k),P=T.pointerType==="touch"?10:2,D={x:te,y:J},_={originalEvent:T,delta:D};M?(R.current=D,yn(dx,m,_,{discrete:!1})):Li(D,f.swipeDirection,P)?(R.current=D,yn(ux,p,_,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(W)>P||Math.abs(k)>P)&&(b.current=null)}),onPointerUp:X(e.onPointerUp,T=>{const W=R.current,k=T.target;if(k.hasPointerCapture(T.pointerId)&&k.releasePointerCapture(T.pointerId),R.current=null,b.current=null,W){const M=T.currentTarget,N={originalEvent:T,delta:W};Li(W,f.swipeDirection,f.swipeThreshold)?yn(px,v,N,{discrete:!0}):yn(fx,g,N,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),gx=e=>{const{__scopeToast:t,children:n,...r}=e,o=fr(pr,t),[s,a]=i.useState(!1),[c,d]=i.useState(!1);return Ex(()=>a(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:l.jsxRuntimeExports.jsx(ms,{asChild:!0,children:l.jsxRuntimeExports.jsx(ar,{...r,children:s&&l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[o.label," ",n]})})})},xx="ToastTitle",Jl=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});Jl.displayName=xx;var yx="ToastDescription",eu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});eu.displayName=yx;var tu="ToastAction",nu=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsxRuntimeExports.jsx(ou,{altText:n,asChild:!0,children:l.jsxRuntimeExports.jsx(ws,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${tu}\`. Expected non-empty \`string\`.`),null)});nu.displayName=tu;var ru="ToastClose",ws=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=hx(ru,n);return l.jsxRuntimeExports.jsx(ou,{asChild:!0,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});ws.displayName=ru;var ou=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsxRuntimeExports.jsx(re.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function su(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),wx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...su(r))}}),t}function yn(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Go(o,s):o.dispatchEvent(s)}var Li=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Ex(e=()=>{}){const t=ae(e);ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function wx(e){return e.nodeType===e.ELEMENT_NODE}function bx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Rx=Xl,iu=ql,au=Ql,cu=Jl,lu=eu,uu=nu,du=ws;function fu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fu(e))&&(r&&(r+=" "),r+=t);return r}const Sx=Cx,Px=(e,t)=>n=>Sx(e,n==null?void 0:n.class,n==null?void 0:n.className),jx=Rx,pu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(iu,{ref:n,className:l.cn("fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:w-fit sm:min-w-[300px] sm:max-w-[420px]",e),...t}));pu.displayName=iu.displayName;const Tx=Px("group pointer-events-auto relative flex w-full items-center overflow-hidden pr-8 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full"),mu=i.forwardRef(({className:e,testId:t,...n},r)=>l.jsxRuntimeExports.jsx(au,{"data-testid":t,ref:r,className:l.cn(Tx(),e),...n}));mu.displayName=au.displayName;const Ax=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(uu,{ref:n,className:l.cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-neutral-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-neutral-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-neutral-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-neutral-50 group-[.destructive]:focus:ring-red-500 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:hover:bg-neutral-800 dark:focus:ring-neutral-300 dark:group-[.destructive]:border-neutral-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-neutral-50 dark:group-[.destructive]:focus:ring-red-900",e),...t}));Ax.displayName=uu.displayName;const hu=i.forwardRef(({color:e,...t},n)=>l.jsxRuntimeExports.jsx(du,{ref:n,"toast-close":"",...t,children:l.jsxRuntimeExports.jsx(l.Close,{color:e,className:"h-4 w-4"})}));hu.displayName=du.displayName;const vu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(cu,{ref:n,className:l.cn("text-sm font-semibold",e),...t}));vu.displayName=cu.displayName;const gu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(lu,{ref:n,className:l.cn("text-sm opacity-90",e),...t}));gu.displayName=lu.displayName;const Ro={success:{background:l.colors.sf.light.action,color:l.colors.fg.accent.action},error:{background:l.colors.sf.light.error,color:l.colors.fg.accent.error},info:{background:l.colors.sf.light.tertiary,color:l.colors.fg.base},warning:{background:l.colors.sf.light.warning,color:l.colors.fg.accent.warning}},$x=U(mu)`
|
|
556
|
+
`;function Bl({size:e="4rem",color:t=l.colors.fg.primary}){return l.jsxRuntimeExports.jsx(Fg,{$size:e,$color:t})}const Wg=1,Bg=1e6;let Wr=0;function Vg(){return Wr=(Wr+1)%Number.MAX_SAFE_INTEGER,Wr.toString()}const Br=new Map,ki=e=>{if(Br.has(e))return;const t=setTimeout(()=>{Br.delete(e),Gt({type:"REMOVE_TOAST",toastId:e})},Bg);Br.set(e,t)},Hg=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Wg)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ki(n):e.toasts.forEach(r=>{ki(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Nn=[];let On={toasts:[]};function Gt(e){On=Hg(On,e),Nn.forEach(t=>{t(On)})}function Ug({...e}){const t=Vg(),n=o=>Gt({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Gt({type:"DISMISS_TOAST",toastId:t});return Gt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Vl(){const[e,t]=i.useState(On);return i.useEffect(()=>(Nn.push(t),()=>{const n=Nn.indexOf(t);n>-1&&Nn.splice(n,1)}),[e]),{...e,toast:Ug,dismiss:n=>Gt({type:"DISMISS_TOAST",toastId:n})}}function zg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z",fill:"#FE4C00"})})}function Yg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z",fill:"#9DA7A2"})})}function Kg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z",fill:"#3B872C"})})}function Xg(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z",fill:"#FEA900"})})}var Gg="DismissableLayer",yo="dismissableLayer.update",qg="dismissableLayer.pointerDownOutside",Zg="dismissableLayer.focusOutside",Mi,Hl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ul=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Hl),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Jg(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=ex(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Mi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),_i(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Mi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),_i())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(yo,w),()=>document.removeEventListener(yo,w)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});Ul.displayName=Gg;var Qg="DismissableLayerBranch",zl=i.forwardRef((e,t)=>{const n=i.useContext(Hl),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});zl.displayName=Qg;function Jg(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Yl(qg,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ex(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yl(Zg,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _i(){const e=new CustomEvent(yo);document.dispatchEvent(e)}function Yl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Go(o,s):o.dispatchEvent(s)}var tx=Ul,nx=zl;function rx(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var xs=e=>{const{present:t,children:n}=e,r=ox(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ne(r.ref,sx(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};xs.displayName="Presence";function ox(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=rx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=xn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=xn(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=xn(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=xn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function xn(e){return(e==null?void 0:e.animationName)||"none"}function sx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ys="ToastProvider",[Es,ix,ax]=dc("Toast"),[Kl,Zw]=ft("Toast",[ax]),[cx,fr]=Kl(ys),Xl=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[c,d]=i.useState(null),[u,p]=i.useState(0),m=i.useRef(!1),g=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ys}\`. Expected non-empty \`string\`.`),l.jsxRuntimeExports.jsx(Es.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(cx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:i.useCallback(()=>p(v=>v+1),[]),onToastRemove:i.useCallback(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Xl.displayName=ys;var Gl="ToastViewport",lx=["F8"],Eo="toast.viewportPause",wo="toast.viewportResume",ql=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=lx,label:o="Notifications ({hotkey})",...s}=e,a=fr(Gl,n),c=ix(n),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=ne(t,m,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=a.toastCount>0;i.useEffect(()=>{const h=x=>{var b;r.length!==0&&r.every(R=>x[R]||x.code===R)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r]),i.useEffect(()=>{const h=d.current,x=m.current;if(E&&h&&x){const y=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(Eo);x.dispatchEvent(S),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(wo);x.dispatchEvent(S),a.isClosePausedRef.current=!1}},R=S=>{!h.contains(S.relatedTarget)&&b()},C=()=>{h.contains(document.activeElement)||b()};return h.addEventListener("focusin",y),h.addEventListener("focusout",R),h.addEventListener("pointermove",y),h.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{h.removeEventListener("focusin",y),h.removeEventListener("focusout",R),h.removeEventListener("pointermove",y),h.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[E,a.isClosePausedRef]);const f=i.useCallback(({tabbingDirection:h})=>{const y=c().map(b=>{const R=b.ref.current,C=[R,...bx(R)];return h==="forwards"?C:C.reverse()});return(h==="forwards"?y.reverse():y).flat()},[c]);return i.useEffect(()=>{const h=m.current;if(h){const x=y=>{var C,S,w;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const j=document.activeElement,$=y.shiftKey;if(y.target===h&&$){(C=u.current)==null||C.focus();return}const Y=f({tabbingDirection:$?"backwards":"forwards"}),F=Y.findIndex(T=>T===j);Vr(Y.slice(F+1))?y.preventDefault():$?(S=u.current)==null||S.focus():(w=p.current)==null||w.focus()}};return h.addEventListener("keydown",x),()=>h.removeEventListener("keydown",x)}},[c,f]),l.jsxRuntimeExports.jsxs(nx,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&l.jsxRuntimeExports.jsx(bo,{ref:u,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"forwards"});Vr(h)}}),l.jsxRuntimeExports.jsx(Es.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.ol,{tabIndex:-1,...s,ref:g})}),E&&l.jsxRuntimeExports.jsx(bo,{ref:p,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"backwards"});Vr(h)}})]})});ql.displayName=Gl;var Zl="ToastFocusProxy",bo=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=fr(Zl,n);return l.jsxRuntimeExports.jsx(ar,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const c=a.relatedTarget;!((u=s.viewport)!=null&&u.contains(c))&&r()}})});bo.displayName=Zl;var pr="Toast",ux="toast.swipeStart",dx="toast.swipeMove",fx="toast.swipeCancel",px="toast.swipeEnd",Ql=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[c=!0,d]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx(xs,{present:n||c,children:l.jsxRuntimeExports.jsx(vx,{open:c,...a,ref:t,onClose:()=>d(!1),onPause:ae(e.onPause),onResume:ae(e.onResume),onSwipeStart:X(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:X(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:X(e.onSwipeEnd,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});Ql.displayName=pr;var[mx,hx]=Kl(pr,{onClose(){}}),vx=i.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:v,...E}=e,f=fr(pr,n),[h,x]=i.useState(null),y=ne(t,T=>x(T)),b=i.useRef(null),R=i.useRef(null),C=o||f.duration,S=i.useRef(0),w=i.useRef(C),j=i.useRef(0),{onToastAdd:$,onToastRemove:I}=f,U=ae(()=>{var W;(h==null?void 0:h.contains(document.activeElement))&&((W=f.viewport)==null||W.focus()),a()}),Y=i.useCallback(T=>{!T||T===1/0||(window.clearTimeout(j.current),S.current=new Date().getTime(),j.current=window.setTimeout(U,T))},[U]);i.useEffect(()=>{const T=f.viewport;if(T){const W=()=>{Y(w.current),u==null||u()},k=()=>{const M=new Date().getTime()-S.current;w.current=w.current-M,window.clearTimeout(j.current),d==null||d()};return T.addEventListener(Eo,k),T.addEventListener(wo,W),()=>{T.removeEventListener(Eo,k),T.removeEventListener(wo,W)}}},[f.viewport,C,d,u,Y]),i.useEffect(()=>{s&&!f.isClosePausedRef.current&&Y(C)},[s,C,f.isClosePausedRef,Y]),i.useEffect(()=>($(),()=>I()),[$,I]);const F=i.useMemo(()=>h?su(h):null,[h]);return f.viewport?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[F&&l.jsxRuntimeExports.jsx(gx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),l.jsxRuntimeExports.jsx(mx,{scope:n,onClose:U,children:Ze.createPortal(l.jsxRuntimeExports.jsx(Es.ItemSlot,{scope:n,children:l.jsxRuntimeExports.jsx(tx,{asChild:!0,onEscapeKeyDown:X(c,()=>{f.isFocusedToastEscapeKeyDownRef.current||U(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsxRuntimeExports.jsx(re.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":f.swipeDirection,...E,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,T=>{T.key==="Escape"&&(c==null||c(T.nativeEvent),T.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:X(e.onPointerDown,T=>{T.button===0&&(b.current={x:T.clientX,y:T.clientY})}),onPointerMove:X(e.onPointerMove,T=>{if(!b.current)return;const W=T.clientX-b.current.x,k=T.clientY-b.current.y,M=!!R.current,N=["left","right"].includes(f.swipeDirection),B=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,te=N?B(0,W):0,J=N?0:B(0,k),P=T.pointerType==="touch"?10:2,D={x:te,y:J},_={originalEvent:T,delta:D};M?(R.current=D,yn(dx,m,_,{discrete:!1})):Li(D,f.swipeDirection,P)?(R.current=D,yn(ux,p,_,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(W)>P||Math.abs(k)>P)&&(b.current=null)}),onPointerUp:X(e.onPointerUp,T=>{const W=R.current,k=T.target;if(k.hasPointerCapture(T.pointerId)&&k.releasePointerCapture(T.pointerId),R.current=null,b.current=null,W){const M=T.currentTarget,N={originalEvent:T,delta:W};Li(W,f.swipeDirection,f.swipeThreshold)?yn(px,v,N,{discrete:!0}):yn(fx,g,N,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),gx=e=>{const{__scopeToast:t,children:n,...r}=e,o=fr(pr,t),[s,a]=i.useState(!1),[c,d]=i.useState(!1);return Ex(()=>a(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:l.jsxRuntimeExports.jsx(ms,{asChild:!0,children:l.jsxRuntimeExports.jsx(ar,{...r,children:s&&l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[o.label," ",n]})})})},xx="ToastTitle",Jl=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});Jl.displayName=xx;var yx="ToastDescription",eu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});eu.displayName=yx;var tu="ToastAction",nu=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsxRuntimeExports.jsx(ou,{altText:n,asChild:!0,children:l.jsxRuntimeExports.jsx(ws,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${tu}\`. Expected non-empty \`string\`.`),null)});nu.displayName=tu;var ru="ToastClose",ws=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=hx(ru,n);return l.jsxRuntimeExports.jsx(ou,{asChild:!0,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});ws.displayName=ru;var ou=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsxRuntimeExports.jsx(re.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function su(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),wx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...su(r))}}),t}function yn(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Go(o,s):o.dispatchEvent(s)}var Li=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Ex(e=()=>{}){const t=ae(e);ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function wx(e){return e.nodeType===e.ELEMENT_NODE}function bx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Rx=Xl,iu=ql,au=Ql,cu=Jl,lu=eu,uu=nu,du=ws;function fu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fu(e))&&(r&&(r+=" "),r+=t);return r}const Sx=Cx,Px=(e,t)=>n=>Sx(e,n==null?void 0:n.class,n==null?void 0:n.className),jx=Rx,pu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(iu,{ref:n,className:l.cn("fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:w-fit sm:min-w-[300px] sm:max-w-[420px]",e),...t}));pu.displayName=iu.displayName;const Tx=Px("group pointer-events-auto relative flex w-full items-center overflow-hidden pr-8 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full"),mu=i.forwardRef(({className:e,testId:t,...n},r)=>l.jsxRuntimeExports.jsx(au,{"data-testid":t,ref:r,className:l.cn(Tx(),e),...n}));mu.displayName=au.displayName;const Ax=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(uu,{ref:n,className:l.cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-neutral-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-neutral-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-neutral-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-neutral-50 group-[.destructive]:focus:ring-red-500 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:hover:bg-neutral-800 dark:focus:ring-neutral-300 dark:group-[.destructive]:border-neutral-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-neutral-50 dark:group-[.destructive]:focus:ring-red-900",e),...t}));Ax.displayName=uu.displayName;const hu=i.forwardRef(({color:e,...t},n)=>l.jsxRuntimeExports.jsx(du,{ref:n,"toast-close":"",...t,children:l.jsxRuntimeExports.jsx(l.Close,{color:e,className:"h-4 w-4"})}));hu.displayName=du.displayName;const vu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(cu,{ref:n,className:l.cn("text-sm font-semibold",e),...t}));vu.displayName=cu.displayName;const gu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(lu,{ref:n,className:l.cn("text-sm opacity-90",e),...t}));gu.displayName=lu.displayName;const Ro={success:{background:l.colors.sf.light.action,color:l.colors.fg.accent.action},error:{background:l.colors.sf.light.error,color:l.colors.fg.accent.error},info:{background:l.colors.sf.light.tertiary,color:l.colors.fg.base},warning:{background:l.colors.sf.light.warning,color:l.colors.fg.accent.warning}},$x=z(mu)`
|
|
555
557
|
border-radius: 1rem;
|
|
556
558
|
padding: 0.75rem;
|
|
557
559
|
border: none;
|
|
@@ -560,30 +562,30 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
560
562
|
background: ${({$variant:e})=>Ro[e].background};
|
|
561
563
|
color: ${({$variant:e})=>Ro[e].color};
|
|
562
564
|
gap: 0.5rem;
|
|
563
|
-
`,Nx=
|
|
565
|
+
`,Nx=z.div`
|
|
564
566
|
display: flex;
|
|
565
567
|
flex-direction: column;
|
|
566
568
|
width: 100%;
|
|
567
|
-
`,Ox=
|
|
569
|
+
`,Ox=z.div`
|
|
568
570
|
width: 1.5rem;
|
|
569
571
|
height: 1.5rem;
|
|
570
|
-
`,Dx=
|
|
572
|
+
`,Dx=z(vu)`
|
|
571
573
|
${l.typography.label}
|
|
572
|
-
`,Ix=
|
|
574
|
+
`,Ix=z(gu)`
|
|
573
575
|
${l.typography.body}
|
|
574
|
-
`,kx=({variant:e})=>{switch(e){case"success":return l.jsxRuntimeExports.jsx(Kg,{});case"error":return l.jsxRuntimeExports.jsx(zg,{});case"warning":return l.jsxRuntimeExports.jsx(Xg,{});default:return l.jsxRuntimeExports.jsx(Yg,{})}};function Mx(){const{toasts:e}=Vl();return l.jsxRuntimeExports.jsxs(jx,{children:[e.map(function({id:t,title:n,description:r,testId:o,variant:s="info",...a}){return l.jsxRuntimeExports.jsxs($x,{$variant:s,testId:o,...a,children:[l.jsxRuntimeExports.jsx(Ox,{children:l.jsxRuntimeExports.jsx(kx,{variant:s})}),l.jsxRuntimeExports.jsxs(Nx,{children:[n&&l.jsxRuntimeExports.jsx(Dx,{children:n}),r&&l.jsxRuntimeExports.jsx(Ix,{children:r})]}),l.jsxRuntimeExports.jsx(hu,{color:Ro[s].color})]},t)}),l.jsxRuntimeExports.jsx(pu,{})]})}var xu=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(_x);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(Co,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(Co,{...r,ref:t,children:n})});xu.displayName="Slot";var Co=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Fx(n),s=Lx(r,n.props);return n.type!==i.Fragment&&(s.ref=t?ze(t,o):o),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Co.displayName="SlotClone";var yu=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function _x(e){return i.isValidElement(e)&&e.type===yu}function Lx(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Fx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Wx.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?xu:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bx(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var Vx="DismissableLayer",So="dismissableLayer.update",Hx="dismissableLayer.pointerDownOutside",Ux="dismissableLayer.focusOutside",Fi,Eu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wu=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Eu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Kx(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Xx(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Wi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Wi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(So,w),()=>document.removeEventListener(So,w)},[]),l.jsxRuntimeExports.jsx(fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});wu.displayName=Vx;var zx="DismissableLayerBranch",Yx=i.forwardRef((e,t)=>{const n=i.useContext(Eu),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(fe.div,{...e,ref:o})});Yx.displayName=zx;function Kx(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){bu(Hx,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xx(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&bu(Ux,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wi(){const e=new CustomEvent(So);document.dispatchEvent(e)}function bu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bx(o,s):o.dispatchEvent(s)}var Gx="Arrow",Ru=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(fe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ru.displayName=Gx;var qx=Ru,bs="Popper",[Cu,Su]=ft(bs),[Zx,Pu]=Cu(bs),ju=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Zx,{scope:t,anchor:r,onAnchorChange:o,children:n})};ju.displayName=bs;var Tu="PopperAnchor",Au=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Pu(Tu,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(fe.div,{...o,ref:c})});Au.displayName=Tu;var Rs="PopperContent",[Qx,Jx]=Cu(Rs),$u=i.forwardRef((e,t)=>{var A,L,V,G,Z,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:E,...f}=e,h=Pu(Rs,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Tc(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(u)?u:[u],Y=z.length>0,F={padding:I,boundary:z.filter(ty),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),ny({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=Du(k),J=ae(E);ce(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return ce(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(Qx,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(fe.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});$u.displayName=Rs;var Nu="PopperArrow",ey={top:"bottom",right:"left",bottom:"top",left:"right"},Ou=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Jx(Nu,r),a=ey[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(qx,{...o,ref:n,style:{...o.style,display:"block"}})})});Ou.displayName=Nu;function ty(e){return e!==null}var ny=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Du(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Du(e){const[t,n="center"]=e.split("-");return[t,n]}var ry=ju,oy=Au,sy=$u,iy=Ou,ay="VisuallyHidden",Iu=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(fe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Iu.displayName=ay;var cy=Iu,[mr,Jw]=ft("Tooltip",[Su]),hr=Su(),ku="TooltipProvider",ly=700,Po="tooltip.open",[uy,Cs]=mr(ku),Mu=e=>{const{__scopeTooltip:t,delayDuration:n=ly,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[a,c]=i.useState(!0),d=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const p=u.current;return()=>window.clearTimeout(p)},[]),l.jsxRuntimeExports.jsx(uy,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:s})};Mu.displayName=ku;var vr="Tooltip",[dy,gr]=mr(vr),_u=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=Cs(vr,e.__scopeTooltip),u=hr(t),[p,m]=i.useState(null),g=xe(),v=i.useRef(0),E=a??d.disableHoverableContent,f=c??d.delayDuration,h=i.useRef(!1),[x=!1,y]=qt({prop:r,defaultProp:o,onChange:w=>{w?(d.onOpen(),document.dispatchEvent(new CustomEvent(Po))):d.onClose(),s==null||s(w)}}),b=i.useMemo(()=>x?h.current?"delayed-open":"instant-open":"closed",[x]),R=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),S=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,y(!0),v.current=0},f)},[f,y]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),l.jsxRuntimeExports.jsx(ry,{...u,children:l.jsxRuntimeExports.jsx(dy,{scope:t,contentId:g,open:x,stateAttribute:b,trigger:p,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():R()},[d.isOpenDelayed,S,R]),onTriggerLeave:i.useCallback(()=>{E?C():(window.clearTimeout(v.current),v.current=0)},[C,E]),onOpen:R,onClose:C,disableHoverableContent:E,children:n})})};_u.displayName=vr;var jo="TooltipTrigger",Lu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(jo,n),s=Cs(jo,n),a=hr(n),c=i.useRef(null),d=ne(t,c,o.onTriggerChange),u=i.useRef(!1),p=i.useRef(!1),m=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),l.jsxRuntimeExports.jsx(oy,{asChild:!0,...a,children:l.jsxRuntimeExports.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:X(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:X(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});Lu.displayName=jo;var fy="TooltipPortal",[eb,py]=mr(fy,{forceMount:void 0}),Dt="TooltipContent",Fu=i.forwardRef((e,t)=>{const n=py(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=gr(Dt,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(xs,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(Wu,{side:o,...s,ref:t}):l.jsxRuntimeExports.jsx(my,{side:o,...s,ref:t})})}),my=i.forwardRef((e,t)=>{const n=gr(Dt,e.__scopeTooltip),r=Cs(Dt,e.__scopeTooltip),o=i.useRef(null),s=ne(t,o),[a,c]=i.useState(null),{trigger:d,onClose:u}=n,p=o.current,{onPointerInTransitChange:m}=r,g=i.useCallback(()=>{c(null),m(!1)},[m]),v=i.useCallback((E,f)=>{const h=E.currentTarget,x={x:E.clientX,y:E.clientY},y=xy(x,h.getBoundingClientRect()),b=yy(x,y),R=Ey(f.getBoundingClientRect()),C=by([...b,...R]);c(C),m(!0)},[m]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(d&&p){const E=h=>v(h,p),f=h=>v(h,d);return d.addEventListener("pointerleave",E),p.addEventListener("pointerleave",f),()=>{d.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",f)}}},[d,p,v,g]),i.useEffect(()=>{if(a){const E=f=>{const h=f.target,x={x:f.clientX,y:f.clientY},y=(d==null?void 0:d.contains(h))||(p==null?void 0:p.contains(h)),b=!wy(x,a);y?g():b&&(g(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,p,a,u,g]),l.jsxRuntimeExports.jsx(Wu,{...e,ref:s})}),[hy,vy]=mr(vr,{isInside:!1}),Wu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=gr(Dt,n),u=hr(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(Po,p),()=>document.removeEventListener(Po,p)),[p]),i.useEffect(()=>{if(d.trigger){const m=g=>{const v=g.target;v!=null&&v.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),l.jsxRuntimeExports.jsx(wu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:l.jsxRuntimeExports.jsxs(sy,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsxRuntimeExports.jsx(yu,{children:r}),l.jsxRuntimeExports.jsx(hy,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx(cy,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Fu.displayName=Dt;var Bu="TooltipArrow",gy=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hr(n);return vy(Bu,n).isInside?null:l.jsxRuntimeExports.jsx(iy,{...o,...r,ref:t})});gy.displayName=Bu;function xy(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function yy(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Ey(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function wy(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,d=t[s].y,u=t[a].x,p=t[a].y;d>r!=p>r&&n<(u-c)*(r-d)/(p-d)+c&&(o=!o)}return o}function by(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ry(t)}function Ry(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Cy=Mu,Sy=_u,Py=Lu,Vu=Fu;const jy=Cy,Ty=Sy,Ay=Py,Hu=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>{const o={...l.typography.body,background:l.colors.primary[900],borderRadius:".5rem",color:l.colors.white,fontSize:".8125rem",padding:".5rem .75rem",whiteSpace:"normal",width:"19.375rem"};return l.jsxRuntimeExports.jsx(Vu,{ref:r,sideOffset:t,className:l.cn("z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),style:o,...n})});Hu.displayName=Vu.displayName;function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Bi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Uu(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Bi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Bi(e[o],null)}}}}function je(...e){return i.useCallback(Uu(...e),e)}function $y(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ss(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var x;const{scope:g,children:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,Ny(o,...t)]}function Ny(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ps(e){const t=Oy(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),d=c.find(Iy);if(d){const u=d.props.children,p=c.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,p):null})}return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Oy(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=My(o),c=ky(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Uu(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dy=Symbol("radix.slottable");function Iy(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dy}function ky(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function My(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=_y.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ly(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function It(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Fy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wy="DismissableLayer",To="dismissableLayer.update",By="dismissableLayer.pointerDownOutside",Vy="dismissableLayer.focusOutside",Vi,zu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),js=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(zu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=je(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=zy(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Yy(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Fy(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Vi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Hi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Vi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Hi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(To,w),()=>document.removeEventListener(To,w)},[]),l.jsxRuntimeExports.jsx(he.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,C.onPointerDownCapture)})});js.displayName=Wy;var Hy="DismissableLayerBranch",Uy=i.forwardRef((e,t)=>{const n=i.useContext(zu),r=i.useRef(null),o=je(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(he.div,{...e,ref:o})});Uy.displayName=Hy;function zy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Yu(By,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Yy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yu(Vy,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hi(){const e=new CustomEvent(To);document.dispatchEvent(e)}function Yu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ly(o,s):o.dispatchEvent(s)}var Hr=0;function Ku(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ui()),document.body.insertAdjacentElement("beforeend",e[1]??Ui()),Hr++,()=>{Hr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hr--}},[])}function Ui(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ur="focusScope.autoFocusOnMount",zr="focusScope.autoFocusOnUnmount",zi={bubbles:!1,cancelable:!0},Ky="FocusScope",Ts=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=It(o),p=It(s),m=i.useRef(null),g=je(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:He(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||He(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&He(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ki.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Ur,zi);c.addEventListener(Ur,u),c.dispatchEvent(x),x.defaultPrevented||(Xy(Jy(Xu(c)),{select:!0}),document.activeElement===f&&He(c))}return()=>{c.removeEventListener(Ur,u),setTimeout(()=>{const x=new CustomEvent(zr,zi);c.addEventListener(zr,p),c.dispatchEvent(x),x.defaultPrevented||He(f??document.body,{select:!0}),c.removeEventListener(zr,p),Ki.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Gy(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&He(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&He(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(he.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Ts.displayName=Ky;function Xy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function Gy(e){const t=Xu(e),n=Yi(t,e),r=Yi(t.reverse(),e);return[n,r]}function Xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yi(e,t){for(const n of e)if(!qy(n,{upTo:t}))return n}function qy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zy(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zy(e)&&t&&e.select()}}var Ki=Qy();function Qy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xi(e,t),e.unshift(t)},remove(t){var n;e=Xi(e,t),(n=e[0])==null||n.resume()}}}function Xi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jy(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},eE=i[" useId ".trim().toString()]||(()=>{}),tE=0;function Dn(e){const[t,n]=i.useState(eE());return Ge(()=>{e||n(r=>r??String(tE++))},[e]),e||(t?`radix-${t}`:"")}var nE="Arrow",Gu=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gu.displayName=nE;var rE=Gu;function oE(e){const[t,n]=i.useState(void 0);return Ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var As="Popper",[qu,Zu]=Ss(As),[sE,Qu]=qu(As),Ju=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(sE,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ju.displayName=As;var ed="PopperAnchor",td=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Qu(ed,n),a=i.useRef(null),c=je(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(he.div,{...o,ref:c})});td.displayName=ed;var $s="PopperContent",[iE,aE]=qu($s),nd=i.forwardRef((e,t)=>{var A,L,V,G,Z,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:E,...f}=e,h=Qu($s,n),[x,y]=i.useState(null),b=je(t,oe=>y(oe)),[R,C]=i.useState(null),S=oE(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(u)?u:[u],Y=z.length>0,F={padding:I,boundary:z.filter(lE),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),uE({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=sd(k),J=It(E);Ge(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return Ge(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(iE,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(he.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});nd.displayName=$s;var rd="PopperArrow",cE={top:"bottom",right:"left",bottom:"top",left:"right"},od=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=aE(rd,r),a=cE[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(rE,{...o,ref:n,style:{...o.style,display:"block"}})})});od.displayName=rd;function lE(e){return e!==null}var uE=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=sd(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function sd(e){const[t,n="center"]=e.split("-");return[t,n]}var dE=Ju,id=td,fE=nd,pE=od,mE="Portal",Ns=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);Ge(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Yn.createPortal(l.jsxRuntimeExports.jsx(he.div,{...r,ref:t}),a):null});Ns.displayName=mE;function hE(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Bt=e=>{const{present:t,children:n}=e,r=vE(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=je(r.ref,gE(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function vE(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=hE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=En(r.current);s.current=c==="mounted"?u:"none"},[c]),Ge(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=En(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ge(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=En(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=En(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function En(e){return(e==null?void 0:e.animationName)||"none"}function gE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xE=i[" useInsertionEffect ".trim().toString()]||Ge;function ad({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=yE({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const p=i.useRef(e!==void 0);i.useEffect(()=>{const m=p.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,r])}const u=i.useCallback(p=>{var m;if(c){const g=EE(p)?p(e):p;g!==e&&((m=a.current)==null||m.call(a,g))}else s(p)},[c,e,s,a]);return[d,u]}function yE({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return xE(()=>{s.current=t},[t]),i.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function EE(e){return typeof e=="function"}function wE(e){return e}function bE(e,t){t===void 0&&(t=wE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function RE(e){e===void 0&&(e={});var t=bE(null);return t.options=ie({async:!0,ssr:!1},e),t}var cd=function(e){var t=e.sideCar,n=en(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};cd.isSideCarExport=!0;function CE(e,t){return e.useMedium(t),cd}var ld=RE(),Yr=function(){},xr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Yr,onWheelCapture:Yr,onTouchMoveCapture:Yr}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,v=e.noRelative,E=e.noIsolation,f=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,b=e.gapMode,R=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,S=Fc([n,t]),w=ie(ie({},R),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:ld,removeScrollBar:u,shards:m,noRelative:v,noIsolation:E,inert:f,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:b}),a?i.cloneElement(i.Children.only(c),ie(ie({},w),{ref:S})):i.createElement(y,ie({},w,{className:d,ref:S}),c))});xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xr.classNames={fullWidth:Xt,zeroRight:Kt};var Ao=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return Ao=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{Ao=!1}var yt=Ao?{passive:!1}:!1,SE=function(e){return e.tagName==="TEXTAREA"},ud=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!SE(e)&&n[t]==="visible")},PE=function(e){return ud(e,"overflowY")},jE=function(e){return ud(e,"overflowX")},Gi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=dd(e,r);if(o){var s=fd(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},TE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dd=function(e,t){return e==="v"?PE(t):jE(t)},fd=function(e,t){return e==="v"?TE(t):AE(t)},$E=function(e,t){return e==="h"&&t==="rtl"?-1:1},NE=function(e,t,n,r,o){var s=$E(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{if(!c)break;var v=fd(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&dd(e,c)&&(m+=x,g+=E);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},bn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qi=function(e){return[e.deltaX,e.deltaY]},Zi=function(e){return e&&"current"in e?e.current:e},OE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DE=function(e){return`
|
|
576
|
+
`,kx=({variant:e})=>{switch(e){case"success":return l.jsxRuntimeExports.jsx(Kg,{});case"error":return l.jsxRuntimeExports.jsx(zg,{});case"warning":return l.jsxRuntimeExports.jsx(Xg,{});default:return l.jsxRuntimeExports.jsx(Yg,{})}};function Mx(){const{toasts:e}=Vl();return l.jsxRuntimeExports.jsxs(jx,{children:[e.map(function({id:t,title:n,description:r,testId:o,variant:s="info",...a}){return l.jsxRuntimeExports.jsxs($x,{$variant:s,testId:o,...a,children:[l.jsxRuntimeExports.jsx(Ox,{children:l.jsxRuntimeExports.jsx(kx,{variant:s})}),l.jsxRuntimeExports.jsxs(Nx,{children:[n&&l.jsxRuntimeExports.jsx(Dx,{children:n}),r&&l.jsxRuntimeExports.jsx(Ix,{children:r})]}),l.jsxRuntimeExports.jsx(hu,{color:Ro[s].color})]},t)}),l.jsxRuntimeExports.jsx(pu,{})]})}var xu=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(_x);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(Co,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(Co,{...r,ref:t,children:n})});xu.displayName="Slot";var Co=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Fx(n),s=Lx(r,n.props);return n.type!==i.Fragment&&(s.ref=t?ze(t,o):o),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Co.displayName="SlotClone";var yu=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function _x(e){return i.isValidElement(e)&&e.type===yu}function Lx(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Fx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Wx.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?xu:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bx(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var Vx="DismissableLayer",So="dismissableLayer.update",Hx="dismissableLayer.pointerDownOutside",Ux="dismissableLayer.focusOutside",Fi,Eu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wu=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Eu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Kx(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Xx(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Wi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Wi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(So,w),()=>document.removeEventListener(So,w)},[]),l.jsxRuntimeExports.jsx(fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});wu.displayName=Vx;var zx="DismissableLayerBranch",Yx=i.forwardRef((e,t)=>{const n=i.useContext(Eu),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(fe.div,{...e,ref:o})});Yx.displayName=zx;function Kx(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){bu(Hx,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xx(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&bu(Ux,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wi(){const e=new CustomEvent(So);document.dispatchEvent(e)}function bu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bx(o,s):o.dispatchEvent(s)}var Gx="Arrow",Ru=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(fe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ru.displayName=Gx;var qx=Ru,bs="Popper",[Cu,Su]=ft(bs),[Zx,Pu]=Cu(bs),ju=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Zx,{scope:t,anchor:r,onAnchorChange:o,children:n})};ju.displayName=bs;var Tu="PopperAnchor",Au=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Pu(Tu,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(fe.div,{...o,ref:c})});Au.displayName=Tu;var Rs="PopperContent",[Qx,Jx]=Cu(Rs),$u=i.forwardRef((e,t)=>{var A,L,V,G,Z,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:E,...f}=e,h=Pu(Rs,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Tc(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,F={padding:I,boundary:U.filter(ty),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),ny({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=Du(k),J=ae(E);ce(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return ce(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(Qx,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(fe.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});$u.displayName=Rs;var Nu="PopperArrow",ey={top:"bottom",right:"left",bottom:"top",left:"right"},Ou=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Jx(Nu,r),a=ey[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(qx,{...o,ref:n,style:{...o.style,display:"block"}})})});Ou.displayName=Nu;function ty(e){return e!==null}var ny=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Du(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Du(e){const[t,n="center"]=e.split("-");return[t,n]}var ry=ju,oy=Au,sy=$u,iy=Ou,ay="VisuallyHidden",Iu=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(fe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Iu.displayName=ay;var cy=Iu,[mr,Qw]=ft("Tooltip",[Su]),hr=Su(),ku="TooltipProvider",ly=700,Po="tooltip.open",[uy,Cs]=mr(ku),Mu=e=>{const{__scopeTooltip:t,delayDuration:n=ly,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[a,c]=i.useState(!0),d=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const p=u.current;return()=>window.clearTimeout(p)},[]),l.jsxRuntimeExports.jsx(uy,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:s})};Mu.displayName=ku;var vr="Tooltip",[dy,gr]=mr(vr),_u=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=Cs(vr,e.__scopeTooltip),u=hr(t),[p,m]=i.useState(null),g=xe(),v=i.useRef(0),E=a??d.disableHoverableContent,f=c??d.delayDuration,h=i.useRef(!1),[x=!1,y]=qt({prop:r,defaultProp:o,onChange:w=>{w?(d.onOpen(),document.dispatchEvent(new CustomEvent(Po))):d.onClose(),s==null||s(w)}}),b=i.useMemo(()=>x?h.current?"delayed-open":"instant-open":"closed",[x]),R=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),S=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,y(!0),v.current=0},f)},[f,y]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),l.jsxRuntimeExports.jsx(ry,{...u,children:l.jsxRuntimeExports.jsx(dy,{scope:t,contentId:g,open:x,stateAttribute:b,trigger:p,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():R()},[d.isOpenDelayed,S,R]),onTriggerLeave:i.useCallback(()=>{E?C():(window.clearTimeout(v.current),v.current=0)},[C,E]),onOpen:R,onClose:C,disableHoverableContent:E,children:n})})};_u.displayName=vr;var jo="TooltipTrigger",Lu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(jo,n),s=Cs(jo,n),a=hr(n),c=i.useRef(null),d=ne(t,c,o.onTriggerChange),u=i.useRef(!1),p=i.useRef(!1),m=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),l.jsxRuntimeExports.jsx(oy,{asChild:!0,...a,children:l.jsxRuntimeExports.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:X(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:X(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});Lu.displayName=jo;var fy="TooltipPortal",[Jw,py]=mr(fy,{forceMount:void 0}),Dt="TooltipContent",Fu=i.forwardRef((e,t)=>{const n=py(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=gr(Dt,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(xs,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(Wu,{side:o,...s,ref:t}):l.jsxRuntimeExports.jsx(my,{side:o,...s,ref:t})})}),my=i.forwardRef((e,t)=>{const n=gr(Dt,e.__scopeTooltip),r=Cs(Dt,e.__scopeTooltip),o=i.useRef(null),s=ne(t,o),[a,c]=i.useState(null),{trigger:d,onClose:u}=n,p=o.current,{onPointerInTransitChange:m}=r,g=i.useCallback(()=>{c(null),m(!1)},[m]),v=i.useCallback((E,f)=>{const h=E.currentTarget,x={x:E.clientX,y:E.clientY},y=xy(x,h.getBoundingClientRect()),b=yy(x,y),R=Ey(f.getBoundingClientRect()),C=by([...b,...R]);c(C),m(!0)},[m]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(d&&p){const E=h=>v(h,p),f=h=>v(h,d);return d.addEventListener("pointerleave",E),p.addEventListener("pointerleave",f),()=>{d.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",f)}}},[d,p,v,g]),i.useEffect(()=>{if(a){const E=f=>{const h=f.target,x={x:f.clientX,y:f.clientY},y=(d==null?void 0:d.contains(h))||(p==null?void 0:p.contains(h)),b=!wy(x,a);y?g():b&&(g(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,p,a,u,g]),l.jsxRuntimeExports.jsx(Wu,{...e,ref:s})}),[hy,vy]=mr(vr,{isInside:!1}),Wu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=gr(Dt,n),u=hr(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(Po,p),()=>document.removeEventListener(Po,p)),[p]),i.useEffect(()=>{if(d.trigger){const m=g=>{const v=g.target;v!=null&&v.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),l.jsxRuntimeExports.jsx(wu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:l.jsxRuntimeExports.jsxs(sy,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsxRuntimeExports.jsx(yu,{children:r}),l.jsxRuntimeExports.jsx(hy,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx(cy,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Fu.displayName=Dt;var Bu="TooltipArrow",gy=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hr(n);return vy(Bu,n).isInside?null:l.jsxRuntimeExports.jsx(iy,{...o,...r,ref:t})});gy.displayName=Bu;function xy(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function yy(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Ey(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function wy(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,d=t[s].y,u=t[a].x,p=t[a].y;d>r!=p>r&&n<(u-c)*(r-d)/(p-d)+c&&(o=!o)}return o}function by(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ry(t)}function Ry(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Cy=Mu,Sy=_u,Py=Lu,Vu=Fu;const jy=Cy,Ty=Sy,Ay=Py,Hu=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>{const o={...l.typography.body,background:l.colors.primary[900],borderRadius:".5rem",color:l.colors.white,fontSize:".8125rem",padding:".5rem .75rem",whiteSpace:"normal",width:"19.375rem"};return l.jsxRuntimeExports.jsx(Vu,{ref:r,sideOffset:t,className:l.cn("z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),style:o,...n})});Hu.displayName=Vu.displayName;function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Bi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Uu(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Bi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Bi(e[o],null)}}}}function je(...e){return i.useCallback(Uu(...e),e)}function $y(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ss(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var x;const{scope:g,children:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,Ny(o,...t)]}function Ny(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ps(e){const t=Oy(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),d=c.find(Iy);if(d){const u=d.props.children,p=c.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,p):null})}return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Oy(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=My(o),c=ky(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Uu(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dy=Symbol("radix.slottable");function Iy(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dy}function ky(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function My(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=_y.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ly(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function It(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Fy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wy="DismissableLayer",To="dismissableLayer.update",By="dismissableLayer.pointerDownOutside",Vy="dismissableLayer.focusOutside",Vi,zu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),js=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(zu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=je(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=zy(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Yy(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Fy(w=>{y===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Vi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Hi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Vi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Hi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(To,w),()=>document.removeEventListener(To,w)},[]),l.jsxRuntimeExports.jsx(he.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,C.onPointerDownCapture)})});js.displayName=Wy;var Hy="DismissableLayerBranch",Uy=i.forwardRef((e,t)=>{const n=i.useContext(zu),r=i.useRef(null),o=je(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(he.div,{...e,ref:o})});Uy.displayName=Hy;function zy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Yu(By,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Yy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yu(Vy,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hi(){const e=new CustomEvent(To);document.dispatchEvent(e)}function Yu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ly(o,s):o.dispatchEvent(s)}var Hr=0;function Ku(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ui()),document.body.insertAdjacentElement("beforeend",e[1]??Ui()),Hr++,()=>{Hr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hr--}},[])}function Ui(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ur="focusScope.autoFocusOnMount",zr="focusScope.autoFocusOnUnmount",zi={bubbles:!1,cancelable:!0},Ky="FocusScope",Ts=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=It(o),p=It(s),m=i.useRef(null),g=je(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:He(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||He(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&He(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ki.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Ur,zi);c.addEventListener(Ur,u),c.dispatchEvent(x),x.defaultPrevented||(Xy(Jy(Xu(c)),{select:!0}),document.activeElement===f&&He(c))}return()=>{c.removeEventListener(Ur,u),setTimeout(()=>{const x=new CustomEvent(zr,zi);c.addEventListener(zr,p),c.dispatchEvent(x),x.defaultPrevented||He(f??document.body,{select:!0}),c.removeEventListener(zr,p),Ki.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Gy(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&He(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&He(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(he.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Ts.displayName=Ky;function Xy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function Gy(e){const t=Xu(e),n=Yi(t,e),r=Yi(t.reverse(),e);return[n,r]}function Xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yi(e,t){for(const n of e)if(!qy(n,{upTo:t}))return n}function qy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zy(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zy(e)&&t&&e.select()}}var Ki=Qy();function Qy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xi(e,t),e.unshift(t)},remove(t){var n;e=Xi(e,t),(n=e[0])==null||n.resume()}}}function Xi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jy(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},eE=i[" useId ".trim().toString()]||(()=>{}),tE=0;function Dn(e){const[t,n]=i.useState(eE());return Ge(()=>{e||n(r=>r??String(tE++))},[e]),e||(t?`radix-${t}`:"")}var nE="Arrow",Gu=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gu.displayName=nE;var rE=Gu;function oE(e){const[t,n]=i.useState(void 0);return Ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var As="Popper",[qu,Zu]=Ss(As),[sE,Qu]=qu(As),Ju=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(sE,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ju.displayName=As;var ed="PopperAnchor",td=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Qu(ed,n),a=i.useRef(null),c=je(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(he.div,{...o,ref:c})});td.displayName=ed;var $s="PopperContent",[iE,aE]=qu($s),nd=i.forwardRef((e,t)=>{var A,L,V,G,Z,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:E,...f}=e,h=Qu($s,n),[x,y]=i.useState(null),b=je(t,oe=>y(oe)),[R,C]=i.useState(null),S=oE(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,F={padding:I,boundary:U.filter(lE),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),uE({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=sd(k),J=It(E);Ge(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return Ge(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(iE,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(he.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});nd.displayName=$s;var rd="PopperArrow",cE={top:"bottom",right:"left",bottom:"top",left:"right"},od=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=aE(rd,r),a=cE[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(rE,{...o,ref:n,style:{...o.style,display:"block"}})})});od.displayName=rd;function lE(e){return e!==null}var uE=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=sd(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function sd(e){const[t,n="center"]=e.split("-");return[t,n]}var dE=Ju,id=td,fE=nd,pE=od,mE="Portal",Ns=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);Ge(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Yn.createPortal(l.jsxRuntimeExports.jsx(he.div,{...r,ref:t}),a):null});Ns.displayName=mE;function hE(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Bt=e=>{const{present:t,children:n}=e,r=vE(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=je(r.ref,gE(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function vE(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=hE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=En(r.current);s.current=c==="mounted"?u:"none"},[c]),Ge(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=En(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ge(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=En(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=En(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function En(e){return(e==null?void 0:e.animationName)||"none"}function gE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xE=i[" useInsertionEffect ".trim().toString()]||Ge;function ad({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=yE({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const p=i.useRef(e!==void 0);i.useEffect(()=>{const m=p.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,r])}const u=i.useCallback(p=>{var m;if(c){const g=EE(p)?p(e):p;g!==e&&((m=a.current)==null||m.call(a,g))}else s(p)},[c,e,s,a]);return[d,u]}function yE({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return xE(()=>{s.current=t},[t]),i.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function EE(e){return typeof e=="function"}function wE(e){return e}function bE(e,t){t===void 0&&(t=wE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function RE(e){e===void 0&&(e={});var t=bE(null);return t.options=ie({async:!0,ssr:!1},e),t}var cd=function(e){var t=e.sideCar,n=en(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};cd.isSideCarExport=!0;function CE(e,t){return e.useMedium(t),cd}var ld=RE(),Yr=function(){},xr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Yr,onWheelCapture:Yr,onTouchMoveCapture:Yr}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,v=e.noRelative,E=e.noIsolation,f=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,b=e.gapMode,R=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,S=Fc([n,t]),w=ie(ie({},R),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:ld,removeScrollBar:u,shards:m,noRelative:v,noIsolation:E,inert:f,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:b}),a?i.cloneElement(i.Children.only(c),ie(ie({},w),{ref:S})):i.createElement(y,ie({},w,{className:d,ref:S}),c))});xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xr.classNames={fullWidth:Xt,zeroRight:Kt};var Ao=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return Ao=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{Ao=!1}var yt=Ao?{passive:!1}:!1,SE=function(e){return e.tagName==="TEXTAREA"},ud=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!SE(e)&&n[t]==="visible")},PE=function(e){return ud(e,"overflowY")},jE=function(e){return ud(e,"overflowX")},Gi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=dd(e,r);if(o){var s=fd(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},TE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dd=function(e,t){return e==="v"?PE(t):jE(t)},fd=function(e,t){return e==="v"?TE(t):AE(t)},$E=function(e,t){return e==="h"&&t==="rtl"?-1:1},NE=function(e,t,n,r,o){var s=$E(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{if(!c)break;var v=fd(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&dd(e,c)&&(m+=x,g+=E);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},bn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qi=function(e){return[e.deltaX,e.deltaY]},Zi=function(e){return e&&"current"in e?e.current:e},OE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DE=function(e){return`
|
|
575
577
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
576
578
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
577
|
-
`)},IE=0,Et=[];function kE(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(IE++)[0],s=i.useState(Bc)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Fo([e.lockRef.current],(e.shards||[]).map(Zi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=bn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var j=Gi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Gi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return NE($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!Et.length||Et[Et.length-1]!==s)){var x="deltaY"in h?qi(h):bn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&OE(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Zi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:ME(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=bn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,qi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,bn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return Et.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,yt),document.addEventListener("touchmove",d,yt),document.addEventListener("touchstart",p,yt),function(){Et=Et.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,yt),document.removeEventListener("touchmove",d,yt),document.removeEventListener("touchstart",p,yt)}},[]);var v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:DE(o)}):null,v?i.createElement(Vc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ME(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _E=CE(ld,kE);var Os=i.forwardRef(function(e,t){return i.createElement(xr,ie({},e,{ref:t,sideCar:_E}))});Os.classNames=xr.classNames;var yr="Popover",[pd,tb]=Ss(yr,[Zu]),rn=Zu(),[LE,et]=pd(yr),md=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=rn(t),d=i.useRef(null),[u,p]=i.useState(!1),[m,g]=ad({prop:r,defaultProp:o??!1,onChange:s,caller:yr});return l.jsxRuntimeExports.jsx(dE,{...c,children:l.jsxRuntimeExports.jsx(LE,{scope:t,contentId:Dn(),triggerRef:d,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a,children:n})})};md.displayName=yr;var hd="PopoverAnchor",FE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(hd,n),s=rn(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(id,{...s,...r,ref:t})});FE.displayName=hd;var vd="PopoverTrigger",gd=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(vd,n),s=rn(n),a=je(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bd(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(id,{asChild:!0,...s,children:c})});gd.displayName=vd;var Ds="PopoverPortal",[WE,BE]=pd(Ds,{forceMount:void 0}),xd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(Ds,t);return l.jsxRuntimeExports.jsx(WE,{scope:t,forceMount:n,children:l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ns,{asChild:!0,container:o,children:r})})})};xd.displayName=Ds;var kt="PopoverContent",yd=i.forwardRef((e,t)=>{const n=BE(kt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(kt,e.__scopePopover);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(HE,{...o,ref:t}):l.jsxRuntimeExports.jsx(UE,{...o,ref:t})})});yd.displayName=kt;var VE=Ps("PopoverContent.RemoveScroll"),HE=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(null),o=je(t,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return nr(a)},[]),l.jsxRuntimeExports.jsx(Os,{as:VE,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(Ed,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),s.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,u=c.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),UE=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Ed,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ed=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:p,...m}=e,g=et(kt,n),v=rn(n);return Ku(),l.jsxRuntimeExports.jsx(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(js,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(fE,{"data-state":bd(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),wd="PopoverClose",zE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(wd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});zE.displayName=wd;var YE="PopoverArrow",KE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rn(n);return l.jsxRuntimeExports.jsx(pE,{...o,...r,ref:t})});KE.displayName=YE;function bd(e){return e?"open":"closed"}var XE=md,GE=xd,Rd=yd,Qi=1,qE=.9,ZE=.8,QE=.17,Kr=.1,Xr=.999,JE=.9999,ew=.99,tw=/[\\\/_+.#"@\[\(\{&]/,nw=/[\\\/_+.#"@\[\(\{&]/g,rw=/[\s-]/,Cd=/[\s-]/g;function $o(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?Qi:ew;var c=`${o},${s}`;if(a[c]!==void 0)return a[c];for(var d=r.charAt(s),u=n.indexOf(d,o),p=0,m,g,v,E;u>=0;)m=$o(e,t,n,r,u+1,s+1,a),m>p&&(u===o?m*=Qi:tw.test(e.charAt(u-1))?(m*=ZE,v=e.slice(o,u-1).match(nw),v&&o>0&&(m*=Math.pow(Xr,v.length))):rw.test(e.charAt(u-1))?(m*=qE,E=e.slice(o,u-1).match(Cd),E&&o>0&&(m*=Math.pow(Xr,E.length))):(m*=QE,o>0&&(m*=Math.pow(Xr,u-o))),e.charAt(u)!==t.charAt(s)&&(m*=JE)),(m<Kr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=$o(e,t,n,r,u+1,s+2,a),g*Kr>m&&(m=g*Kr)),m>p&&(p=m),u=n.indexOf(d,u+1);return a[c]=p,p}function Ji(e){return e.toLowerCase().replace(Cd," ")}function ow(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,$o(e,t,Ji(e),Ji(t),0,0,{})}var Er="Dialog",[Sd,nb]=Ss(Er),[sw,Te]=Sd(Er),Pd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u,p]=ad({prop:r,defaultProp:o??!1,onChange:s,caller:Er});return l.jsxRuntimeExports.jsx(sw,{scope:t,triggerRef:c,contentRef:d,contentId:Dn(),titleId:Dn(),descriptionId:Dn(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};Pd.displayName=Er;var jd="DialogTrigger",iw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(jd,n),s=je(t,o.triggerRef);return l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ms(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});iw.displayName=jd;var Is="DialogPortal",[aw,Td]=Sd(Is,{forceMount:void 0}),Ad=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(Is,t);return l.jsxRuntimeExports.jsx(aw,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ns,{asChild:!0,container:o,children:a})}))})};Ad.displayName=Is;var zn="DialogOverlay",$d=i.forwardRef((e,t)=>{const n=Td(zn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(zn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:l.jsxRuntimeExports.jsx(lw,{...o,ref:t})}):null});$d.displayName=zn;var cw=Ps("DialogOverlay.RemoveScroll"),lw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(zn,n);return l.jsxRuntimeExports.jsx(Os,{as:cw,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(he.div,{"data-state":Ms(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),lt="DialogContent",Nd=i.forwardRef((e,t)=>{const n=Td(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(lt,e.__scopeDialog);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(uw,{...o,ref:t}):l.jsxRuntimeExports.jsx(dw,{...o,ref:t})})});Nd.displayName=lt;var uw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(null),o=je(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return nr(s)},[]),l.jsxRuntimeExports.jsx(Od,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())})}),dw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Od,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Od=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(lt,n),d=i.useRef(null),u=je(t,d);return Ku(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(js,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ms(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(hw,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(gw,{contentRef:d,descriptionId:c.descriptionId})]})]})}),ks="DialogTitle",fw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(ks,n);return l.jsxRuntimeExports.jsx(he.h2,{id:o.titleId,...r,ref:t})});fw.displayName=ks;var Dd="DialogDescription",pw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Dd,n);return l.jsxRuntimeExports.jsx(he.p,{id:o.descriptionId,...r,ref:t})});pw.displayName=Dd;var Id="DialogClose",mw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Id,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});mw.displayName=Id;function Ms(e){return e?"open":"closed"}var kd="DialogTitleWarning",[rb,Md]=$y(kd,{contentName:lt,titleName:ks,docsSlug:"dialog"}),hw=({titleId:e})=>{const t=Md(kd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
579
|
+
`)},IE=0,Et=[];function kE(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(IE++)[0],s=i.useState(Bc)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Fo([e.lockRef.current],(e.shards||[]).map(Zi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=bn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var j=Gi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Gi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return NE($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!Et.length||Et[Et.length-1]!==s)){var x="deltaY"in h?qi(h):bn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&OE(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Zi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:ME(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=bn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,qi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,bn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return Et.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,yt),document.addEventListener("touchmove",d,yt),document.addEventListener("touchstart",p,yt),function(){Et=Et.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,yt),document.removeEventListener("touchmove",d,yt),document.removeEventListener("touchstart",p,yt)}},[]);var v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:DE(o)}):null,v?i.createElement(Vc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ME(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _E=CE(ld,kE);var Os=i.forwardRef(function(e,t){return i.createElement(xr,ie({},e,{ref:t,sideCar:_E}))});Os.classNames=xr.classNames;var yr="Popover",[pd,eb]=Ss(yr,[Zu]),rn=Zu(),[LE,et]=pd(yr),md=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=rn(t),d=i.useRef(null),[u,p]=i.useState(!1),[m,g]=ad({prop:r,defaultProp:o??!1,onChange:s,caller:yr});return l.jsxRuntimeExports.jsx(dE,{...c,children:l.jsxRuntimeExports.jsx(LE,{scope:t,contentId:Dn(),triggerRef:d,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a,children:n})})};md.displayName=yr;var hd="PopoverAnchor",FE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(hd,n),s=rn(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(id,{...s,...r,ref:t})});FE.displayName=hd;var vd="PopoverTrigger",gd=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(vd,n),s=rn(n),a=je(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bd(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(id,{asChild:!0,...s,children:c})});gd.displayName=vd;var Ds="PopoverPortal",[WE,BE]=pd(Ds,{forceMount:void 0}),xd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(Ds,t);return l.jsxRuntimeExports.jsx(WE,{scope:t,forceMount:n,children:l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ns,{asChild:!0,container:o,children:r})})})};xd.displayName=Ds;var kt="PopoverContent",yd=i.forwardRef((e,t)=>{const n=BE(kt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(kt,e.__scopePopover);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(HE,{...o,ref:t}):l.jsxRuntimeExports.jsx(UE,{...o,ref:t})})});yd.displayName=kt;var VE=Ps("PopoverContent.RemoveScroll"),HE=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(null),o=je(t,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return nr(a)},[]),l.jsxRuntimeExports.jsx(Os,{as:VE,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(Ed,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),s.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,u=c.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),UE=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Ed,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ed=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:p,...m}=e,g=et(kt,n),v=rn(n);return Ku(),l.jsxRuntimeExports.jsx(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(js,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(fE,{"data-state":bd(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),wd="PopoverClose",zE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(wd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});zE.displayName=wd;var YE="PopoverArrow",KE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rn(n);return l.jsxRuntimeExports.jsx(pE,{...o,...r,ref:t})});KE.displayName=YE;function bd(e){return e?"open":"closed"}var XE=md,GE=xd,Rd=yd,Qi=1,qE=.9,ZE=.8,QE=.17,Kr=.1,Xr=.999,JE=.9999,ew=.99,tw=/[\\\/_+.#"@\[\(\{&]/,nw=/[\\\/_+.#"@\[\(\{&]/g,rw=/[\s-]/,Cd=/[\s-]/g;function $o(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?Qi:ew;var c=`${o},${s}`;if(a[c]!==void 0)return a[c];for(var d=r.charAt(s),u=n.indexOf(d,o),p=0,m,g,v,E;u>=0;)m=$o(e,t,n,r,u+1,s+1,a),m>p&&(u===o?m*=Qi:tw.test(e.charAt(u-1))?(m*=ZE,v=e.slice(o,u-1).match(nw),v&&o>0&&(m*=Math.pow(Xr,v.length))):rw.test(e.charAt(u-1))?(m*=qE,E=e.slice(o,u-1).match(Cd),E&&o>0&&(m*=Math.pow(Xr,E.length))):(m*=QE,o>0&&(m*=Math.pow(Xr,u-o))),e.charAt(u)!==t.charAt(s)&&(m*=JE)),(m<Kr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=$o(e,t,n,r,u+1,s+2,a),g*Kr>m&&(m=g*Kr)),m>p&&(p=m),u=n.indexOf(d,u+1);return a[c]=p,p}function Ji(e){return e.toLowerCase().replace(Cd," ")}function ow(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,$o(e,t,Ji(e),Ji(t),0,0,{})}var Er="Dialog",[Sd,tb]=Ss(Er),[sw,Te]=Sd(Er),Pd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u,p]=ad({prop:r,defaultProp:o??!1,onChange:s,caller:Er});return l.jsxRuntimeExports.jsx(sw,{scope:t,triggerRef:c,contentRef:d,contentId:Dn(),titleId:Dn(),descriptionId:Dn(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};Pd.displayName=Er;var jd="DialogTrigger",iw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(jd,n),s=je(t,o.triggerRef);return l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ms(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});iw.displayName=jd;var Is="DialogPortal",[aw,Td]=Sd(Is,{forceMount:void 0}),Ad=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(Is,t);return l.jsxRuntimeExports.jsx(aw,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ns,{asChild:!0,container:o,children:a})}))})};Ad.displayName=Is;var zn="DialogOverlay",$d=i.forwardRef((e,t)=>{const n=Td(zn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(zn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:l.jsxRuntimeExports.jsx(lw,{...o,ref:t})}):null});$d.displayName=zn;var cw=Ps("DialogOverlay.RemoveScroll"),lw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(zn,n);return l.jsxRuntimeExports.jsx(Os,{as:cw,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(he.div,{"data-state":Ms(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),lt="DialogContent",Nd=i.forwardRef((e,t)=>{const n=Td(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(lt,e.__scopeDialog);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(uw,{...o,ref:t}):l.jsxRuntimeExports.jsx(dw,{...o,ref:t})})});Nd.displayName=lt;var uw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(null),o=je(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return nr(s)},[]),l.jsxRuntimeExports.jsx(Od,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())})}),dw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Od,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Od=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(lt,n),d=i.useRef(null),u=je(t,d);return Ku(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(js,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ms(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(hw,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(gw,{contentRef:d,descriptionId:c.descriptionId})]})]})}),ks="DialogTitle",fw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(ks,n);return l.jsxRuntimeExports.jsx(he.h2,{id:o.titleId,...r,ref:t})});fw.displayName=ks;var Dd="DialogDescription",pw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Dd,n);return l.jsxRuntimeExports.jsx(he.p,{id:o.descriptionId,...r,ref:t})});pw.displayName=Dd;var Id="DialogClose",mw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Id,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});mw.displayName=Id;function Ms(e){return e?"open":"closed"}var kd="DialogTitleWarning",[nb,Md]=$y(kd,{contentName:lt,titleName:ks,docsSlug:"dialog"}),hw=({titleId:e})=>{const t=Md(kd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
578
580
|
|
|
579
581
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
580
582
|
|
|
581
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},vw="DialogDescriptionWarning",gw=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Md(vw).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},xw=Pd,yw=Ad,Ew=$d,ww=Nd,Ht='[cmdk-group=""]',Gr='[cmdk-group-items=""]',bw='[cmdk-group-heading=""]',_d='[cmdk-item=""]',ea=`${_d}:not([aria-disabled="true"])`,No="cmdk-item-select",wt="data-value",Rw=(e,t,n)=>ow(e,t,n),Ld=i.createContext(void 0),on=()=>i.useContext(Ld),Fd=i.createContext(void 0),_s=()=>i.useContext(Fd),Wd=i.createContext(void 0),Bd=i.forwardRef((e,t)=>{let n=bt(()=>{var P,D;return{search:"",value:(D=(P=e.value)!=null?P:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bt(()=>new Set),o=bt(()=>new Map),s=bt(()=>new Map),a=bt(()=>new Set),c=Vd(e),{label:d,children:u,value:p,onValueChange:m,filter:g,shouldFilter:v,loop:E,disablePointerSelection:f=!1,vimBindings:h=!0,...x}=e,y=xe(),b=xe(),R=xe(),C=i.useRef(null),S=Iw();ut(()=>{if(p!==void 0){let P=p.trim();n.current.value=P,w.emit()}},[p]),ut(()=>{S(6,F)},[]);let w=i.useMemo(()=>({subscribe:P=>(a.current.add(P),()=>a.current.delete(P)),snapshot:()=>n.current,setState:(P,D,_)=>{var O,H,A,L;if(!Object.is(n.current[P],D)){if(n.current[P]=D,P==="search")Y(),I(),S(1,z);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let V=document.getElementById(R);V?V.focus():(O=document.getElementById(y))==null||O.focus()}if(S(7,()=>{var V;n.current.selectedItemId=(V=T())==null?void 0:V.id,w.emit()}),_||S(5,F),((H=c.current)==null?void 0:H.value)!==void 0){let V=D??"";(L=(A=c.current).onValueChange)==null||L.call(A,V);return}}w.emit()}},emit:()=>{a.current.forEach(P=>P())}}),[]),j=i.useMemo(()=>({value:(P,D,_)=>{var O;D!==((O=s.current.get(P))==null?void 0:O.value)&&(s.current.set(P,{value:D,keywords:_}),n.current.filtered.items.set(P,$(D,_)),S(2,()=>{I(),w.emit()}))},item:(P,D)=>(r.current.add(P),D&&(o.current.has(D)?o.current.get(D).add(P):o.current.set(D,new Set([P]))),S(3,()=>{Y(),I(),n.current.value||z(),w.emit()}),()=>{s.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let _=T();S(4,()=>{Y(),(_==null?void 0:_.getAttribute("id"))===P&&z(),w.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{s.current.delete(P),o.current.delete(P)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:y,inputId:R,labelId:b,listInnerRef:C}),[]);function $(P,D){var _,O;let H=(O=(_=c.current)==null?void 0:_.filter)!=null?O:Rw;return P?H(P,n.current.search,D):0}function I(){if(!n.current.search||c.current.shouldFilter===!1)return;let P=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(O=>{let H=o.current.get(O),A=0;H.forEach(L=>{let V=P.get(L);A=Math.max(V,A)}),D.push([O,A])});let _=C.current;W().sort((O,H)=>{var A,L;let V=O.getAttribute("id"),G=H.getAttribute("id");return((A=P.get(G))!=null?A:0)-((L=P.get(V))!=null?L:0)}).forEach(O=>{let H=O.closest(Gr);H?H.appendChild(O.parentElement===H?O:O.closest(`${Gr} > *`)):_.appendChild(O.parentElement===_?O:O.closest(`${Gr} > *`))}),D.sort((O,H)=>H[1]-O[1]).forEach(O=>{var H;let A=(H=C.current)==null?void 0:H.querySelector(`${Ht}[${wt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function z(){let P=W().find(_=>_.getAttribute("aria-disabled")!=="true"),D=P==null?void 0:P.getAttribute(wt);w.setState("value",D||void 0)}function Y(){var P,D,_,O;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let H=0;for(let A of r.current){let L=(D=(P=s.current.get(A))==null?void 0:P.value)!=null?D:"",V=(O=(_=s.current.get(A))==null?void 0:_.keywords)!=null?O:[],G=$(L,V);n.current.filtered.items.set(A,G),G>0&&H++}for(let[A,L]of o.current)for(let V of L)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=H}function F(){var P,D,_;let O=T();O&&(((P=O.parentElement)==null?void 0:P.firstChild)===O&&((_=(D=O.closest(Ht))==null?void 0:D.querySelector(bw))==null||_.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function T(){var P;return(P=C.current)==null?void 0:P.querySelector(`${_d}[aria-selected="true"]`)}function W(){var P;return Array.from(((P=C.current)==null?void 0:P.querySelectorAll(ea))||[])}function k(P){let D=W()[P];D&&w.setState("value",D.getAttribute(wt))}function M(P){var D;let _=T(),O=W(),H=O.findIndex(L=>L===_),A=O[H+P];(D=c.current)!=null&&D.loop&&(A=H+P<0?O[O.length-1]:H+P===O.length?O[0]:O[H+P]),A&&w.setState("value",A.getAttribute(wt))}function N(P){let D=T(),_=D==null?void 0:D.closest(Ht),O;for(;_&&!O;)_=P>0?Ow(_,Ht):Dw(_,Ht),O=_==null?void 0:_.querySelector(ea);O?w.setState("value",O.getAttribute(wt)):M(P)}let B=()=>k(W().length-1),te=P=>{P.preventDefault(),P.metaKey?B():P.altKey?N(1):M(1)},J=P=>{P.preventDefault(),P.metaKey?k(0):P.altKey?N(-1):M(-1)};return i.createElement(fe.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:P=>{var D;(D=x.onKeyDown)==null||D.call(x,P);let _=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||_))switch(P.key){case"n":case"j":{h&&P.ctrlKey&&te(P);break}case"ArrowDown":{te(P);break}case"p":case"k":{h&&P.ctrlKey&&J(P);break}case"ArrowUp":{J(P);break}case"Home":{P.preventDefault(),k(0);break}case"End":{P.preventDefault(),B();break}case"Enter":{P.preventDefault();let O=T();if(O){let H=new Event(No);O.dispatchEvent(H)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:Mw},d),wr(e,P=>i.createElement(Fd.Provider,{value:w},i.createElement(Ld.Provider,{value:j},P))))}),Cw=i.forwardRef((e,t)=>{var n,r;let o=xe(),s=i.useRef(null),a=i.useContext(Wd),c=on(),d=Vd(e),u=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;ut(()=>{if(!u)return c.item(o,a==null?void 0:a.id)},[u]);let p=Hd(o,s,[e.value,e.children,s],e.keywords),m=_s(),g=qe(S=>S.value&&S.value===p.current),v=qe(S=>u||c.filter()===!1?!0:S.search?S.filtered.items.get(o)>0:!0);i.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(No,E),()=>S.removeEventListener(No,E)},[v,e.onSelect,e.disabled]);function E(){var S,w;f(),(w=(S=d.current).onSelect)==null||w.call(S,p.current)}function f(){m.setState("value",p.current,!0)}if(!v)return null;let{disabled:h,value:x,onSelect:y,forceMount:b,keywords:R,...C}=e;return i.createElement(fe.div,{ref:ze(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||c.getDisablePointerSelection()?void 0:f,onClick:h?void 0:E},e.children)}),Sw=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=xe(),c=i.useRef(null),d=i.useRef(null),u=xe(),p=on(),m=qe(v=>o||p.filter()===!1?!0:v.search?v.filtered.groups.has(a):!0);ut(()=>p.group(a),[]),Hd(a,c,[e.value,e.heading,d]);let g=i.useMemo(()=>({id:a,forceMount:o}),[o]);return i.createElement(fe.div,{ref:ze(c,t),...s,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&i.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),wr(e,v=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(Wd.Provider,{value:g},v))))}),Pw=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),s=qe(a=>!a.search);return!n&&!s?null:i.createElement(fe.div,{ref:ze(o,t),...r,"cmdk-separator":"",role:"separator"})}),jw=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=_s(),a=qe(u=>u.search),c=qe(u=>u.selectedItemId),d=on();return i.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),i.createElement(fe.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),Tw=i.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=i.useRef(null),a=i.useRef(null),c=qe(u=>u.selectedItemId),d=on();return i.useEffect(()=>{if(a.current&&s.current){let u=a.current,p=s.current,m,g=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let v=u.offsetHeight;p.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(m),g.unobserve(u)}}},[]),i.createElement(fe.div,{ref:ze(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},wr(e,u=>i.createElement("div",{ref:ze(a,d.listInnerRef),"cmdk-list-sizer":""},u)))}),Aw=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...c}=e;return i.createElement(xw,{open:n,onOpenChange:r},i.createElement(yw,{container:a},i.createElement(Ew,{"cmdk-overlay":"",className:o}),i.createElement(ww,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(Bd,{ref:t,...c}))))}),$w=i.forwardRef((e,t)=>qe(n=>n.filtered.count===0)?i.createElement(fe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Nw=i.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return i.createElement(fe.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},wr(e,a=>i.createElement("div",{"aria-hidden":!0},a)))}),ve=Object.assign(Bd,{List:Tw,Item:Cw,Input:jw,Group:Sw,Separator:Pw,Dialog:Aw,Empty:$w,Loading:Nw});function Ow(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Dw(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Vd(e){let t=i.useRef(e);return ut(()=>{t.current=e}),t}var ut=typeof window>"u"?i.useEffect:i.useLayoutEffect;function bt(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function qe(e){let t=_s(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function Hd(e,t,n,r=[]){let o=i.useRef(),s=on();return ut(()=>{var a;let c=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),d=r.map(u=>u.trim());s.value(e,c,d),(a=t.current)==null||a.setAttribute(wt,c),o.current=c}),o}var Iw=()=>{let[e,t]=i.useState(),n=bt(()=>new Map);return ut(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function kw(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function wr({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(kw(t),{ref:t.ref},n(t.props.children)):n(t)}var Mw={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ud=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve,{ref:n,className:l.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));Ud.displayName=ve.displayName;const _w=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:l.jsxRuntimeExports.jsx(ve.Input,{ref:n,className:l.cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})}));_w.displayName=ve.Input.displayName;const Oo=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.List,{ref:n,className:l.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Oo.displayName=ve.List.displayName;const Lw=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(ve.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Lw.displayName=ve.Empty.displayName;const zd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Group,{ref:n,className:l.cn("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));zd.displayName=ve.Group.displayName;const Fw=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Separator,{ref:n,className:l.cn("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t}));Fw.displayName=ve.Separator.displayName;const Yd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Item,{ref:n,className:l.cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0 dark:data-[selected='true']:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",e),...t}));Yd.displayName=ve.Item.displayName;const Ww=XE,Kd=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsxRuntimeExports.jsx(GE,{children:l.jsxRuntimeExports.jsx(Rd,{ref:o,align:t,sideOffset:n,className:l.cn("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));Kd.displayName=Rd.displayName;const Bw=U(Kd)`
|
|
583
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},vw="DialogDescriptionWarning",gw=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Md(vw).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},xw=Pd,yw=Ad,Ew=$d,ww=Nd,Ht='[cmdk-group=""]',Gr='[cmdk-group-items=""]',bw='[cmdk-group-heading=""]',_d='[cmdk-item=""]',ea=`${_d}:not([aria-disabled="true"])`,No="cmdk-item-select",wt="data-value",Rw=(e,t,n)=>ow(e,t,n),Ld=i.createContext(void 0),on=()=>i.useContext(Ld),Fd=i.createContext(void 0),_s=()=>i.useContext(Fd),Wd=i.createContext(void 0),Bd=i.forwardRef((e,t)=>{let n=bt(()=>{var P,D;return{search:"",value:(D=(P=e.value)!=null?P:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bt(()=>new Set),o=bt(()=>new Map),s=bt(()=>new Map),a=bt(()=>new Set),c=Vd(e),{label:d,children:u,value:p,onValueChange:m,filter:g,shouldFilter:v,loop:E,disablePointerSelection:f=!1,vimBindings:h=!0,...x}=e,y=xe(),b=xe(),R=xe(),C=i.useRef(null),S=Iw();ut(()=>{if(p!==void 0){let P=p.trim();n.current.value=P,w.emit()}},[p]),ut(()=>{S(6,F)},[]);let w=i.useMemo(()=>({subscribe:P=>(a.current.add(P),()=>a.current.delete(P)),snapshot:()=>n.current,setState:(P,D,_)=>{var O,H,A,L;if(!Object.is(n.current[P],D)){if(n.current[P]=D,P==="search")Y(),I(),S(1,U);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let V=document.getElementById(R);V?V.focus():(O=document.getElementById(y))==null||O.focus()}if(S(7,()=>{var V;n.current.selectedItemId=(V=T())==null?void 0:V.id,w.emit()}),_||S(5,F),((H=c.current)==null?void 0:H.value)!==void 0){let V=D??"";(L=(A=c.current).onValueChange)==null||L.call(A,V);return}}w.emit()}},emit:()=>{a.current.forEach(P=>P())}}),[]),j=i.useMemo(()=>({value:(P,D,_)=>{var O;D!==((O=s.current.get(P))==null?void 0:O.value)&&(s.current.set(P,{value:D,keywords:_}),n.current.filtered.items.set(P,$(D,_)),S(2,()=>{I(),w.emit()}))},item:(P,D)=>(r.current.add(P),D&&(o.current.has(D)?o.current.get(D).add(P):o.current.set(D,new Set([P]))),S(3,()=>{Y(),I(),n.current.value||U(),w.emit()}),()=>{s.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let _=T();S(4,()=>{Y(),(_==null?void 0:_.getAttribute("id"))===P&&U(),w.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{s.current.delete(P),o.current.delete(P)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:y,inputId:R,labelId:b,listInnerRef:C}),[]);function $(P,D){var _,O;let H=(O=(_=c.current)==null?void 0:_.filter)!=null?O:Rw;return P?H(P,n.current.search,D):0}function I(){if(!n.current.search||c.current.shouldFilter===!1)return;let P=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(O=>{let H=o.current.get(O),A=0;H.forEach(L=>{let V=P.get(L);A=Math.max(V,A)}),D.push([O,A])});let _=C.current;W().sort((O,H)=>{var A,L;let V=O.getAttribute("id"),G=H.getAttribute("id");return((A=P.get(G))!=null?A:0)-((L=P.get(V))!=null?L:0)}).forEach(O=>{let H=O.closest(Gr);H?H.appendChild(O.parentElement===H?O:O.closest(`${Gr} > *`)):_.appendChild(O.parentElement===_?O:O.closest(`${Gr} > *`))}),D.sort((O,H)=>H[1]-O[1]).forEach(O=>{var H;let A=(H=C.current)==null?void 0:H.querySelector(`${Ht}[${wt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function U(){let P=W().find(_=>_.getAttribute("aria-disabled")!=="true"),D=P==null?void 0:P.getAttribute(wt);w.setState("value",D||void 0)}function Y(){var P,D,_,O;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let H=0;for(let A of r.current){let L=(D=(P=s.current.get(A))==null?void 0:P.value)!=null?D:"",V=(O=(_=s.current.get(A))==null?void 0:_.keywords)!=null?O:[],G=$(L,V);n.current.filtered.items.set(A,G),G>0&&H++}for(let[A,L]of o.current)for(let V of L)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=H}function F(){var P,D,_;let O=T();O&&(((P=O.parentElement)==null?void 0:P.firstChild)===O&&((_=(D=O.closest(Ht))==null?void 0:D.querySelector(bw))==null||_.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function T(){var P;return(P=C.current)==null?void 0:P.querySelector(`${_d}[aria-selected="true"]`)}function W(){var P;return Array.from(((P=C.current)==null?void 0:P.querySelectorAll(ea))||[])}function k(P){let D=W()[P];D&&w.setState("value",D.getAttribute(wt))}function M(P){var D;let _=T(),O=W(),H=O.findIndex(L=>L===_),A=O[H+P];(D=c.current)!=null&&D.loop&&(A=H+P<0?O[O.length-1]:H+P===O.length?O[0]:O[H+P]),A&&w.setState("value",A.getAttribute(wt))}function N(P){let D=T(),_=D==null?void 0:D.closest(Ht),O;for(;_&&!O;)_=P>0?Ow(_,Ht):Dw(_,Ht),O=_==null?void 0:_.querySelector(ea);O?w.setState("value",O.getAttribute(wt)):M(P)}let B=()=>k(W().length-1),te=P=>{P.preventDefault(),P.metaKey?B():P.altKey?N(1):M(1)},J=P=>{P.preventDefault(),P.metaKey?k(0):P.altKey?N(-1):M(-1)};return i.createElement(fe.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:P=>{var D;(D=x.onKeyDown)==null||D.call(x,P);let _=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||_))switch(P.key){case"n":case"j":{h&&P.ctrlKey&&te(P);break}case"ArrowDown":{te(P);break}case"p":case"k":{h&&P.ctrlKey&&J(P);break}case"ArrowUp":{J(P);break}case"Home":{P.preventDefault(),k(0);break}case"End":{P.preventDefault(),B();break}case"Enter":{P.preventDefault();let O=T();if(O){let H=new Event(No);O.dispatchEvent(H)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:Mw},d),wr(e,P=>i.createElement(Fd.Provider,{value:w},i.createElement(Ld.Provider,{value:j},P))))}),Cw=i.forwardRef((e,t)=>{var n,r;let o=xe(),s=i.useRef(null),a=i.useContext(Wd),c=on(),d=Vd(e),u=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;ut(()=>{if(!u)return c.item(o,a==null?void 0:a.id)},[u]);let p=Hd(o,s,[e.value,e.children,s],e.keywords),m=_s(),g=qe(S=>S.value&&S.value===p.current),v=qe(S=>u||c.filter()===!1?!0:S.search?S.filtered.items.get(o)>0:!0);i.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(No,E),()=>S.removeEventListener(No,E)},[v,e.onSelect,e.disabled]);function E(){var S,w;f(),(w=(S=d.current).onSelect)==null||w.call(S,p.current)}function f(){m.setState("value",p.current,!0)}if(!v)return null;let{disabled:h,value:x,onSelect:y,forceMount:b,keywords:R,...C}=e;return i.createElement(fe.div,{ref:ze(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||c.getDisablePointerSelection()?void 0:f,onClick:h?void 0:E},e.children)}),Sw=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=xe(),c=i.useRef(null),d=i.useRef(null),u=xe(),p=on(),m=qe(v=>o||p.filter()===!1?!0:v.search?v.filtered.groups.has(a):!0);ut(()=>p.group(a),[]),Hd(a,c,[e.value,e.heading,d]);let g=i.useMemo(()=>({id:a,forceMount:o}),[o]);return i.createElement(fe.div,{ref:ze(c,t),...s,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&i.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),wr(e,v=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(Wd.Provider,{value:g},v))))}),Pw=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),s=qe(a=>!a.search);return!n&&!s?null:i.createElement(fe.div,{ref:ze(o,t),...r,"cmdk-separator":"",role:"separator"})}),jw=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=_s(),a=qe(u=>u.search),c=qe(u=>u.selectedItemId),d=on();return i.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),i.createElement(fe.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),Tw=i.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=i.useRef(null),a=i.useRef(null),c=qe(u=>u.selectedItemId),d=on();return i.useEffect(()=>{if(a.current&&s.current){let u=a.current,p=s.current,m,g=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let v=u.offsetHeight;p.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(m),g.unobserve(u)}}},[]),i.createElement(fe.div,{ref:ze(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},wr(e,u=>i.createElement("div",{ref:ze(a,d.listInnerRef),"cmdk-list-sizer":""},u)))}),Aw=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...c}=e;return i.createElement(xw,{open:n,onOpenChange:r},i.createElement(yw,{container:a},i.createElement(Ew,{"cmdk-overlay":"",className:o}),i.createElement(ww,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(Bd,{ref:t,...c}))))}),$w=i.forwardRef((e,t)=>qe(n=>n.filtered.count===0)?i.createElement(fe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Nw=i.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return i.createElement(fe.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},wr(e,a=>i.createElement("div",{"aria-hidden":!0},a)))}),ve=Object.assign(Bd,{List:Tw,Item:Cw,Input:jw,Group:Sw,Separator:Pw,Dialog:Aw,Empty:$w,Loading:Nw});function Ow(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Dw(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Vd(e){let t=i.useRef(e);return ut(()=>{t.current=e}),t}var ut=typeof window>"u"?i.useEffect:i.useLayoutEffect;function bt(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function qe(e){let t=_s(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function Hd(e,t,n,r=[]){let o=i.useRef(),s=on();return ut(()=>{var a;let c=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),d=r.map(u=>u.trim());s.value(e,c,d),(a=t.current)==null||a.setAttribute(wt,c),o.current=c}),o}var Iw=()=>{let[e,t]=i.useState(),n=bt(()=>new Map);return ut(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function kw(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function wr({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(kw(t),{ref:t.ref},n(t.props.children)):n(t)}var Mw={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ud=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve,{ref:n,className:l.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));Ud.displayName=ve.displayName;const _w=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:l.jsxRuntimeExports.jsx(ve.Input,{ref:n,className:l.cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})}));_w.displayName=ve.Input.displayName;const Oo=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.List,{ref:n,className:l.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Oo.displayName=ve.List.displayName;const Lw=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(ve.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Lw.displayName=ve.Empty.displayName;const zd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Group,{ref:n,className:l.cn("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));zd.displayName=ve.Group.displayName;const Fw=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Separator,{ref:n,className:l.cn("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t}));Fw.displayName=ve.Separator.displayName;const Yd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Item,{ref:n,className:l.cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0 dark:data-[selected='true']:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",e),...t}));Yd.displayName=ve.Item.displayName;const Ww=XE,Kd=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsxRuntimeExports.jsx(GE,{children:l.jsxRuntimeExports.jsx(Rd,{ref:o,align:t,sideOffset:n,className:l.cn("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));Kd.displayName=Rd.displayName;const Bw=z(Kd)`
|
|
582
584
|
width: var(--radix-popover-trigger-width);
|
|
583
585
|
padding: 0;
|
|
584
|
-
`,Vw=
|
|
586
|
+
`,Vw=z(Ud)`
|
|
585
587
|
border-radius: 0.75rem;
|
|
586
|
-
`,Xd=
|
|
588
|
+
`,Xd=z(Yd)`
|
|
587
589
|
height: 3.125rem;
|
|
588
590
|
border-radius: 0.75rem;
|
|
589
591
|
${l.typography.label}
|
|
@@ -597,20 +599,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
597
599
|
background: ${l.colors.primary[25]};
|
|
598
600
|
color: ${({$isSelected:e})=>e?l.colors.fg.accent.action:l.colors.fg.base};
|
|
599
601
|
}
|
|
600
|
-
`,Hw=
|
|
602
|
+
`,Hw=z.div`
|
|
601
603
|
display: flex;
|
|
602
604
|
justify-content: space-between;
|
|
603
605
|
width: 100%;
|
|
604
|
-
`,Uw=
|
|
606
|
+
`,Uw=z.span`
|
|
605
607
|
font-size: 0.938rem;
|
|
606
608
|
${l.typography.body}
|
|
607
609
|
color: ${l.colors.fg.accent.action};
|
|
608
610
|
&:hover {
|
|
609
611
|
background: ${l.colors.primary[25]};
|
|
610
612
|
}
|
|
611
|
-
`,zw=
|
|
613
|
+
`,zw=z.div`
|
|
612
614
|
padding: 2rem;
|
|
613
|
-
`,Yw=
|
|
614
|
-
width: 1.1rem;
|
|
615
|
-
height: 1.1rem;
|
|
616
|
-
`,Kw=({handleManualOverride:e})=>l.jsxRuntimeExports.jsx(Xd,{onMouseDown:t=>t.preventDefault(),onSelect:e,children:l.jsxRuntimeExports.jsx(Uw,{children:"+ Anbieter manuell eingeben"})});function Xw({selectedValue:e,setSelectedValue:t,value:n,onChange:r,options:o,isLoading:s,isError:a,manualOverrideComponent:c,label:d="Empfänger",errorText:u="Es ist ein Fehler aufgetreten",emptyText:p="Ende der Suchergebnisse.",...m}){const g=Q.useId(),[v,E]=Q.useState(!1),f=h=>{var x;t(h),r(((x=o==null?void 0:o.find(y=>y.value===h))==null?void 0:x.value)??""),E(!1)};return l.jsxRuntimeExports.jsx(Ww,{open:v,onOpenChange:E,children:l.jsxRuntimeExports.jsxs(Vw,{shouldFilter:!1,children:[l.jsxRuntimeExports.jsx(gd,{asChild:!0,children:l.jsxRuntimeExports.jsxs(Ll,{$error:a,children:[l.jsxRuntimeExports.jsxs(Fl,{children:[l.jsxRuntimeExports.jsx(Wl,{...m,type:"text",id:`${g}-${d}`,value:n,onKeyDown:h=>{h.key==="Backspace"&&t(""),E(h.key!=="Escape")},onChange:h=>r(h.target.value),required:!0}),l.jsxRuntimeExports.jsx(gs,{htmlFor:`${g}-${d}`,$hasValue:!!n,children:d})]}),l.jsxRuntimeExports.jsx(Yw,{direction:"down"})]})}),!v&&l.jsxRuntimeExports.jsx(Oo,{"aria-hidden":"true",className:"hidden"}),l.jsxRuntimeExports.jsx(Bw,{asChild:!0,onOpenAutoFocus:h=>h.preventDefault(),onInteractOutside:h=>{h.target instanceof Element&&h.target.hasAttribute("cmdk-input")&&h.preventDefault()},children:n?l.jsxRuntimeExports.jsx(Oo,{children:l.jsxRuntimeExports.jsxs(zd,{children:[c,o&&o.length>0&&!s?o.map(h=>l.jsxRuntimeExports.jsx(Xd,{$isSelected:h.value===e,value:h.value,onMouseDown:x=>x.preventDefault(),onSelect:f,children:l.jsxRuntimeExports.jsxs(Hw,{children:[h.label,h.value===e&&l.jsxRuntimeExports.jsx(l.Check,{})]})},h.value)):null,s?l.jsxRuntimeExports.jsx(zw,{children:l.jsxRuntimeExports.jsx(Bl,{size:"1rem",color:l.colors.fg.accent.action})}):a?l.jsxRuntimeExports.jsx(_n,{error:a,children:u}):(o==null?void 0:o.length)===0?l.jsxRuntimeExports.jsx(_n,{children:p}):null]})}):null})]})})}exports.colors=l.colors;exports.typography=l.typography;exports.Autocomplete=Xw;exports.Button=sp;exports.DatePicker=dp;exports.Dialog=Fm;exports.DialogContent=uc;exports.DialogDetails=Vm;exports.DialogHeader=zm;exports.Divider=Km;exports.IconButton=Fn;exports.Input=Lg;exports.Loading=Bl;exports.ManualOverrideButton=Kw;exports.Message=eh;exports.MessageOption=nh;exports.Select=Ng;exports.Spinner=ja;exports.Toaster=Mx;exports.Tooltip=Ty;exports.TooltipContent=Hu;exports.TooltipProvider=jy;exports.TooltipTrigger=Ay;exports.useIsMobile=Xo;exports.useToast=Vl;
|
|
615
|
+
`,Yw=({handleManualOverride:e})=>l.jsxRuntimeExports.jsx(Xd,{onMouseDown:t=>t.preventDefault(),onSelect:e,children:l.jsxRuntimeExports.jsx(Uw,{children:"+ Anbieter manuell eingeben"})});function Kw({selectedValue:e,setSelectedValue:t,value:n,onChange:r,options:o,isLoading:s,isError:a,manualOverrideComponent:c,label:d="Empfänger",errorText:u="Es ist ein Fehler aufgetreten",emptyText:p="Ende der Suchergebnisse.",...m}){const g=Q.useId(),[v,E]=Q.useState(!1),f=h=>{var x;t(h),r(((x=o==null?void 0:o.find(y=>y.value===h))==null?void 0:x.value)??""),E(!1)};return l.jsxRuntimeExports.jsx(Ww,{open:v,onOpenChange:E,modal:!0,children:l.jsxRuntimeExports.jsxs(Vw,{shouldFilter:!1,children:[l.jsxRuntimeExports.jsx(gd,{asChild:!0,children:l.jsxRuntimeExports.jsx(Ll,{$error:a,children:l.jsxRuntimeExports.jsxs(Fl,{children:[l.jsxRuntimeExports.jsx(Wl,{...m,type:"text",id:`${g}-${d}`,value:n,onKeyDown:h=>{h.key==="Backspace"&&t(""),E(h.key!=="Escape")},onChange:h=>r(h.target.value),required:!0}),l.jsxRuntimeExports.jsx(gs,{htmlFor:`${g}-${d}`,$hasValue:!!n,children:d})]})})}),!v&&l.jsxRuntimeExports.jsx(Oo,{"aria-hidden":"true",className:"hidden"}),l.jsxRuntimeExports.jsx(Bw,{asChild:!0,onOpenAutoFocus:h=>h.preventDefault(),onInteractOutside:h=>{h.target instanceof Element&&h.target.hasAttribute("cmdk-input")&&h.preventDefault()},children:n?l.jsxRuntimeExports.jsx(Oo,{children:l.jsxRuntimeExports.jsxs(zd,{children:[c,o&&o.length>0&&!s?o.map(h=>l.jsxRuntimeExports.jsx(Xd,{$isSelected:h.value===e,value:h.value,onMouseDown:x=>x.preventDefault(),onSelect:f,children:l.jsxRuntimeExports.jsxs(Hw,{children:[h.label,h.value===e&&l.jsxRuntimeExports.jsx(l.Check,{})]})},h.value)):null,s?l.jsxRuntimeExports.jsx(zw,{children:l.jsxRuntimeExports.jsx(Bl,{size:"1rem",color:l.colors.fg.accent.action})}):a?l.jsxRuntimeExports.jsx(_n,{error:a,children:u}):(o==null?void 0:o.length)===0?l.jsxRuntimeExports.jsx(_n,{children:p}):null]})}):null})]})})}exports.colors=l.colors;exports.typography=l.typography;exports.Autocomplete=Kw;exports.Button=sp;exports.DatePicker=dp;exports.Dialog=Fm;exports.DialogContent=uc;exports.DialogDetails=Vm;exports.DialogHeader=zm;exports.Divider=Km;exports.IconButton=Fn;exports.Input=Lg;exports.Loading=Bl;exports.ManualOverrideButton=Yw;exports.Message=eh;exports.MessageOption=nh;exports.Select=Ng;exports.Spinner=ja;exports.Toaster=Mx;exports.Tooltip=Ty;exports.TooltipContent=Hu;exports.TooltipProvider=jy;exports.TooltipTrigger=Ay;exports.useIsMobile=Xo;exports.useToast=Vl;
|