@commercetools/nimbus 0.0.4-rc5 → 0.0.4-rc7

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 CHANGED
@@ -1,27 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("@commercetools/nimbus-tokens"),d=require("react"),k=require("react/jsx-runtime"),ct=require("react-dom"),Be=require("@commercetools/nimbus-icons");function F0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const U=F0(d),et=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function M0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function wn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=d.createContext(a);s.displayName=t;function l(){var u;const c=d.useContext(s);if(!c&&r){const g=new Error(i??M0(n,o));throw g.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,g,l),g}return c}return[s.Provider,l,s]}function _0(...e){return function(...r){e.forEach(n=>n==null?void 0:n(...r))}}const V0=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),B0=/^on[A-Z]/;function kn(...e){let t={};for(let r of e){for(let n in t){if(B0.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=_0(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=V0(t[n],r[n]);continue}if(n==="style"){t[n]=Object.assign({},t[n]??{},r[n]??{});continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}const W0=Object.freeze({}),K0=Object.freeze({});function Vf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var H0=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Bf=Vf(function(e){return H0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function j0(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function U0(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var G0=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U0(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=j0(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ke="-ms-",Fo="-moz-",J="-webkit-",Wf="comm",vs="rule",bs="decl",q0="@import",Kf="@keyframes",Y0="@layer",X0=Math.abs,ai=String.fromCharCode,Z0=Object.assign;function J0(e,t){return Ee(e,0)^45?(((t<<2^Ee(e,0))<<2^Ee(e,1))<<2^Ee(e,2))<<2^Ee(e,3):0}function Hf(e){return e.trim()}function Q0(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function ka(e,t){return e.indexOf(t)}function Ee(e,t){return e.charCodeAt(t)|0}function Tn(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ys(e){return e.length}function eo(e,t){return t.push(e),e}function ey(e,t){return e.map(t).join("")}var si=1,Gr=1,jf=0,Fe=0,be=0,Zr="";function li(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:si,column:Gr,length:a,return:""}}function on(e,t){return Z0(li("",null,null,"",null,null,0),e,{length:-e.length},t)}function ty(){return be}function ry(){return be=Fe>0?Ee(Zr,--Fe):0,Gr--,be===10&&(Gr=1,si--),be}function Ke(){return be=Fe<jf?Ee(Zr,Fe++):0,Gr++,be===10&&(Gr=1,si++),be}function gt(){return Ee(Zr,Fe)}function Co(){return Fe}function Vn(e,t){return Tn(Zr,e,t)}function Rn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uf(e){return si=Gr=1,jf=dt(Zr=e),Fe=0,[]}function Gf(e){return Zr="",e}function Eo(e){return Hf(Vn(Fe-1,Ta(e===91?e+2:e===40?e+1:e)))}function ny(e){for(;(be=gt())&&be<33;)Ke();return Rn(e)>2||Rn(be)>3?"":" "}function oy(e,t){for(;--t&&Ke()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Vn(e,Co()+(t<6&&gt()==32&&Ke()==32))}function Ta(e){for(;Ke();)switch(be){case e:return Fe;case 34:case 39:e!==34&&e!==39&&Ta(be);break;case 40:e===41&&Ta(e);break;case 92:Ke();break}return Fe}function iy(e,t){for(;Ke()&&e+be!==57;)if(e+be===84&&gt()===47)break;return"/*"+Vn(t,Fe-1)+"*"+ai(e===47?e:Ke())}function ay(e){for(;!Rn(gt());)Ke();return Vn(e,Fe)}function sy(e){return Gf(Po("",null,null,null,[""],e=Uf(e),0,[0],e))}function Po(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,g=a,f=0,p=0,h=0,m=1,b=1,y=1,x=0,S="",$=o,w=i,C=n,D=S;b;)switch(h=x,x=Ke()){case 40:if(h!=108&&Ee(D,g-1)==58){ka(D+=Q(Eo(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:D+=Eo(x);break;case 9:case 10:case 13:case 32:D+=ny(h);break;case 92:D+=oy(Co()-1,7);continue;case 47:switch(gt()){case 42:case 47:eo(ly(iy(Ke(),Co()),t,r),l);break;default:D+="/"}break;case 123*m:s[c++]=dt(D)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+u:y==-1&&(D=Q(D,/\f/g,"")),p>0&&dt(D)-g&&eo(p>32?rc(D+";",n,r,g-1):rc(Q(D," ","")+";",n,r,g-2),l);break;case 59:D+=";";default:if(eo(C=tc(D,t,r,c,u,o,s,S,$=[],w=[],g),i),x===123)if(u===0)Po(D,t,C,C,$,i,g,s,w);else switch(f===99&&Ee(D,3)===110?100:f){case 100:case 108:case 109:case 115:Po(e,C,C,n&&eo(tc(e,C,C,0,0,o,s,S,o,$=[],g),w),o,w,g,s,n?$:w);break;default:Po(D,C,C,C,[""],w,0,s,w)}}c=u=p=0,m=y=1,S=D="",g=a;break;case 58:g=1+dt(D),p=h;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&ry()==125)continue}switch(D+=ai(x),x*m){case 38:y=u>0?1:(D+="\f",-1);break;case 44:s[c++]=(dt(D)-1)*y,y=1;break;case 64:gt()===45&&(D+=Eo(Ke())),f=gt(),u=g=dt(S=D+=ay(Co())),x++;break;case 45:h===45&&dt(D)==2&&(m=0)}}return i}function tc(e,t,r,n,o,i,a,s,l,c,u){for(var g=o-1,f=o===0?i:[""],p=ys(f),h=0,m=0,b=0;h<n;++h)for(var y=0,x=Tn(e,g+1,g=X0(m=a[h])),S=e;y<p;++y)(S=Hf(m>0?f[y]+" "+x:Q(x,/&\f/g,f[y])))&&(l[b++]=S);return li(e,t,r,o===0?vs:s,l,c,u)}function ly(e,t,r){return li(e,t,r,Wf,ai(ty()),Tn(e,2,-2),0)}function rc(e,t,r,n){return li(e,t,r,bs,Tn(e,0,n),Tn(e,n+1,-1),n)}function Kr(e,t){for(var r="",n=ys(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function cy(e,t,r,n){switch(e.type){case Y0:if(e.children.length)break;case q0:case bs:return e.return=e.return||e.value;case Wf:return"";case Kf:return e.return=e.value+"{"+Kr(e.children,n)+"}";case vs:e.value=e.props.join(",")}return dt(r=Kr(e.children,n))?e.return=e.value+"{"+r+"}":""}function uy(e){var t=ys(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function dy(e){return function(t){t.root||(t=t.return)&&e(t)}}var fy=function(t,r,n){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(r[n]=1),!Rn(i);)Ke();return Vn(t,Fe)},py=function(t,r){var n=-1,o=44;do switch(Rn(o)){case 0:o===38&&gt()===12&&(r[n]=1),t[n]+=fy(Fe-1,r,n);break;case 2:t[n]+=Eo(o);break;case 4:if(o===44){t[++n]=gt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ai(o)}while(o=Ke());return t},gy=function(t,r){return Gf(py(Uf(t),r))},nc=new WeakMap,hy=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!nc.get(n))&&!o){nc.set(t,!0);for(var i=[],a=gy(r,i),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},my=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function qf(e,t){switch(J0(e,t)){case 5103:return J+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+Fo+e+ke+e+e;case 6828:case 4268:return J+e+ke+e+e;case 6165:return J+e+ke+"flex-"+e+e;case 5187:return J+e+Q(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+ke+"flex-$1$2")+e;case 5443:return J+e+ke+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return J+e+ke+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+ke+Q(e,"shrink","negative")+e;case 5292:return J+e+ke+Q(e,"basis","preferred-size")+e;case 6060:return J+"box-"+Q(e,"-grow","")+J+e+ke+Q(e,"grow","positive")+e;case 4554:return J+Q(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,J+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(Ee(e,t+1)){case 109:if(Ee(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+Fo+(Ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ka(e,"stretch")?qf(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ee(e,t+1)!==115)break;case 6444:switch(Ee(e,dt(e)-3-(~ka(e,"!important")&&10))){case 107:return Q(e,":",":"+J)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(Ee(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+ke+"$2box$3")+e}break;case 5936:switch(Ee(e,t+11)){case 114:return J+e+ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+ke+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+ke+e+e}return e}var vy=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bs:t.return=qf(t.value,t.length);break;case Kf:return Kr([on(t,{value:Q(t.value,"@","@"+J)})],o);case vs:if(t.length)return ey(t.props,function(i){switch(Q0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kr([on(t,{props:[Q(i,/:(read-\w+)/,":"+Fo+"$1")]})],o);case"::placeholder":return Kr([on(t,{props:[Q(i,/:(plac\w+)/,":"+J+"input-$1")]}),on(t,{props:[Q(i,/:(plac\w+)/,":"+Fo+"$1")]}),on(t,{props:[Q(i,/:(plac\w+)/,ke+"input-$1")]})],o)}return""})}},by=[vy],yy=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||by,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(m)});var l,c=[hy,my];{var u,g=[cy,dy(function(m){u.insert(m)})],f=uy(c.concat(o,g)),p=function(b){return Kr(sy(b),f)};l=function(b,y,x,S){u=x,p(b?b+"{"+y.styles+"}":y.styles),S&&(h.inserted[y.name]=!0)}}var h={key:r,sheet:new G0({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h};function Yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var to={exports:{}},te={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var oc;function xy(){if(oc)return te;oc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case l:case c:case n:case i:case o:case g:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case h:case p:case a:return w;default:return C}}case r:return C}}}function $(w){return S(w)===c}return te.AsyncMode=l,te.ConcurrentMode=c,te.ContextConsumer=s,te.ContextProvider=a,te.Element=t,te.ForwardRef=u,te.Fragment=n,te.Lazy=h,te.Memo=p,te.Portal=r,te.Profiler=i,te.StrictMode=o,te.Suspense=g,te.isAsyncMode=function(w){return $(w)||S(w)===l},te.isConcurrentMode=$,te.isContextConsumer=function(w){return S(w)===s},te.isContextProvider=function(w){return S(w)===a},te.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},te.isForwardRef=function(w){return S(w)===u},te.isFragment=function(w){return S(w)===n},te.isLazy=function(w){return S(w)===h},te.isMemo=function(w){return S(w)===p},te.isPortal=function(w){return S(w)===r},te.isProfiler=function(w){return S(w)===i},te.isStrictMode=function(w){return S(w)===o},te.isSuspense=function(w){return S(w)===g},te.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===c||w===i||w===o||w===g||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===b||w.$$typeof===y||w.$$typeof===x||w.$$typeof===m)},te.typeOf=S,te}var re={};/** @license React v16.13.1
9
- * react-is.development.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */var ic;function Sy(){return ic||(ic=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(V){return typeof V=="string"||typeof V=="function"||V===n||V===c||V===i||V===o||V===g||V===f||typeof V=="object"&&V!==null&&(V.$$typeof===h||V.$$typeof===p||V.$$typeof===a||V.$$typeof===s||V.$$typeof===u||V.$$typeof===b||V.$$typeof===y||V.$$typeof===x||V.$$typeof===m)}function $(V){if(typeof V=="object"&&V!==null){var ge=V.$$typeof;switch(ge){case t:var Ae=V.type;switch(Ae){case l:case c:case n:case i:case o:case g:return Ae;default:var tr=Ae&&Ae.$$typeof;switch(tr){case s:case u:case h:case p:case a:return tr;default:return ge}}case r:return ge}}}var w=l,C=c,D=s,v=a,P=t,T=u,I=n,L=h,E=p,O=r,A=i,z=o,F=g,R=!1;function _(V){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(V)||$(V)===l}function B(V){return $(V)===c}function Z(V){return $(V)===s}function ne(V){return $(V)===a}function _e(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function Ie(V){return $(V)===u}function De(V){return $(V)===n}function Ft(V){return $(V)===h}function er(V){return $(V)===p}function N(V){return $(V)===r}function M(V){return $(V)===i}function H(V){return $(V)===o}function ee(V){return $(V)===g}re.AsyncMode=w,re.ConcurrentMode=C,re.ContextConsumer=D,re.ContextProvider=v,re.Element=P,re.ForwardRef=T,re.Fragment=I,re.Lazy=L,re.Memo=E,re.Portal=O,re.Profiler=A,re.StrictMode=z,re.Suspense=F,re.isAsyncMode=_,re.isConcurrentMode=B,re.isContextConsumer=Z,re.isContextProvider=ne,re.isElement=_e,re.isForwardRef=Ie,re.isFragment=De,re.isLazy=Ft,re.isMemo=er,re.isPortal=N,re.isProfiler=M,re.isStrictMode=H,re.isSuspense=ee,re.isValidElementType=S,re.typeOf=$}()),re}var ac;function wy(){return ac||(ac=1,process.env.NODE_ENV==="production"?to.exports=xy():to.exports=Sy()),to.exports}var Mi,sc;function Cy(){if(sc)return Mi;sc=1;var e=wy(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function p(h,m,b){if(typeof m!="string"){if(f){var y=g(m);y&&y!==f&&p(h,y,b)}var x=l(m);c&&(x=x.concat(c(m)));for(var S=a(h),$=a(m),w=0;w<x.length;++w){var C=x[w];if(!r[C]&&!(b&&b[C])&&!($&&$[C])&&!(S&&S[C])){var D=u(m,C);try{s(h,C,D)}catch{}}}}return h}return Mi=p,Mi}Cy();var Ey=!0;function Xf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var xs=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Ey===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ss=function(t,r,n){xs(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Py(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $y={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ky=/[A-Z]|^ms/g,Ty=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zf=function(t){return t.charCodeAt(1)===45},lc=function(t){return t!=null&&typeof t!="boolean"},_i=Vf(function(e){return Zf(e)?e:e.replace(ky,"-$&").toLowerCase()}),cc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ty,function(n,o,i){return ft={name:o,styles:i,next:ft},o})}return $y[t]!==1&&!Zf(t)&&typeof r=="number"&&r!==0?r+"px":r};function On(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ft={name:o.name,styles:o.styles,next:ft},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ft={name:a.name,styles:a.styles,next:ft},a=a.next;var s=i.styles+";";return s}return Ry(e,t,r)}case"function":{if(e!==void 0){var l=ft,c=r(e);return ft=l,On(e,t,c)}break}}var u=r;if(t==null)return u;var g=t[u];return g!==void 0?g:u}function Ry(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=On(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":lc(s)&&(n+=_i(i)+":"+cc(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)lc(a[l])&&(n+=_i(i)+":"+cc(i,a[l])+";");else{var c=On(e,t,a);switch(i){case"animation":case"animationName":{n+=_i(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var uc=/label:\s*([^\s;{]+)\s*(;|$)/g,ft;function ws(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ft=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=On(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=On(r,t,e[s]),n){var l=i;o+=l[s]}uc.lastIndex=0;for(var c="",u;(u=uc.exec(o))!==null;)c+="-"+u[1];var g=Py(o)+c;return{name:g,styles:o,next:ft}}var Oy=function(t){return t()},Jf=U.useInsertionEffect?U.useInsertionEffect:!1,Qf=Jf||Oy,dc=Jf||U.useLayoutEffect,ep=U.createContext(typeof HTMLElement<"u"?yy({key:"css"}):null);ep.Provider;var Cs=function(t){return d.forwardRef(function(r,n){var o=d.useContext(ep);return t(r,o,n)})},Es=U.createContext({}),Ps={}.hasOwnProperty,Ra="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Iy=function(t,r){var n={};for(var o in r)Ps.call(r,o)&&(n[o]=r[o]);return n[Ra]=t,n},Dy=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return xs(r,n,o),Qf(function(){return Ss(r,n,o)}),null},Ay=Cs(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ra],i=[n],a="";typeof e.className=="string"?a=Xf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ws(i,void 0,U.useContext(Es));a+=t.key+"-"+s.name;var l={};for(var c in e)Ps.call(e,c)&&c!=="css"&&c!==Ra&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),U.createElement(U.Fragment,null,U.createElement(Dy,{cache:t,serialized:s,isStringTag:typeof o=="string"}),U.createElement(o,l))}),Ny=Ay,fc=function(t,r){var n=arguments;if(r==null||!Ps.call(r,"css"))return U.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Ny,i[1]=Iy(t,r);for(var a=2;a<o;a++)i[a]=n[a];return U.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(fc||(fc={}));var pc=Cs(function(e,t){var r=e.styles,n=ws([r],void 0,U.useContext(Es)),o=U.useRef();return dc(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),dc(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&Ss(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Ly(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Nt(...e){return t=>{e.forEach(r=>{Ly(r,t)})}}function Jr(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function zy(e){return e.default||e}const Ne=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Fy=e=>/^var\(--.+\)$/.test(e),mt=e=>typeof e=="string",$s=e=>typeof e=="function";function My(e){var r;const t=U.version;return!mt(t)||t.startsWith("18.")?e==null?void 0:e.ref:(r=e==null?void 0:e.props)==null?void 0:r.ref}const[_y,Bn]=wn({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Vy(e){const{value:t,children:r}=e;return k.jsxs(_y,{value:t,children:[!t._config.disableLayers&&k.jsx(pc,{styles:t.layers.atRule}),k.jsx(pc,{styles:t._global}),r]})}const By=(e,t)=>{const r={},n={},o=Object.keys(e);for(const i of o)t(i)?n[i]=e[i]:r[i]=e[i];return[n,r]},Hr=(e,t)=>{const r=$s(t)?t:n=>t.includes(n);return By(e,r)},Wy=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ky(e){return typeof e=="string"&&Wy.has(e)}function Hy(e,t,r){const{css:n,isValidProperty:o}=Bn(),{children:i,...a}=e,s=d.useMemo(()=>{const[f,p]=Hr(a,x=>r(x,t.variantKeys)),[h,m]=Hr(p,t.variantKeys),[b,y]=Hr(m,o);return{forwardedProps:f,variantProps:h,styleProps:b,elementProps:y}},[t.variantKeys,r,a,o]),{css:l,...c}=s.styleProps,u=d.useMemo(()=>{const f={...s.variantProps};return t.variantKeys.includes("colorPalette")||(f.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(f.orientation=a.orientation),t(f)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:d.useMemo(()=>n(u,...jy(l),c),[n,u,l,c]),props:{...s.forwardedProps,...s.elementProps,children:i}}}const jy=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),Uy=zy(Bf),Gy=Uy,qy=e=>e!=="theme",Yy=(e,t,r)=>{let n;if(t){const o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n};let Xy=typeof document<"u";const gc=({cache:e,serialized:t,isStringTag:r})=>{xs(e,t,r);const n=Qf(()=>Ss(e,t,r));if(!Xy&&n!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=et(o,i.name),i=i.next;return k.jsx("style",{"data-emotion":et(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},Zy=(e,t={},r={})=>{if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
16
- You may have forgotten to import it.`);const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,a;r!==void 0&&(i=r.label,a=r.target);let s=[];const l=Cs((c,u,g)=>{var O;const{cva:f,isValidProperty:p}=Bn(),h=t.__cva__?t:f(t),m=Qy(e.__emotion_cva,h),b=A=>(z,F)=>A.includes(z)?!0:!(F!=null&&F.includes(z))&&!p(z);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=b(r.forwardProps));const y=(A,z)=>{const F=typeof e=="string"&&e.charCodeAt(0)>96?Gy:qy,R=!(z!=null&&z.includes(A))&&!p(A);return F(A)&&R},x=Yy(e,r,n)||y,S=U.useMemo(()=>Object.assign({},r.defaultProps,Jr(c)),[c]),{props:$,styles:w}=Hy(S,m,x);let C="",D=[w],v=$;if($.theme==null){v={};for(let A in $)v[A]=$[A];v.theme=U.useContext(Es)}typeof $.className=="string"?C=Xf(u.registered,D,$.className):$.className!=null&&(C=et(C,$.className));const P=ws(s.concat(D),u.registered,v);C=et(C,`${u.key}-${P.name}`),a!==void 0&&(C=et(C,a));const T=!x("as");let I=T&&$.as||o,L={};for(let A in $)if(!(T&&A==="as")){if(Ky(A)){const z=A.replace("html","").toLowerCase();L[z]=$[A];continue}x(A)&&(L[A]=$[A])}L.className=C.trim(),L.ref=g;const E=r.forwardAsChild||((O=r.forwardProps)==null?void 0:O.includes("asChild"));if($.asChild&&!E){const A=U.Children.only($.children);I=A.type,L.children=null,Reflect.deleteProperty(L,"asChild"),L=kn(L,A.props),L.ref=Nt(g,My(A))}return L.as&&E?(L.as=void 0,k.jsxs(U.Fragment,{children:[k.jsx(gc,{cache:u,serialized:P,isStringTag:typeof I=="string"}),k.jsx(I,{asChild:!0,...L,children:k.jsx($.as,{children:L.children})})]})):k.jsxs(U.Fragment,{children:[k.jsx(gc,{cache:u,serialized:P,isStringTag:typeof I=="string"}),k.jsx(I,{...L})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=r.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":`.${a}`}}),l},Vi=Zy.bind(),Bi=new Map,Jy=new Proxy(Vi,{apply(e,t,r){return Vi(...r)},get(e,t){return Bi.has(t)||Bi.set(t,Vi(t)),Bi.get(t)}}),Re=Jy,Qy=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t);function tp(e){const{key:t,recipe:r}=e,n=Bn();return d.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}const ex=e=>e.charAt(0).toUpperCase()+e.slice(1);function rt(e){const{key:t,recipe:r}=e,n=ex(t||r.className||"Component"),[o,i]=wn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function a(c){const{unstyled:u,...g}=c,f=tp({key:t,recipe:g.recipe||r}),[p,h]=d.useMemo(()=>f.splitVariantProps(g),[f,g]);return{styles:u?W0:f(p),className:f.className,props:h}}const s=(c,u)=>{const g=Re(c,{},u),f=d.forwardRef((p,h)=>{const m=i(),b=d.useMemo(()=>kn(m,p),[p,m]),{styles:y,className:x,props:S}=a(b);return k.jsx(g,{...S,ref:h,css:[y,b.css],className:et(x,b.className)})});return f.displayName=c.displayName||c.name,f};function l(){return o}return{withContext:s,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:a}}const rp=d.forwardRef(function(t,r){const{templateAreas:n,column:o,row:i,autoFlow:a,autoRows:s,templateRows:l,autoColumns:c,templateColumns:u,inline:g,...f}=t;return k.jsx(Re.div,{...f,ref:r,css:[{display:g?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:c,gridColumn:o,gridRow:i,gridAutoFlow:a,gridAutoRows:s,gridTemplateRows:l,gridTemplateColumns:u},t.css]})});var hc=e=>Math.max(0,Math.min(1,e)),tx=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),np=()=>{},ci=e=>typeof e=="object"&&e!==null,rx=2147483647,nx=1,ox=9,ix=11,Te=e=>ci(e)&&e.nodeType===nx&&typeof e.nodeName=="string",ks=e=>ci(e)&&e.nodeType===ox,ax=e=>ci(e)&&e===e.window,op=e=>Te(e)?e.localName||"":"#document";function sx(e){return["html","body","#document"].includes(op(e))}var lx=e=>ci(e)&&e.nodeType!==void 0,qr=e=>lx(e)&&e.nodeType===ix&&"host"in e,cx=e=>Te(e)&&e.localName==="input",ux=e=>Te(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,dx=/(textarea|select)/;function ip(e){if(e==null||!Te(e))return!1;try{return cx(e)&&e.selectionStart!=null||dx.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Yr(e,t){var n;if(!e||!t||!Te(e)||!Te(t))return!1;const r=(n=t.getRootNode)==null?void 0:n.call(t);if(e===t||e.contains(t))return!0;if(r&&qr(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function nt(e){return ks(e)?e:ax(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function fx(e){return nt(e).documentElement}function Oe(e){var t;return qr(e)?Oe(e.host):ks(e)?e.defaultView??window:Te(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function ap(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function px(e){if(op(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qr(e)&&e.host||fx(e);return qr(t)?t.host:t}var Wi=new WeakMap;function Ts(e){return Wi.has(e)||Wi.set(e,Oe(e).getComputedStyle(e)),Wi.get(e)}var ui=()=>typeof document<"u";function gx(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function hx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var Rs=e=>ui()&&e.test(gx()),sp=e=>ui()&&e.test(hx()),mx=e=>ui()&&e.test(navigator.vendor),mc=()=>ui()&&!!navigator.maxTouchPoints,vx=()=>Rs(/^iPhone/i),bx=()=>Rs(/^iPad/i)||fi()&&navigator.maxTouchPoints>1,di=()=>vx()||bx(),yx=()=>fi()||di(),fi=()=>Rs(/^Mac/i),lp=()=>yx()&&mx(/apple/i),xx=()=>sp(/Firefox/i),Sx=()=>sp(/Android/i);function wx(e){var t,r,n;return((t=e.composedPath)==null?void 0:t.call(e))??((n=(r=e.nativeEvent)==null?void 0:r.composedPath)==null?void 0:n.call(r))}function Je(e){const t=wx(e);return(t==null?void 0:t[0])??e.target}function Cx(e){return kx(e).isComposing||e.keyCode===229}function Ex(e){return e.mozInputSource===0&&e.isTrusted?!0:Sx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Px=e=>e.button===2||fi()&&e.ctrlKey&&e.button===0,$x=e=>"touches"in e&&e.touches.length>0;function kx(e){return e.nativeEvent??e}function Tx(e,t="client"){const r=$x(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var fe=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,r,n),()=>{o==null||o.removeEventListener(t,r,n)}};function Rx(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=Oe(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function Ox(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function pi(e,t,r="value"){var o;if(!e)return;const n=Ox(e);n&&((o=Rx(e,{type:n,property:r}).set)==null||o.call(e,t)),e.setAttribute(r,t)}function Ix(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=Oe(e);e instanceof o.HTMLInputElement&&(pi(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function Dx(e){return Ax(e)?e.form:e.closest("form")}function Ax(e){return e.matches("textarea, input, select, button")}function Nx(e,t){if(!e)return;const r=Dx(e),n=o=>{o.defaultPrevented||t()};return r==null||r.addEventListener("reset",n,{passive:!0}),()=>r==null?void 0:r.removeEventListener("reset",n)}function Lx(e,t){const r=e==null?void 0:e.closest("fieldset");if(!r)return;t(r.disabled);const n=Oe(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Os(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[Nx(e,n),Lx(e,r)];return()=>o.forEach(i=>i==null?void 0:i())}var cp=e=>Te(e)&&e.tagName==="IFRAME",zx=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),Fx=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Is="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",up=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(Is));(t==!0||t=="if-empty"&&r.length===0)&&Te(e)&&Ht(e)&&r.unshift(e);const o=r.filter(Ht);return o.forEach((i,a)=>{if(cp(i)&&i.contentDocument){const s=i.contentDocument.body;o.splice(a,1,...up(s))}}),o};function Ht(e){return!e||e.closest("[inert]")?!1:e.matches(Is)&&ux(e)}function Ds(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(Is)).filter(ur);return n.forEach((o,i)=>{if(cp(o)&&o.contentDocument){const a=o.contentDocument.body,s=Ds(a);n.splice(i,1,...s)}}),n.length,n}function ur(e){return e!=null&&e.tabIndex>0?!0:Ht(e)&&!Fx(e)}function an(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||ip(e))&&!zx(e)?0:e.tabIndex}function As(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof r=="function"?r():r),i||(i=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const a=Ds(t);i=n?a.filter(n)[0]:a[0]}return i||t||void 0}function dp(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function ie(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t==null||t()}}function Mx(e,t,r){const n=ie(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function _x(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(a=>{for(const s of a)s.type==="attributes"&&s.attributeName&&r.includes(s.attributeName)&&n(s)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function Ns(e,t){const{defer:r}=t,n=r?ie:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(_x(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Vx(e){const t=()=>e.click();xx()?Mx(e,"keyup",t):queueMicrotask(t)}function Mo(e){const t=px(e);return sx(t)?nt(t).body:Te(t)&&Ls(t)?t:Mo(t)}function fp(e,t=[]){const r=Mo(e),n=r===e.ownerDocument.body,o=Oe(r);return n?t.concat(o,o.visualViewport||[],Ls(r)?r:[]):t.concat(r,fp(r,[]))}var Bx=/auto|scroll|overlay|hidden|clip/;function Ls(e){const t=Oe(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return Bx.test(r+o+n)&&!["inline","contents"].includes(i)}function Wx(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function pp(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Ls(r)||!Wx(r)||e.scrollIntoView(n)}function gp(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),a={x:e.x-r,y:e.y-n},s={x:hc(a.x/o),y:hc(a.y/i)};function l(c={}){const{dir:u="ltr",orientation:g="horizontal",inverted:f}=c,p=typeof f=="object"?f.x:f,h=typeof f=="object"?f.y:f;return g==="horizontal"?u==="rtl"||p?1-s.x:s.x:h?1-s.y:s.y}return{offset:a,percent:s,getPercentValue:l}}function Kx(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function a(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const s=[fe(e,"pointerlockchange",i,!1),fe(e,"pointerlockerror",a,!1)];return()=>{s.forEach(l=>l()),e.exitPointerLock()}}var Mr="default",Oa="",$o=new WeakMap;function Hx(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return di()?(Mr==="default"&&(Oa=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Mr="disabled"):t&&($o.set(t,t.style.userSelect),t.style.userSelect="none"),()=>jx({target:t,doc:n})}function jx(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(di()){if(Mr!=="disabled")return;Mr="restoring",setTimeout(()=>{dp(()=>{Mr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Oa||""),Oa="",Mr="default")})},300)}else if(t&&$o.has(t)){const i=$o.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),$o.delete(t)}}function hp(e={}){const{defer:t,target:r,...n}=e,o=t?ie:a=>a(),i=[];return i.push(o(()=>{const a=typeof r=="function"?r():r;i.push(Hx({...n,target:a}))})),()=>{i.forEach(a=>a==null?void 0:a())}}function Ux(e,t){const{onPointerMove:r,onPointerUp:n}=t,i=[fe(e,"pointermove",a=>{const s=Tx(a),l=Math.sqrt(s.x**2+s.y**2),c=a.pointerType==="touch"?10:5;if(!(l<c)){if(a.pointerType==="mouse"&&a.button===0){n();return}r({point:s,event:a})}},!1),fe(e,"pointerup",n,!1),fe(e,"pointercancel",n,!1),fe(e,"contextmenu",n,!1),hp({doc:e})];return()=>{i.forEach(a=>a())}}function _o(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}var zs=e=>e.id;function Gx(e,t,r=zs){return e.find(n=>r(n)===t)}function Fs(e,t,r=zs){const n=Gx(e,t,r);return n?e.indexOf(n):-1}function qx(e,t,r=!0){let n=Fs(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function Yx(e,t,r=!0){let n=Fs(e,t);return n===-1?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}var Xx=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),Zx=e=>{var t;return Xx(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},Jx=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Qx(e,t,r,n=zs){const o=r?Fs(e,r,n):-1;let i=r?tx(e,o):e;return t.length===1&&(i=i.filter(s=>n(s)!==r)),i.find(s=>Jx(Zx(s),t))}function Vo(e,t){if(!e)return np;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function e1(e,t,r){if(!e)return np;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function t1(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:a}=t,s=r.keysSoFar+o,c=s.length>1&&Array.from(s).every(h=>h===s[0])?s[0]:s;let u=e.slice();const g=Qx(u,c,n,a);function f(){clearTimeout(r.timer),r.timer=-1}function p(h){r.keysSoFar=h,f(),h!==""&&(r.timer=+setTimeout(()=>{p(""),f()},i))}return p(s),g}var Ms=Object.assign(t1,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:r1});function r1(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var n1=1e3/60;function o1(e,t){const r=e();if(Te(r)&&r.isConnected)return t(r),()=>{};{const n=setInterval(()=>{const o=e();Te(o)&&o.isConnected&&(t(o),clearInterval(n))},n1);return()=>clearInterval(n)}}function i1(e,t){const r=[];return e==null||e.forEach(n=>{const o=o1(n,t);r.push(o)}),()=>{r.forEach(n=>n())}}function a1(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=d.createContext(a);s.displayName=t;function l(){var u;const c=d.useContext(s);if(!c&&r){const g=new Error(i??a1(n,o));throw g.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,g,l),g}return c}return[s.Provider,l,s]}const[SD,s1]=Wn({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function _s(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function l1(e){return e?Array.isArray(e)?e:[e]:[]}var mp=e=>e[0],vp=e=>e[e.length-1],c1=(e,t)=>e.indexOf(t)!==-1,bp=(e,...t)=>e.concat(t),yp=(e,...t)=>e.filter(r=>!t.includes(r)),vc=(e,t)=>c1(e,t)?yp(e,t):bp(e,t);function xp(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,a=e.length,s=a-1;return t===-1?n>0?0:s:i<0?o?s:0:i>=a?o?0:t>a?a:t:i}function u1(e,t,r={}){return e[xp(e,t,r)]}function d1(e,t,r={}){const{step:n=1,loop:o=!0}=r;return xp(e,t,{step:-n,loop:o})}function f1(e,t,r={}){return e[d1(e,t,r)]}var bc=e=>(e==null?void 0:e.constructor.name)==="Array",p1=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Kn(e[r],t[r]))return!1;return!0},Kn=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(bc(e)&&bc(t))return p1(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const i=r[o];if(!Kn(e[i],t[i]))return!1}return!0},g1=e=>Array.isArray(e),h1=e=>e!=null&&typeof e=="object",Ki=e=>h1(e)&&!g1(e),ko=e=>typeof e=="string",_r=e=>typeof e=="function",m1=e=>e==null,Hi=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),v1=Function.prototype.toString;v1.call(Object);var b1=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,y1=e=>e(),x1=()=>{},Bo=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},Sp=(e,t)=>{var r;try{return e()}catch(n){return n instanceof Error&&((r=Error.captureStackTrace)==null||r.call(Error,n,Sp)),t==null?void 0:t()}},{floor:Ia,abs:yc,round:gi,min:S1,max:w1,pow:C1,sign:E1}=Math,mn=e=>Number.isNaN(e),Rt=e=>mn(e)?0:e,wp=(e,t)=>(e%t+t)%t,P1=(e,t)=>(e%t+t)%t,$1=(e,t)=>Rt(e)>=t,k1=(e,t)=>Rt(e)<=t,T1=(e,t,r)=>Rt(e)>=t&&Rt(e)<=r,R1=(e,t,r)=>gi((Rt(e)-t)/r)*r+t,ze=(e,t,r)=>S1(w1(Rt(e),t),r),O1=(e,t,r)=>(Rt(e)-t)/(r-t),I1=(e,t,r,n)=>ze(R1(e*(r-t)+t,t,n),t,r),ro=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let a=C1(10,i);r=gi(r*a)/a}return r},ji=(e,t)=>typeof t=="number"?Ia(e*t+.5)/t:gi(e),xc=(e,t,r,n)=>{t=Number(t),r=Number(r);let o=(e-(mn(t)?0:t))%n,i=ro(yc(o)*2>=n?e+E1(o)*(n-yc(o)):e-o,n);return mn(t)?!mn(r)&&i>r&&(i=t+Ia(ro((r-t)/n,n))*n):i<t?i=t:!mn(r)&&i>r&&(i=t+Ia(ro((r-t)/n,n))*n),ro(i,n)},le=(e,t=0,r=10)=>{const n=Math.pow(r,t);return gi(e*n)/n},Sc=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},Cp=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(Sc(e),Sc(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},D1=(e,t)=>Cp(Rt(e),"+",t),A1=(e,t)=>Cp(Rt(e),"-",t);function Vs(e){if(!N1(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Vs(o))}return r}var N1=e=>e&&typeof e=="object"&&e.constructor===Object;function Wo(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function L1(e,t){if(e==null)throw new Error(t())}var z1=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),F1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,wc=e=>{const t={};let r;for(;r=F1.exec(e);)t[r[1]]=r[2];return t},M1=(e,t)=>{if(ko(e)){if(ko(t))return`${e};${t}`;e=wc(e)}else ko(t)&&(t=wc(t));return Object.assign({},e??{},t??{})};function bt(...e){let t={};for(let r of e){for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=Bo(r[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=z1(t[n],r[n]);continue}if(n==="style"){t[n]=M1(t[n],r[n]);continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}function Cc(e,t,r){let n=[],o;return i=>{const a=e(i);return(a.length!==n.length||a.some((l,c)=>!Kn(n[c],l)))&&(n=a,o=t(...a)),o}}function xr(){return{and:(...e)=>function(r){return e.every(n=>r.guard(n))},or:(...e)=>function(r){return e.some(n=>r.guard(n))},not:e=>function(r){return!r.guard(e)}}}function _1(){return{guards:xr(),createMachine:e=>e,choose:e=>function({choose:r}){var n;return(n=r(e))==null?void 0:n.actions}}}var Nr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Nr||{}),Ui="__init__";function V1(e){const t=()=>{var s;return((s=e.getRootNode)==null?void 0:s.call(e))??document},r=()=>nt(t()),n=()=>r().defaultView??window,o=()=>ap(t());return{...e,getRootNode:t,getDoc:r,getWin:n,getActiveElement:o,isActiveElement:s=>s===o(),getById:s=>t().getElementById(s)}}function B1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Gi=e=>{const t=d.memo(d.forwardRef((r,n)=>{const{asChild:o,children:i,...a}=r;if(!o)return d.createElement(e,{...a,ref:n},i);const s=d.Children.only(i);if(!d.isValidElement(s))return null;const l=B1(s);return d.cloneElement(s,{...bt(a,s.props),ref:n?_s(n,l):l})}));return t.displayName=e.displayName||e.name,t},W1=()=>{const e=new Map;return new Proxy(Gi,{apply(t,r,n){return Gi(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Gi(n)),e.get(n)}})},Sr=W1(),Ep=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,a=n;return i[a]!==void 0&&(o[a]=i[a]),delete i[a],[o,i]},[{},{...e}]),Pp=e=>Ep()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function K1(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var G=()=>e=>Array.from(new Set(e));function H1(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(a){a&&n({type:"NODE.SET",node:a})},unmount(){n({type:"UNMOUNT"})}}}var j1={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",Ts(t.node))},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&(i==null?void 0:i.ownerDocument.visibilityState)==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});ie(()=>{var s,l;const a=no(t.get("styles"));e.set("unmountAnimationName",a),a==="none"||a===e.get("prevAnimationName")||((s=t.get("styles"))==null?void 0:s.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ie(()=>{e.set("prevAnimationName",no(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=s=>{var c,u;(((u=(c=s.composedPath)==null?void 0:c.call(s))==null?void 0:u[0])??s.target)===n&&e.set("prevAnimationName",no(t.get("styles")))},i=s=>{const l=no(t.get("styles"));Je(s)===n&&l===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i);const a=Vo(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i),dp(()=>a())}}}}};function no(e){return(e==null?void 0:e.animationName)||"none"}G()(["onExitComplete","present","immediate"]);var $p=typeof globalThis.document<"u"?d.useLayoutEffect:d.useEffect;function Ko(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=d.useState(t),[o,i]=d.useState(n),a=e().value!==void 0,s=d.useRef(o);s.current=a?e().value:o;const l=d.useRef(s.current);$p(()=>{l.current=s.current},[o,e().value]);const c=g=>{var h,m;const f=l.current,p=_r(g)?g(f):g;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:f}),a||i(p),r(p,f)||(m=(h=e()).onChange)==null||m.call(h,p,f)};function u(){return a?e().value:o}return{initial:n,ref:s,get:u,set(g){(e().sync?ct.flushSync:y1)(()=>c(g))},invoke(g,f){var p,h;(h=(p=e()).onChange)==null||h.call(p,g,f)},hash(g){var f,p;return((p=(f=e()).hash)==null?void 0:p.call(f,g))??String(g)}}}Ko.cleanup=e=>{d.useEffect(()=>e,[])};Ko.ref=e=>{const t=d.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function U1(e){const t=d.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var G1=(e,t)=>{const r=d.useRef(!1),n=d.useRef(!1);d.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),d.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function kp(e,t={}){var I,L,E,O;const r=d.useMemo(()=>{const{id:A,ids:z,getRootNode:F}=t;return V1({id:A,ids:z,getRootNode:F})},[t]),n=(...A)=>{e.debug&&console.log(...A)},o=((I=e.props)==null?void 0:I.call(e,{props:Vs(t),scope:r}))??t,i=q1(o),a=(L=e.context)==null?void 0:L.call(e,{prop:i,bindable:Ko,scope:r,flush:Ec,getContext(){return l},getComputed(){return w},getRefs(){return m}}),s=Tp(a),l={get(A){var z;return(z=s.current)==null?void 0:z[A].ref.current},set(A,z){var F;(F=s.current)==null||F[A].set(z)},initial(A){var z;return(z=s.current)==null?void 0:z[A].initial},hash(A){var F,R;const z=(F=s.current)==null?void 0:F[A].get();return(R=s.current)==null?void 0:R[A].hash(z)}},c=d.useRef(new Map),u=d.useRef(null),g=d.useRef(null),f=d.useRef({type:""}),p=()=>({...f.current,current(){return f.current},previous(){return g.current}}),h=()=>({...C,matches(...A){return A.includes(C.ref.current)},hasTag(A){var z,F;return!!((F=(z=e.states[C.ref.current])==null?void 0:z.tags)!=null&&F.includes(A))}}),m=U1(((E=e.refs)==null?void 0:E.call(e,{prop:i,context:l}))??{}),b=()=>({state:h(),context:l,event:p(),prop:i,send:T,action:y,guard:x,track:G1,refs:m,computed:w,flush:Ec,scope:r,choose:$}),y=A=>{const z=_r(A)?A(b()):A;if(!z)return;const F=z.map(R=>{var B,Z;const _=(Z=(B=e.implementations)==null?void 0:B.actions)==null?void 0:Z[R];return _||Wo(`[zag-js] No implementation found for action "${JSON.stringify(R)}"`),_});for(const R of F)R==null||R(b())},x=A=>{var z,F;return _r(A)?A(b()):(F=(z=e.implementations)==null?void 0:z.guards)==null?void 0:F[A](b())},S=A=>{const z=_r(A)?A(b()):A;if(!z)return;const F=z.map(_=>{var Z,ne;const B=(ne=(Z=e.implementations)==null?void 0:Z.effects)==null?void 0:ne[_];return B||Wo(`[zag-js] No implementation found for effect "${JSON.stringify(_)}"`),B}),R=[];for(const _ of F){const B=_==null?void 0:_(b());B&&R.push(B)}return()=>R.forEach(_=>_==null?void 0:_())},$=A=>l1(A).find(z=>{let F=!z.guard;return ko(z.guard)?F=!!x(z.guard):_r(z.guard)&&(F=z.guard(b())),F}),w=A=>{L1(e.computed,()=>"[zag-js] No computed object found on machine");const z=e.computed[A];return z({context:l,event:p(),prop:i,refs:m,scope:r,computed:w})},C=Ko(()=>({defaultValue:e.initialState({prop:i}),onChange(A,z){var R,_,B,Z;if(z){const ne=c.current.get(z);ne==null||ne(),c.current.delete(z)}z&&y((R=e.states[z])==null?void 0:R.exit),y((_=u.current)==null?void 0:_.actions);const F=S((B=e.states[A])==null?void 0:B.effects);if(F&&c.current.set(A,F),z===Ui){y(e.entry);const ne=S(e.effects);ne&&c.current.set(Ui,ne)}y((Z=e.states[A])==null?void 0:Z.entry)}})),D=d.useRef(void 0),v=d.useRef(Nr.NotStarted);$p(()=>{queueMicrotask(()=>{const F=v.current===Nr.Started;v.current=Nr.Started,n(F?"rehydrating...":"initializing...");const R=D.current??C.initial;C.invoke(R,F?C.get():Ui)});const A=c.current,z=C.ref.current;return()=>{n("unmounting..."),D.current=z,v.current=Nr.Stopped,A.forEach(F=>F==null?void 0:F()),c.current=new Map,u.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const P=()=>"ref"in C?C.ref.current:C.get(),T=A=>{queueMicrotask(()=>{var Z,ne;if(v.current!==Nr.Started)return;g.current=f.current,f.current=A,n("send",A);let z=P();const F=((Z=e.states[z].on)==null?void 0:Z[A.type])??((ne=e.on)==null?void 0:ne[A.type]),R=$(F);if(!R)return;u.current=R;const _=R.target??z;n("transition",R);const B=_!==z;B?ct.flushSync(()=>C.set(_)):R.reenter&&!B?C.invoke(z,z):y(R.actions??[])})};return(O=e.watch)==null||O.call(e,b()),{state:h(),send:T,context:l,prop:i,scope:r,refs:m,computed:w,event:p(),getStatus:()=>v.current}}function Tp(e){const t=d.useRef(e);return t.current=e,t}function q1(e){const t=Tp(e);return function(n){return t.current[n]}}function Ec(e){queueMicrotask(()=>{ct.flushSync(()=>e())})}var Y1=K1(e=>e);function X1(e,t={}){const{sync:r=!1}=t,n=Z1(e);return d.useCallback((...o)=>{var i;return r?queueMicrotask(()=>{var a;return(a=n.current)==null?void 0:a.call(n,...o)}):(i=n.current)==null?void 0:i.call(n,...o)},[r,n])}function Z1(e){const t=d.useRef(e);return t.current=e,t}const Bs=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,a=d.useRef(!1),s={...i,present:n,onExitComplete:X1(e.onExitComplete)},l=kp(j1,s),c=H1(l);c.present&&(a.current=!0);const u=!c.present&&!a.current&&t||r&&!c.present&&a.current,g=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:g,present:c.present,unmounted:u}},[Rp,Ws]=Wn({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var j=(e,t=[])=>({parts:(...r)=>{if(J1(t))return j(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>j(e,[...t,...r]),rename:r=>j(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Rr(e)}"][data-part="${Rr(n)}"]`,`& [data-scope="${Rr(e)}"][data-part="${Rr(n)}"]`].join(", "),attrs:{"data-scope":Rr(e),"data-part":Rr(n)}}}),{})}),Rr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),J1=e=>e.length===0,Op=j("collapsible").parts("root","trigger","content","indicator");Op.build();G()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);const[wD,Ip]=Wn({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var Q1=Object.defineProperty,eS=(e,t,r)=>t in e?Q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ks=(e,t,r)=>eS(e,t+"",r),tS=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},Hs=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const r=t??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return O1(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=I1(t,r,n,o);return xc(i,r,n,o)}withChannelValue(e,t){const{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=ze(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(a=>a!==r),o=r||this.getChannels().find(a=>a!==n),i=this.getChannels().find(a=>a!==n&&a!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=xc(ze(this.getChannelValue(e)+t,r,n),r,n,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return tS(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Dp=class To extends Hs{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(/[^#]/gi,"$&$&"):t).slice(1).split("");for(;o.length>0;)r.push(parseInt(o.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const n=t.match(/^rgba?\((.*)\)$/);return n!=null&&n[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>ze(o,0,i<3?255:1))),r.length<3?void 0:new To(r[0],r[1],r[2],r[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o,s=i===0?0:a/i;let l=0;if(a!==0){switch(i){case t:l=(r-n)/a+(r<n?6:0);break;case r:l=(n-t)/a+2;break;case n:l=(t-r)/a+4;break}l/=6}return new Gs(le(l*360,2),le(s*100,2),le(i*100,2),le(this.alpha,2))}toHSL(){const t=this.red/255,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=(i+o)/2,s=i-o;let l=-1,c=-1;if(s===0)l=c=0;else{switch(c=s/(a<.5?i+o:2-i-o),i){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return new Us(le(l*360,2),le(c*100,2),le(a*100,2),le(this.alpha,2))}clone(){return new To(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return To.colorChannels}};Ks(Dp,"colorChannels",["red","green","blue"]);var js=Dp,rS=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Ap=class Ro extends Hs{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.lightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(rS)){const[n,o,i,a]=(r[1]??r[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new Ro(wp(n,360),ze(o,0,100),ze(i,0,100),ze(a??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${le(this.saturation,2)}%, ${le(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${le(this.saturation,2)}%, ${le(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,r=this.lightness/100,n=r+t*Math.min(r,1-r);return t=n===0?0:2*(1-r/n),new Gs(le(this.hue,2),le(t*100,2),le(n*100,2),le(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(a,s=(a+t/30)%12)=>n-o*Math.max(Math.min(s-3,9-s,1),-1);return new js(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),le(this.alpha,2))}clone(){return new Ro(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ro.colorChannels}};Ks(Ap,"colorChannels",["hue","saturation","lightness"]);var Us=Ap,nS=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Np=class Oo extends Hs{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.brightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(nS)){const[n,o,i,a]=(r[1]??r[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new Oo(wp(n,360),ze(o,0,100),ze(i,0,100),ze(a??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${le(this.saturation,2)}%, ${le(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${le(this.saturation,2)}%, ${le(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,r=this.brightness/100,n=r*(1-t/2);return t=n===0||n===1?0:(r-n)/Math.min(n,1-n),new Us(le(this.hue,2),le(t*100,2),le(n*100,2),le(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,a=(i+t/60)%6)=>n-r*n*Math.max(Math.min(a,4-a,1),0);return new js(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),le(this.alpha,2))}clone(){return new Oo(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Oo.colorChannels}};Ks(Np,"colorChannels",["hue","saturation","brightness"]);var Gs=Np,oS="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",iS=e=>{const t=new Map,r=e.split(",");for(let n=0;n<r.length;n++){const[o,i]=r[n].split(":");t.set(o,`#${i}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${i}`)}return t},Pc=iS(oS),Ho=e=>{var r;if(Pc.has(e))return Ho(Pc.get(e));const t=js.parse(e)||Gs.parse(e)||Us.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw(r=Error.captureStackTrace)==null||r.call(Error,n,Ho),n}return t};const aS=["top","right","bottom","left"],jt=Math.min,Ve=Math.max,jo=Math.round,oo=Math.floor,ht=e=>({x:e,y:e}),sS={left:"right",right:"left",bottom:"top",top:"bottom"},lS={start:"end",end:"start"};function Da(e,t,r){return Ve(e,jt(t,r))}function Ot(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function Qr(e){return e.split("-")[1]}function qs(e){return e==="x"?"y":"x"}function Ys(e){return e==="y"?"height":"width"}function Ut(e){return["top","bottom"].includes(It(e))?"y":"x"}function Xs(e){return qs(Ut(e))}function cS(e,t,r){r===void 0&&(r=!1);const n=Qr(e),o=Xs(e),i=Ys(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Uo(a)),[a,Uo(a)]}function uS(e){const t=Uo(e);return[Aa(e),t,Aa(t)]}function Aa(e){return e.replace(/start|end/g,t=>lS[t])}function dS(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function fS(e,t,r,n){const o=Qr(e);let i=dS(It(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Aa)))),i}function Uo(e){return e.replace(/left|right|bottom|top/g,t=>sS[t])}function pS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lp(e){return typeof e!="number"?pS(e):{top:e,right:e,bottom:e,left:e}}function Go(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function $c(e,t,r){let{reference:n,floating:o}=e;const i=Ut(t),a=Xs(t),s=Ys(a),l=It(t),c=i==="y",u=n.x+n.width/2-o.width/2,g=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:g};break;case"left":p={x:n.x-o.width,y:g};break;default:p={x:n.x,y:n.y}}switch(Qr(t)){case"start":p[a]-=f*(r&&c?-1:1);break;case"end":p[a]+=f*(r&&c?-1:1);break}return p}const gS=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:g}=$c(c,n,l),f=n,p={},h=0;for(let m=0;m<s.length;m++){const{name:b,fn:y}=s[m],{x,y:S,data:$,reset:w}=await y({x:u,y:g,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,g=S??g,p={...p,[b]:{...p[b],...$}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:g}=$c(c,f,l)),m=-1)}return{x:u,y:g,placement:f,strategy:o,middlewareData:p}};async function In(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:f=!1,padding:p=0}=Ot(t,e),h=Lp(p),b=s[f?g==="floating"?"reference":"floating":g],y=Go(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=g==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),$=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Go(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:l}):x);return{top:(y.top-w.top+h.top)/$.y,bottom:(w.bottom-y.bottom+h.bottom)/$.y,left:(y.left-w.left+h.left)/$.x,right:(w.right-y.right+h.right)/$.x}}const hS=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ot(e,t)||{};if(c==null)return{};const g=Lp(u),f={x:r,y:n},p=Xs(o),h=Ys(p),m=await a.getDimensions(c),b=p==="y",y=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",$=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=C?C[S]:0;(!D||!await(a.isElement==null?void 0:a.isElement(C)))&&(D=s.floating[S]||i.floating[h]);const v=$/2-w/2,P=D/2-m[h]/2-1,T=jt(g[y],P),I=jt(g[x],P),L=T,E=D-m[h]-I,O=D/2-m[h]/2+v,A=Da(L,O,E),z=!l.arrow&&Qr(o)!=null&&O!==A&&i.reference[h]/2-(O<L?T:I)-m[h]/2<0,F=z?O<L?O-L:O-E:0;return{[p]:f[p]+F,data:{[p]:A,centerOffset:O-A-F,...z&&{alignmentOffset:F}},reset:z}}}),mS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...b}=Ot(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=It(o),x=Ut(s),S=It(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(S||!m?[Uo(s)]:uS(s)),C=h!=="none";!f&&C&&w.push(...fS(s,m,h,$));const D=[s,...w],v=await In(t,b),P=[];let T=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&P.push(v[y]),g){const O=cS(o,a,$);P.push(v[O[0]],v[O[1]])}if(T=[...T,{placement:o,overflows:P}],!P.every(O=>O<=0)){var I,L;const O=(((I=i.flip)==null?void 0:I.index)||0)+1,A=D[O];if(A)return{data:{index:O,overflows:T},reset:{placement:A}};let z=(L=T.filter(F=>F.overflows[0]<=0).sort((F,R)=>F.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(p){case"bestFit":{var E;const F=(E=T.filter(R=>{if(C){const _=Ut(R.placement);return _===x||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:E[0];F&&(z=F);break}case"initialPlacement":z=s;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function kc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tc(e){return aS.some(t=>e[t]>=0)}const vS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ot(e,t);switch(n){case"referenceHidden":{const i=await In(t,{...o,elementContext:"reference"}),a=kc(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Tc(a)}}}case"escaped":{const i=await In(t,{...o,altBoundary:!0}),a=kc(i,r.floating);return{data:{escapedOffsets:a,escaped:Tc(a)}}}default:return{}}}}};async function bS(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=It(r),s=Qr(r),l=Ut(r)==="y",c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,g=Ot(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const yS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await bS(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},xS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Ot(e,t),c={x:r,y:n},u=await In(t,l),g=Ut(It(o)),f=qs(g);let p=c[f],h=c[g];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=p+u[b],S=p-u[y];p=Da(x,p,S)}if(a){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=h+u[b],S=h-u[y];h=Da(x,h,S)}const m=s.fn({...t,[f]:p,[g]:h});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:i,[g]:a}}}}}},SS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ot(e,t),u={x:r,y:n},g=Ut(o),f=qs(g);let p=u[f],h=u[g];const m=Ot(s,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",$=i.reference[f]-i.floating[S]+b.mainAxis,w=i.reference[f]+i.reference[S]-b.mainAxis;p<$?p=$:p>w&&(p=w)}if(c){var y,x;const S=f==="y"?"width":"height",$=["top","left"].includes(It(o)),w=i.reference[g]-i.floating[S]+($&&((y=a.offset)==null?void 0:y[g])||0)+($?0:b.crossAxis),C=i.reference[g]+i.reference[S]+($?0:((x=a.offset)==null?void 0:x[g])||0)-($?b.crossAxis:0);h<w?h=w:h>C&&(h=C)}return{[f]:p,[g]:h}}}},wS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Ot(e,t),u=await In(t,c),g=It(o),f=Qr(o),p=Ut(o)==="y",{width:h,height:m}=i.floating;let b,y;g==="top"||g==="bottom"?(b=g,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=g,b=f==="end"?"top":"bottom");const x=m-u.top-u.bottom,S=h-u.left-u.right,$=jt(m-u[b],x),w=jt(h-u[y],S),C=!t.middlewareData.shift;let D=$,v=w;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(v=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(D=x),C&&!f){const T=Ve(u.left,0),I=Ve(u.right,0),L=Ve(u.top,0),E=Ve(u.bottom,0);p?v=h-2*(T!==0||I!==0?T+I:Ve(u.left,u.right)):D=m-2*(L!==0||E!==0?L+E:Ve(u.top,u.bottom))}await l({...t,availableWidth:v,availableHeight:D});const P=await a.getDimensions(s.floating);return h!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function hi(){return typeof window<"u"}function en(e){return zp(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yt(e){var t;return(t=(zp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zp(e){return hi()?e instanceof Node||e instanceof He(e).Node:!1}function st(e){return hi()?e instanceof Element||e instanceof He(e).Element:!1}function vt(e){return hi()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function Rc(e){return!hi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function Hn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function CS(e){return["table","td","th"].includes(en(e))}function mi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Zs(e){const t=Js(),r=st(e)?lt(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ES(e){let t=Gt(e);for(;vt(t)&&!Xr(t);){if(Zs(t))return t;if(mi(t))return null;t=Gt(t)}return null}function Js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xr(e){return["html","body","#document"].includes(en(e))}function lt(e){return He(e).getComputedStyle(e)}function vi(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if(en(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rc(e)&&e.host||yt(e);return Rc(t)?t.host:t}function Fp(e){const t=Gt(e);return Xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&Hn(t)?t:Fp(t)}function Dn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Fp(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=He(o);if(i){const s=Na(a);return t.concat(a,a.visualViewport||[],Hn(o)?o:[],s&&r?Dn(s):[])}return t.concat(o,Dn(o,[],r))}function Na(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mp(e){const t=lt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=vt(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=jo(r)!==i||jo(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Qs(e){return st(e)?e:e.contextElement}function jr(e){const t=Qs(e);if(!vt(t))return ht(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Mp(t);let a=(i?jo(r.width):r.width)/n,s=(i?jo(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const PS=ht(0);function _p(e){const t=He(e);return!Js()||!t.visualViewport?PS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $S(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==He(e)?!1:t}function gr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Qs(e);let a=ht(1);t&&(n?st(n)&&(a=jr(n)):a=jr(e));const s=$S(i,r,n)?_p(i):ht(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,g=o.height/a.y;if(i){const f=He(i),p=n&&st(n)?He(n):n;let h=f,m=Na(h);for(;m&&n&&p!==h;){const b=jr(m),y=m.getBoundingClientRect(),x=lt(m),S=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,$=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,g*=b.y,l+=S,c+=$,h=He(m),m=Na(h)}}return Go({width:u,height:g,x:l,y:c})}function el(e,t){const r=vi(e).scrollLeft;return t?t.left+r:gr(yt(e)).left+r}function Vp(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:el(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function kS(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=yt(n),s=t?mi(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ht(1);const u=ht(0),g=vt(n);if((g||!g&&!i)&&((en(n)!=="body"||Hn(a))&&(l=vi(n)),vt(n))){const p=gr(n);c=jr(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const f=a&&!g&&!i?Vp(a,l,!0):ht(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function TS(e){return Array.from(e.getClientRects())}function RS(e){const t=yt(e),r=vi(e),n=e.ownerDocument.body,o=Ve(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ve(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+el(e);const s=-r.scrollTop;return lt(n).direction==="rtl"&&(a+=Ve(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}function OS(e,t){const r=He(e),n=yt(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const c=Js();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function IS(e,t){const r=gr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=vt(e)?jr(e):ht(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function Oc(e,t,r){let n;if(t==="viewport")n=OS(e,r);else if(t==="document")n=RS(yt(e));else if(st(t))n=IS(t,r);else{const o=_p(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Go(n)}function Bp(e,t){const r=Gt(e);return r===t||!st(r)||Xr(r)?!1:lt(r).position==="fixed"||Bp(r,t)}function DS(e,t){const r=t.get(e);if(r)return r;let n=Dn(e,[],!1).filter(s=>st(s)&&en(s)!=="body"),o=null;const i=lt(e).position==="fixed";let a=i?Gt(e):e;for(;st(a)&&!Xr(a);){const s=lt(a),l=Zs(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Hn(a)&&!l&&Bp(e,a))?n=n.filter(u=>u!==a):o=s,a=Gt(a)}return t.set(e,n),n}function AS(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?mi(t)?[]:DS(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const g=Oc(t,u,o);return c.top=Ve(g.top,c.top),c.right=jt(g.right,c.right),c.bottom=jt(g.bottom,c.bottom),c.left=Ve(g.left,c.left),c},Oc(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function NS(e){const{width:t,height:r}=Mp(e);return{width:t,height:r}}function LS(e,t,r){const n=vt(t),o=yt(t),i=r==="fixed",a=gr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ht(0);if(n||!n&&!i)if((en(t)!=="body"||Hn(o))&&(s=vi(t)),n){const f=gr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=el(o));const c=o&&!n&&!i?Vp(o,s):ht(0),u=a.left+s.scrollLeft-l.x-c.x,g=a.top+s.scrollTop-l.y-c.y;return{x:u,y:g,width:a.width,height:a.height}}function qi(e){return lt(e).position==="static"}function Ic(e,t){if(!vt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return yt(e)===r&&(r=r.ownerDocument.body),r}function Wp(e,t){const r=He(e);if(mi(e))return r;if(!vt(e)){let o=Gt(e);for(;o&&!Xr(o);){if(st(o)&&!qi(o))return o;o=Gt(o)}return r}let n=Ic(e,t);for(;n&&CS(n)&&qi(n);)n=Ic(n,t);return n&&Xr(n)&&qi(n)&&!Zs(n)?r:n||ES(e)||r}const zS=async function(e){const t=this.getOffsetParent||Wp,r=this.getDimensions,n=await r(e.floating);return{reference:LS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function FS(e){return lt(e).direction==="rtl"}const MS={convertOffsetParentRelativeRectToViewportRelativeRect:kS,getDocumentElement:yt,getClippingRect:AS,getOffsetParent:Wp,getElementRects:zS,getClientRects:TS,getDimensions:NS,getScale:jr,isElement:st,isRTL:FS};function Kp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _S(e,t){let r=null,n;const o=yt(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:g,width:f,height:p}=c;if(s||t(),!f||!p)return;const h=oo(g),m=oo(o.clientWidth-(u+f)),b=oo(o.clientHeight-(g+p)),y=oo(u),S={rootMargin:-h+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Ve(0,jt(1,l))||1};let $=!0;function w(C){const D=C[0].intersectionRatio;if(D!==l){if(!$)return a();D?a(!1,D):n=setTimeout(()=>{a(!1,1e-7)},1e3)}D===1&&!Kp(c,e.getBoundingClientRect())&&a(),$=!1}try{r=new IntersectionObserver(w,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,S)}r.observe(e)}return a(!0),i}function VS(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Qs(e),u=o||i?[...c?Dn(c):[],...Dn(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const g=c&&s?_S(c,r):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let h,m=l?gr(e):null;l&&b();function b(){const y=gr(e);m&&!Kp(m,y)&&r(),m=y,h=requestAnimationFrame(b)}return r(),()=>{var y;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),g==null||g(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const BS=yS,WS=xS,KS=mS,HS=wS,jS=vS,US=hS,GS=SS,qS=(e,t,r)=>{const n=new Map,o={platform:MS,...r},i={...o.platform,_c:n};return gS(e,t,{...o,platform:i})};function Dc(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function YS(e){if(!e)return Dc();const{x:t,y:r,width:n,height:o}=e;return Dc(t,r,n,o)}function XS(e,t){return{contextElement:Te(e)?e:void 0,getBoundingClientRect:()=>{const r=e,n=t==null?void 0:t(r);return n||!r?YS(n):r.getBoundingClientRect()}}}var Ac=e=>({variable:e,reference:`var(${e})`}),Hp={transformOrigin:Ac("--transform-origin"),arrowOffset:Ac("--arrow-offset")},ZS=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),JS={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:r}){const{arrow:n}=r,o=ZS(n)[e],{floating:i}=t;return i.style.setProperty(Hp.transformOrigin.variable,o),{data:{transformOrigin:o}}}},QS={name:"rects",fn({rects:e}){return{data:e}}},ew=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Hp.arrowOffset.reference})`}),{}}}};function tw(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function rw(e){return e.split("-")[0]}var nw={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Nc(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function jp(e){return b1(e.boundary)}function ow(e,t){if(e)return US({element:e,padding:t.arrowPadding})}function iw(e,t){if(!m1(t.offset??t.gutter))return BS(({placement:r})=>{var c,u;const n=((e==null?void 0:e.clientHeight)||0)/2,o=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:a}=tw(r),s=a?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??s;return Vs({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function aw(e){if(e.flip)return KS({boundary:jp(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function sw(e){if(!(!e.slide&&!e.overlap))return WS({boundary:jp(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:GS()})}function lw(e){return HS({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,a=Math.round(r.reference.width);o=Math.floor(o),n=Math.floor(n),i.style.setProperty("--reference-width",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${n}px`)}})}function cw(e){var t;if(e.hideWhenDetached)return jS({strategy:"referenceHidden",boundary:((t=e.boundary)==null?void 0:t.call(e))??"clippingAncestors"})}function uw(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function dw(e,t,r={}){const n=XS(e,r.getAnchorRect);if(!t||!n)return;const o=Object.assign({},nw,r),i=t.querySelector("[data-part=arrow]"),a=[iw(i,o),aw(o),sw(o),ow(i,o),ew(i),JS,lw(o),cw(o),QS],{placement:s,strategy:l,onComplete:c,onPositioned:u}=o,g=async()=>{var $;if(!n||!t)return;const m=await qS(n,t,{placement:s,middleware:a,strategy:l});c==null||c(m),u==null||u({placed:!0});const b=Oe(t),y=Nc(b,m.x),x=Nc(b,m.y);t.style.setProperty("--x",`${y}px`),t.style.setProperty("--y",`${x}px`),o.hideWhenDetached&&((($=m.middlewareData.hide)==null?void 0:$.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const w=Ts(S);t.style.setProperty("--z-index",w.zIndex)}},f=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:g}),u==null||u({placed:!0})):await g()},p=uw(o.listeners),h=o.listeners?VS(n,t,f,p):x1;return f(),()=>{h==null||h(),u==null||u({placed:!1})}}function Dt(e,t,r={}){const{defer:n,...o}=r,i=n?ie:s=>s(),a=[];return a.push(i(()=>{const s=typeof e=="function"?e():e,l=typeof t=="function"?t():t;a.push(dw(s,l,o))})),()=>{a.forEach(s=>s==null?void 0:s())}}function fw(e){const t={each(r){var n;for(let o=0;o<((n=e.frames)==null?void 0:n.length);o+=1){const i=e.frames[o];i&&r(i)}},addEventListener(r,n,o){return t.each(i=>{try{i.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(i=>{try{i.document.removeEventListener(r,n,o)}catch{}})}};return t}function pw(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t==null||t.addEventListener(r,n,o)}catch{}return()=>{try{t==null||t.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t==null||t.removeEventListener(r,n,o)}catch{}}}}var Lc="pointerdown.outside",zc="focus.outside";function gw(e){for(const t of e)if(Te(t)&&Ht(t))return!0;return!1}var Up=e=>"clientY"in e;function hw(e,t){if(!Up(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function mw(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Fc(e,t){if(!t||!Up(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},s={x:e.clientX,y:e.clientY};return mw(a,s)?n||i:!1}function vw(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:a}=t;if(!e)return;const s=nt(e),l=Oe(e),c=fw(l),u=pw(l);function g(x,S){if(!Te(S)||!S.isConnected||Yr(e,S)||hw(e,x))return!1;const $=s.querySelector(`[aria-controls="${e.id}"]`);if($){const C=Mo($);if(Fc(x,C))return!1}const w=Mo(e);return Fc(x,w)?!1:!(r!=null&&r(S))}const f=new Set,p=qr(e==null?void 0:e.getRootNode());function h(x){function S($){var v;const w=a&&!mc()?ie:P=>P(),C=$??x,D=((v=C==null?void 0:C.composedPath)==null?void 0:v.call(C))??[C==null?void 0:C.target];w(()=>{const P=p?D[0]:Je(x);if(!(!e||!g(x,P))){if(o||i){const T=Bo(o,i);e.addEventListener(Lc,T,{once:!0})}Mc(e,Lc,{bubbles:!1,cancelable:!0,detail:{originalEvent:C,contextmenu:Px(C),focusable:gw(D),target:P}})}})}x.pointerType==="touch"?(f.forEach($=>$()),f.add(fe(s,"click",S,{once:!0})),f.add(u.addEventListener("click",S,{once:!0})),f.add(c.addEventListener("click",S,{once:!0}))):S()}const m=new Set,b=setTimeout(()=>{m.add(fe(s,"pointerdown",h,!0)),m.add(u.addEventListener("pointerdown",h,!0)),m.add(c.addEventListener("pointerdown",h,!0))},0);function y(x){(a?ie:$=>$())(()=>{const $=Je(x);if(!(!e||!g(x,$))){if(n||i){const w=Bo(n,i);e.addEventListener(zc,w,{once:!0})}Mc(e,zc,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Ht($),target:$}})}})}return mc()||(m.add(fe(s,"focusin",y,!0)),m.add(u.addEventListener("focusin",y,!0)),m.add(c.addEventListener("focusin",y,!0))),()=>{clearTimeout(b),f.forEach(x=>x()),m.forEach(x=>x())}}function bw(e,t){const{defer:r}=t,n=r?ie:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(vw(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Mc(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function yw(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t==null||t(n))};return fe(nt(e),"keydown",r,{capture:!0})}var ot={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var n;const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf((n=this.topMostPointerBlockingLayer())==null?void 0:n.node):-1;return t<r},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>Yr(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Yr(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>n.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},_c;function Vc(){ot.layers.forEach(({node:e})=>{e.style.pointerEvents=ot.isBelowPointerBlockingLayer(e)?"none":"auto"})}function xw(e){e.style.pointerEvents=""}function Sw(e,t){const r=nt(e),n=[];if(ot.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(_c=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const o=i1(t,i=>{n.push(Vo(i,{pointerEvents:"auto"}))});n.push(o)}return()=>{ot.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=_c,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function ww(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Wo("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,pointerBlocking:o,exclude:i,debug:a}=t,s={dismiss:n,node:e,pointerBlocking:o};ot.add(s),Vc();function l(p){var m,b;const h=Je(p.detail.originalEvent);ot.isBelowPointerBlockingLayer(e)||ot.isInBranch(h)||((m=t.onPointerDownOutside)==null||m.call(t,p),(b=t.onInteractOutside)==null||b.call(t,p),!p.defaultPrevented&&(a&&console.log("onPointerDownOutside:",p.detail.originalEvent),n==null||n()))}function c(p){var m,b;const h=Je(p.detail.originalEvent);ot.isInBranch(h)||((m=t.onFocusOutside)==null||m.call(t,p),(b=t.onInteractOutside)==null||b.call(t,p),!p.defaultPrevented&&(a&&console.log("onFocusOutside:",p.detail.originalEvent),n==null||n()))}function u(p){var h;ot.isTopMost(e)&&((h=t.onEscapeKeyDown)==null||h.call(t,p),!p.defaultPrevented&&n&&(p.preventDefault(),n()))}function g(p){var y;if(!e)return!1;const h=typeof i=="function"?i():i,m=Array.isArray(h)?h:[h],b=(y=t.persistentElements)==null?void 0:y.map(x=>x()).filter(Te);return b&&m.push(...b),m.some(x=>Yr(x,p))||ot.isInNestedLayer(e,p)}const f=[o?Sw(e,t.persistentElements):void 0,yw(e,u),bw(e,{exclude:g,onFocusOutside:c,onPointerDownOutside:l,defer:t.defer})];return()=>{ot.remove(e),Vc(),xw(e),f.forEach(p=>p==null?void 0:p())}}function jn(e,t){const{defer:r}=t,n=r?ie:i=>i(),o=[];return o.push(n(()=>{const i=_r(e)?e():e;o.push(ww(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}var Gp=j("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Gp.build();var Cw=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},Ew=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},Pw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},$w=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},kw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},Tw=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},Rw=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},Ow=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},Iw=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.channelSliderTrack)==null?void 0:n.call(r,t))??`color-picker:${e.id}:slider-track:${t}`},Dw=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.channelSliderThumb)==null?void 0:n.call(r,t))??`color-picker:${e.id}:slider-thumb:${t}`},Io=e=>e.getById($w(e)),Aw=e=>e.getById(Ow(e)),Nw=(e,t)=>e.getById(Dw(e,t)),Lw=e=>e.getById(Tw(e)),Bc=e=>e.getById(Cw(e)),zw=e=>e.getById(Rw(e)),Fw=(e,t)=>{const r=zw(e);if(!r)return;const{percent:n}=gp(t,r);return n},Mw=e=>e.getById(Ew(e)),Yi=e=>e.getById(Pw(e)),_w=e=>e.getById(kw(e)),Vw=(e,t)=>e.getById(Iw(e,t)),Bw=(e,t,r)=>{const n=Vw(e,r);if(!n)return;const{percent:o}=gp(t,n);return o},Ww=e=>[..._o(Io(e),"input[data-channel]"),..._o(Mw(e),"input[data-channel]")];function Kw(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const r=e.getFormat()==="hsla";switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Wc=e=>Ho(e),{and:Hw}=xr();Hw("isOpenControlled","closeOnSelect");function Kc(e,t,r){const n=Ww(e);ie(()=>{n.forEach(o=>{const i=o.dataset.channel;pi(o,Kw(r||t,i))})})}function jw(e,t){const r=Lw(e);r&&ie(()=>pi(r,t))}G()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);G()(["xChannel","yChannel"]);G()(["channel","orientation"]);G()(["value","disabled"]);G()(["value","respectAlpha"]);G()(["size"]);function Uw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gw(e,t,r){Uw(e,t),t.set(e,r)}const[qp,qw]=Wn({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Yp=e=>Ep()(e,["lazyMount","unmountOnExit"]);var Xp=j("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Xp.build();var Zp=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Jp=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.itemTrigger)==null?void 0:n.call(r,t))??`accordion:${e.id}:trigger:${t}`},Yw=e=>e.getById(Zp(e)),bi=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape(Zp(e))}']:not([disabled])`;return _o(Yw(e),r)},Xw=e=>mp(bi(e)),Zw=e=>vp(bi(e)),Jw=(e,t)=>qx(bi(e),Jp(e,t)),Qw=(e,t)=>Yx(bi(e),Jp(e,t)),{and:eC,not:tC}=xr();eC("isExpanded","canToggle"),tC("isExpanded");G()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);G()(["value","disabled"]);var Qp=j("avatar").parts("root","image","fallback");Qp.build();G()(["dir","id","ids","onStatusChange","getRootNode"]);function rC(e){return!(e.metaKey||!fi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var nC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oC(e,t,r){const n=r?Je(r):null,o=Oe(n);return e=e||n instanceof o.HTMLInputElement&&!nC.has(n==null?void 0:n.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(iC,r.key))}var wr=null,La=new Set,Cn=new Map,hr=!1,za=!1,iC={Tab:!0,Escape:!0};function yi(e,t){for(let r of La)r(e,t)}function qo(e){hr=!0,rC(e)&&(wr="keyboard",yi("keyboard",e))}function Xe(e){wr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,yi("pointer",e))}function eg(e){Ex(e)&&(hr=!0,wr="virtual")}function tg(e){const t=Je(e);t===Oe(t)||t===nt(t)||(!hr&&!za&&(wr="virtual",yi("virtual",e)),hr=!1,za=!1)}function rg(){hr=!1,za=!0}function aC(e){if(typeof window>"u"||Cn.get(Oe(e)))return;const t=Oe(e),r=nt(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){wr="virtual",yi("virtual",null),hr=!0,n.apply(this,arguments)},r.addEventListener("keydown",qo,!0),r.addEventListener("keyup",qo,!0),r.addEventListener("click",eg,!0),t.addEventListener("focus",tg,!0),t.addEventListener("blur",rg,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",Xe,!0),r.addEventListener("pointermove",Xe,!0),r.addEventListener("pointerup",Xe,!0)):(r.addEventListener("mousedown",Xe,!0),r.addEventListener("mousemove",Xe,!0),r.addEventListener("mouseup",Xe,!0)),t.addEventListener("beforeunload",()=>{sC(e)},{once:!0}),Cn.set(t,{focus:n})}var sC=(e,t)=>{const r=Oe(e),n=nt(e);Cn.has(r)&&(r.HTMLElement.prototype.focus=Cn.get(r).focus,n.removeEventListener("keydown",qo,!0),n.removeEventListener("keyup",qo,!0),n.removeEventListener("click",eg,!0),r.removeEventListener("focus",tg,!0),r.removeEventListener("blur",rg,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",Xe,!0),n.removeEventListener("pointermove",Xe,!0),n.removeEventListener("pointerup",Xe,!0)):(n.removeEventListener("mousedown",Xe,!0),n.removeEventListener("mousemove",Xe,!0),n.removeEventListener("mouseup",Xe,!0)),Cn.delete(r))};function Hc(){return wr==="keyboard"}function lC(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;aC(o),n==null||n({isFocusVisible:r||Hc(),modality:wr});const i=(a,s)=>{oC(!!t,a,s)&&(n==null||n({isFocusVisible:Hc(),modality:a}))};return La.add(i),()=>{La.delete(i)}}var ng=j("checkbox").parts("root","label","control","indicator");ng.build();G()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const cC=ng.extendWith("group"),uC=Gp.extendWith("view");var dC=Object.defineProperty,fC=(e,t,r)=>t in e?dC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t,r)=>fC(e,typeof t!="symbol"?t+"":t,r),Do={itemToValue(e){return typeof e=="string"?e:Ki(e)&&Hi(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Ki(e)&&Hi(e,"label")?e.label:Do.itemToValue(e)},isItemDisabled(e){return Ki(e)&&Hi(e,"disabled")?!!e.disabled:!1}},og=class ig{constructor(t){this.options=t,q(this,"items"),q(this,"copy",r=>new ig({...this.options,items:r??[...this.items]})),q(this,"isEqual",r=>Kn(this.items,r.items)),q(this,"setItems",r=>this.copy(r)),q(this,"getValues",(r=this.items)=>Array.from(r).map(n=>this.getItemValue(n)).filter(Boolean)),q(this,"find",r=>{if(r==null)return null;const n=this.items.findIndex(o=>this.getItemValue(o)===r);return n!=null?this.items[n]:null}),q(this,"findMany",r=>Array.from(r).map(n=>this.find(n)).filter(n=>n!=null)),q(this,"at",r=>this.items[r]??null),q(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),q(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),q(this,"getItemValue",r=>{var n,o;return r==null?null:((o=(n=this.options).itemToValue)==null?void 0:o.call(n,r))??Do.itemToValue(r)}),q(this,"getItemDisabled",r=>{var n,o;return r==null?!1:((o=(n=this.options).isItemDisabled)==null?void 0:o.call(n,r))??Do.isItemDisabled(r)}),q(this,"stringifyItem",r=>{var n,o;return r==null?null:((o=(n=this.options).itemToString)==null?void 0:o.call(n,r))??Do.itemToString(r)}),q(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),q(this,"stringifyItems",(r,n=", ")=>Array.from(r).map(o=>this.stringifyItem(o)).filter(Boolean).join(n)),q(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),q(this,"has",r=>this.indexOf(r)!==-1),q(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),q(this,"getNextValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.min(i+n,this.size-1):i+n;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),q(this,"getPreviousValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.max(i-n,0):i-n;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),q(this,"indexOf",r=>r==null?-1:this.items.findIndex(n=>this.getItemValue(n)===r)),q(this,"getByText",(r,n)=>{let o=n!=null?gC(this.items,this.indexOf(n)):this.items;return r.length===1&&(o=o.filter(a=>this.getItemValue(a)!==n)),o.find(a=>pC(this.stringifyItem(a),r))}),q(this,"search",(r,n)=>{const{state:o,currentValue:i,timeout:a=350}=n,s=o.keysSoFar+r,c=s.length>1&&Array.from(s).every(h=>h===s[0])?s[0]:s,u=this.getByText(c,i),g=this.getItemValue(u);function f(){clearTimeout(o.timer),o.timer=-1}function p(h){o.keysSoFar=h,f(),h!==""&&(o.timer=+setTimeout(()=>{p(""),f()},a))}return p(s),g}),q(this,"update",(r,n)=>{let o=this.items.findIndex(i=>this.getItemValue(i)===r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),q(this,"insert",(r,...n)=>this.copy(sn(this.items,r,...n))),q(this,"insertBefore",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(sn(this.items,o,...n))}),q(this,"insertAfter",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(sn(this.items,o+1,...n))}),q(this,"prepend",(...r)=>this.copy(sn(this.items,0,...r))),q(this,"append",(...r)=>this.copy(sn(this.items,this.items.length,...r))),q(this,"remove",(...r)=>{const n=r.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!n.includes(i)}))}),q(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(jc(this.items,[o],n))}),q(this,"reorder",(r,n)=>this.copy(jc(this.items,[r],n))),q(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return o<i?-1:o>i?1:0}),q(this,"range",(r,n)=>{let o=[],i=r;for(;i!=null;){if(this.find(i)&&o.push(i),i===n)return o;i=this.getNextValue(i)}return[]}),q(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),q(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),a=this.getItemDisabled(n),s=[o,i,a].filter(Boolean).join(":");r+=s+","}return r}),q(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},pC=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase())),gC=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]);function sn(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function jc(e,t,r){t=[...t].sort((o,i)=>o-i);const n=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return r=Math.max(0,r-t.filter(o=>o<r).length),[...e.slice(0,r),...n,...e.slice(r)]}var Or=new WeakMap,io=new WeakMap,ao={},Xi=0,ag=e=>e&&(e.host||ag(e.parentNode)),hC=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=ag(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),mC=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),vC=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,i=hC(r,Array.isArray(e)?e:[e]);ao[n]||(ao[n]=new WeakMap);const a=ao[n],s=[],l=new Set,c=new Set(i),u=f=>{!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);const g=f=>{!f||c.has(f)||Array.prototype.forEach.call(f.children,p=>{if(l.has(p))g(p);else try{if(mC(p))return;const m=p.getAttribute(o)==="true",b=(Or.get(p)||0)+1,y=(a.get(p)||0)+1;Or.set(p,b),a.set(p,y),s.push(p),b===1&&m&&io.set(p,!0),y===1&&p.setAttribute(n,""),m||p.setAttribute(o,"true")}catch(h){console.error("[zag-js > ariaHidden] cannot operate on ",p,h)}})};return g(r),l.clear(),Xi++,()=>{s.forEach(f=>{const p=Or.get(f)-1,h=a.get(f)-1;Or.set(f,p),a.set(f,h),p||(io.has(f)||f.removeAttribute(o),io.delete(f)),h||f.removeAttribute(n)}),Xi--,Xi||(Or=new WeakMap,Or=new WeakMap,io=new WeakMap,ao={})}},bC=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,yC=(e,t=bC(e),r="data-aria-hidden")=>{if(t)return vC(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},xC=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function SC(e,t={}){const{defer:r=!0}=t,n=r?xC:i=>i(),o=[];return o.push(n(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&o.push(yC(a))})),()=>{o.forEach(i=>i==null?void 0:i())}}const[sg,Xt]=Wn({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),lg=d.forwardRef((e,t)=>{const r=Xt(),n=qw(),o=Bs({...n,present:r.open}),i=bt(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:k.jsx(Sr.div,{...i,ref:_s(o.ref,t)})});lg.displayName="DialogBackdrop";const cg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getCloseTriggerProps(),e);return k.jsx(Sr.button,{...n,ref:t})});cg.displayName="DialogCloseTrigger";const ug=d.forwardRef((e,t)=>{const r=Xt(),n=Ws(),o=bt(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:k.jsx(Sr.div,{...o,ref:_s(n.ref,t)})});ug.displayName="DialogContent";const dg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getDescriptionProps(),e);return k.jsx(Sr.div,{...n,ref:t})});dg.displayName="DialogDescription";const fg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getPositionerProps(),e);return Ws().unmounted?null:k.jsx(Sr.div,{...n,ref:t})});fg.displayName="DialogPositioner";var wC=Object.defineProperty,CC=(e,t,r)=>t in e?wC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>CC(e,typeof t!="symbol"?t+"":t,r),Uc={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},EC=[],PC=class{constructor(e,t){de(this,"trapStack"),de(this,"config"),de(this,"doc"),de(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),de(this,"listenerCleanups",[]),de(this,"handleFocus",n=>{const o=Je(n),i=this.findContainerIndex(o,n)>=0;if(i||ks(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let a,s=!0;if(this.state.mostRecentlyFocusedNode)if(an(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(g=>g===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<c.length&&(a=c[u+1],s=!1):u-1>=0&&(a=c[u-1],s=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>an(c)>0))||(s=!1);else s=!1;s&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),de(this,"handlePointerDown",n=>{const o=Je(n);if(!(this.findContainerIndex(o,n)>=0)){if(cn(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}cn(this.config.allowOutsideClick,n)||n.preventDefault()}}),de(this,"handleClick",n=>{const o=Je(n);this.findContainerIndex(o,n)>=0||cn(this.config.clickOutsideDeactivates,n)||cn(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),de(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),i=this.findNextNavNode({event:n,isBackward:o});if(!i)return;ln(n)&&n.preventDefault(),this.tryFocus(i)}}),de(this,"handleEscapeKey",n=>{$C(n)&&cn(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),de(this,"_mutationObserver"),de(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(a=>Array.from(a.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),de(this,"updateObservedNodes",()=>{var n;(n=this._mutationObserver)==null||n.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),de(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!Ht(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),de(this,"tryFocus",n=>{if(n!==!1&&n!==ap(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,kC(n)&&n.select()}}),de(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Uc.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),a=this.getOption(o,"onPostDeactivate"),s=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{Gc(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}a==null||a()})};if(l&&s){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return s(u).then(c,c),this}return c(),this}),de(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),i=this.getOption(n,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),de(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),i=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),de(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),de(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),de(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),de(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let a=this.config[n];if(typeof a=="function"&&(a=a(...i)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let s=a;if(typeof a=="string"){try{s=this.doc.querySelector(a)}catch(l){throw new Error(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!s&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return s}),de(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,a=n.target||Je(o);this.updateTabbableNodes();let s=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(a,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?s=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:s=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>a===g);if(u<0&&((c==null?void 0:c.container)===a||Ht(a)&&!ur(a)&&!(c!=null&&c.nextTabbableNode(a,!1)))&&(u=l),u>=0){const g=u===0?this.state.tabbableGroups.length-1:u-1,f=this.state.tabbableGroups[g];s=an(a)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else ln(o)||(s=c==null?void 0:c.nextTabbableNode(a,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>a===g);if(u<0&&((c==null?void 0:c.container)===a||Ht(a)&&!ur(a)&&!(c!=null&&c.nextTabbableNode(a)))&&(u=l),u>=0){const g=u===this.state.tabbableGroups.length-1?0:u+1,f=this.state.tabbableGroups[g];s=an(a)>=0?f.firstTabbableNode:f.firstDomTabbableNode}else ln(o)||(s=c==null?void 0:c.nextTabbableNode(a))}}else s=this.getNodeForOption("fallbackFocus");return s}),this.trapStack=t.trapStack||EC;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return ln(n)&&!n.shiftKey},isKeyBackward(n){return ln(n)&&n.shiftKey},...t};this.doc=r.document||nt(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||(r==null?void 0:r.includes(n))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Ds(e),r=up(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=r.find(c=>ur(c)),a=r.slice().reverse().find(c=>ur(c)),s=!!t.find(c=>an(c)>0);function l(c,u=!0){const g=t.indexOf(c);return g<0?u?r.slice(r.indexOf(c)+1).find(f=>ur(f)):r.slice(0,r.indexOf(c)).reverse().find(f=>ur(f)):t[g+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:s,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:a,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Uc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Gc(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(fe(this.doc,"focusin",this.handleFocus,!0),fe(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r==null||r()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},ln=e=>e.key==="Tab",cn=(e,...t)=>typeof e=="function"?e(...t):e,$C=e=>!e.isComposing&&e.key==="Escape",Gc=e=>setTimeout(e,0),kC=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function TC(e,t={}){let r;const n=ie(()=>{const o=typeof e=="function"?e():e;if(o){r=new PC(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:nt(o)});try{r.activate()}catch{}}});return function(){r==null||r.deactivate(),n()}}var Zi="data-scroll-lock";function RC(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function OC(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(Zi))return;o.setAttribute(Zi,"");const a=r.innerWidth-n.clientWidth,s=()=>e1(n,"--scrollbar-width",`${a}px`),l=RC(n),c=()=>Vo(o,{overflow:"hidden",[l]:`${a}px`}),u=()=>{const{scrollX:f,scrollY:p,visualViewport:h}=r,m=(h==null?void 0:h.offsetLeft)??0,b=(h==null?void 0:h.offsetTop)??0,y=Vo(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(b))}px`,left:`${-(f-Math.floor(m))}px`,right:"0",[l]:`${a}px`});return()=>{y==null||y(),r.scrollTo({left:f,top:p,behavior:"instant"})}},g=[s(),di()?u():c()];return()=>{g.forEach(f=>f==null?void 0:f()),o.removeAttribute(Zi)}}var tl=j("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),rr=tl.build(),pg=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},gg=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},Fa=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},hg=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},Ma=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},_a=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},mg=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},so=e=>e.getById(Fa(e)),IC=e=>e.getById(pg(e)),DC=e=>e.getById(gg(e)),AC=e=>e.getById(hg(e)),NC=e=>e.getById(Ma(e)),LC=e=>e.getById(_a(e)),zC=e=>e.getById(mg(e));function FC(e,t){const{state:r,send:n,context:o,prop:i,scope:a}=e,s=i("aria-label"),l=r.matches("open");return{open:l,setOpen(c){r.matches("open")!==c&&n({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...rr.trigger.attrs,dir:i("dir"),id:hg(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":Fa(a),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...rr.backdrop.attrs,dir:i("dir"),hidden:!l,id:gg(a),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...rr.positioner.attrs,dir:i("dir"),id:pg(a),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...rr.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:Fa(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!c.title?void 0:Ma(a),"aria-describedby":c.description?_a(a):void 0})},getTitleProps(){return t.element({...rr.title.attrs,dir:i("dir"),id:Ma(a)})},getDescriptionProps(){return t.element({...rr.description.attrs,dir:i("dir"),id:_a(a)})},getCloseTriggerProps(){return t.button({...rr.closeTrigger.attrs,dir:i("dir"),id:mg(a),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var MC={props({props:e,scope:t}){const r=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r?()=>zC(t):void 0,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return jn(()=>so(e),{defer:!0,pointerBlocking:r("modal"),exclude:[AC(e)],onInteractOutside(o){var i;(i=r("onInteractOutside"))==null||i(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onEscapeKeyDown(o){var i;(i=r("onEscapeKeyDown"))==null||i(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return OC(e.getDoc())},trapFocus({scope:e,prop:t}){return!t("trapFocus")||!t("modal")?void 0:TC(()=>so(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{var o;return((o=t("finalFocusEl"))==null?void 0:o())??n}})},hideContentBelow({scope:e,prop:t}){return t("modal")?SC(()=>[so(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ie(()=>{e.set("rendered",{title:!!NC(t),description:!!LC(t)})})},syncZIndex({scope:e}){ie(()=>{const t=so(e);if(!t)return;const r=Ts(t);[IC(e),DC(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",r.zIndex)})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};G()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const _C=e=>{const t=d.useId(),{getRootNode:r}=Ip(),{dir:n}=s1(),o={id:t,getRootNode:r,dir:n,...e},i=kp(MC,o);return FC(i,Y1)},VC=e=>{const[t,{children:r,...n}]=Pp(e),[o]=Yp(t),i=_C(n),a=Bs(bt({present:i.open},t));return k.jsx(sg,{value:i,children:k.jsx(qp,{value:o,children:k.jsx(Rp,{value:a,children:r})})})},BC=e=>{const[t,{value:r,children:n}]=Pp(e),[o]=Yp(t),i=Bs(bt({present:r.open},t));return k.jsx(sg,{value:r,children:k.jsx(qp,{value:o,children:k.jsx(Rp,{value:i,children:n})})})},vg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getTitleProps(),e);return k.jsx(Sr.h2,{...n,ref:t})});vg.displayName="DialogTitle";const bg=d.forwardRef((e,t)=>{const r=Xt(),n=Ws(),o=bt({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return k.jsx(Sr.button,{...o,ref:t})});bg.displayName="DialogTrigger";var yg=j("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");yg.build();G()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const xg=j("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");xg.build();const Sg=j("fieldset").parts("root","errorText","helperText","legend");Sg.build();var wg=j("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");wg.build();G()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","validate"]);G()(["file"]);var Cg=(e,t)=>{const r=[],n=(o,i,a)=>{i-o>0&&r.push({start:o,end:i,match:a})};if(e.length===0)n(0,t,!1);else{let o=0;for(const i of e)n(o,i.start,!1),n(i.start,i.end,!0),o=i.end;n(o,t,!1)}return r};function WC(e){const{text:t,query:r,ignoreCase:n}=e,o=n?t.toLowerCase():t,i=n&&typeof r=="string"?r.toLowerCase():r,a=typeof o=="string"?o.indexOf(i):-1;if(a===-1)return[{text:t,match:!1}];const s=a+i.length;return Cg([{start:a,end:s}],t.length).map(c=>({text:t.slice(c.start,c.end),match:!!c.match}))}var KC=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,t=>`\\${t}`),HC=(e,t)=>{const r=e.filter(Boolean).map(n=>KC(n));return new RegExp(`(${r.join("|")})`,t)},jC=(e,t=!0)=>`${e?"i":""}${t?"g":""}`;function UC(e){const{text:t,query:r,ignoreCase:n,matchAll:o}=e;if(r.length===0)return[{text:t,match:!1}];const i=jC(n,o),a=HC(Array.isArray(r)?r:[r],i),s=[...t.matchAll(a)].map(l=>({start:l.index||0,end:(l.index||0)+l[0].length}));return Cg(s,e.text.length).map(l=>({text:e.text.slice(l.start,l.end),match:!!l.match}))}var GC=e=>{if(e.matchAll==null&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw new Error("matchAll must be true when using multiple queries");return e.matchAll?UC(e):WC(e)};const qC=e=>d.useMemo(()=>GC(e),[e]);var Eg=j("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Eg.build();var YC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},XC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},ZC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},Ji=e=>e.getById(YC(e)),JC=e=>e.getById(XC(e)),qc=e=>e.getById(ZC(e)),{not:lo,and:Yc}=xr();Yc("isOpenControlled",lo("isPointer")),lo("isPointer"),Yc("isOpenControlled",lo("isPointer")),lo("isPointer");G()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var vn=(e,t)=>({x:e,y:t});function QC(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,a=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:i,midY:a,center:vn(i,a)}}function eE(e){const t=vn(e.minX,e.minY),r=vn(e.maxX,e.minY),n=vn(e.maxX,e.maxY),o=vn(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function tE(e,t){const r=QC(e),{top:n,right:o,left:i,bottom:a}=eE(r),[s]=t.split("-");return{top:[i,n,o,a],right:[n,o,a,i],bottom:[n,i,a,o],left:[o,n,i,a]}[s]}function rE(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i].x,l=e[i].y,c=e[a].x,u=e[a].y;l>n!=u>n&&r<(c-s)*(n-l)/(u-l)+s&&(o=!o)}return o}var Pg=j("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Pg.build();var $g=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},nE=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},kg=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},oE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},Va=(e,t)=>`${e.id}/${t}`,nr=e=>(e==null?void 0:e.dataset.value)??null,_t=e=>e.getById(kg(e)),Xc=e=>e.getById(oE(e)),co=e=>e.getById($g(e)),iE=(e,t)=>t?e.getById(Va(e,t)):null,Zc=e=>e.getById(nE(e)),Un=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(kg(e))}]:not([data-disabled])`;return _o(_t(e),r)},aE=e=>mp(Un(e)),sE=e=>vp(Un(e)),rl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,lE=(e,t)=>{const r=Un(e),n=r.findIndex(o=>rl(o,t.value));return u1(r,n,{loop:t.loop??t.loopFocus})},cE=(e,t)=>{const r=Un(e),n=r.findIndex(o=>rl(o,t.value));return f1(r,n,{loop:t.loop??t.loopFocus})},uE=(e,t)=>{const r=Un(e),n=r.find(o=>rl(o,t.value));return Ms(r,{state:t.typeaheadState,key:t.key,activeId:(n==null?void 0:n.id)??null})},dE=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},fE="menu:select";function pE(e,t){if(!e)return;const r=Oe(e),n=new r.CustomEvent(fE,{detail:{value:t}});e.dispatchEvent(n)}var{not:Ge,and:Ir,or:gE}=xr();Ge("isSubmenu"),gE("isOpenAutoFocusEvent","isArrowDownEvent"),Ir(Ge("isTriggerItem"),"isOpenControlled"),Ge("isTriggerItem"),Ir("isSubmenu","isOpenControlled"),Ge("isPointerSuspended"),Ir(Ge("isPointerSuspended"),Ge("isTriggerItem")),Ir(Ge("isTriggerItemHighlighted"),Ge("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Ir(Ge("isTriggerItemHighlighted"),Ge("isHighlightedItemEditable"),"closeOnSelect"),Ir(Ge("isTriggerItemHighlighted"),Ge("isHighlightedItemEditable"));function Jc(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function hE(e,t){return e?rE(e,t):!1}function mE(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return Va(r,t);for(const o in e){const i=e[o],a=$g(i.scope);if(a===t)return a}return Va(r,t)}G()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);G()(["closeOnSelect","disabled","value","valueText"]);G()(["htmlFor"]);G()(["id"]);G()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let Qi=new Map,Ba=!1;try{Ba=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Yo=!1;try{Yo=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Tg={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Rg{format(t){let r="";if(!Ba&&this.options.signDisplay!=null?r=bE(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Yo){var n;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return r;let s=(n=Tg[o])===null||n===void 0?void 0:n[i];r+=s[a]||s.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ba&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Yo&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=vE(t,r),this.options=r}}function vE(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Yo){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Tg[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Qi.has(o))return Qi.get(o);let i=new Intl.NumberFormat(e,t);return Qi.set(o,i),i}function bE(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}const yE=new RegExp("^.*\\(.*\\).*$"),xE=["latn","arab","hanidec","deva","beng"];class Og{parse(t){return ea(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return ea(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return ea(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Qc=new Map;function ea(e,t,r){let n=eu(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of xE)if(o!==n.options.numberingSystem){let i=eu(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function eu(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Qc.get(r);return n||(n=new SE(e,t),Qc.set(r,n)),n}class SE{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=uo(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-","");let s=r.indexOf(".");s===-1&&(s=r.length),r=r.replace(".",""),s-2===0?r=`0.${r}`:s-2===-1?r=`0.0${r}`:s-2===-2?r="0.00":r=`${r.slice(0,s-2)}.${r.slice(s-2)}`,a>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var o,i;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new Og(this.locale,a).parse(new Rg(this.locale,a).format(n))}return this.options.currencySign==="accounting"&&yE.test(t)&&(n=-1*n),n}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=uo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=uo(t,"."," ")),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=uo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=CE(t,this.formatter,this.options,r);var n,o;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const tu=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),wE=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function CE(e,t,r,n){var o,i,a,s;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),g=wE.map(T=>l.formatToParts(T));var f;let p=(f=(o=c.find(T=>T.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&f!==void 0?f:"-",h=(i=u.find(T=>T.type==="plusSign"))===null||i===void 0?void 0:i.value;!h&&((n==null?void 0:n.signDisplay)==="exceptZero"||(n==null?void 0:n.signDisplay)==="always")&&(h="+");let b=(a=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal"))===null||a===void 0?void 0:a.value,y=(s=c.find(T=>T.type==="group"))===null||s===void 0?void 0:s.value,x=c.filter(T=>!tu.has(T.type)).map(T=>ru(T.value)),S=g.flatMap(T=>T.filter(I=>!tu.has(I.type)).map(I=>ru(I.value))),$=[...new Set([...x,...S])].sort((T,I)=>I.length-T.length),w=$.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${$.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),D=new Map(C.map((T,I)=>[T,I])),v=new RegExp(`[${C.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:b,group:y,literals:w,numeral:v,index:T=>String(D.get(T))}}function uo(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function ru(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ig=j("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Ig.build();var EE=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},PE=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},$E=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},Dg=e=>`number-input:${e.id}:cursor`,fo=e=>e.getById(EE(e)),kE=e=>e.getById(PE(e)),TE=e=>e.getById($E(e)),Ag=e=>e.getDoc().getElementById(Dg(e)),RE=(e,t)=>{let r=null;return t==="increment"&&(r=kE(e)),t==="decrement"&&(r=TE(e)),r},OE=(e,t)=>{if(!lp())return AE(e,t),()=>{var r;(r=Ag(e))==null||r.remove()}},IE=e=>{const t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},DE=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),a=ji(o.movementX,i.devicePixelRatio),s=ji(o.movementY,i.devicePixelRatio);let l=a>0?"increment":a<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const c={x:r.x+a,y:r.y+s},u=i.innerWidth,g=ji(7.5,i.devicePixelRatio);return c.x=P1(c.x+g,u)-g,{hint:l,point:c}},AE=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=Dg(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:rx,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
17
- <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
18
- <g transform="translate(2 3)">
19
- <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
20
- <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
21
- </g>
22
- </svg>`,r.body.appendChild(n)};function NE(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:r,value:n}=e,o=n.substring(0,t),i=n.substring(r);return{start:t,end:r,value:n,beforeTxt:o,afterTxt:i}}catch{}}function LE(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:r}=e,{beforeTxt:n="",afterTxt:o="",start:i}=t;let a=r.length;if(r.endsWith(o))a=r.length-o.length;else if(r.startsWith(n))a=n.length;else if(i!=null){const s=n[i-1],l=r.indexOf(s,i-1);l!==-1&&(a=l+1)}e.setSelectionRange(a,a)}catch{}}}var zE=(e,t={})=>new Intl.NumberFormat(e,t),FE=(e,t={})=>new Og(e,t),ta=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?n("parser").parse(String(e)):parseFloat(e)},or=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},ME=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:_E,guards:VE,createMachine:BE}=_1(),{not:nu,and:ou}=VE;BE({props({props:e}){const t=ME(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){var a;const o=r(),i=ta(n,{computed:o,prop:e});(a=e("onValueChange"))==null||a({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>ta(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>or(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>k1(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>$1(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!T1(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var r,n;return(n=(r=e("translations")).valueText)==null?void 0:n.call(r,t.get("value"))},formatter:Cc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>zE(e,t)),parser:Cc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>FE(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:ou("clampValueOnBlur",nu("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:nu("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:_E([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:ou("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const r=fo(t);return Os(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const r=e.get("scrubberCursorPoint");return OE(t,r)},preventTextSelection({scope:e}){return IE(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=RE(t,n);return Ns(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const n=fo(e);if(!n||!e.isActiveElement(n)||!r("allowMouseWheel"))return;function o(i){i.preventDefault();const a=Math.sign(i.deltaY)*-1;a===1?t({type:"VALUE.INCREMENT"}):a===-1&&t({type:"VALUE.DECREMENT"})}return fe(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!lp())return Kx(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(s){const l=r.get("scrubberCursorPoint"),c=n("isRtl"),u=DE(e,{point:l,isRtl:c,event:s});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function a(){t({type:"SCRUBBER.POINTER_UP"})}return Bo(fe(o,"mousemove",i,!1),fe(o,"mouseup",a,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=fo(e);e.isActiveElement(r)||ie(()=>r==null?void 0:r.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=D1(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=ze(o,r("min"),r("max"))),e.set("value",or(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=A1(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=ze(o,r("min"),r("max"))),e.set("value",or(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=ze(r("valueAsNumber"),t("min"),t("max"));e.set("value",or(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=ta(t.value,{computed:n,prop:r});r("allowOverflow")||(o=ze(o,r("min"),r("max"))),e.set("value",or(o,{computed:n,prop:r}))},setValue({context:e,event:t}){var n;const r=((n=t.target)==null?void 0:n.value)??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=or(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=or(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var r;(r=t("onFocusChange"))==null||r({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var r;(r=t("onFocusChange"))==null||r({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){var o;if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(o=t("onValueInvalid"))==null||o({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){const o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=fo(n),a=NE(i);ie(()=>{pi(i,o),LE(i,a)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=Ag(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});G()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Ng=j("pinInput").parts("root","label","input","control");Ng.build();G()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Lg=j("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Lg.build();G()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);const WE=e=>{var l;const{children:t,disabled:r}=e,[n,o]=d.useState((l=e.container)==null?void 0:l.current),i=d.useSyncExternalStore(HE,()=>!1,()=>!0),{getRootNode:a}=Ip();if(d.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||r)return k.jsx(k.Fragment,{children:t});const s=n??KE(a);return k.jsx(k.Fragment,{children:d.Children.map(t,c=>ct.createPortal(c,s))})},KE=e=>{const t=e==null?void 0:e(),r=t.getRootNode();return qr(r)?r:nt(t).body},HE=()=>()=>{};var nl=j("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");nl.build();G()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var zg=j("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");zg.build();G()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var ol=j("radio-group").parts("root","label","item","itemText","itemControl","indicator");ol.build();G()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);G()(["value","disabled","invalid"]);var Fg=j("rating-group").parts("root","label","item","control");Fg.build();G()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);G()(["index"]);const Mg=ol.rename("segment-group");Mg.build();var _g=j("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");_g.build();var Vg=e=>new og(e);Vg.empty=()=>new og({items:[]});var jE=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},UE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},GE=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},qE=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.item)==null?void 0:n.call(r,t))??`select:${e.id}:option:${t}`},YE=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},XE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},ra=e=>e.getById(YE(e)),un=e=>e.getById(jE(e)),po=e=>e.getById(UE(e)),ZE=e=>e.getById(GE(e)),iu=e=>e.getById(XE(e)),JE=(e,t)=>e.getById(qE(e,t)),{and:dn,not:ir,or:QE}=xr();QE("isTriggerArrowDownEvent","isTriggerEnterEvent"),dn(ir("multiple"),"hasSelectedItems"),ir("multiple"),dn(ir("multiple"),"hasSelectedItems"),ir("multiple"),ir("multiple"),ir("multiple"),ir("multiple"),dn("closeOnSelect","isOpenControlled"),dn("hasHighlightedItem","loop","isLastItemHighlighted"),dn("hasHighlightedItem","loop","isFirstItemHighlighted");G()(["closeOnSelect","collection","dir","disabled","deselectable","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","defaultOpen","open","composite","positioning","required","readOnly","scrollToIndexFn","value","defaultValue","defaultHighlightedValue"]);G()(["item","persistFocus"]);G()(["id"]);G()(["htmlFor"]);var Bg=j("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Bg.build();G()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);G()(["index","name"]);var Wg=j("switch").parts("root","label","control","thumb");Wg.build();G()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const eP=Symbol(),au=Object.getPrototypeOf,Wa=new WeakMap,tP=e=>e&&(Wa.has(e)?Wa.get(e):au(e)===Object.prototype||au(e)===Array.prototype),rP=e=>tP(e)&&e[eP]||null,su=(e,t=!0)=>{Wa.set(e,t)};function nP(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Kg(e,t){const r=nP();return r?(r[e]||(r[e]=t()),r[e]):t()}var Ao=Kg("__zag__refSet",()=>new WeakSet),oP=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,iP=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,aP=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",sP=e=>oP(e)||iP(e)||aP(e),Ka=e=>e!==null&&typeof e=="object",lu=e=>Ka(e)&&!Ao.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!sP(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Xo=()=>process.env.NODE_ENV!=="production",dr=Kg("__zag__proxyStateMap",()=>new WeakMap),lP=(e=Object.is,t=(s,l)=>new Proxy(s,l),r=new WeakMap,n=(s,l)=>{const c=r.get(s);if((c==null?void 0:c[0])===l)return c[1];const u=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s));return su(u,!0),r.set(s,[l,u]),Reflect.ownKeys(s).forEach(g=>{const f=Reflect.get(s,g);Ao.has(f)?(su(f,!1),u[g]=f):dr.has(f)?u[g]=dP(f):u[g]=f}),Object.freeze(u)},o=new WeakMap,i=[1,1],a=s=>{if(!Ka(s))throw new Error("object required");const l=o.get(s);if(l)return l;let c=i[0];const u=new Set,g=(D,v=++i[0])=>{c!==v&&(c=v,u.forEach(P=>P(D,v)))};let f=i[1];const p=(D=++i[1])=>(f!==D&&!u.size&&(f=D,m.forEach(([v])=>{const P=v[1](D);P>c&&(c=P)})),c),h=D=>(v,P)=>{const T=[...v];T[1]=[D,...T[1]],g(T,P)},m=new Map,b=(D,v)=>{if(Xo()&&m.has(D))throw new Error("prop listener already exists");if(u.size){const P=v[3](h(D));m.set(D,[v,P])}else m.set(D,[v])},y=D=>{var P;const v=m.get(D);v&&(m.delete(D),(P=v[1])==null||P.call(v))},x=D=>(u.add(D),u.size===1&&m.forEach(([P,T],I)=>{if(Xo()&&T)throw new Error("remove already exists");const L=P[3](h(I));m.set(I,[P,L])}),()=>{u.delete(D),u.size===0&&m.forEach(([P,T],I)=>{T&&(T(),m.set(I,[P]))})}),S=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s)),w=t(S,{deleteProperty(D,v){const P=Reflect.get(D,v);y(v);const T=Reflect.deleteProperty(D,v);return T&&g(["delete",[v],P]),T},set(D,v,P,T){var O;const I=Reflect.has(D,v),L=Reflect.get(D,v,T);if(I&&(e(L,P)||o.has(P)&&e(L,o.get(P))))return!0;y(v),Ka(P)&&(P=rP(P)||P);let E=P;if(!((O=Object.getOwnPropertyDescriptor(D,v))!=null&&O.set)){!dr.has(P)&&lu(P)&&(E=Hg(P));const A=!Ao.has(E)&&dr.get(E);A&&b(v,A)}return Reflect.set(D,v,E,T),g(["set",[v],P,L]),!0}});o.set(s,w);const C=[S,p,n,x];return dr.set(w,C),Reflect.ownKeys(s).forEach(D=>{const v=Object.getOwnPropertyDescriptor(s,D);v.get||v.set?Object.defineProperty(S,D,v):w[D]=s[D]}),w})=>[a,dr,Ao,e,t,lu,r,n,o,i],[cP]=lP();function Hg(e={}){return cP(e)}function uP(e,t,r){const n=dr.get(e);Xo()&&!n&&console.warn("Please use proxy object");let o;const i=[],a=n[3];let s=!1;const c=a(u=>{i.push(u),o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0))}))});return s=!0,()=>{s=!1,c()}}function dP(e){const t=dr.get(e);Xo()&&!t&&console.warn("Please use proxy object");const[r,n,o]=t;return o(r,n())}var jg=j("tooltip").parts("trigger","arrow","arrowTip","positioner","content");jg.build();var fP=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},pP=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},na=e=>e.getById(fP(e)),cu=e=>e.getById(pP(e)),ar=Hg({id:null}),{and:gP,not:uu}=xr();gP("noVisibleTooltip",uu("hasPointerMoveOpened")),uu("hasPointerMoveOpened");G()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const hP=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||r==="currentBg")return{invalid:!0,value:r};const o=t(`colors.${r}`),i=(l=t.raw(`opacity.${n}`))==null?void 0:l.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:r};const a=i?Number(i)*100+"%":`${n}%`,s=o??r;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},se=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:n.value,[e]:`var(${o}, ${n.color})`}};function Ha(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Ha(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Ha(e[r]);return t}function ja(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!Ne(e[r])&&Ne(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Ne(t[r]))ja(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Ne(e[r][n])&&Ne(t[r][n])?ja(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function tn(e,...t){for(const r of t)ja(e,r);return e}const mP=e=>e,oe=e=>e,W=e=>e,vP=e=>e,Ug=e=>e,Gg=e=>e,qg=e=>e,Yg=e=>e,Xg=e=>e;function Zg(){const e=t=>t;return new Proxy(e,{get(){return e}})}const Y=Zg(),rn=Zg(),il=e=>e,Jg=(...e)=>tn({},...e.map(Ha)),bP=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function yP(e){return`${e}`.replace(bP,t=>`\\${t}`)}const xP=/[A-Z]/g;function SP(e){return e.replace(xP,t=>`-${t.toLowerCase()}`)}function Qg(e,t={}){const{fallback:r="",prefix:n=""}=t,o=SP(["-",n,yP(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const wP=e=>/^var\(--.+\)$/.test(e),xe=(e,t)=>t!=null?`${e}(${t})`:t,sr=e=>{if(wP(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},du=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}}[t]??{}}}),CP=se("borderColor"),wt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),EP=mP({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Vr=Qg("bg-currentcolor"),fu=e=>e===Vr.ref||e==="currentBg",ae=e=>({...e("colors"),currentBg:Vr}),eh=il({conditions:EP,utilities:{background:{values:ae,shorthand:["bg"],transform(e,t){if(fu(t.raw))return{background:Vr.ref};const r=se("background")(e,t);return{...r,[Vr.var]:r==null?void 0:r.background}}},backgroundColor:{values:ae,shorthand:["bgColor"],transform(e,t){if(fu(t.raw))return{backgroundColor:Vr.ref};const r=se("backgroundColor")(e,t);return{...r,[Vr.var]:r==null?void 0:r.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ae,transform:se("--gradient-from")},gradientTo:{values:ae,transform:se("--gradient-to")},gradientVia:{values:ae,transform(e,t){return{...se("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderInlineEnd:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ae,transform:se("borderColor")},borderTopColor:{values:ae,transform:se("borderTopColor")},borderBlockStartColor:{values:ae,transform:se("borderBlockStartColor")},borderBottomColor:{values:ae,transform:se("borderBottomColor")},borderBlockEndColor:{values:ae,transform:se("borderBlockEndColor")},borderLeftColor:{values:ae,transform:se("borderLeftColor")},borderInlineStartColor:{values:ae,shorthand:["borderStartColor"],transform:se("borderInlineStartColor")},borderRightColor:{values:ae,transform:se("borderRightColor")},borderInlineEndColor:{values:ae,shorthand:["borderEndColor"],transform:se("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ae,transform:se("color")},fill:{values:ae,transform:se("fill")},stroke:{values:ae,transform:se("stroke")},accentColor:{values:ae,transform:se("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ae,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":CP(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ae,transform:se("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":xe("blur",e)})},brightness:{transform:e=>({"--brightness":xe("brightness",e)})},contrast:{transform:e=>({"--contrast":xe("contrast",e)})},grayscale:{transform:e=>({"--grayscale":xe("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":xe("hue-rotate",sr(e))})},invert:{transform:e=>({"--invert":xe("invert",e)})},saturate:{transform:e=>({"--saturate":xe("saturate",e)})},sepia:{transform:e=>({"--sepia":xe("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":xe("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":xe("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":xe("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":xe("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":xe("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":xe("hue-rotate",sr(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":xe("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":xe("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":xe("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":xe("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ae,transform:se("outlineColor")},focusRing:du("&:is(:focus, [data-focus])"),focusVisibleRing:du("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ae,transform:se("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){return{[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ae,transform:se("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ae,transform:se("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ae,transform:se("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ae,transform:se("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":sr(e)})},skewY:{transform:e=>({"--skew-y":sr(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:sr(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":sr(e)}}},rotateY:{transform(e){return{"--rotate-y":sr(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return wt("all");case"position":return wt("left, right, top, bottom, inset-inline, inset-block");case"colors":return wt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return wt("opacity");case"shadow":return wt("box-shadow");case"transform":return wt("transform");case"size":return wt("width, height");case"backgrounds":return wt("background, background-color, background-image, background-position");case"common":return wt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},srOnly:{values:{type:"boolean"},transform(e){return PP[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ae,transform:se("caretColor")},cursor:{values:"cursor"}}}),PP={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var $P="",kP=$P.split(","),TP="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",RP=TP.split(",").concat(kP),OP=new Map(RP.map(e=>[e,!0]));function IP(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var DP=/&|@/,AP=IP(e=>OP.has(e)||e.startsWith("--")||DP.test(e));const NP=e=>e!=null;function At(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){if(Ne(a)||Array.isArray(a)){const l={};for(const[c,u]of Object.entries(a)){const g=(o==null?void 0:o(c,u))??c,f=[...s,g];if(n!=null&&n(a,f))return t(a,s);const p=i(u,f);NP(p)&&(l[g]=p)}return l}return t(a,s)}return i(e)}function $t(e,t){return Array.isArray(e)?e.map(r=>t(r)):Ne(e)?At(e,r=>t(r)):e!=null?t(e):e}function LP(e,t){const r={};return At(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var oa,pu;function zP(){if(pu)return oa;pu=1,oa=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(f,p,h,m){typeof m>"u"&&(m=o()),s(f,"",0,[],void 0,0,m);var b;try{n.length===0?b=JSON.stringify(f,p,h):b=JSON.stringify(f,g(p),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var y=r.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return b}function a(f,p,h,m){var b=Object.getOwnPropertyDescriptor(m,h);b.get!==void 0?b.configurable?(Object.defineProperty(m,h,{value:f}),r.push([m,h,p,b])):n.push([p,h,f]):(m[h]=f,r.push([m,h,p]))}function s(f,p,h,m,b,y,x){y+=1;var S;if(typeof f=="object"&&f!==null){for(S=0;S<m.length;S++)if(m[S]===f){a(t,f,p,b);return}if(typeof x.depthLimit<"u"&&y>x.depthLimit){a(e,f,p,b);return}if(typeof x.edgesLimit<"u"&&h+1>x.edgesLimit){a(e,f,p,b);return}if(m.push(f),Array.isArray(f))for(S=0;S<f.length;S++)s(f[S],S,S,m,f,y,x);else{var $=Object.keys(f);for(S=0;S<$.length;S++){var w=$[S];s(f[w],w,S,m,f,y,x)}}m.pop()}}function l(f,p){return f<p?-1:f>p?1:0}function c(f,p,h,m){typeof m>"u"&&(m=o());var b=u(f,"",0,[],void 0,0,m)||f,y;try{n.length===0?y=JSON.stringify(b,p,h):y=JSON.stringify(b,g(p),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function u(f,p,h,m,b,y,x){y+=1;var S;if(typeof f=="object"&&f!==null){for(S=0;S<m.length;S++)if(m[S]===f){a(t,f,p,b);return}try{if(typeof f.toJSON=="function")return}catch{return}if(typeof x.depthLimit<"u"&&y>x.depthLimit){a(e,f,p,b);return}if(typeof x.edgesLimit<"u"&&h+1>x.edgesLimit){a(e,f,p,b);return}if(m.push(f),Array.isArray(f))for(S=0;S<f.length;S++)u(f[S],S,S,m,f,y,x);else{var $={},w=Object.keys(f).sort(l);for(S=0;S<w.length;S++){var C=w[S];u(f[C],C,S,m,f,y,x),$[C]=f[C]}if(typeof b<"u")r.push([b,p,f]),b[p]=$;else return $}m.pop()}}function g(f){return f=typeof f<"u"?f:function(p,h){return h},function(p,h){if(n.length>0)for(var m=0;m<n.length;m++){var b=n[m];if(b[1]===p&&b[0]===h){h=b[2],n.splice(m,1);break}}return f.call(this,p,h)}}return oa}var FP=zP();const MP=Yf(FP),at=e=>{const t=Object.create(null);function r(...n){const o=n.map(i=>MP(i)).join("|");return t[o]===void 0&&(t[o]=e(...n)),t[o]}return r},th=16,Zo="px",al="em",En="rem";function rh(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Zo}|${al}|${En}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n==null?void 0:n[1]}function nh(e=""){if(typeof e=="number")return`${e}px`;const t=rh(e);if(!t||t===Zo)return e;if(t===al||t===En)return`${parseFloat(e)*th}${Zo}`}function oh(e=""){const t=rh(e);if(!t||t===En)return e;if(t===al)return`${parseFloat(e)}${En}`;if(t===Zo)return`${parseFloat(e)/th}${En}`}const _P=e=>e.charAt(0).toUpperCase()+e.slice(1);function VP(e){const t=BP(e),r=Object.fromEntries(t);function n(f){return r[f]}function o(f){return Dr(n(f))}function i(){const f=Object.keys(r),p=WP(f),h=f.flatMap(m=>{const b=n(m),y=[`${m}Down`,Dr({max:No(b.min)})],x=[m,Dr({min:b.min})],S=[`${m}Only`,o(m)];return[x,S,y]}).filter(([,m])=>m!=="").concat(p.map(([m,b])=>{const y=n(m),x=n(b);return[`${m}To${_P(b)}`,Dr({min:y.min,max:No(x.min)})]}));return Object.fromEntries(h)}function a(){const f=i();return Object.fromEntries(Object.entries(f))}const s=a(),l=f=>s[f];function c(){return["base",...Object.keys(r)]}function u(f){return Dr({min:n(f).min})}function g(f){return Dr({max:No(n(f).min)})}return{values:Object.values(r),only:o,keys:c,conditions:s,getCondition:l,up:u,down:g}}function No(e){const t=parseFloat(nh(e)??"")-.04;return oh(`${t}px`)}function BP(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10)<parseInt(n,10)?-1:1).map(([r,n],o,i)=>{var s;let a=null;return o<=i.length-1&&(a=(s=i[o+1])==null?void 0:s[1]),a!=null&&(a=No(a)),[r,{name:r,min:oh(n),max:a}]})}function WP(e){const t=[];return e.forEach((r,n)=>{let o=n;o++;let i=e[o];for(;i;)t.push([r,i]),o++,i=e[o]}),t}function Dr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const KP=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t(r,n))),HP=e=>{const{breakpoints:t,conditions:r={}}=e,n=KP(r,(u,g)=>[`_${u}`,g]),o=Object.assign({},n,t.conditions);function i(){return Object.keys(o)}function a(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function s(u){return u.filter(g=>g!=="base").sort((g,f)=>{const p=a(g),h=a(f);return p&&!h?1:!p&&h?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:s,has:a,resolve:c,breakpoints:t.keys(),expandAtRule:l}},ih=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
23
- )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
24
- )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),jP=ih("width"),UP=ih("height"),ah=e=>({isMin:yu(e.minMax,e.maxMin,e.min),isMax:yu(e.maxMin,e.minMax,e.max)}),{isMin:Ua,isMax:gu}=ah(jP),{isMin:Ga,isMax:hu}=ah(UP),mu=/print/i,vu=/^print$/i,GP=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,qP=/(\d)/,bn=Number.MAX_VALUE,YP={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function bu(e){const t=GP.exec(e)||(Ua(e)||Ga(e)?qP.exec(e):null);if(!t)return bn;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(YP[n]||1)}function yu(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function XP(e,t){const r=mu.test(e),n=vu.test(e),o=mu.test(t),i=vu.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const ZP=at((e,t)=>{const r=XP(e,t);if(r!==null)return r;const n=Ua(e)||Ga(e),o=gu(e)||hu(e),i=Ua(t)||Ga(t),a=gu(t)||hu(t);if(n&&a)return-1;if(o&&i)return 1;const s=bu(e),l=bu(t);return s===bn&&l===bn?e.localeCompare(t):s===bn?1:l===bn?-1:s!==l?s>l?o?-1:1:o?1:-1:e.localeCompare(t)});function xu(e){return e.sort(([t],[r])=>ZP(t,r))}function sh(e){const t=[],r=[],n={};for(const[a,s]of Object.entries(e))a.startsWith("@media")?t.push([a,s]):a.startsWith("@container")?r.push([a,s]):Ne(s)?n[a]=sh(s):n[a]=s;const o=xu(t),i=xu(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const lh=/\s*!(important)?/i,JP=e=>mt(e)?lh.test(e):!1,QP=e=>mt(e)?e.replace(lh,"").trim():e;function ch(e){const{transform:t,conditions:r,normalize:n}=e,o=r$(e);return at(function(...a){const s=o(...a),l=n(s),c=Object.create(null);return At(l,(u,g)=>{const f=JP(u);if(u==null)return;const[p,...h]=r.sort(g).map(r.resolve);f&&(u=QP(u));let m=t(p,u)??Object.create(null);m=At(m,b=>mt(b)&&f?`${b} !important`:b,{getKey:b=>r.expandAtRule(b)}),e$(c,h.flat(),m)}),sh(c)})}function e$(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Object.create(null)),n=n[o]);tn(n,r)}function t$(...e){return e.filter(t=>Ne(t)&&Object.keys(Jr(t)).length>0)}function r$(e){function t(r){const n=t$(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return at(function(...n){return tn({},...t(n))})}function uh(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}const n$=(...e)=>{const t=e.filter(Boolean);return Array.from(new Set(t))},dh=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function o$(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(s={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:g}=dh(s),f=ch({conditions:r,normalize:n,transform(x,S){var $;return($=c[x])==null?void 0:$[S]}}),p=(x={})=>{const S=n({...u,...Jr(x)});let $={...l};tn($,f(S));const w=a(g,S);return o.wrap("recipes",t($,w))},h=Object.keys(c),m=x=>{const S=uh(x,["recipe"]),[$,w]=Hr(S,h);return h.includes("colorPalette")||($.colorPalette=x.colorPalette||u.colorPalette),h.includes("orientation")&&(w.orientation=x.orientation),[$,w]},b=Object.fromEntries(Object.entries(c).map(([x,S])=>[x,Object.keys(S)]));return Object.assign(x=>t(p(x)),{className:s.className,__cva__:!0,variantMap:b,variantKeys:h,raw:p,config:s,splitVariantProps:m,merge(x){return i(i$(e)(this,x))}})}function a(s,l){let c={};return s.forEach(u=>{Object.entries(u).every(([f,p])=>f==="css"?!0:(Array.isArray(p)?p:[p]).some(m=>l[f]===m))&&(c=t(c,u.css))}),c}return i}function i$(e){const{css:t}=e;return function(n,o){const i=dh(o.config),a=n$(n.variantKeys,Object.keys(o.variants)),s=t(n.base,i.base),l=Object.fromEntries(a.map(f=>[f,t(n.config.variants[f],i.variants[f])])),c=tn(n.config.defaultVariants,i.defaultVariants),u=[...n.compoundVariants,...i.compoundVariants];return{className:et(n.className,o.className),base:s,variants:l,defaultVariants:c,compoundVariants:u}}}const a$={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Su={reset:0,base:1,tokens:2,recipes:3};function s$(e){const t=e.layers??a$,n=Object.values(t).sort((o,i)=>Su[o]-Su[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function l$(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return At(i,r,{stop:a=>Array.isArray(a),getKey:n?o:void 0})}}function c$(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Ne(t)?t:{};let o="";r&&n==="parent"?o=`${r} `:r&&n==="element"&&(o=`&${r}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(n==="element"){const s=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(a,s)}else o?a[o]=i:Object.assign(a,i);return a}function u$(e){const{conditions:t,isValidProperty:r}=e;return function(o){return At(o,i=>i,{getKey:(i,a)=>Ne(a)&&!t.has(i)&&!r(i)?d$(i).map(s=>"&"+s).join(", "):i})}}function d$(e){const t=[];let r=0,n="",o=!1;for(let i=0;i<e.length;i++){const a=e[i];if(a==="\\"&&!o){o=!0,n+=a;continue}if(o){o=!1,n+=a;continue}a==="("?r++:a===")"&&r--,a===","&&r===0?(t.push(n.trim()),n=""):n+=a}return n&&t.push(n.trim()),t}const f$=(e={})=>{const t=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?p$(e.compoundVariants,o):[]}},n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[a,s]of Object.entries(i))n.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][a]=s[l]??{}});return Object.fromEntries(n)},p$=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function g$(e){const{cva:t}=e;return function(n={}){const o=Object.entries(f$(n)).map(([g,f])=>[g,t(f)]);function i(g){const f=o.map(([p,h])=>[p,h(g)]);return Object.fromEntries(f)}const a=n.variants??{},s=Object.keys(a);function l(g){var m;const f=uh(g,["recipe"]),[p,h]=Hr(f,s);return s.includes("colorPalette")||(p.colorPalette=g.colorPalette||((m=n.defaultVariants)==null?void 0:m.colorPalette)),s.includes("orientation")&&(h.orientation=g.orientation),[p,h]}const c=Object.fromEntries(Object.entries(a).map(([g,f])=>[g,Object.keys(f)]));let u={};return n.className&&(u=Object.fromEntries(n.slots.map(g=>[g,`${n.className}__${g}`]))),Object.assign(i,{variantMap:c,variantKeys:s,splitVariantProps:l,classNameMap:u})}}const h$=()=>e=>Array.from(new Set(e)),m$=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,v$=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},fh=e=>(e+"").replace(m$,v$),ph=(e,t)=>{let r="",n=0,o="char",i="",a="";const s=[];for(;n<e.length;){const l=e[n];if(l==="{"){const u=e.indexOf("}",n);if(u===-1)break;const g=e.slice(n+1,u),f=t(g);r+=f??g,n=u+1;continue}if(o==="token"&&l===","){e[n]===""&&n++,o="fallback",s.push(o);const u=t(i);u!=null&&u.endsWith(")")&&(r+=u.slice(0,-1)),i="",a="";continue}if(o==="fallback"&&a+l===", var("){const f=b$(e.slice(n+1))+n+1,p=e.slice(n+1,f);if(f===-1)break;r+=", var("+p+")",n=f+1,o=s.pop()??o,a="";continue}if(o==="token"||o==="fallback"){if(n++,l===")"){o=s.pop()??o??"char",a+=l;const u=i&&(t(i)??fh(i));if(a){if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const f=ph(a,t);f&&(a=f.slice(0,-1))}else if(a){const f=t(a);f&&(a=f)}}const g=r.at(-1);a?g!=null&&g.trim()?r+=u.slice(0,-1)+(", "+a+")"):r+=a:r+=u||")",i="",a="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(a+=l);continue}const c=e.indexOf("token(",n);if(c!==-1){const u=c+6;r+=e.slice(n,c),n=u,o="token",s.push(o);continue}r+=l,n++}return r},b$=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if(n==="(")r.push(n);else if(n===")"&&(r.pop(),r.length===0))return t;t++}return t};function gh(e){const t={};return e.forEach((r,n)=>{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const hh=/({([^}]*)})/g,y$=/[{}]/g,x$=/\w+\.\w+/,mh=e=>{if(!mt(e))return[];const t=e.match(hh);return t?t.map(r=>r.replace(y$,"")).map(r=>r.trim()):[]},S$=e=>hh.test(e);function vh(e){var r,n,o;if(!((r=e.extensions)!=null&&r.references))return((o=(n=e.extensions)==null?void 0:n.cssVar)==null?void 0:o.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,a)=>{const s=t[a];if(s.extensions.conditions)return i;const l=vh(s);return i.replace(`{${a}}`,l)},e.value),delete e.extensions.references,e.value}function bh(e){return Ne(e)&&e.reference?e.reference:String(e)}const xi=(e,...t)=>t.map(bh).join(` ${e} `).replace(/calc/g,""),wu=(...e)=>`calc(${xi("+",...e)})`,Cu=(...e)=>`calc(${xi("-",...e)})`,qa=(...e)=>`calc(${xi("*",...e)})`,Eu=(...e)=>`calc(${xi("/",...e)})`,Pu=e=>{const t=bh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:qa(t,-1)},Lr=Object.assign(e=>({add:(...t)=>Lr(wu(e,...t)),subtract:(...t)=>Lr(Cu(e,...t)),multiply:(...t)=>Lr(qa(e,...t)),divide:(...t)=>Lr(Eu(e,...t)),negate:()=>Lr(Pu(e)),toString:()=>e.toString()}),{add:wu,subtract:Cu,multiply:qa,divide:Eu,negate:Pu}),w$={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:s})=>s.category==="spacing").forEach(s=>{const l=s.path.slice(),c=n(l,t);if(mt(s.value)&&s.value==="0rem")return;const u=structuredClone(s);Object.assign(u.extensions,{negative:!0,prop:`-${s.extensions.prop}`,originalPath:l}),u.value=Lr.negate(c.ref);const g=u.path[u.path.length-1];g!=null&&(u.path[u.path.length-1]=`-${g}`),u.path&&(u.name=o(u.path)),i(u)})}},C$=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),E$={enforce:"post",transform(e){e.allTokens.filter(r=>C$.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:nh(r.value)})})}},P$={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:s})=>s.category==="colors"),i=new Map,a=new Map;o.forEach(s=>{const{colorPalette:l}=s.extensions;l&&(l.keys.forEach(c=>{i.set(n(c),c)}),l.roots.forEach(c=>{var f;const u=n(c),g=a.get(u)||[];if(g.push(s),a.set(u,g),s.extensions.default&&c.length===1){const p=(f=l.keys[0])==null?void 0:f.filter(Boolean);if(!p.length)return;const h=c.concat(p);i.set(n(h),[])}}))}),i.forEach(s=>{const l=["colors","colorPalette",...s].filter(Boolean),c=n(l),u=n(l.slice(1));r({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},$$={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},k$=[w$,P$,E$,$$],T$={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,a=o?i:e.path;return{cssVar:n(a.filter(Boolean),r)}}},R$={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=mh(e.value);return o.length&&o.forEach(i=>{const a=n(i.split("."),r);e.value=e.value.replace(`{${a.ref}}`,a)}),e.value}},O$={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const s=[...e.path];s.shift(),r=s}if(r.length===0)return{};const n=r.reduce((s,l,c,u)=>{const g=u.slice(0,c+1);return s.push(g),s},[]),o=r[0],i=t.formatTokenName(r),a=e.path.slice(e.path.indexOf(o)+1).reduce((s,l,c,u)=>(s.push(u.slice(c)),s),[]);return a.length===0&&a.push([""]),{colorPalette:{value:i,roots:n,keys:a}}}},I$=[T$,R$,O$],$u=e=>Ne(e)&&Object.prototype.hasOwnProperty.call(e,"value");function D$(e){return e?{breakpoints:$t(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,r])=>[`breakpoint-${t}`,{value:r}]))}:{breakpoints:{},sizes:{}}}function A$(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=N=>N.join("."),a=(N,M)=>Qg(N.join("-"),{prefix:M}),s=[],l=new Map,c=new Map,u=new Map,g=new Map,f=new Map,p=new Map,h=new Map,m=new Map,b=[];function y(N,M){s.push(N),l.set(N.name,N),M&&m.forEach(H=>{H.enforce===M&&B(H,N)})}const x=D$(o),S=Jr({...r,breakpoints:x.breakpoints,sizes:{...r.sizes,...x.sizes}});function $(){At(S,(N,M)=>{const H=M.includes("DEFAULT");M=ku(M);const ee=M[0],V=i(M),ge=mt(N)?{value:N}:N,Ae={value:ge.value,originalValue:ge.value,name:V,path:M,extensions:{condition:"base",originalPath:M,category:ee,prop:i(M.slice(1))}};H&&(Ae.extensions.default=!0),y(Ae)},{stop:$u}),At(n,(N,M)=>{const H=M.includes("DEFAULT");M=yh(ku(M));const ee=M[0],V=i(M),ge=mt(N.value)?{value:{base:N.value}}:N,Ae={value:ge.value.base||"",originalValue:ge.value.base||"",name:V,path:M,extensions:{originalPath:M,category:ee,conditions:ge.value,condition:"base",prop:i(M.slice(1))}};H&&(Ae.extensions.default=!0),y(Ae)},{stop:$u})}function w(N){return l.get(N)}function C(N){const{condition:M}=N.extensions;M&&(c.has(M)||c.set(M,new Set),c.get(M).add(N))}function D(N){const{category:M,prop:H}=N.extensions;M&&(h.has(M)||h.set(M,new Map),h.get(M).set(H,N))}function v(N){const{condition:M,negative:H,virtual:ee,cssVar:V}=N.extensions;H||ee||!M||!V||(u.has(M)||u.set(M,new Map),u.get(M).set(V.var,N.value))}function P(N){const{category:M,prop:H,cssVar:ee,negative:V}=N.extensions;if(!M)return;p.has(M)||p.set(M,new Map);const ge=V?N.extensions.conditions?N.originalValue:N.value:ee.ref;p.get(M).set(H,ge),f.set([M,H].join("."),ge)}function T(N){const{colorPalette:M,virtual:H,default:ee}=N.extensions;!M||H||M.roots.forEach(V=>{var Zl;const ge=i(V);g.has(ge)||g.set(ge,new Map);const Ae=L$([...N.path],[...V]),tr=i(Ae),Tr=w(tr);if(!Tr||!Tr.extensions.cssVar)return;const{var:N0}=Tr.extensions.cssVar;if(g.get(ge).set(N0,N.extensions.cssVar.ref),ee&&V.length===1){const L0=i(["colors","colorPalette"]),Jl=w(L0);if(!Jl)return;const z0=i(N.path),Ql=w(z0);if(!Ql)return;const ec=(Zl=M.keys[0])==null?void 0:Zl.filter(Boolean);if(!ec.length)return;const Fi=i(V.concat(ec));g.has(Fi)||g.set(Fi,new Map),g.get(Fi).set(Jl.extensions.cssVar.var,Ql.extensions.cssVar.ref)}})}let I={};function L(){s.forEach(N=>{C(N),D(N),v(N),P(N),T(N)}),I=gh(p)}const E=(N,M)=>{var Tr;if(!N||typeof N!="string")return{invalid:!0,value:N};const[H,ee]=N.split("/");if(!H||!ee)return{invalid:!0,value:H};const V=M(H),ge=(Tr=w(`opacity.${ee}`))==null?void 0:Tr.value;if(!ge&&isNaN(Number(ee)))return{invalid:!0,value:H};const Ae=ge?Number(ge)*100+"%":`${ee}%`,tr=V??H;return{invalid:!1,color:tr,value:`color-mix(in srgb, ${tr} ${Ae}, transparent)`}},O=at((N,M)=>f.get(N)??M),A=at(N=>I[N]||null),z=at(N=>ph(N,M=>{if(!M)return;if(M.includes("/")){const ee=E(M,V=>O(V));if(ee.invalid)throw new Error("Invalid color mix at "+M+": "+ee.value);return ee.value}const H=O(M);return H||(x$.test(M)?fh(M):M)})),F={prefix:t,allTokens:s,tokenMap:l,registerToken:y,getByName:w,formatTokenName:i,formatCssVar:a,flatMap:f,cssVarMap:u,categoryMap:h,colorPaletteMap:g,getVar:O,getCategoryValues:A,expandReferenceInValue:z};function R(...N){N.forEach(M=>{m.set(M.name,M)})}function _(...N){b.push(...N)}function B(N,M){if(M.extensions.references||$s(N.match)&&!N.match(M))return;const ee=(V=>N.transform(V,F))(M);switch(!0){case N.type==="extensions":Object.assign(M.extensions,ee);break;case N.type==="value":M.value=ee;break;default:M[N.type]=ee;break}}function Z(N){b.forEach(M=>{M.enforce===N&&M.transform(F)})}function ne(N){m.forEach(M=>{M.enforce===N&&s.forEach(H=>{B(M,H)})})}function _e(){s.forEach(N=>{const M=N$(N);!M||M.length===0||M.forEach(H=>{y(H)})})}function Ie(N){return mh(N).map(H=>w(H)).filter(Boolean)}function De(){s.forEach(N=>{if(!S$(N.value))return;const M=Ie(N.value);N.extensions.references=M.reduce((H,ee)=>(H[ee.name]=ee,H),{})})}function Ft(){s.forEach(N=>{vh(N)})}function er(){Z("pre"),ne("pre"),_e(),De(),Ft(),Z("post"),ne("post"),L()}return $(),R(...I$),_(...k$),er(),F}function ku(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function yh(e){return e.filter(t=>t!=="base")}function N$(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return At(t,(n,o)=>{const i=yh(o);if(!i.length)return;const a=structuredClone(e);a.value=n,a.extensions.condition=i.join(":"),r.push(a)}),r}function L$(e,t){const r=e.findIndex((n,o)=>t.every((i,a)=>e[o+a]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}h$()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function z$(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,r]))}function F$(e){const t=z$(e.config),r=e.tokens,n=new Map,o=new Map;function i(v,P){t[v]=P,a(v,P)}const a=(v,P)=>{const T=m(P);T&&(o.set(v,T),g(v,P))},s=()=>{for(const[v,P]of Object.entries(t))P&&a(v,P)},l=()=>{for(const[v,P]of Object.entries(t)){const{shorthand:T}=P??{};if(!T)continue;(Array.isArray(T)?T:[T]).forEach(L=>n.set(L,v))}},c=()=>{const v=gh(r.colorPaletteMap);i("colorPalette",{values:Object.keys(v),transform:at(P=>v[P])})},u=new Map,g=(v,P)=>{if(!P)return;const T=m(P,L=>`type:Tokens["${L}"]`);if(typeof T=="object"&&T.type){u.set(v,new Set([`type:${T.type}`]));return}if(T){const L=new Set(Object.keys(T));u.set(v,L)}const I=u.get(v)??new Set;P.property&&u.set(v,I.add(`CssProperties["${P.property}"]`))},f=()=>{for(const[v,P]of Object.entries(t))P&&g(v,P)},p=(v,P)=>{const T=u.get(v)??new Set;u.set(v,new Set([...T,...P]))},h=()=>{const v=new Map;for(const[P,T]of u.entries()){if(T.size===0){v.set(P,["string"]);continue}const I=Array.from(T).map(L=>L.startsWith("CssProperties")?L:L.startsWith("type:")?L.replace("type:",""):JSON.stringify(L));v.set(P,I)}return v},m=(v,P)=>{const{values:T}=v,I=L=>{const E=P==null?void 0:P(L);return E?{[E]:E}:void 0};return mt(T)?(I==null?void 0:I(T))??r.getCategoryValues(T)??{}:Array.isArray(T)?T.reduce((L,E)=>(L[E]=E,L),{}):$s(T)?T(P?I:r.getCategoryValues):T},b=at((v,P)=>({[v]:v.startsWith("--")?r.getVar(P,P):P})),y=Object.assign(r.getVar,{raw:v=>r.getByName(v)}),x=at((v,P)=>{var O;const T=w(v);mt(P)&&!P.includes("_EMO_")&&(P=r.expandReferenceInValue(P));const I=t[T];if(!I)return b(T,P);const L=(O=o.get(T))==null?void 0:O[P];if(!I.transform)return b(v,L??P);const E=A=>hP(A,y);return I.transform(L??P,{raw:P,token:y,utils:{colorMix:E}})});function S(){l(),c(),s(),f()}S();const $=n.size>0,w=at(v=>n.get(v)??v);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:$,transform:x,shorthands:n,resolveShorthand:w,register:i,getTypes:h,addPropertyType:p}}function xh(...e){const t=Jg(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=s$(t),c=A$({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:a}),u=VP(r.breakpoints??{}),g=HP({conditions:t.conditions??{},breakpoints:u}),f=F$({config:n,tokens:c});function p(){const{textStyles:R,layerStyles:_,animationStyles:B}=r,Z=Jr({textStyle:R,layerStyle:_,animationStyle:B});for(const[ne,_e]of Object.entries(Z)){const Ie=LP(_e??{},De=>Ne(De)&&"value"in De);f.register(ne,{values:Object.keys(Ie),transform(De){return S(Ie[De])}})}}p(),f.addPropertyType("animationName",Object.keys(r.keyframes??{}));const h=new Set(["css",...f.keys(),...g.keys()]),m=at(R=>h.has(R)||AP(R)),b=R=>Array.isArray(R)?R.reduce((_,B,Z)=>{const ne=g.breakpoints[Z];return B!=null&&(_[ne]=B),_},{}):R,y=l$({utility:f,normalize:b}),x=u$({conditions:g,isValidProperty:m}),S=ch({transform:f.transform,conditions:g,normalize:y}),$=o$({css:S,conditions:g,normalize:y,layers:l}),w=g$({cva:$});function C(){const R={};for(const[_,B]of c.cssVarMap.entries()){const Z=Object.fromEntries(B);if(Object.keys(Z).length===0)continue;const ne=_==="base"?i:g.resolve(_),_e=S(x({[ne]:Z}));tn(R,_e)}return l.wrap("tokens",R)}function D(){const R=Object.fromEntries(Object.entries(r.keyframes??{}).map(([B,Z])=>[`@keyframes ${B}`,Z])),_=Object.assign({},R,S(x(o)));return l.wrap("base",_)}function v(R){return Hr(R,m)}function P(){const R=c$({preflight:s});return l.wrap("reset",R)}const T=M$(c),I=(R,_)=>{var B;return((B=T.get(R))==null?void 0:B.value)||_};I.var=(R,_)=>{var B;return((B=T.get(R))==null?void 0:B.variable)||_};function L(R,_){var B;return((B=r.recipes)==null?void 0:B[R])??_}function E(R,_){var B;return((B=r.slotRecipes)==null?void 0:B[R])??_}function O(R){return Object.hasOwnProperty.call(r.recipes??{},R)}function A(R){return Object.hasOwnProperty.call(r.slotRecipes??{},R)}function z(R){return O(R)||A(R)}const F=[P(),D(),C()];return{$$chakra:!0,_config:t,_global:F,breakpoints:u,tokens:c,conditions:g,utility:f,token:I,properties:h,layers:l,isValidProperty:m,splitCssProps:v,normalizeValue:b,getTokenCss:C,getGlobalCss:D,getPreflightCss:P,css:S,cva:$,sva:w,getRecipe:L,getSlotRecipe:E,hasRecipe:z,isRecipe:O,isSlotRecipe:A}}function M$(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,a=i||o?n.ref:r.value;t.set(r.name,{value:a,variable:n.ref})}),t}const _$={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},ia="var(--chakra-empty,/*!*/ /*!*/)",V$=Ug({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":ia,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,ia])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,ia])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.muted/80"}}),B$=Xg({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),W$=Yg({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),sl=oe({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),K$=oe({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),we=oe({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:H$,defaultVariants:j$}=sl,U$=oe({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:H$,defaultVariants:j$}),Sh=oe({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),G$=oe({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),q$=oe({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),Y$=oe({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),me=oe({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),X$=oe({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:me.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),Z$=oe({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),J$=oe({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),Q$=oe({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Ce=oe({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}}),ek=oe({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),tk=oe({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),rk=oe({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),nk=oe({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),ok=oe({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),ik={badge:sl,button:K$,code:U$,container:G$,heading:q$,input:me,inputAddon:X$,kbd:Z$,link:J$,mark:Q$,separator:ek,skeleton:tk,skipNavLink:rk,spinner:nk,textarea:ok,icon:Y$,checkmark:we,radiomark:Ce,colorSwatch:Sh},ak=rn.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}}}}),sk=rn.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),lk=rn.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),ck=Xp.extendWith("itemBody"),uk=j("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),dk=j("alert").parts("title","description","root","indicator","content"),fk=j("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),pk=j("blockquote").parts("root","icon","content","caption"),gk=j("card").parts("root","header","body","footer","title","description"),hk=j("checkbox-card",["root","control","label","description","addon","indicator","content"]),mk=j("data-list").parts("root","item","itemLabel","itemValue"),vk=tl.extendWith("header","body","footer","backdrop"),bk=tl.extendWith("header","body","footer","backdrop"),yk=yg.extendWith("textarea"),xk=j("empty-state",["root","content","indicator","title","description"]),Sk=xg.extendWith("requiredIndicator"),wk=Sg.extendWith("content"),Ck=wg.extendWith("itemContent","dropzoneContent","fileText"),Ek=j("list").parts("root","item","indicator"),Pk=Pg.extendWith("itemCommand"),$k=j("select").parts("root","field","indicator"),kk=Lg.extendWith("header","body","footer"),wh=ol.extendWith("itemAddon","itemIndicator"),Tk=wh.extendWith("itemContent","itemDescription"),Rk=Fg.extendWith("itemIndicator"),Ok=_g.extendWith("indicatorGroup"),Ik=Bg.extendWith("markerIndicator"),Dk=j("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Ak=j("status").parts("root","indicator"),Nk=j("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Lk=Wg.extendWith("indicator"),zk=j("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Fk=j("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),Mk=j("tabs").parts("root","trigger","list","content","contentGroup","indicator"),_k=j("tag").parts("root","label","closeTrigger","startElement","endElement"),Vk=j("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Bk=uC.extendWith("channelText"),Wk=W({className:"chakra-accordion",slots:ck.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Kk=W({className:"chakra-action-bar",slots:uk.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),Hk=W({slots:dk.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),jk=W({slots:Qp.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),Uk=W({className:"chakra-blockquote",slots:pk.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),Gk=W({className:"chakra-breadcrumb",slots:fk.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),qk=W({className:"chakra-card",slots:gk.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}});var $d,kd,Td,Rd,Od,Id,Dd,Ad,Nd,Ld,zd,Fd,Md,_d;const Yk=W({slots:cC.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:we.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(kd=($d=we.variants)==null?void 0:$d.size)==null?void 0:kd.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Rd=(Td=we.variants)==null?void 0:Td.size)==null?void 0:Rd.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Id=(Od=we.variants)==null?void 0:Od.size)==null?void 0:Id.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Ad=(Dd=we.variants)==null?void 0:Dd.size)==null?void 0:Ad.lg}},variant:{outline:{control:(Ld=(Nd=we.variants)==null?void 0:Nd.variant)==null?void 0:Ld.outline},solid:{control:(Fd=(zd=we.variants)==null?void 0:zd.variant)==null?void 0:Fd.solid},subtle:{control:(_d=(Md=we.variants)==null?void 0:Md.variant)==null?void 0:_d.subtle}}},defaultVariants:{variant:"solid",size:"md"}});var Vd,Bd,Wd,Kd,Hd,jd,Ud;const Xk=W({slots:hk.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:we.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(Vd=we.variants)==null?void 0:Vd.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Bd=we.variants)==null?void 0:Bd.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Wd=we.variants)==null?void 0:Wd.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(Kd=we.variants)==null?void 0:Kd.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Hd=we.variants)==null?void 0:Hd.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(jd=we.variants)==null?void 0:jd.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Ud=we.variants)==null?void 0:Ud.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),Zk=W({slots:Op.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}});var Gd,qd,Yd,Xd,Zd,Jd,Qd,ef,tf,rf,nf,of,af,sf,lf,cf,uf,df;const Jk=W({className:"colorPicker",slots:Bk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Sh.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...me.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(qd=(Gd=me.variants)==null?void 0:Gd.size)==null?void 0:qd["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(Xd=(Yd=me.variants)==null?void 0:Yd.size)==null?void 0:Xd.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(Jd=(Zd=me.variants)==null?void 0:Zd.size)==null?void 0:Jd.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(ef=(Qd=me.variants)==null?void 0:Qd.size)==null?void 0:ef.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(rf=(tf=me.variants)==null?void 0:tf.size)==null?void 0:rf.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(of=(nf=me.variants)==null?void 0:nf.size)==null?void 0:of.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(sf=(af=me.variants)==null?void 0:af.size)==null?void 0:sf["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(cf=(lf=me.variants)==null?void 0:lf.variant)==null?void 0:cf.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(df=(uf=me.variants)==null?void 0:uf.variant)==null?void 0:df.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Qk=W({slots:mk.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),e4=W({slots:vk.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"calc(var(--z-index) - 1) ",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),t4=W({slots:bk.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"calc(var(--z-index) - 1) ",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},top:{positioner:{alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),Tu=Gg({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),r4=W({slots:yk.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Tu,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"normal",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Tu,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),n4=W({slots:xk.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),o4=W({className:"chakra-field",slots:Sk.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),i4=W({className:"fieldset",slots:wk.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),a4=W({className:"chakra-file-upload",slots:Ck.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),s4=W({className:"chakra-hover-card",slots:Eg.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),l4=W({className:"chakra-list",slots:Ek.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),c4=W({className:"chakra-menu",slots:Pk.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),Lo=W({className:"chakra-select",slots:Ok.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",right:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}});var ff,pf;const u4=W({className:"chakra-native-select",slots:$k.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(ff=Lo.variants)==null?void 0:ff.variant.outline.trigger},subtle:{field:(pf=Lo.variants)==null?void 0:pf.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{field:{textStyle:"xs",ps:"2",pe:"6",height:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{field:{textStyle:"sm",ps:"2.5",pe:"8",height:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{field:{textStyle:"sm",ps:"3",pe:"8",height:"10"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{field:{textStyle:"md",ps:"4",pe:"8",height:"11"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{field:{textStyle:"md",ps:"4.5",pe:"10",height:"12"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Lo.defaultVariants});function Ya(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}const Ru=Gg({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),d4=W({className:"chakra-number-input",slots:Ig.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...me.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Ru,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Ru,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:me.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:me.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:me.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:me.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ya(me.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Ou,defaultVariants:f4}=me,p4=W({className:"chakra-pin-input",slots:Ng.keys(),base:{input:{...me.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ya(Ou.size,(e,t)=>[e,{input:t}]),variant:Ya(Ou.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:f4}),g4=W({className:"chakra-popover",slots:kk.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),h4=W({slots:nl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),m4=W({className:"chakra-progress-circle",slots:nl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),v4=W({slots:zg.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}});var gf,hf,mf,vf,bf,yf,xf;const b4=W({className:"chakra-radio-card",slots:Tk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Ce.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(gf=Ce.variants)==null?void 0:gf.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(hf=Ce.variants)==null?void 0:hf.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(mf=Ce.variants)==null?void 0:mf.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(vf=Ce.variants)==null?void 0:vf.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(bf=Ce.variants)==null?void 0:bf.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(yf=Ce.variants)==null?void 0:yf.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(xf=Ce.variants)==null?void 0:xf.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}});var Sf,wf,Cf,Ef,Pf,$f,kf,Tf,Rf,Of,If,Df,Af,Nf;const y4=W({className:"chakra-radio-group",slots:wh.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Ce.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(wf=(Sf=Ce.variants)==null?void 0:Sf.variant)==null?void 0:wf.outline},subtle:{itemControl:(Ef=(Cf=Ce.variants)==null?void 0:Cf.variant)==null?void 0:Ef.subtle},solid:{itemControl:($f=(Pf=Ce.variants)==null?void 0:Pf.variant)==null?void 0:$f.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(Tf=(kf=Ce.variants)==null?void 0:kf.size)==null?void 0:Tf.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(Of=(Rf=Ce.variants)==null?void 0:Rf.size)==null?void 0:Of.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(Df=(If=Ce.variants)==null?void 0:If.size)==null?void 0:Df.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(Nf=(Af=Ce.variants)==null?void 0:Af.size)==null?void 0:Nf.lg}}},defaultVariants:{size:"md",variant:"solid"}}),x4=W({className:"chakra-rating-group",slots:Rk.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative",_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"inset(0 50% 0 0)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),S4=W({className:"chakra-segment-group",slots:Mg.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted"},item:{display:"flex",alignItems:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",insetInlineStart:0,insetBlock:"1.5",bg:"border",width:"1px",transition:"opacity 0.2s"},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{root:{height:"6"},item:{textStyle:"xs",px:"3",gap:"1"}},sm:{root:{height:"8"},item:{textStyle:"sm",px:"4",gap:"2"}},md:{root:{height:"10"},item:{textStyle:"sm",px:"4",gap:"2"}},lg:{root:{height:"10"},item:{textStyle:"md",px:"5",gap:"3"}}}},defaultVariants:{size:"md"}}),w4=W({className:"chakra-slider",slots:Ik.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),C4=W({className:"chakra-stat",slots:Dk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),E4=W({className:"chakra-status",slots:Ak.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),P4=W({className:"chakra-steps",slots:Nk.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),$4=W({slots:Lk.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),k4=W({className:"chakra-table",slots:zk.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),T4=W({slots:Mk.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}});var Lf;const qe=(Lf=sl.variants)==null?void 0:Lf.variant,R4=W({slots:_k.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:qe==null?void 0:qe.subtle},solid:{root:qe==null?void 0:qe.solid},outline:{root:qe==null?void 0:qe.outline},surface:{root:qe==null?void 0:qe.surface}}},defaultVariants:{size:"md",variant:"surface"}}),O4=W({slots:Vk.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),I4=W({slots:Fk.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),D4=W({slots:jg.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),A4={accordion:Wk,actionBar:Kk,alert:Hk,avatar:jk,blockquote:Uk,breadcrumb:Gk,card:qk,checkbox:Yk,checkboxCard:Xk,collapsible:Zk,dataList:Qk,dialog:e4,drawer:t4,editable:r4,emptyState:n4,field:o4,fieldset:i4,fileUpload:a4,hoverCard:s4,list:l4,menu:c4,nativeSelect:u4,numberInput:d4,pinInput:p4,popover:g4,progress:h4,progressCircle:m4,radioCard:b4,radioGroup:y4,ratingGroup:x4,segmentGroup:S4,select:Lo,slider:w4,stat:C4,steps:P4,switch:$4,table:k4,tabs:T4,tag:R4,toast:I4,tooltip:D4,status:E4,timeline:O4,colorPicker:Jk,qrCode:v4},N4=qg({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),L4=Y.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),z4=Y.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),F4=Y.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),M4=Y.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),_4=Y.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),V4=Y.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),B4=Y.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),W4=Y.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),K4=Y.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),H4=Y.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),Iu='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',j4=Y.fonts({heading:{value:`Inter, ${Iu}`},body:{value:`Inter, ${Iu}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),U4=vP({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),G4=Y.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),q4=Y.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),Y4=Y.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Ch=Y.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),X4=Y.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Z4=Y.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),J4=Y.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),Q4=Y.sizes({...X4,...Ch,...J4,...Z4}),e5=Y.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),t5=il({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:V$,theme:{breakpoints:_$,keyframes:U4,tokens:{aspectRatios:z4,animations:L4,blurs:F4,borders:M4,colors:_4,durations:B4,easings:W4,fonts:j4,fontSizes:K4,fontWeights:H4,letterSpacings:G4,lineHeights:q4,radii:Y4,spacing:Ch,sizes:Q4,zIndex:e5,cursor:V4},semanticTokens:{colors:ak,shadows:lk,radii:sk},recipes:ik,slotRecipes:A4,textStyles:N4,layerStyles:B$,animationStyles:W$}}),r5=Jg(eh,t5),Eh=xh(r5);function Si(e){const{key:t,recipe:r}=e,n=Bn();return d.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const n5=e=>e.charAt(0).toUpperCase()+e.slice(1),xt=e=>{const{key:t,recipe:r}=e,n=n5(t||r.className||"Component"),[o,i]=wn({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[a,s]=wn({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=wn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function u(h){const{unstyled:m,...b}=h,y=Si({key:t,recipe:b.recipe||r}),[x,S]=d.useMemo(()=>y.splitVariantProps(b),[b,y]);return{styles:d.useMemo(()=>m?K0:y(x),[m,x,y]),classNames:y.classNameMap,props:S}}function g(h,m={}){const{defaultProps:b}=m,y=x=>{const S=c(),$=d.useMemo(()=>kn(b,S,x),[S,x]),{styles:w,classNames:C,props:D}=u($);return k.jsx(o,{value:w,children:k.jsx(a,{value:C,children:k.jsx(h,{...D})})})};return y.displayName=h.displayName||h.name,y}return{StylesProvider:o,ClassNamesProvider:a,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(h,m,b)=>{const{defaultProps:y,...x}=b??{},S=Re(h,{},x),$=d.forwardRef((w,C)=>{var O;const D=c(),v=d.useMemo(()=>kn(y??{},D,w),[D,w]),{styles:P,props:T,classNames:I}=u(v),L=I[m],E=k.jsx(o,{value:P,children:k.jsx(a,{value:I,children:k.jsx(S,{ref:C,...T,css:[P[m],v.css],className:et(v.className,L)})})});return((O=b==null?void 0:b.wrapElement)==null?void 0:O.call(b,E,v))??E});return $.displayName=h.displayName||h.name,$},withContext:(h,m,b)=>{const y=Re(h,{},b),x=d.forwardRef((S,$)=>{const w=i(),C=s(),D=C==null?void 0:C[m];return k.jsx(y,{...S,css:[m?w[m]:void 0,S.css],ref:$,className:et(S.className,D)})});return x.displayName=h.displayName||h.name,x},withRootProvider:g,useStyles:i,useClassNames:s}},o5="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",i5=`(?:${o5.split(",").join("|")})`,a5=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${i5}$`),s5=e=>typeof e=="string"&&a5.test(e),go=e=>s5(e)||Fy(e)?e:`token(spacing.${e}, ${e})`,l5=d.forwardRef(function(t,r){const{inline:n,inlineStart:o,inlineEnd:i,block:a,blockStart:s,blockEnd:l,...c}=t;return k.jsx(Re.div,{ref:r,...c,css:{"--bleed-inline-start":$t(n??o,go),"--bleed-inline-end":$t(n??i,go),"--bleed-block-start":$t(a??s,go),"--bleed-block-end":$t(a??l,go),marginInlineStart:"calc(var(--bleed-inline-start, 0) * -1)",marginInlineEnd:"calc(var(--bleed-inline-end, 0) * -1)",marginBlockStart:"calc(var(--bleed-block-start, 0) * -1)",marginBlockEnd:"calc(var(--bleed-block-end, 0) * -1)"}})}),Ph=Re("div");Ph.displayName="Box";const{withContext:c5}=rt({key:"code"}),u5=c5("code");function d5(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":$t(r,o=>n[o])}}function f5(e){return d.Children.toArray(e).filter(t=>d.isValidElement(t))}const p5=d.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:a="0.5rem",wrap:s,children:l,separator:c,className:u,...g}=t,f=d.useMemo(()=>d5({gap:a,direction:n}),[a,n]),p=d.useMemo(()=>c?f5(l).map((h,m,b)=>{const y=typeof h.key<"u"?h.key:m,x=d.cloneElement(c,{css:[f,c.props.css]});return k.jsxs(d.Fragment,{children:[h,m===b.length-1?null:x]},y)}):l,[l,c,f]);return k.jsx(Re.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:s,gap:c?void 0:a,className:et("chakra-stack",u),...g,children:p})}),{withRootProvider:$h,withContext:St}=xt({key:"dialog"});$h(BC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const g5=$h(VC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),h5=St(bg,"trigger",{forwardAsChild:!0}),m5=St(fg,"positioner",{forwardAsChild:!0}),v5=St(ug,"content",{forwardAsChild:!0}),b5=St(dg,"description",{forwardAsChild:!0}),y5=St(vg,"title",{forwardAsChild:!0}),x5=St(cg,"closeTrigger",{forwardAsChild:!0}),S5=d.forwardRef(function(t,r){const n=Xt();return k.jsx(Re.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),kh=St(lg,"backdrop",{forwardAsChild:!0}),w5=St("div","body"),C5=St("div","footer"),E5=St("div","header");function P5(e){const{each:t,fallback:r,children:n}=e;return(t==null?void 0:t.length)===0?r||null:t==null?void 0:t.map(n)}const Pn=d.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,inline:u,...g}=t;return k.jsx(Re.div,{ref:r,...g,css:{display:u?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c,...t.css}})});function Du(e){return $t(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}const Th=d.forwardRef(function(t,r){const{area:n,colSpan:o,colStart:i,colEnd:a,rowEnd:s,rowSpan:l,rowStart:c,...u}=t,g=Jr({gridArea:n,gridColumn:Du(o),gridRow:Du(l),gridColumnStart:i,gridColumnEnd:a,gridRowStart:c,gridRowEnd:s});return k.jsx(Re.div,{ref:r,css:g,...u})}),$5=d.forwardRef(function(t,r){const{columns:n,minChildWidth:o,...i}=t,a=Bn(),s=o?T5(o,a):R5(n);return k.jsx(rp,{ref:r,templateColumns:s,...i})});function k5(e){return typeof e=="number"?`${e}px`:e}function T5(e,t){return $t(e,r=>{const n=t.tokens.getVar(`sizes.${r}`,k5(r));return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function R5(e){return $t(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withContext:O5}=rt({key:"mark"}),I5=O5("mark");function D5(e){const{children:t,query:r,ignoreCase:n,matchAll:o,styles:i}=e;if(typeof t!="string")throw new Error("The children prop of Highlight must be a string");const a=qC({query:r,text:t,matchAll:o,ignoreCase:n});return k.jsx(P5,{each:a,children:(s,l)=>s.match?k.jsx(I5,{css:i,children:s.text},l):k.jsx(d.Fragment,{children:s.text},l)})}const A5=d.forwardRef(function(t,r){const{align:n,fit:o="cover",...i}=t;return k.jsx(Re.img,{ref:r,objectFit:o,objectPosition:n,className:et("chakra-image",t.className),...i})}),{withContext:N5}=rt({key:"kbd"}),L5=N5("kbd"),{withProvider:z5,withContext:Rh,PropsProvider:F5}=xt({key:"list"}),Oh=z5("ul","root",{defaultProps:{role:"list"}}),M5=F5,Ih=Rh("li","item"),_5=Rh("span","indicator"),V5=Object.freeze(Object.defineProperty({__proto__:null,Indicator:_5,Item:Ih,Root:Oh,RootPropsProvider:M5},Symbol.toStringTag,{value:"Module"})),{StylesProvider:B5,ClassNamesProvider:W5,useRecipeResult:K5,withContext:Lt,PropsProvider:H5}=xt({key:"table"}),Dh=d.forwardRef(function({native:t,...r},n){const{styles:o,props:i,classNames:a}=K5(r),s=d.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return k.jsx(W5,{value:a,children:k.jsx(B5,{value:o,children:k.jsx(Re.table,{ref:n,...i,css:[s,r.css],className:et(a==null?void 0:a.root,r.className)})})})}),j5=H5,Ah=Lt("tr","row"),U5=Re("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),Nh=Lt("thead","header"),Lh=Lt("tfoot","footer"),zh=Lt("th","columnHeader"),Fh=Lt("td","cell"),G5=Lt("caption","caption",{defaultProps:{captionSide:"bottom"}}),Mh=Lt("tbody","body"),_h=Lt("colgroup"),Vh=Lt("col"),q5=Object.freeze(Object.defineProperty({__proto__:null,Body:Mh,Caption:G5,Cell:Fh,Column:Vh,ColumnGroup:_h,ColumnHeader:zh,Footer:Lh,Header:Nh,Root:Dh,RootPropsProvider:j5,Row:Ah,ScrollArea:U5},Symbol.toStringTag,{value:"Module"})),{withContext:Y5}=rt({key:"heading"}),X5=Y5("h2"),{withContext:Z5}=rt({key:"text"}),J5=Z5("p"),Q5=Re("em",{base:{fontStyle:"italic"}}),Bh=oe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:e3}=rt({recipe:Bh}),t3=e3("figure");function r3(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const Wh=d.forwardRef((e,t)=>{const{firstName:r,lastName:n,src:o,alt:i,...a}=e,s=`${r} ${n}`,l={"aria-label":`${s} avatar`,ref:t,...a};return k.jsx(t3,{...l,children:o?k.jsx(A5,{src:o,alt:i||s}):r3(r,n)})});Wh.displayName="Avatar";const kt=d.forwardRef((e,t)=>k.jsx(Ph,{ref:t,...e}));kt.displayName="Box";const X=typeof document<"u"?d.useLayoutEffect:()=>{};function Pe(e){const t=d.useRef(null);return X(()=>{t.current=e},[e]),d.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function n3(e){let[t,r]=d.useState(e),n=d.useRef(null),o=Pe(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}t===a.value?o():r(a.value)});X(()=>{n.current&&o()});let i=Pe(a=>{n.current=a(t),o()});return[t,i]}const Jo={prefix:String(Math.round(Math.random()*1e10)),current:0},Kh=d.createContext(Jo),o3=d.createContext(!1);let i3=!!(typeof window<"u"&&window.document&&window.document.createElement),aa=new WeakMap;function a3(e=!1){let t=d.useContext(Kh),r=d.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=aa.get(i);a==null?aa.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,aa.delete(i))}r.current=++t.current}return r.current}function s3(e){let t=d.useContext(Kh);t===Jo&&!i3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=a3(!!e),n=t===Jo&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function l3(e){let t=d.useId(),[r]=d.useState(Zt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Jo.prefix}`;return e||`${n}-${t}`}const c3=typeof d.useId=="function"?l3:s3;function u3(){return!1}function d3(){return!0}function f3(e){return()=>{}}function Zt(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(f3,u3,d3):d.useContext(o3)}let p3=!!(typeof window<"u"&&window.document&&window.document.createElement),Vt=new Map;function $e(e){let[t,r]=d.useState(e),n=d.useRef(null),o=c3(t),i=d.useCallback(a=>{n.current=a},[]);return p3&&(Vt.has(o)&&!Vt.get(o).includes(i)?Vt.set(o,[...Vt.get(o),i]):Vt.set(o,[i])),X(()=>{let a=o;return()=>{Vt.delete(a)}},[o]),d.useEffect(()=>{let a=n.current;a&&(n.current=null,r(a))}),o}function g3(e,t){if(e===t)return e;let r=Vt.get(e);if(r)return r.forEach(o=>o(t)),t;let n=Vt.get(t);return n?(n.forEach(o=>o(e)),e):t}function An(e=[]){let t=$e(),[r,n]=n3(t),o=d.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return X(o,[t,o,...e]),r}function qt(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const ue=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Qe=e=>e&&"window"in e&&e.window===e?e:ue(e).defaultView||window;function Hh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Hh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function h3(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Hh(e))&&(n&&(n+=" "),n+=t);return n}function K(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=qt(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=h3(i,a):o==="id"&&i&&a?t.id=g3(i,a):t[o]=a!==void 0?a:i}}return t}function jh(...e){return e.length===1&&e[0]?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const m3=new Set(["id"]),v3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),b3=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),y3=/^(data-.*)$/;function ye(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(m3.has(a)||r&&v3.has(a)||n&&b3.has(a)||o!=null&&o.has(a)||y3.test(a))&&(i[a]=e[a]);return i}function Tt(e){if(x3())e.focus({preventScroll:!0});else{let t=S3(e);e.focus(),w3(t)}}let ho=null;function x3(){if(ho==null){ho=!1;try{document.createElement("div").focus({get preventScroll(){return ho=!0,!0}})}catch{}}return ho}function S3(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function w3(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function wi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ll(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function zt(e){let t=null;return()=>(t==null&&(t=e()),t)}const Yt=zt(function(){return ll(/^Mac/i)}),C3=zt(function(){return ll(/^iPhone/i)}),Uh=zt(function(){return ll(/^iPad/i)||Yt()&&navigator.maxTouchPoints>1}),Ci=zt(function(){return C3()||Uh()}),E3=zt(function(){return Yt()||Ci()}),cl=zt(function(){return wi(/AppleWebKit/i)&&!Gh()}),Gh=zt(function(){return wi(/Chrome/i)}),ul=zt(function(){return wi(/Android/i)}),P3=zt(function(){return wi(/Firefox/i)}),$3=d.createContext({isNative:!0,open:R3,useHref:e=>e});function Ei(){return d.useContext($3)}function k3(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function mr(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;P3()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Yt()?i=!0:a=!0);let c=cl()&&Yt()&&!Uh()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});mr.isOpening=r,Tt(e),e.dispatchEvent(c),mr.isOpening=!1}mr.isOpening=!1;function T3(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function R3(e,t){T3(e,r=>mr(r,t))}function qh(e){let t=Ei();var r;const n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let zr=new Map,Xa=new Set;function Au(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=zr.get(n.target);o||(o=new Set,zr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=zr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),zr.delete(n.target)),zr.size===0)){for(let i of Xa)i();Xa.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Au():document.addEventListener("DOMContentLoaded",Au));function Yh(e){requestAnimationFrame(()=>{zr.size===0?e():Xa.add(e)})}function Xh(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),r=d.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),n=d.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return d.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Zh(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=$e(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Ue(e){const t=d.useRef(null);return d.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Nu(e,t){const r=d.useRef(!0),n=d.useRef(null);X(()=>(r.current=!0,()=>{r.current=!1}),[]),X(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function O3(){return typeof window.ResizeObserver<"u"}function Za(e){const{ref:t,box:r,onResize:n}=e;d.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(O3()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function dl(e,t){X(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Nn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Jh(e,t){let r=e;for(Nn(r,t)&&(r=r.parentElement);r&&!Nn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function I3(e,t){const r=[];for(;e&&e!==document.documentElement;)Nn(e,t)&&r.push(e),e=e.parentElement;return r}let D3=0;const sa=new Map;function A3(e){let[t,r]=d.useState();return X(()=>{if(!e)return;let n=sa.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${D3++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},sa.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),sa.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function yn(e,t,r,n){let o=Pe(r),i=r==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i,o])}function Qh(e,t){let r=Lu(e,t,"left"),n=Lu(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:g,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),h=a+parseInt(c,10),m=s+parseInt(l,10),b=h+e.clientWidth,y=m+e.clientHeight,x=parseInt(u,10)||0,S=parseInt(f,10)||0,$=parseInt(g,10)||0,w=parseInt(p,10)||0;r<=a+w?a=r-parseInt(c,10)-w:r+o>b-$&&(a+=r+o-b+$),n<=m+x?s=n-parseInt(l,10)-x:n+i>y-S&&(s+=n+i-y+S),e.scrollLeft=a,e.scrollTop=s}function Lu(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function zu(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=I3(e);for(let c of l)Qh(c,e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:g}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-g)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Ja(e){return e.mozInputSource===0&&e.isTrusted?!0:ul()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function N3(e){return!ul()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fl(e,t,r){let n=d.useRef(t),o=Pe(()=>{r&&r(n.current)});d.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}const L3="react-aria-clear-focus",z3="react-aria-focus",em="react-aria-update-activedescendant";function Fr(e){return Yt()?e.metaKey:e.ctrlKey}function tm(e,t=!0){let[r,n]=d.useState(!0),o=r&&t;return X(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),nm(e,o,d.useCallback(()=>n(!1),[])),o}function rm(e,t){let[r,n]=d.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return nm(e,o,d.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function nm(e,t,r){X(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||ct.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}function Jt(e,t,r){let[n,o]=d.useState(e||t),i=d.useRef(e!==void 0),a=e!==void 0;d.useEffect(()=>{let c=i.current;c!==a&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:n,l=d.useCallback((c,...u)=>{let g=(f,...p)=>{r&&(Object.is(s,f)||r(f,...p)),a||(s=f)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let m=c(a?s:p,...h);return g(m,...u),a?p:m})):(a||o(c),g(c,...u))},[a,s,r]);return[s,l]}function Qo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let Br="default",Qa="",zo=new WeakMap;function Fu(e){if(Ci()){if(Br==="default"){const t=ue(e);Qa=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Br="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(zo.set(e,e.style.userSelect),e.style.userSelect="none")}function mo(e){if(Ci()){if(Br!=="disabled")return;Br="restoring",setTimeout(()=>{Yh(()=>{if(Br==="restoring"){const t=ue(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Qa||""),Qa="",Br="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zo.has(e)){let t=zo.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),zo.delete(e)}}const Ln=d.createContext({register:()=>{}});Ln.displayName="PressResponderContext";function F3(e,t){return t.get?t.get.call(e):t.value}function om(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function M3(e,t){var r=om(e,t,"get");return F3(e,r)}function _3(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Mu(e,t,r){var n=om(e,t,"set");return _3(e,n,r),r}function V3(e){let t=d.useContext(Ln);if(t){let{register:r,...n}=t;e=K(n,e),r()}return dl(t,e.ref),e}var vo=new WeakMap;class bo{continuePropagation(){Mu(this,vo,!1)}get shouldStopPropagation(){return M3(this,vo)}constructor(t,r,n,o){Gw(this,vo,{writable:!0,value:void 0}),Mu(this,vo,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,c=0,u,g=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,g=n.clientY),s&&(u!=null&&g!=null?(l=u-s.left,c=g-s.top):(l=s.width/2,c=s.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const _u=Symbol("linkClicked");function vr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:g,...f}=V3(e),[p,h]=d.useState(!1),m=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=Xh(),x=Pe((v,P)=>{let T=m.current;if(a||T.didFirePressStart)return!1;let I=!0;if(T.isTriggeringEvent=!0,n){let L=new bo("pressstart",P,v);n(L),I=L.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,h(!0),I}),S=Pe((v,P,T=!0)=>{let I=m.current;if(!I.didFirePressStart)return!1;I.ignoreClickAfterPress=!0,I.didFirePressStart=!1,I.isTriggeringEvent=!0;let L=!0;if(o){let E=new bo("pressend",P,v);o(E),L=E.shouldStopPropagation}if(r&&r(!1),h(!1),t&&T&&!a){let E=new bo("press",P,v);t(E),L&&(L=E.shouldStopPropagation)}return I.isTriggeringEvent=!1,L}),$=Pe((v,P)=>{let T=m.current;if(a)return!1;if(i){T.isTriggeringEvent=!0;let I=new bo("pressup",P,v);return i(I),T.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),w=Pe(v=>{let P=m.current;P.isPressed&&P.target&&(P.isOverTarget&&P.pointerType!=null&&S(Ct(P.target,v),P.pointerType,!1),P.isPressed=!1,P.isOverTarget=!1,P.activePointerId=null,P.pointerType=null,y(),u||mo(P.target))}),C=Pe(v=>{c&&w(v)}),D=d.useMemo(()=>{let v=m.current,P={onKeyDown(I){if(la(I.nativeEvent,I.currentTarget)&&I.currentTarget.contains(I.target)){var L;Bu(I.target,I.key)&&I.preventDefault();let E=!0;if(!v.isPressed&&!I.repeat){v.target=I.currentTarget,v.isPressed=!0,E=x(I,"keyboard");let O=I.currentTarget,A=z=>{la(z,O)&&!z.repeat&&O.contains(z.target)&&v.target&&$(Ct(v.target,z),"keyboard")};b(ue(I.currentTarget),"keyup",qt(A,T),!0)}E&&I.stopPropagation(),I.metaKey&&Yt()&&((L=v.metaKeyEvents)===null||L===void 0||L.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(I){if(!(I&&!I.currentTarget.contains(I.target))&&I&&I.button===0&&!v.isTriggeringEvent&&!mr.isOpening){let L=!0;if(a&&I.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Ja(I.nativeEvent))){!a&&!l&&Tt(I.currentTarget);let E=x(I,"virtual"),O=$(I,"virtual"),A=S(I,"virtual");L=E&&O&&A}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,L&&I.stopPropagation()}}},T=I=>{var L;if(v.isPressed&&v.target&&la(I,v.target)){var E;Bu(I.target,I.key)&&I.preventDefault();let A=I.target;S(Ct(v.target,I),"keyboard",v.target.contains(A)),y(),I.key!=="Enter"&&pl(v.target)&&v.target.contains(A)&&!I[_u]&&(I[_u]=!0,mr(v.target,I,!1)),v.isPressed=!1,(E=v.metaKeyEvents)===null||E===void 0||E.delete(I.key)}else if(I.key==="Meta"&&(!((L=v.metaKeyEvents)===null||L===void 0)&&L.size)){var O;let A=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let z of A.values())(O=v.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent<"u"){P.onPointerDown=O=>{if(O.button!==0||!O.currentTarget.contains(O.target))return;if(N3(O.nativeEvent)){v.pointerType="virtual";return}ua(O.currentTarget)&&O.preventDefault(),v.pointerType=O.pointerType;let A=!0;if(!v.isPressed){v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=O.pointerId,v.target=O.currentTarget,!a&&!l&&Tt(O.currentTarget),u||Fu(v.target),A=x(O,v.pointerType);let z=O.target;"releasePointerCapture"in z&&z.releasePointerCapture(O.pointerId),b(ue(O.currentTarget),"pointerup",I,!1),b(ue(O.currentTarget),"pointercancel",E,!1)}A&&O.stopPropagation()},P.onMouseDown=O=>{O.currentTarget.contains(O.target)&&O.button===0&&(ua(O.currentTarget)&&O.preventDefault(),O.stopPropagation())},P.onPointerUp=O=>{!O.currentTarget.contains(O.target)||v.pointerType==="virtual"||O.button===0&&$(O,v.pointerType||O.pointerType)},P.onPointerEnter=O=>{O.pointerId===v.activePointerId&&v.target&&!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,x(Ct(v.target,O),v.pointerType))},P.onPointerLeave=O=>{O.pointerId===v.activePointerId&&v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,S(Ct(v.target,O),v.pointerType,!1),C(O))};let I=O=>{O.pointerId===v.activePointerId&&v.isPressed&&O.button===0&&v.target&&(v.target.contains(O.target)&&v.pointerType!=null?S(Ct(v.target,O),v.pointerType):v.isOverTarget&&v.pointerType!=null&&S(Ct(v.target,O),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),u||mo(v.target),"ontouchend"in v.target&&O.pointerType!=="mouse"&&b(v.target,"touchend",L,{once:!0}))},L=O=>{im(O.currentTarget)&&O.preventDefault()},E=O=>{w(O)};P.onDragStart=O=>{O.currentTarget.contains(O.target)&&w(O)}}else{P.onMouseDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(ua(E.currentTarget)&&E.preventDefault(),v.ignoreEmulatedMouseEvents){E.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=E.currentTarget,v.pointerType=Ja(E.nativeEvent)?"virtual":"mouse",!a&&!l&&Tt(E.currentTarget),x(E,v.pointerType)&&E.stopPropagation(),b(ue(E.currentTarget),"mouseup",I,!1)},P.onMouseEnter=E=>{if(!E.currentTarget.contains(E.target))return;let O=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,O=x(E,v.pointerType)),O&&E.stopPropagation()},P.onMouseLeave=E=>{if(!E.currentTarget.contains(E.target))return;let O=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,O=S(E,v.pointerType,!1),C(E)),O&&E.stopPropagation()},P.onMouseUp=E=>{E.currentTarget.contains(E.target)&&!v.ignoreEmulatedMouseEvents&&E.button===0&&$(E,v.pointerType||"mouse")};let I=E=>{if(E.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&ca(E,v.target)&&v.pointerType!=null?S(Ct(v.target,E),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&S(Ct(v.target,E),v.pointerType,!1),v.isOverTarget=!1}};P.onTouchStart=E=>{if(!E.currentTarget.contains(E.target))return;let O=B3(E.nativeEvent);if(!O)return;v.activePointerId=O.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=E.currentTarget,v.pointerType="touch",!a&&!l&&Tt(E.currentTarget),u||Fu(v.target),x(Mt(v.target,E),v.pointerType)&&E.stopPropagation(),b(Qe(E.currentTarget),"scroll",L,!0)},P.onTouchMove=E=>{if(!E.currentTarget.contains(E.target))return;if(!v.isPressed){E.stopPropagation();return}let O=Vu(E.nativeEvent,v.activePointerId),A=!0;O&&ca(O,E.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,A=x(Mt(v.target,E),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,A=S(Mt(v.target,E),v.pointerType,!1),C(Mt(v.target,E))),A&&E.stopPropagation()},P.onTouchEnd=E=>{if(!E.currentTarget.contains(E.target))return;if(!v.isPressed){E.stopPropagation();return}let O=Vu(E.nativeEvent,v.activePointerId),A=!0;O&&ca(O,E.currentTarget)&&v.pointerType!=null?($(Mt(v.target,E),v.pointerType),A=S(Mt(v.target,E),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(A=S(Mt(v.target,E),v.pointerType,!1)),A&&E.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!u&&mo(v.target),y()},P.onTouchCancel=E=>{E.currentTarget.contains(E.target)&&(E.stopPropagation(),v.isPressed&&w(Mt(v.target,E)))};let L=E=>{v.isPressed&&E.target.contains(v.target)&&w({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};P.onDragStart=E=>{E.currentTarget.contains(E.target)&&w(E)}}return P},[b,a,l,y,u,w,C,S,x,$]);return d.useEffect(()=>()=>{var v;u||mo((v=m.current.target)!==null&&v!==void 0?v:void 0)},[u]),{isPressed:s||p,pressProps:K(f,D)}}function pl(e){return e.tagName==="A"&&e.hasAttribute("href")}function la(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Qe(o).HTMLInputElement&&!am(o,r)||o instanceof Qe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&pl(o))&&r!=="Enter")}function B3(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Vu(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Mt(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Ct(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function W3(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function K3(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ca(e,t){let r=t.getBoundingClientRect(),n=W3(e);return K3(r,n)}function ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function im(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!pl(e)}function Bu(e,t){return e instanceof HTMLInputElement?!am(e,t):im(e)}const H3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function am(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":H3.has(e.type)}const j3=d.forwardRef(({children:e,...t},r)=>{let n=d.useRef(!1),o=d.useContext(Ln);r=Ue(r||(o==null?void 0:o.ref));let i=K(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return dl(o,r),d.useEffect(()=>{n.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),d.createElement(Ln.Provider,{value:i},e)});function U3({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(Ln.Provider,{value:t},e)}class G3{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function sm(e){let t=d.useRef({isFocused:!1,observer:null});X(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Pe(n=>{e==null||e(n)});return d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{t.current.isFocused=!1,o.disabled&&r(new G3("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function lm(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),a=sm(i),s=d.useCallback(l=>{const c=ue(l.target);l.target===l.currentTarget&&c.activeElement===l.target&&(r&&r(l),o&&o(!0),a(l))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:void 0}}}let Cr=null,es=new Set,$n=new Map,br=!1,ts=!1;const q3={Tab:!0,Escape:!0};function Pi(e,t){for(let r of es)r(e,t)}function Y3(e){return!(e.metaKey||!Yt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ei(e){br=!0,Y3(e)&&(Cr="keyboard",Pi("keyboard",e))}function Ze(e){Cr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(br=!0,Pi("pointer",e))}function cm(e){Ja(e)&&(br=!0,Cr="virtual")}function um(e){e.target===window||e.target===document||(!br&&!ts&&(Cr="virtual",Pi("virtual",e)),br=!1,ts=!1)}function dm(){br=!1,ts=!0}function rs(e){if(typeof window>"u"||$n.get(Qe(e)))return;const t=Qe(e),r=ue(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){br=!0,n.apply(this,arguments)},r.addEventListener("keydown",ei,!0),r.addEventListener("keyup",ei,!0),r.addEventListener("click",cm,!0),t.addEventListener("focus",um,!0),t.addEventListener("blur",dm,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Ze,!0),r.addEventListener("pointermove",Ze,!0),r.addEventListener("pointerup",Ze,!0)):(r.addEventListener("mousedown",Ze,!0),r.addEventListener("mousemove",Ze,!0),r.addEventListener("mouseup",Ze,!0)),t.addEventListener("beforeunload",()=>{fm(e)},{once:!0}),$n.set(t,{focus:n})}const fm=(e,t)=>{const r=Qe(e),n=ue(e);t&&n.removeEventListener("DOMContentLoaded",t),$n.has(r)&&(r.HTMLElement.prototype.focus=$n.get(r).focus,n.removeEventListener("keydown",ei,!0),n.removeEventListener("keyup",ei,!0),n.removeEventListener("click",cm,!0),r.removeEventListener("focus",um,!0),r.removeEventListener("blur",dm,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Ze,!0),n.removeEventListener("pointermove",Ze,!0),n.removeEventListener("pointerup",Ze,!0)):(n.removeEventListener("mousedown",Ze,!0),n.removeEventListener("mousemove",Ze,!0),n.removeEventListener("mouseup",Ze,!0)),$n.delete(r))};function X3(e){const t=ue(e);let r;return t.readyState!=="loading"?rs(e):(r=()=>{rs(e)},t.addEventListener("DOMContentLoaded",r)),()=>fm(e,r)}typeof document<"u"&&X3();function zn(){return Cr!=="pointer"}function Fn(){return Cr}function pm(e){Cr=e,Pi(e,null)}const Z3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J3(e,t,r){var n;const o=typeof window<"u"?Qe(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Qe(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Qe(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?Qe(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||(r==null?void 0:r.target)instanceof o&&!Z3.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof i||(r==null?void 0:r.target)instanceof a&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof s&&!q3[r.key])}function Q3(e,t,r){rs(),d.useEffect(()=>{let n=(o,i)=>{J3(!!(r!=null&&r.isTextInput),o,i)&&e(zn())};return es.add(n),()=>{es.delete(n)}},t)}function $i(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),a=d.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,i]),s=sm(a),l=d.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[n,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let ti=!1,da=0;function ns(){ti=!0,setTimeout(()=>{ti=!1},50)}function Wu(e){e.pointerType==="touch"&&ns()}function e2(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Wu):document.addEventListener("touchend",ns),da++,()=>{da--,!(da>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Wu):document.removeEventListener("touchend",ns))}}function Er(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(e2,[]);let{hoverProps:l,triggerHoverEnd:c}=d.useMemo(()=>{let u=(p,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let m=p.currentTarget;s.target=m,t&&t({type:"hoverstart",target:m,pointerType:h}),r&&r(!0),a(!0)},g=(p,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let m=p.currentTarget;n&&n({type:"hoverend",target:m,pointerType:h}),r&&r(!1),a(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{ti&&p.pointerType==="mouse"||u(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&g(p,p.pointerType)}):(f.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!ti&&u(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&g(p,"mouse")}),{hoverProps:f,triggerHoverEnd:g}},[t,r,n,o,s]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function t2(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{r&&yo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{r&&r(l)});d.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=ue(c);if(typeof PointerEvent<"u"){let g=f=>{l.isPointerDown&&yo(f,t)&&s(f),l.isPointerDown=!1};return u.addEventListener("pointerdown",a,!0),u.addEventListener("pointerup",g,!0),()=>{u.removeEventListener("pointerdown",a,!0),u.removeEventListener("pointerup",g,!0)}}else{let g=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&yo(p,t)&&s(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&yo(p,t)&&s(p),l.isPointerDown=!1};return u.addEventListener("mousedown",a,!0),u.addEventListener("mouseup",g,!0),u.addEventListener("touchstart",a,!0),u.addEventListener("touchend",f,!0),()=>{u.removeEventListener("mousedown",a,!0),u.removeEventListener("mouseup",g,!0),u.removeEventListener("touchstart",a,!0),u.removeEventListener("touchend",f,!0)}}},[t,n,a,s])}function yo(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Ku(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function r2(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ku(e.onKeyDown),onKeyUp:Ku(e.onKeyUp)}}}const n2=500;function gm(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=n2,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=Xh(),{pressProps:u}=vr({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),s.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),s.current=void 0},i),f.pointerType==="touch")){let p=h=>{h.preventDefault()};l(f.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){s.current&&clearTimeout(s.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),g=A3(o&&!t?a:void 0);return{longPressProps:K(u,g)}}function yr(e){const t=ue(e);if(Fn()==="virtual"){let r=t.activeElement;Yh(()=>{t.activeElement===r&&e.isConnected&&Tt(e)})}else Tt(e)}function o2(e){const t=Qe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function i2(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function hm(e,t){return e.nodeName!=="#comment"&&o2(e)&&i2(e,t)&&(!e.parentElement||hm(e.parentElement,e))}const Hu=d.createContext(null),os="react-aria-focus-scope-restore";let ce=null;function mm(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(Hu)||{},c=d.useMemo(()=>new as({scopeRef:s}),[s]);X(()=>{let f=l||ve.root;if(ve.getTreeNode(f.scopeRef)&&ce&&!ri(ce,f.scopeRef)){let p=ve.getTreeNode(ce);p&&(f=p)}f.addChild(c),ve.addNode(c)},[c,l]),X(()=>{let f=ve.getTreeNode(s);f&&(f.contain=!!r)},[r]),X(()=>{var f;let p=(f=i.current)===null||f===void 0?void 0:f.nextSibling,h=[],m=b=>b.stopPropagation();for(;p&&p!==a.current;)h.push(p),p.addEventListener(os,m),p=p.nextSibling;return s.current=h,()=>{for(let b of h)b.removeEventListener(os,m)}},[t]),f2(s,n,r),c2(s,r),p2(s,n,r),d2(s,o),d.useEffect(()=>{const f=ue(s.current?s.current[0]:void 0).activeElement;let p=null;if(tt(f,s.current)){for(let h of ve.traverse())h.scopeRef&&tt(f,h.scopeRef.current)&&(p=h);p===ve.getTreeNode(s)&&(ce=p.scopeRef)}},[s]),X(()=>()=>{var f,p,h;let m=(h=(p=ve.getTreeNode(s))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&h!==void 0?h:null;(s===ce||ri(s,ce))&&(!m||ve.getTreeNode(m))&&(ce=m),ve.removeTreeNode(s)},[s]);let u=d.useMemo(()=>a2(s),[]),g=d.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return d.createElement(Hu.Provider,{value:g},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function a2(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t,s=n||ue(r[0]).activeElement,l=r[0].previousElementSibling,c=pr(r),u=We(c,{tabbable:o,accept:a},r);u.currentNode=tt(s,r)?s:l;let g=u.nextNode();return!g&&i&&(u.currentNode=l,g=u.nextNode()),g&&Le(g,!0),g},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t,s=n||ue(r[0]).activeElement,l=r[r.length-1].nextElementSibling,c=pr(r),u=We(c,{tabbable:o,accept:a},r);u.currentNode=tt(s,r)?s:l;let g=u.previousNode();return!g&&i&&(u.currentNode=l,g=u.previousNode()),g&&Le(g,!0),g},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=pr(r),a=We(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let s=a.nextNode();return s&&Le(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=pr(r),a=We(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let s=a.previousNode();return s&&Le(s,!0),s}}}const gl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],s2=gl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const l2=gl.join(':not([hidden]):not([tabindex="-1"]),');function pr(e){return e[0].parentElement}function xn(e){let t=ve.getTreeNode(ce);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function c2(e,t){let r=d.useRef(void 0),n=d.useRef(void 0);X(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=ue(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!xn(e)||c.isComposing)return;let u=i.activeElement,g=e.current;if(!g||!tt(u,g))return;let f=pr(g),p=We(f,{tabbable:!0},g);if(!u)return;p.currentNode=u;let h=c.shiftKey?p.previousNode():p.nextNode();h||(p.currentNode=c.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,h=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),h&&Le(h,!0)},s=c=>{(!ce||ri(ce,e))&&tt(c.target,e.current)?(ce=e,r.current=c.target):xn(e)&&!Bt(c.target,e)?r.current?r.current.focus():ce&&ce.current&&is(ce.current):xn(e)&&(r.current=c.target)},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=Fn();if(!((u==="virtual"||u===null)&&ul()&&Gh())&&i.activeElement&&xn(e)&&!Bt(i.activeElement,e))if(ce=e,i.body.contains(c.target)){var f;r.current=c.target,(f=r.current)===null||f===void 0||f.focus()}else ce.current&&is(ce.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),X(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function vm(e){return Bt(e)}function tt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Bt(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ve.traverse(ve.getTreeNode(t)))if(r&&tt(e,r.current))return!0;return!1}function u2(e){return Bt(e,ce)}function ri(e,t){var r;let n=(r=ve.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Le(e,t=!1){if(e!=null&&!t)try{yr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function bm(e,t=!0){let r=e[0].previousElementSibling,n=pr(e),o=We(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=pr(e),o=We(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function is(e,t=!0){Le(bm(e,t))}function d2(e,t){const r=d.useRef(t);d.useEffect(()=>{if(r.current){ce=e;const n=ue(e.current?e.current[0]:void 0);!tt(n.activeElement,ce.current)&&e.current&&is(e.current)}r.current=!1},[e])}function f2(e,t,r){X(()=>{if(t||r)return;let n=e.current;const o=ue(n?n[0]:void 0);let i=a=>{let s=a.target;tt(s,e.current)?ce=e:vm(s)||(ce=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function ju(e){let t=ve.getTreeNode(ce);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function p2(e,t,r){const n=d.useRef(typeof document<"u"?ue(e.current?e.current[0]:void 0).activeElement:null);X(()=>{let o=e.current;const i=ue(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!ce||ri(ce,e))&&tt(i.activeElement,e.current)&&(ce=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,r]),X(()=>{const o=ue(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!xn(e)||a.isComposing)return;let s=o.activeElement;if(!Bt(s,e)||!ju(e))return;let l=ve.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=We(o.body,{tabbable:!0});u.currentNode=s;let g=a.shiftKey?u.previousNode():u.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!g||!Bt(g,e))&&c){u.currentNode=c;do g=a.shiftKey?u.previousNode():u.nextNode();while(Bt(g,e));a.preventDefault(),a.stopPropagation(),g?Le(g,!0):vm(c)?Le(c,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),X(()=>{const o=ue(e.current?e.current[0]:void 0);if(!t)return;let i=ve.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let s=ve.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(o.activeElement&&Bt(o.activeElement,e)||o.activeElement===o.body&&ju(e))){let c=ve.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let u=c.getTreeNode(e);for(;u;){if(u.nodeToRestore&&u.nodeToRestore.isConnected){Uu(u.nodeToRestore);return}u=u.parent}for(u=c.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&ve.getTreeNode(u.scopeRef)){let g=bm(u.scopeRef.current,!0);Uu(g);return}u=u.parent}}})}}}},[e,t])}function Uu(e){e.dispatchEvent(new CustomEvent(os,{bubbles:!0,cancelable:!0}))&&Le(e)}function We(e,t,r){let n=t!=null&&t.tabbable?l2:s2,o=ue(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(n)&&hm(i)&&(!r||tt(i,r))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function g2(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=r,l=o||ue(n).activeElement,c=We(n,{tabbable:i,accept:s});n.contains(l)&&(c.currentNode=l);let u=c.nextNode();return!u&&a&&(c.currentNode=n,u=c.nextNode()),u&&Le(u,!0),u},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=r,l=o||ue(n).activeElement,c=We(n,{tabbable:i,accept:s});if(n.contains(l))c.currentNode=l;else{let g=fa(c);return g&&Le(g,!0),g??null}let u=c.previousNode();if(!u&&a){c.currentNode=n;let g=fa(c);if(!g)return null;u=g}return u&&Le(u,!0),u??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,s=We(n,{tabbable:o,accept:i}).nextNode();return s&&Le(s,!0),s},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=We(n,{tabbable:o,accept:i}),s=fa(a);return s&&Le(s,!0),s??null}}}function fa(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class hl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new as({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&tt(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new hl;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new as({scopeRef:null}),this.fastMap.set(null,this.root)}}class as{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ve=new hl;function Qt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||zn()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=d.useCallback(p=>{o.current.isFocused=p,a(p),c()},[c]);Q3(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:g}=lm({isDisabled:n,onFocusChange:u}),{focusWithinProps:f}=$i({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:n?f:g}}let ym=d.createContext(null);function h2(e){let t=d.useContext(ym)||{};dl(t,e);let{ref:r,...n}=t;return n}const m2=d.forwardRef(function(t,r){let{children:n,...o}=t,i=Ue(r),a={...o,ref:i};return d.createElement(ym.Provider,{value:a},n)});function nn(e,t){let{focusProps:r}=lm(e),{keyboardProps:n}=r2(e),o=K(r,n),i=h2(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);return d.useEffect(()=>{s.current&&t.current&&yr(t.current),s.current=!1},[t]),{focusableProps:K({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function v2(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};r!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:u}=nn(e,t),{pressProps:g,isPressed:f}=vr({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),p=ye(l,{labelable:!0}),h=K(u,g),m=Ei(),b=qh(e);return{isPressed:f,linkProps:K(p,b,{...h,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var x;(x=g.onClick)===null||x===void 0||x.call(g,y),a&&(a(y),console.warn("onClick is deprecated, please use onPress")),!m.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&k3(y.currentTarget,y)&&e.href&&(y.preventDefault(),m.open(y.currentTarget,y,e.href,e.routerOptions))}})}}const b2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),y2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function x2(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return b2.has(r.script)}let t=e.split("-")[0];return y2.has(t)}const S2=Symbol.for("react-aria.i18n.locale");function xm(){let e=typeof window<"u"&&window[S2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:x2(e)?"rtl":"ltr"}}let ss=xm(),Sn=new Set;function Gu(){ss=xm();for(let e of Sn)e(ss)}function w2(){let e=Zt(),[t,r]=d.useState(ss);return d.useEffect(()=>(Sn.size===0&&window.addEventListener("languagechange",Gu),Sn.add(r),()=>{Sn.delete(r),Sn.size===0&&window.removeEventListener("languagechange",Gu)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const C2=d.createContext(null);function Pr(){let e=w2();return d.useContext(C2)||e}const E2=Symbol.for("react-aria.i18n.locale"),P2=Symbol.for("react-aria.i18n.strings");let Ar;class ki{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=$2(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[E2];if(Ar===void 0){let o=window[P2];if(!o)return null;Ar={};for(let i in o)Ar[i]=new ki({[r]:o[i]},r)}let n=Ar==null?void 0:Ar[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function $2(e,t,r="en-US"){if(t[e])return t[e];let n=k2(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function k2(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const qu=new Map,Yu=new Map;class T2{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=qu.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),qu.set(i,a));let s=a.select(t);return o=r[s]||r.other,typeof o=="function"?o():o}number(t){let r=Yu.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Yu.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Xu=new WeakMap;function R2(e){let t=Xu.get(e);return t||(t=new ki(e),Xu.set(e,t)),t}function O2(e,t){return t&&ki.getGlobalDictionaryForPackage(t)||R2(e)}function ml(e,t){let{locale:r}=Pr(),n=O2(e,t);return d.useMemo(()=>new T2(r,n),[r,n])}function I2(e={}){let{locale:t}=Pr();return d.useMemo(()=>new Rg(t,e),[t,e])}let pa=new Map;function vl(e){let{locale:t}=Pr(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(pa.has(r))return pa.get(r);let n=new Intl.Collator(t,e);return pa.set(r,n),n}function Ti(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:g,href:f,target:p,rel:h,type:m="button"}=e,b;r==="button"?b={type:m,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:y,isPressed:x}=vr({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:S}=nn(e,t);u&&(S.tabIndex=n?-1:S.tabIndex);let $=K(S,y,ye(e,{labelable:!0}));return{isPressed:x,buttonProps:K(b,$,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{g&&(g(w),console.warn("onClick is deprecated, please use onPress"))}})}}function Sm(e,t,r){const{isSelected:n}=t,{isPressed:o,buttonProps:i}=Ti({...e,onPress:qt(t.toggle,e.onPress)},r);return{isPressed:o,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:K(i,{"aria-pressed":n})}}function D2(e,t){const{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);X(()=>{var h;a(!!(t.current&&(!((h=t.current.parentElement)===null||h===void 0)&&h.closest('[role="toolbar"]'))))});const{direction:s}=Pr(),l=s==="rtl"&&o==="horizontal";let c=g2(t);const u=h=>{if(h.currentTarget.contains(h.target)){if(o==="horizontal"&&h.key==="ArrowRight"||o==="vertical"&&h.key==="ArrowDown")l?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&h.key==="ArrowLeft"||o==="vertical"&&h.key==="ArrowUp")l?c.focusNext():c.focusPrevious();else if(h.key==="Tab"){h.stopPropagation(),g.current=document.activeElement,h.shiftKey?c.focusFirst():c.focusLast();return}else return;h.stopPropagation(),h.preventDefault()}},g=d.useRef(null),f=h=>{!h.currentTarget.contains(h.relatedTarget)&&!g.current&&(g.current=h.target)},p=h=>{var m;if(g.current&&!h.currentTarget.contains(h.relatedTarget)&&(!((m=t.current)===null||m===void 0)&&m.contains(h.target))){var b;(b=g.current)===null||b===void 0||b.focus(),g.current=null}};return{toolbarProps:{...ye(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:u,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:f}}}function A2(e,t,r){let{isDisabled:n}=e,{toolbarProps:o}=D2(e,r);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":n}}}function N2(e,t,r){let n={isSelected:t.selectedKeys.has(e.id),setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=Sm({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},n,r);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=n.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}const wm=7e3;let ut=null;function Zu(e,t="assertive",r=wm){ut?ut.announce(e,t,r):(ut=new L2,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ut.announce(e,t,r):setTimeout(()=>{ut!=null&&ut.isAttached()&&(ut==null||ut.announce(e,t,r))},100))}class L2{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=wm){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Cm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Em={...Cm,customError:!0,valid:!1},fn={isInvalid:!1,validationDetails:Cm,validationErrors:[]},z2=d.createContext({}),ls="__formValidationState"+Date.now();function bl(e){if(e[ls]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[ls];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return F2(e)}function F2(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Em}:null,c=d.useMemo(()=>{if(!a||o==null)return null;let T=M2(a,o);return Ju(T)},[a,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let u=d.useContext(z2),g=d.useMemo(()=>n?Array.isArray(n)?n.flatMap(T=>cs(u[T])):cs(u[n]):[],[u,n]),[f,p]=d.useState(u),[h,m]=d.useState(!1);u!==f&&(p(u),m(!1));let b=d.useMemo(()=>Ju(h?[]:g),[h,g]),y=d.useRef(fn),[x,S]=d.useState(fn),$=d.useRef(fn),w=()=>{if(!C)return;D(!1);let T=c||i||y.current;ga(T,$.current)||($.current=T,S(T))},[C,D]=d.useState(!1);return d.useEffect(w),{realtimeValidation:l||b||c||i||fn,displayValidation:s==="native"?l||b||x:l||b||c||i||x,updateValidation(T){s==="aria"&&!ga(x,T)?S(T):y.current=T},resetValidation(){let T=fn;ga(T,$.current)||($.current=T,S(T)),s==="native"&&D(!1),m(!0)},commitValidation(){s==="native"&&D(!0),m(!0)}}}function cs(e){return e?Array.isArray(e)?e:[e]:[]}function M2(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return cs(r)}return[]}function Ju(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Em}:null}function ga(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function yl(e,t,r){let{validationBehavior:n,focus:o}=e;X(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(V2(r.current))}});let i=Pe(()=>{t.resetValidation()}),a=Pe(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&u&&B2(u)===r.current){var g;o?o():(g=r.current)===null||g===void 0||g.focus(),pm("keyboard")}l.preventDefault()}),s=Pe(()=>{t.commitValidation()});d.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[r,a,s,i,n])}function _2(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function V2(e){return{isInvalid:!e.validity.valid,validationDetails:_2(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function B2(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function W2(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:g}=e,f=C=>{C.stopPropagation(),t.setSelected(C.target.checked)},p=s!=null,h=l!=null||c!=null;!p&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:b}=vr({isDisabled:n}),{pressProps:y,isPressed:x}=vr({isDisabled:n||o,onPress(){t.toggle()}}),{focusableProps:S}=nn(e,r),$=K(m,S),w=ye(e,{labelable:!0});return fl(r,t.isSelected,t.setSelected),{labelProps:K(y,{onClick:C=>C.preventDefault()}),inputProps:K(w,{"aria-invalid":g||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:f,disabled:n,...i==null?{}:{value:i},name:a,type:"checkbox",...$}),isSelected:t.isSelected,isPressed:b||x,isDisabled:n,isReadOnly:o,isInvalid:g||u==="invalid"}}function K2(e,t,r){let n=bl({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=n.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:u,isDisabled:g,isReadOnly:f}=W2({...e,isInvalid:o},t,r);yl(e,n,r);let{isIndeterminate:p,isRequired:h,validationBehavior:m="aria"}=e;d.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)});let{pressProps:b}=vr({isDisabled:g||f,onPress(){let{[ls]:y}=e,{commitValidation:x}=y||n;x()}});return{labelProps:K(s,b),inputProps:{...l,checked:c,"aria-required":h&&m==="aria"||void 0,required:h&&m==="native"},isSelected:c,isPressed:u,isDisabled:g,isReadOnly:f,isInvalid:o,validationErrors:i,validationDetails:a}}function xl(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=$e(t);let a=$e(),s={};r?(n=n?`${a} ${n}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Zh({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:l}}function Sl(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:a}=xl(e),s=An([!!t,!!r,n,o]),l=An([!!t,!!r,n,o]);return a=K(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Pm(e={}){let{isReadOnly:t}=e,[r,n]=Jt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||n(a)}function i(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:i}}function H2(e){let{selectionMode:t="single",disallowEmptySelection:r,isDisabled:n=!1}=e,[o,i]=Jt(d.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),d.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:n,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!r||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!r?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}const Qu={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function $m(e={}){let{style:t,isFocusable:r}=e,[n,o]=d.useState(!1),{focusWithinProps:i}=$i({isDisabled:!r,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>n?t:t?{...Qu,...t}:Qu,[n]);return{visuallyHiddenProps:{...i,style:a}}}function km(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=$m(e);return d.createElement(r,K(i,a),t)}function j2(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=Jt(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=nn(e,t),g=bl({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:h}=g.displayValidation,{labelProps:m,fieldProps:b,descriptionProps:y,errorMessageProps:x}=Sl({...e,isInvalid:f,errorMessage:e.errorMessage||p}),S=ye(e,{labelable:!0});const $={type:a,pattern:e.pattern};return fl(t,l,c),yl(e,g,t),d.useEffect(()=>{if(t.current instanceof Qe(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:K(S,r==="input"?$:void 0,{disabled:n,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:w=>c(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...b}),descriptionProps:y,errorMessageProps:x,isInvalid:f,validationErrors:p,validationDetails:h}}const pt={top:"top",bottom:"top",left:"left",right:"left"},ni={top:"bottom",bottom:"top",left:"right",right:"left"},U2={top:"left",left:"top"},us={top:"height",left:"width"},Tm={width:"totalWidth",height:"totalHeight"},xo={};let Se=typeof document<"u"?window.visualViewport:null;function ed(e){let t=0,r=0,n=0,o=0,i=0,a=0,s={};var l;let c=((l=Se==null?void 0:Se.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let h=document.documentElement;n=h.clientWidth,o=h.clientHeight;var u;t=(u=Se==null?void 0:Se.width)!==null&&u!==void 0?u:n;var g;r=(g=Se==null?void 0:Se.height)!==null&&g!==void 0?g:o,s.top=h.scrollTop||e.scrollTop,s.left=h.scrollLeft||e.scrollLeft,Se&&(i=Se.offsetTop,a=Se.offsetLeft)}else({width:t,height:r,top:i,left:a}=Ur(e)),s.top=e.scrollTop,s.left=e.scrollLeft,n=t,o=r;if(cl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){s.top=0,s.left=0;var f;i=(f=Se==null?void 0:Se.pageTop)!==null&&f!==void 0?f:0;var p;a=(p=Se==null?void 0:Se.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:s,top:i,left:a}}function G2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function td(e,t,r,n,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,c=n[us[e]],u=n.scroll[pt[e]]+i,g=c+n.scroll[pt[e]]-i,f=t-l+a[e]-n[pt[e]],p=t-l+r+a[e]-n[pt[e]];return f<u?u-f:p>g?Math.max(g-p,u-f):0}function q2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function rd(e){if(xo[e])return xo[e];let[t,r]=e.split(" "),n=pt[t]||"right",o=U2[n];pt[r]||(r="center");let i=us[n],a=us[o];return xo[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},xo[e]}function ha(e,t,r,n,o,i,a,s,l,c){let{placement:u,crossPlacement:g,axis:f,crossAxis:p,size:h,crossSize:m}=n,b={};var y;b[p]=(y=e[p])!==null&&y!==void 0?y:0;var x,S,$,w;g==="center"?b[p]+=(((x=e[m])!==null&&x!==void 0?x:0)-((S=r[m])!==null&&S!==void 0?S:0))/2:g!==p&&(b[p]+=(($=e[m])!==null&&$!==void 0?$:0)-((w=r[m])!==null&&w!==void 0?w:0)),b[p]+=i;const C=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(b[p]=Qo(b[p],C,D),u===f){const v=s?a[h]:t[Tm[h]];b[ni[f]]=Math.floor(v-e[f]+o)}else b[f]=Math.floor(e[f]+e[h]+o);return b}function Y2(e,t,r,n,o,i,a,s){const l=n?r.height:t[Tm.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-a);var g,f,p,h,m,b;let y=s!=="top"?Math.max(0,t.height+t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0)-u-(((f=o.top)!==null&&f!==void 0?f:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,u+a-(t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((b=o.bottom)!==null&&b!==void 0?b:0)+i));return Math.min(t.height-i*2,y)}function nd(e,t,r,n,o,i){let{placement:a,axis:s,size:l}=i;var c,u;if(a===s)return Math.max(0,r[s]-e[s]-((c=e.scroll[s])!==null&&c!==void 0?c:0)+t[s]-((u=n[s])!==null&&u!==void 0?u:0)-n[ni[s]]-o);var g;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-r[s]-r[l]-((g=n[s])!==null&&g!==void 0?g:0)-n[ni[s]]-o)}function X2(e,t,r,n,o,i,a,s,l,c,u,g,f,p,h,m){let b=rd(e),{size:y,crossAxis:x,crossSize:S,placement:$,crossPlacement:w}=b,C=ha(t,s,r,b,u,g,c,f,h,m),D=u,v=nd(s,c,t,o,i+u,b);if(a&&n[y]>v){let Ie=rd(`${ni[$]} ${w}`),De=ha(t,s,r,Ie,u,g,c,f,h,m);nd(s,c,t,o,i+u,Ie)>v&&(b=Ie,C=De,D=u)}let P="bottom";b.axis==="top"?b.placement==="top"?P="top":b.placement==="bottom"&&(P="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?P="bottom":b.crossPlacement==="bottom"&&(P="top"));let T=td(x,C[x],r[S],s,l,i,c);C[x]+=T;let I=Y2(C,s,c,f,o,i,r.height,P);p&&p<I&&(I=p),r.height=Math.min(r.height,I),C=ha(t,s,r,b,D,g,c,f,h,m),T=td(x,C[x],r[S],s,l,i,c),C[x]+=T;let L={},E=t[x]+.5*t[S]-C[x]-o[pt[x]];const O=h/2+m;var A,z,F,R;const _=pt[x]==="left"?((A=o.left)!==null&&A!==void 0?A:0)+((z=o.right)!==null&&z!==void 0?z:0):((F=o.top)!==null&&F!==void 0?F:0)+((R=o.bottom)!==null&&R!==void 0?R:0),B=r[S]-_-h/2-m,Z=t[x]+h/2-(C[x]+o[pt[x]]),ne=t[x]+t[S]-h/2-(C[x]+o[pt[x]]),_e=Qo(E,Z,ne);return L[x]=Qo(_e,O,B),{position:C,maxHeight:I,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:b.placement}}function Z2(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:u,arrowSize:g=0,arrowBoundaryOffset:f=0}=e,p=n instanceof HTMLElement?J2(n):document.documentElement,h=p===document.documentElement;const m=window.getComputedStyle(p).position;let b=!!m&&m!=="static",y=h?Ur(r):od(r,p);if(!h){let{marginTop:L,marginLeft:E}=window.getComputedStyle(r);y.top+=parseInt(L,10)||0,y.left+=parseInt(E,10)||0}let x=Ur(n),S=q2(n);var $,w;x.width+=(($=S.left)!==null&&$!==void 0?$:0)+((w=S.right)!==null&&w!==void 0?w:0);var C,D;x.height+=((C=S.top)!==null&&C!==void 0?C:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let v=G2(o),P=ed(s),T=ed(p),I=s.tagName==="BODY"?Ur(p):od(p,s);return p.tagName==="HTML"&&s.tagName==="BODY"&&(T.scroll.top=0,T.scroll.left=0),X2(t,y,x,v,S,i,a,P,T,I,l,c,b,u,g,f)}function Ur(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:r+a-l,width:n,height:o}}function od(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();n={top:o,left:i,width:a,height:s}}else{n=Ur(e);let o=Ur(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function J2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!id(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!id(t);)t=t.parentElement;return t||document.documentElement}function id(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Rm=new WeakMap;function Q2(e){let{triggerRef:t,isOpen:r,onClose:n}=e;d.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=n||Rm.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let he=typeof document<"u"?window.visualViewport:null;function Om(e){let{direction:t}=Pr(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:g=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:h,maxHeight:m,arrowBoundaryOffset:b=0}=e,[y,x]=d.useState(null),S=[f,a,o.current,n.current,i.current,s,l,c,u,g,p,t,m,b,r],$=d.useRef(he==null?void 0:he.scale);d.useEffect(()=>{p&&($.current=he==null?void 0:he.scale)},[p]);let w=d.useCallback(()=>{if(f===!1||!p||!o.current||!n.current||!c||(he==null?void 0:he.scale)!==$.current)return;let T=null;if(i.current&&i.current.contains(document.activeElement)){var I;let R=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),_=i.current.getBoundingClientRect();var L;if(T={type:"top",offset:((L=R==null?void 0:R.top)!==null&&L!==void 0?L:0)-_.top},T.offset>_.height/2){T.type="bottom";var E;T.offset=((E=R==null?void 0:R.bottom)!==null&&E!==void 0?E:0)-_.bottom}}let O=o.current;if(!m&&o.current){var A;O.style.top="0px",O.style.bottom="";var z;O.style.maxHeight=((z=(A=window.visualViewport)===null||A===void 0?void 0:A.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let F=Z2({placement:tT(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:g,maxHeight:m,arrowSize:r,arrowBoundaryOffset:b});if(F.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(F.position).forEach(R=>O.style[R]=F.position[R]+"px"),O.style.maxHeight=F.maxHeight!=null?F.maxHeight+"px":"",T&&document.activeElement&&i.current){let R=document.activeElement.getBoundingClientRect(),_=i.current.getBoundingClientRect(),B=R[T.type]-_[T.type];i.current.scrollTop+=B-T.offset}x(F)}},S);X(w,S),eT(w),Za({ref:o,onResize:w}),Za({ref:n,onResize:w});let C=d.useRef(!1);X(()=>{let T,I=()=>{C.current=!0,clearTimeout(T),T=setTimeout(()=>{C.current=!1},500),w()},L=()=>{C.current&&I()};return he==null||he.addEventListener("resize",I),he==null||he.addEventListener("scroll",L),()=>{he==null||he.removeEventListener("resize",I),he==null||he.removeEventListener("scroll",L)}},[w]);let D=d.useCallback(()=>{C.current||h==null||h()},[h,C]);Q2({triggerRef:n,isOpen:p,onClose:h&&D});var v,P;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...y==null?void 0:y.position,maxHeight:(v=y==null?void 0:y.maxHeight)!==null&&v!==void 0?v:"100vh"}},placement:(P=y==null?void 0:y.placement)!==null&&P!==void 0?P:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y==null?void 0:y.arrowOffsetLeft,top:y==null?void 0:y.arrowOffsetTop}},updatePosition:w}}function eT(e){X(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function tT(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Et=[];function rT(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>(o&&Et.push(t),()=>{let h=Et.indexOf(t);h>=0&&Et.splice(h,1)}),[o,t]);let l=()=>{Et[Et.length-1]===t&&r&&r()},c=h=>{(!s||s(h.target))&&Et[Et.length-1]===t&&(h.stopPropagation(),h.preventDefault())},u=h=>{(!s||s(h.target))&&(Et[Et.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},g=h=>{h.key==="Escape"&&!a&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};t2({ref:t,onInteractOutside:i&&o?u:void 0,onInteractOutsideStart:c});let{focusWithinProps:f}=$i({isDisabled:!n,onBlurWithin:h=>{!h.relatedTarget||u2(h.relatedTarget)||(!s||s(h.relatedTarget))&&(r==null||r())}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:g,...f},underlayProps:{onPointerDown:p}}}function Im(e,t,r){let{type:n}=e,{isOpen:o}=t;d.useEffect(()=>{r&&r.current&&Rm.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let a=$e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const ma=typeof document<"u"&&window.visualViewport,nT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let So=0,va;function oT(e={}){let{isDisabled:t}=e;X(()=>{if(!t)return So++,So===1&&(Ci()?va=aT():va=iT()),()=>{So--,So===0&&va()}},[t])}function iT(){return qt(Wr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Wr(document.documentElement,"overflow","hidden"))}function aT(){let e,t,r=c=>{e=Jh(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Wr(e,"overscrollBehavior","contain"))},n=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=()=>{t&&t()},i=c=>{let u=c.target;sT(u)&&(s(),u.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{u.style.transform="",ma&&(ma.height<window.innerHeight?requestAnimationFrame(()=>{ad(u)}):ma.addEventListener("resize",()=>ad(u),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},u=window.pageXOffset,g=window.pageYOffset;a=qt(pn(window,"scroll",c),Wr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Wr(document.documentElement,"overflow","hidden"),Wr(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(u,g)}),window.scrollTo(0,0)},l=qt(pn(document,"touchstart",r,{passive:!1,capture:!0}),pn(document,"touchmove",n,{passive:!1,capture:!0}),pn(document,"touchend",o,{passive:!1,capture:!0}),pn(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Wr(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function pn(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function ad(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Jh(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect().top,i=r.getBoundingClientRect().top;i>o+r.clientHeight&&(n.scrollTop+=i-o)}r=n.parentElement}}function sT(e){return e instanceof HTMLInputElement&&!nT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const ds=d.createContext(null);function lT(e){let{children:t}=e,r=d.useContext(ds),[n,o]=d.useState(0),i=d.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return d.createElement(ds.Provider,{value:i},t)}function cT(){let e=d.useContext(ds);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function uT(e){let{modalProviderProps:t}=cT();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function dT(e){return d.createElement(lT,null,d.createElement(uT,e))}function fT(e){let t=Zt(),{portalContainer:r=t?null:document.body,...n}=e;if(d.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let o=d.createElement(dT,n);return ct.createPortal(o,r)}var Dm={};Dm={dismiss:"تجاهل"};var Am={};Am={dismiss:"Отхвърляне"};var Nm={};Nm={dismiss:"Odstranit"};var Lm={};Lm={dismiss:"Luk"};var zm={};zm={dismiss:"Schließen"};var Fm={};Fm={dismiss:"Απόρριψη"};var Mm={};Mm={dismiss:"Dismiss"};var _m={};_m={dismiss:"Descartar"};var Vm={};Vm={dismiss:"Lõpeta"};var Bm={};Bm={dismiss:"Hylkää"};var Wm={};Wm={dismiss:"Rejeter"};var Km={};Km={dismiss:"התעלם"};var Hm={};Hm={dismiss:"Odbaci"};var jm={};jm={dismiss:"Elutasítás"};var Um={};Um={dismiss:"Ignora"};var Gm={};Gm={dismiss:"閉じる"};var qm={};qm={dismiss:"무시"};var Ym={};Ym={dismiss:"Atmesti"};var Xm={};Xm={dismiss:"Nerādīt"};var Zm={};Zm={dismiss:"Lukk"};var Jm={};Jm={dismiss:"Negeren"};var Qm={};Qm={dismiss:"Zignoruj"};var ev={};ev={dismiss:"Descartar"};var tv={};tv={dismiss:"Dispensar"};var rv={};rv={dismiss:"Revocare"};var nv={};nv={dismiss:"Пропустить"};var ov={};ov={dismiss:"Zrušiť"};var iv={};iv={dismiss:"Opusti"};var av={};av={dismiss:"Odbaci"};var sv={};sv={dismiss:"Avvisa"};var lv={};lv={dismiss:"Kapat"};var cv={};cv={dismiss:"Скасувати"};var uv={};uv={dismiss:"取消"};var dv={};dv={dismiss:"關閉"};var fv={};fv={"ar-AE":Dm,"bg-BG":Am,"cs-CZ":Nm,"da-DK":Lm,"de-DE":zm,"el-GR":Fm,"en-US":Mm,"es-ES":_m,"et-EE":Vm,"fi-FI":Bm,"fr-FR":Wm,"he-IL":Km,"hr-HR":Hm,"hu-HU":jm,"it-IT":Um,"ja-JP":Gm,"ko-KR":qm,"lt-LT":Ym,"lv-LV":Xm,"nb-NO":Zm,"nl-NL":Jm,"pl-PL":Qm,"pt-BR":ev,"pt-PT":tv,"ro-RO":rv,"ru-RU":nv,"sk-SK":ov,"sl-SI":iv,"sr-SP":av,"sv-SE":sv,"tr-TR":lv,"uk-UA":cv,"zh-CN":uv,"zh-TW":dv};function pT(e){return e&&e.__esModule?e.default:e}function sd(e){let{onDismiss:t,...r}=e,n=ml(pT(fv),"@react-aria/overlays"),o=Zh(r,n.format("dismiss")),i=()=>{t&&t()};return d.createElement(km,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let gn=new WeakMap,Ye=[];function gT(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(f);let c=f=>{if(r.has(f)||f.parentElement&&n.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of r)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),g=c(l);if(g===NodeFilter.FILTER_ACCEPT&&i(l),g!==NodeFilter.FILTER_REJECT){let f=u.nextNode();for(;f!=null;)i(f),f=u.nextNode()}},i=l=>{var c;let u=(c=gn.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),n.add(l),gn.set(l,u+1))};Ye.length&&Ye[Ye.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(r.delete(u),n.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?r.add(u):u instanceof Element&&o(u)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Ye.push(s),()=>{a.disconnect();for(let l of n){let c=gn.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),gn.delete(l)):gn.set(l,c-1))}s===Ye[Ye.length-1]?(Ye.pop(),Ye.length&&Ye[Ye.length-1].observe()):Ye.splice(Ye.indexOf(s),1)}}function hT(e,t){let{triggerRef:r,popoverRef:n,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=rT({isOpen:t.isOpen&&!s["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},n),{overlayProps:u,arrowProps:g,placement:f}=Om({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:o?t.close:null});return oT({isDisabled:o||!t.isOpen}),X(()=>{if(t.isOpen&&!o&&n.current)return gT([n.current])},[o,t.isOpen,n]),{popoverProps:K(l,u),arrowProps:g,underlayProps:c,placement:f}}const mT=d.createContext({});function vT(){var e;return(e=d.useContext(mT))!==null&&e!==void 0?e:{}}const pv=d.createContext(null);function bT(e){let t=Zt(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=vT();if(!e.portalContainer&&s&&(r=s()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(mm,{restoreFocus:!0,contain:o&&!n},l)),l=d.createElement(pv.Provider,{value:a},d.createElement(U3,null,l)),ct.createPortal(l,r)}function yT(){let e=d.useContext(pv),t=e==null?void 0:e.setContain;X(()=>{t==null||t(!0)},[t])}const wl=new WeakMap;function xT(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function ST(e,t){let r=wl.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${xT(t)}`}function fs(e){return E3()?e.altKey:e.ctrlKey}const wT=1e3;function gv(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=CT(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},wT)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function CT(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ET(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:g=!1,isVirtualized:f,scrollRef:p=n,linkBehavior:h="action"}=e,{direction:m}=Pr(),b=Ei(),y=E=>{var O;if(E.altKey&&E.key==="Tab"&&E.preventDefault(),!(!((O=n.current)===null||O===void 0)&&O.contains(E.target)))return;const A=(N,M)=>{if(N!=null){if(t.isLink(N)&&h==="selection"&&l&&!fs(E)){var H;ct.flushSync(()=>{t.setFocusedKey(N,M)});let ee=(H=p.current)===null||H===void 0?void 0:H.querySelector(`[data-key="${CSS.escape(N.toString())}"]`),V=t.getItemProps(N);ee&&b.open(ee,E,V.href,V.routerOptions);return}if(t.setFocusedKey(N,M),t.isLink(N)&&h==="override")return;E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):l&&!fs(E)&&t.replaceSelection(N)}};switch(E.key){case"ArrowDown":if(r.getKeyBelow){var z,F,R;let N=t.focusedKey!=null?(z=r.getKeyBelow)===null||z===void 0?void 0:z.call(r,t.focusedKey):(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r);N==null&&i&&(N=(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N))}break;case"ArrowUp":if(r.getKeyAbove){var _,B,Z;let N=t.focusedKey!=null?(_=r.getKeyAbove)===null||_===void 0?void 0:_.call(r,t.focusedKey):(B=r.getLastKey)===null||B===void 0?void 0:B.call(r);N==null&&i&&(N=(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N))}break;case"ArrowLeft":if(r.getKeyLeftOf){var ne,_e,Ie;let N=t.focusedKey!=null?(ne=r.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(r,t.focusedKey):null;N==null&&i&&(N=m==="rtl"?(_e=r.getFirstKey)===null||_e===void 0?void 0:_e.call(r,t.focusedKey):(Ie=r.getLastKey)===null||Ie===void 0?void 0:Ie.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N,m==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var De,Ft,er;let N=t.focusedKey!=null?(De=r.getKeyRightOf)===null||De===void 0?void 0:De.call(r,t.focusedKey):null;N==null&&i&&(N=m==="rtl"?(Ft=r.getLastKey)===null||Ft===void 0?void 0:Ft.call(r,t.focusedKey):(er=r.getFirstKey)===null||er===void 0?void 0:er.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N,m==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&E.shiftKey)return;E.preventDefault();let N=r.getFirstKey(t.focusedKey,Fr(E));t.setFocusedKey(N),N!=null&&(Fr(E)&&E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):l&&t.replaceSelection(N))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&E.shiftKey)return;E.preventDefault();let N=r.getLastKey(t.focusedKey,Fr(E));t.setFocusedKey(N),N!=null&&(Fr(E)&&E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):l&&t.replaceSelection(N))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let N=r.getKeyPageBelow(t.focusedKey);N!=null&&(E.preventDefault(),A(N))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let N=r.getKeyPageAbove(t.focusedKey);N!=null&&(E.preventDefault(),A(N))}break;case"a":Fr(E)&&t.selectionMode==="multiple"&&s!==!0&&(E.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(E.stopPropagation(),E.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(E.shiftKey)n.current.focus();else{let N=We(n.current,{tabbable:!0}),M,H;do H=N.lastChild(),H&&(M=H);while(H);M&&!M.contains(document.activeElement)&&Tt(M)}break}}},x=d.useRef({top:0,left:0});yn(p,"scroll",f?void 0:()=>{var E,O,A,z;x.current={top:(A=(E=p.current)===null||E===void 0?void 0:E.scrollTop)!==null&&A!==void 0?A:0,left:(z=(O=p.current)===null||O===void 0?void 0:O.scrollLeft)!==null&&z!==void 0?z:0}});let S=E=>{if(t.isFocused){E.currentTarget.contains(E.target)||t.setFocused(!1);return}if(E.currentTarget.contains(E.target)){if(t.setFocused(!0),t.focusedKey==null){var O,A;let R=B=>{B!=null&&(t.setFocusedKey(B),l&&t.replaceSelection(B))},_=E.relatedTarget;var z,F;_&&E.currentTarget.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?R((z=t.lastSelectedKey)!==null&&z!==void 0?z:(O=r.getLastKey)===null||O===void 0?void 0:O.call(r)):R((F=t.firstSelectedKey)!==null&&F!==void 0?F:(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))}else!f&&p.current&&(p.current.scrollTop=x.current.top,p.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&p.current){let R=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||Tt(R),Fn()==="keyboard"&&zu(R,{containingElement:n.current}))}}},$=E=>{E.currentTarget.contains(E.relatedTarget)||t.setFocused(!1)},w=d.useRef(!1);yn(n,z3,u?E=>{let{detail:O}=E;E.stopPropagation(),t.setFocused(!0),(O==null?void 0:O.focusStrategy)==="first"&&(w.current=!0)}:void 0);let C=Pe(()=>{var E,O;let A=(O=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r))!==null&&O!==void 0?O:null;if(A==null){var z;(z=n.current)===null||z===void 0||z.dispatchEvent(new CustomEvent(em,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(A),w.current=!1});Nu(()=>{w.current&&C()},[t.collection,C]);let D=Pe(()=>{t.collection.size>0&&(w.current=!1)});Nu(()=>{D()},[t.focusedKey,D]),yn(n,L3,u?E=>{E.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const v=d.useRef(o);d.useEffect(()=>{if(v.current){var E,O;let F=null;var A;o==="first"&&(F=(A=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r))!==null&&A!==void 0?A:null);var z;o==="last"&&(F=(z=(O=r.getLastKey)===null||O===void 0?void 0:O.call(r))!==null&&z!==void 0?z:null);let R=t.selectedKeys;if(R.size){for(let _ of R)if(t.canSelectItem(_)){F=_;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!u&&n.current&&yr(n.current)}},[]);let P=d.useRef(t.focusedKey);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==P.current||v.current)&&p.current&&n.current){let E=Fn(),O=n.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!O)return;(E==="keyboard"||v.current)&&(Qh(p.current,O),E!=="virtual"&&zu(O,{containingElement:n.current}))}!u&&t.isFocused&&t.focusedKey==null&&P.current!=null&&n.current&&yr(n.current),P.current=t.focusedKey,v.current=!1}),yn(n,"react-aria-focus-scope-restore",E=>{E.preventDefault(),t.setFocused(!0)});let T={onKeyDown:y,onFocus:S,onBlur:$,onMouseDown(E){p.current===E.target&&E.preventDefault()}},{typeSelectProps:I}=gv({keyboardDelegate:r,selectionManager:t});c||(T=K(I,T));let L;return u?L=-1:L=t.focusedKey==null?0:-1,{collectionProps:{...T,tabIndex:L}}}function PT(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:g="action"}=e,f=Ei();t=$e(t);let p=R=>{if(R.pointerType==="keyboard"&&fs(R))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(g==="selection"&&o.current){let _=r.getItemProps(n);f.open(o.current,R,_.href,_.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(g==="override"||g==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):R&&R.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||R&&(Fr(R)||R.pointerType==="touch"||R.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};d.useEffect(()=>{if(n===r.focusedKey&&r.isFocused)if(!a)s?s():document.activeElement!==o.current&&o.current&&yr(o.current);else{var _;let B=new CustomEvent(em,{cancelable:!0,bubbles:!0});(_=o.current)===null||_===void 0||_.dispatchEvent(B)}},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),l=l||r.isDisabled(n);let h={};!a&&!l?h={tabIndex:n===r.focusedKey?0:-1,onFocus(R){R.target===o.current&&r.setFocusedKey(n)}}:l&&(h.onMouseDown=R=>{R.preventDefault()});let m=r.isLink(n)&&g==="override",b=r.isLink(n)&&g!=="selection"&&g!=="none",y=!l&&r.canSelectItem(n)&&!m,x=(c||b)&&!l,S=x&&(r.selectionBehavior==="replace"?!y:!y||r.isEmpty),$=x&&y&&r.selectionBehavior==="replace",w=S||$,C=d.useRef(null),D=w&&y,v=d.useRef(!1),P=d.useRef(!1),T=R=>{if(c&&c(),b&&o.current){let _=r.getItemProps(n);f.open(o.current,R,_.href,_.routerOptions)}},I={};i?(I.onPressStart=R=>{C.current=R.pointerType,v.current=D,R.pointerType==="keyboard"&&(!w||cd())&&p(R)},u?(I.onPressUp=S?void 0:R=>{R.pointerType==="mouse"&&y&&p(R)},I.onPress=S?T:R=>{R.pointerType!=="keyboard"&&R.pointerType!=="mouse"&&y&&p(R)}):I.onPress=R=>{if(S||$&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!ld())return;T(R)}else R.pointerType!=="keyboard"&&y&&p(R)}):(I.onPressStart=R=>{C.current=R.pointerType,v.current=D,P.current=S,y&&(R.pointerType==="mouse"&&!S||R.pointerType==="keyboard"&&(!x||cd()))&&p(R)},I.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&w&&ld()||R.pointerType==="mouse"&&P.current)&&(w?T(R):y&&p(R))}),h["data-key"]=n,I.preventFocusOnPress=a;let{pressProps:L,isPressed:E}=vr(I),O=$?R=>{C.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),T(R))}:void 0,{longPressProps:A}=gm({isDisabled:!D,onLongPress(R){R.pointerType==="touch"&&(p(R),r.setSelectionBehavior("toggle"))}}),z=R=>{C.current==="touch"&&v.current&&R.preventDefault()},F=r.isLink(n)?R=>{mr.isOpening||R.preventDefault()}:void 0;return{itemProps:K(h,y||S?L:{},D?A:{},{onDoubleClick:O,onDragStartCapture:z,onClick:F,id:t}),isPressed:E,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:y,hasAction:w}}function ld(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function cd(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ud{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?r.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left+r.scrollLeft,y:i.top-o.top+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t==null?void 0:t.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t==null?void 0:t.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t==null?void 0:t.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t==null?void 0:t.scrollTop)!==null&&n!==void 0?n:0,width:(o=t==null?void 0:t.offsetWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.offsetHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Cl{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(a,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Nn(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Nn(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new ud(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ud(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function $T(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=vl({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=d.useMemo(()=>i||new Cl({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,r,n,o,s,l]),{collectionProps:u}=ET({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}function kT(e,t,r){let n=ye(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=$T({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=$i({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=$e(e.id);wl.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:u}=xl({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:K(n,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...K(u,a)})}}class TT{build(t,r){return this.context=r,dd(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(d.isValidElement(r)&&r.type===d.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];d.Children.forEach(r,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let b=[];d.Children.forEach(t.element.props.children,x=>{b.push(x)});var i;let y=(i=t.index)!==null&&i!==void 0?i:0;for(const x of b)yield*this.getFullNode({element:x,index:y++},r,n,o);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let b=this.cache.get(t.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=t.index,b.parentKey=o?o.key:null,yield b;return}a=r.renderer(t.value)}if(d.isValidElement(a)){let b=a.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let $=a.type;throw new Error(`Unknown element <${$}> in collection.`)}let y=b.getCollectionNode(a.props,this.context);var s;let x=(s=t.index)!==null&&s!==void 0?s:0,S=y.next();for(;!S.done&&S.value;){let $=S.value;t.index=x;var l;let w=(l=$.key)!==null&&l!==void 0?l:null;w==null&&(w=$.element?null:this.getKey(a,t,r,n));let D=[...this.getFullNode({...$,key:w,index:x,wrapper:RT(t.wrapper,$.wrapper)},this.getChildState(r,$),n?`${n}${a.key}`:a.key,o)];for(let v of D){var c,u;v.value=(u=(c=$.value)!==null&&c!==void 0?c:t.value)!==null&&u!==void 0?u:null,v.value&&this.cache.set(v.value,v);var g;if(t.type&&v.type!==t.type)throw new Error(`Unsupported type <${ba(v.type)}> in <${ba((g=o==null?void 0:o.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${ba(t.type)}> is supported.`);x++,yield v}S=y.next(D)}return}if(t.key==null||t.type==null)return;let f=this;var p,h;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(h=t.textValue)!==null&&h!==void 0?h:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:dd(function*(){if(!t.hasChildNodes||!t.childNodes)return;let b=0;for(let y of t.childNodes()){y.key!=null&&(y.key=`${m.key}${y.key}`);let x=f.getFullNode({...y,index:b},f.getChildState(r,y),m.key,m);for(let S of x)b++,yield S}})};yield m}constructor(){this.cache=new WeakMap}}function dd(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function RT(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function ba(e){return e[0].toUpperCase()+e.slice(1)}function OT(e,t,r){let n=d.useMemo(()=>new TT,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function hv(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function IT(e){return DT(e)}function DT(e,t){for(let r of e)return r}function ya(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...fd(e,t),t],o=[...fd(e,r),r],i=n.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function fd(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const pd=new WeakMap;function AT(e){let t=pd.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(hv(i,e)):r++};return n(e),pd.set(e,r),r}function NT(e,t,r){var n,o;let{key:i}=e,a=wl.get(t);var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.selectionManager.isDisabled(i);var c;let u=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(i);var g;let f=(g=e.shouldSelectOnPressUp)!==null&&g!==void 0?g:a==null?void 0:a.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:a==null?void 0:a.shouldFocusOnHover;var m;let b=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:a==null?void 0:a.shouldUseVirtualFocus;var y;let x=(y=e.isVirtualized)!==null&&y!==void 0?y:a==null?void 0:a.isVirtualized,S=An(),$=An(),w={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};Yt()&&cl()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=S,w["aria-describedby"]=$);let C=t.collection.getItem(i);if(x){let F=Number(C==null?void 0:C.index);w["aria-posinset"]=Number.isNaN(F)?void 0:F+1,w["aria-setsize"]=AT(t.collection)}let D=a!=null&&a.onAction?()=>{var F;return a==null||(F=a.onAction)===null||F===void 0?void 0:F.call(a,i)}:void 0,v=ST(t,i),{itemProps:P,isPressed:T,isFocused:I,hasAction:L,allowsSelection:E}=PT({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:x,shouldUseVirtualFocus:b,isDisabled:l,onAction:D||!(C==null||(n=C.props)===null||n===void 0)&&n.onAction?qt(C==null||(o=C.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:v}),{hoverProps:O}=Er({isDisabled:l||!h,onHoverStart(){zn()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),A=ye(C==null?void 0:C.props);delete A.id;let z=qh(C==null?void 0:C.props);return{optionProps:{...w,...K(A,P,O,z),id:v},labelProps:{id:S},descriptionProps:{id:$},isFocused:I,isFocusVisible:I&&zn(),isSelected:u,isDisabled:l,isPressed:T,allowsSelection:E,hasAction:L}}function LT(e){let{heading:t,"aria-label":r}=e,n=$e();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var mv={};mv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var vv={};vv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var bv={};bv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var yv={};yv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var xv={};xv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Sv={};Sv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var wv={};wv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Cv={};Cv={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Ev={};Ev={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Pv={};Pv={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var $v={};$v={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var kv={};kv={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Tv={};Tv={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Rv={};Rv={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Ov={};Ov={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Iv={};Iv={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Dv={};Dv={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Av={};Av={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Nv={};Nv={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Lv={};Lv={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var zv={};zv={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Fv={};Fv={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Mv={};Mv={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var _v={};_v={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Vv={};Vv={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Bv={};Bv={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Wv={};Wv={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Kv={};Kv={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Hv={};Hv={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var jv={};jv={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Uv={};Uv={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Gv={};Gv={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var qv={};qv={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Yv={};Yv={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Xv={};Xv={"ar-AE":mv,"bg-BG":vv,"cs-CZ":bv,"da-DK":yv,"de-DE":xv,"el-GR":Sv,"en-US":wv,"es-ES":Cv,"et-EE":Ev,"fi-FI":Pv,"fr-FR":$v,"he-IL":kv,"hr-HR":Tv,"hu-HU":Rv,"it-IT":Ov,"ja-JP":Iv,"ko-KR":Dv,"lt-LT":Av,"lv-LV":Nv,"nb-NO":Lv,"nl-NL":zv,"pl-PL":Fv,"pt-BR":Mv,"pt-PT":_v,"ro-RO":Vv,"ru-RU":Bv,"sk-SK":Wv,"sl-SI":Kv,"sr-SP":Hv,"sv-SE":jv,"tr-TR":Uv,"uk-UA":Gv,"zh-CN":qv,"zh-TW":Yv};function zT(e){return e&&e.__esModule?e.default:e}function FT(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,a=$e(),{triggerProps:s,overlayProps:l}=Im({type:n},t,r),c=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},u=ml(zT(Xv),"@react-aria/menu"),{longPressProps:g}=gm({isDisabled:o||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&t.open(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?f:g,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function MT(e,t){let{role:r="dialog"}=e,n=An();n=e["aria-label"]?void 0:n;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){yr(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),yr(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),yT(),{dialogProps:{...ye(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}function _T(e,t,r){let{isDisabled:n}=e,o=$e(),i=$e(),s=!Zt()&&"onbeforematch"in document.body,l=d.useRef(null),c=d.useCallback(()=>{l.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found")}),ct.flushSync(()=>{t.toggle()})},[r,t]);return yn(r,"beforematch",s?c:null),X(()=>{l.current&&cancelAnimationFrame(l.current),s&&r.current&&!n&&(t.isExpanded?r.current.removeAttribute("hidden"):r.current.setAttribute("hidden","until-found"))},[n,r,t.isExpanded,s]),d.useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[]),{buttonProps:{id:o,"aria-expanded":t.isExpanded,"aria-controls":i,onPress:u=>{!n&&u.pointerType!=="keyboard"&&t.toggle()},isDisabled:n,onPressStart(u){u.pointerType==="keyboard"&&!n&&t.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!t.isExpanded,hidden:s?!0:!t.isExpanded}}}function VT(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=ye(e,{labelable:!0}),{labelProps:l,fieldProps:c}=xl({...e,labelElementType:"span"});t=Qo(t,r,n);let u=(t-r)/(n-r),g=I2(a);if(!i&&!o){let f=a.style==="percent"?u:t;o=g.format(f)}return{progressBarProps:K(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}const Zv=new WeakMap;function BT(e,t,r){let{keyboardDelegate:n,isDisabled:o,isRequired:i,name:a,validationBehavior:s="aria"}=e,l=vl({usage:"search",sensitivity:"base"}),c=d.useMemo(()=>n||new Cl(t.collection,t.disabledKeys,r,l),[n,t.collection,t.disabledKeys,l]),{menuTriggerProps:u,menuProps:g}=FT({isDisabled:o,type:"listbox"},t,r),f=v=>{switch(v.key){case"ArrowLeft":{var P,T;v.preventDefault();let E=t.selectedKey!=null?(P=c.getKeyAbove)===null||P===void 0?void 0:P.call(c,t.selectedKey):(T=c.getFirstKey)===null||T===void 0?void 0:T.call(c);E&&t.setSelectedKey(E);break}case"ArrowRight":{var I,L;v.preventDefault();let E=t.selectedKey!=null?(I=c.getKeyBelow)===null||I===void 0?void 0:I.call(c,t.selectedKey):(L=c.getFirstKey)===null||L===void 0?void 0:L.call(c);E&&t.setSelectedKey(E);break}}},{typeSelectProps:p}=gv({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(v){t.setSelectedKey(v)}}),{isInvalid:h,validationErrors:m,validationDetails:b}=t.displayValidation,{labelProps:y,fieldProps:x,descriptionProps:S,errorMessageProps:$}=Sl({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||m});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let w=ye(e,{labelable:!0}),C=K(p,u,x),D=$e();return Zv.set(t,{isDisabled:o,isRequired:i,name:a,validationBehavior:s}),{labelProps:{...y,onClick:()=>{if(!e.isDisabled){var v;(v=r.current)===null||v===void 0||v.focus(),pm("keyboard")}}},triggerProps:K(w,{...C,isDisabled:o,onKeyDown:qt(C.onKeyDown,f,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[D,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(v){t.isFocused||(e.onFocus&&e.onFocus(v),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(v){t.isOpen||(e.onBlur&&e.onBlur(v),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...g,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:v=>{v.currentTarget.contains(v.relatedTarget)||(e.onBlur&&e.onBlur(v),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[x["aria-labelledby"],C["aria-label"]&&!x["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:$,isInvalid:h,validationErrors:m,validationDetails:b}}function WT(e,t,r){let n=Zv.get(t)||{},{autoComplete:o,name:i=n.name,isDisabled:a=n.isDisabled}=e,{validationBehavior:s,isRequired:l}=n,{visuallyHiddenProps:c}=$m();fl(e.selectRef,t.selectedKey,t.setSelectedKey),yl({validationBehavior:s,focus:()=>{var g;return(g=r.current)===null||g===void 0?void 0:g.focus()}},t,e.selectRef);var u;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:a,required:s==="native"&&l,name:i,value:(u=t.selectedKey)!==null&&u!==void 0?u:"",onChange:g=>t.setSelectedKey(g.target.value)}}}function KT(e){let{state:t,triggerRef:r,label:n,name:o,isDisabled:i}=e,a=d.useRef(null),{containerProps:s,selectProps:l}=WT({...e,selectRef:a},t,r);var c;return t.collection.size<=300?d.createElement("div",{...s,"data-testid":"hidden-select-container"},d.createElement("label",null,n,d.createElement("select",{...l,ref:a},d.createElement("option",null),[...t.collection.getKeys()].map(u=>{let g=t.collection.getItem(u);if(g&&g.type==="item")return d.createElement("option",{key:g.key,value:g.key},g.textValue)})))):o?d.createElement("input",{type:"hidden",autoComplete:l.autoComplete,name:o,disabled:i,value:(c=t.selectedKey)!==null&&c!==void 0?c:""}):null}function HT(e,t){let r=ye(e,{labelable:!0}),{hoverProps:n}=Er({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:K(r,n,{role:"tooltip"})}}function jT(e,t,r){let{isDisabled:n,trigger:o}=e,i=$e(),a=d.useRef(!1),s=d.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=y=>{!a.current&&!s.current&&t.close(y)};d.useEffect(()=>{let y=x=>{r&&r.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",y,!0),()=>{document.removeEventListener("keydown",y,!0)}},[r,t]);let u=()=>{o!=="focus"&&(Fn()==="pointer"?a.current=!0:a.current=!1,l())},g=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},f=()=>{s.current=!1,a.current=!1,c(!0)},p=()=>{zn()&&(s.current=!0,l())},h=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:m}=Er({isDisabled:n,onHoverStart:u,onHoverEnd:g}),{focusableProps:b}=nn({isDisabled:n,onFocus:p,onBlur:h},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...K(b,m,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:i}}}const fr=oe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}}),{withContext:UT}=rt({recipe:fr}),GT=UT("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const r=!(t!=null&&t.includes(e))&&!Eh.isValidProperty(e);return Bf(e)&&r&&!e.includes("onPress")}}),Ri=d.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=d.useRef(null),s=Ue(Nt(a,t)),l=r||(n?"a":"button")||"button",{buttonProps:c}=Ti({...i,elementType:l},s);return k.jsx(GT,{...K(i,c,{as:r,asChild:n,ref:s}),children:o})});Ri.displayName="Button";const qT=d.forwardRef(function(t,r){const{children:n,portalled:o=!0,portalRef:i,backdrop:a=!0,...s}=t;return k.jsxs(WE,{disabled:!o,container:i,children:[a&&k.jsx(kh,{}),k.jsx(m5,{children:k.jsx(v5,{ref:r,...s,asChild:!1,children:n})})]})}),YT=d.forwardRef(function(t,r){return k.jsx(x5,{position:"absolute",top:"2",insetEnd:"2",...t,asChild:!0,children:k.jsx(Ri,{size:"xs",ref:r,children:t.children})})}),XT=g5,ZT=C5,JT=E5,QT=w5,eR=kh,tR=y5,rR=b5,nR=h5,oR=S5,Gn=d.forwardRef(({children:e,...t},r)=>k.jsx(Ri,{px:0,py:0,ref:r,...t,children:e}));Gn.displayName="IconButton";const Jv=oe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:iR}=rt({recipe:Jv}),aR=iR("a"),Qv=d.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=d.useRef(null),s=Ue(Nt(a,t)),l=r||(n?"span":"a")||"a",{linkProps:c}=v2({...i,elementType:l},s);return k.jsx(aR,{...K(i,c,{as:r,asChild:n,ref:s}),children:o})});Qv.displayName="Link";const sR=e=>k.jsx(Oh,{...e}),lR=e=>k.jsx(Ih,{...e}),eb=d.forwardRef((e,t)=>k.jsx($5,{ref:t,...e}));eb.displayName="SimpleGrid";const cR=Object.assign(eb,{Item:Th}),uR=e=>k.jsx(Dh,{...e}),dR=e=>k.jsx(_h,{...e}),fR=e=>k.jsx(Vh,{...e}),pR=e=>k.jsx(Nh,{...e}),gR=e=>k.jsx(Lh,{...e}),hR=e=>k.jsx(Ah,{...e}),mR=e=>k.jsx(Fh,{...e}),vR=e=>k.jsx(Mh,{...e}),bR=e=>k.jsx(zh,{...e}),tb=d.forwardRef((e,t)=>k.jsx(J5,{ref:t,...e}));tb.displayName="Text";d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const yR=d.createContext({}),oi=Symbol("default");function $r({values:e,children:t}){for(let[r,n]of e)t=d.createElement(r.Provider,{value:n},t);return t}function Me(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return d.useMemo(()=>{let l,c,u;return typeof t=="function"?l=t({...s,defaultClassName:o}):l=t,typeof r=="function"?c=r({...s,defaultStyle:a||{}}):c=r,typeof n=="function"?u=n({...s,defaultChildren:i}):n==null?u=i:u=n,{className:l??o,style:c||a?{...a,...c}:void 0,children:u??i,"data-rac":""}},[t,r,n,o,i,a,s])}function Oi(e,t){let r=d.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[oi])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||oi;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function je(e,t,r){let n=Oi(r,e.slot)||{},{ref:o,...i}=n,a=Ue(d.useMemo(()=>jh(t,o),[t,o])),s=K(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},g=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...g}}:s.style={...i.style,...e.style}),[s,a]}function El(){let[e,t]=d.useState(!0),r=d.useRef(!1),n=d.useCallback(o=>{r.current=!0,t(!!o)},[]);return X(()=>{r.current||t(!1)},[]),[n,e]}function rb(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}class Pl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Pl(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t}constructor(t,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=r}}class $l{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}filter(t){let r=new $l,n=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),a=null;for(let s of this.getChildren(o.key))if(t(s.textValue)||s.type==="header"){let l=s.clone();a==null&&(i.firstChildKey=l.key),r.firstKey==null&&(r.firstKey=i.key),a&&a.parentKey===l.parentKey?(a.nextKey=l.key,l.prevKey=a.key):l.prevKey=null,l.nextKey=null,r.addNode(l),a=l}a&&(a.type!=="header"?(i.lastChildKey=a.key,n==null?i.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,r.addNode(i)):(r.firstKey===i.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=i.key,i.prevKey=n.key,n=i,r.addNode(i))}else if(t(o.textValue)){let i=o.clone();r.firstKey==null&&(r.firstKey=i.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,r.addNode(i),n=i}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let o;n.prevKey!=null&&(o=r.getItem(n.prevKey),o.nextKey=null),r.removeNode(n.key),n=o}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class nb{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,r){if(r==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode;let n=r;for(;n;)n.index++,n=n.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let r=t.nextSibling;for(;r;)r.index--,r=r.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class Mn extends nb{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Mn?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,r,n,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof Mn?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(r=this.nextSibling)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(n=this.firstChild)===null||n===void 0?void 0:n.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,r,n,o){let i=this.ownerDocument.getMutableNode(this),{value:a,textValue:s,id:l,...c}=t;if(c.ref=r,i.props=c,i.rendered=n,i.render=o,i.value=a,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",l!=null&&l!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=l}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Pl(t,`react-aria-${++r.nodeId}`),this.ownerDocument.startTransaction()}}class xR extends nb{get isConnected(){return this.isMounted}createElement(t){return new Mn(t,this)}getMutableNode(t){let r=t.node;return this.mutatedNodes.has(t)||(r=t.node.clone(),this.mutatedNodes.add(t),t.node=r),this.markDirty(t),r}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let r=this.getMutableCollection();if(!r.getItem(t.node.key)){r.addNode(t.node);for(let n of t)this.addNode(n)}this.markDirty(t)}removeNode(t){for(let n of t)this.removeNode(n);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Mn&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,r;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var n,o;i.commit((n=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&n!==void 0?n:null,(o=(r=this.lastChild)===null||r===void 0?void 0:r.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function ob(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(r&&typeof t=="function"){let c=[];for(let u of r){let g=a.get(u);if(!g){g=t(u);var s,l;let f=(l=(s=g.props.id)!==null&&s!==void 0?s:u.key)!==null&&l!==void 0?l:u.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),g=d.cloneElement(g,o?{key:f,id:f,value:u}:{key:f}),a.set(u,g)}c.push(g)}return c}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ii=d.createContext(!1),SR=typeof DocumentFragment<"u"?new DocumentFragment:null;function wR(e){let t=d.useContext(ii),r=Zt();if(t)return d.createElement(d.Fragment,null,e.children);let n=d.createElement(ii.Provider,{value:!0},e.children);return r?d.createElement("template",{"data-react-aria-hidden":!0},n):ct.createPortal(n,SR)}function ib(e){let t=(r,n)=>d.useContext(ii)?null:e(r,n);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function CR(){return d.useContext(ii)}var wo={exports:{}},xa={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@chakra-ui/react"),W=require("@commercetools/nimbus-tokens"),a=require("react"),P=require("react/jsx-runtime"),Ne=require("react-dom"),ee=require("@commercetools/nimbus-icons");function ks(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Mt=ks(a),Io=S.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:Rs}=S.createRecipeContext({recipe:Io}),Ks=Rs("figure");function Ls(t,e){return t.split("")[0].toUpperCase()+e.split("")[0].toUpperCase()}const Bo=a.forwardRef((t,e)=>{const{firstName:r,lastName:n,src:o,alt:i,...l}=t,s=`${r} ${n}`,u={"aria-label":`${s} avatar`,ref:e,...l};return P.jsx(Ks,{...u,children:o?P.jsx(S.Image,{src:o,alt:i||s}):Ls(r,n)})});Bo.displayName="Avatar";const ve=a.forwardRef((t,e)=>P.jsx(S.Box,{ref:e,...t}));ve.displayName="Box";const z=typeof document<"u"?a.useLayoutEffect:()=>{};function Y(t){const e=a.useRef(null);return z(()=>{e.current=t},[t]),a.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function Ms(t){let[e,r]=a.useState(t),n=a.useRef(null),o=Y(()=>{if(!n.current)return;let l=n.current.next();if(l.done){n.current=null;return}e===l.value?o():r(l.value)});z(()=>{n.current&&o()});let i=Y(l=>{n.current=l(e),o()});return[e,i]}const Ft={prefix:String(Math.round(Math.random()*1e10)),current:0},No=a.createContext(Ft),Fs=a.createContext(!1);let As=!!(typeof window<"u"&&window.document&&window.document.createElement),ir=new WeakMap;function Is(t=!1){let e=a.useContext(No),r=a.useRef(null);if(r.current===null&&!t){var n,o;let i=(o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let l=ir.get(i);l==null?ir.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,ir.delete(i))}r.current=++e.current}return r.current}function Bs(t){let e=a.useContext(No);e===Ft&&!As&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Is(!!t),n=e===Ft&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function Ns(t){let e=a.useId(),[r]=a.useState(we()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ft.prefix}`;return t||`${n}-${e}`}const Os=typeof a.useId=="function"?Ns:Bs;function zs(){return!1}function Hs(){return!0}function Vs(t){return()=>{}}function we(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Vs,zs,Hs):a.useContext(Fs)}let js=!!(typeof window<"u"&&window.document&&window.document.createElement),ye=new Map;function Z(t){let[e,r]=a.useState(t),n=a.useRef(null),o=Os(e),i=a.useCallback(l=>{n.current=l},[]);return js&&(ye.has(o)&&!ye.get(o).includes(i)?ye.set(o,[...ye.get(o),i]):ye.set(o,[i])),z(()=>{let l=o;return()=>{ye.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;l&&(n.current=null,r(l))}),o}function Ws(t,e){if(t===e)return t;let r=ye.get(t);if(r)return r.forEach(o=>o(e)),e;let n=ye.get(e);return n?(n.forEach(o=>o(t)),t):e}function ut(t=[]){let e=Z(),[r,n]=Ms(e),o=a.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return z(o,[e,o,...t]),r}function Se(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const j=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},le=t=>t&&"window"in t&&t.window===t?t:j(t).defaultView||window;function Oo(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Oo(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function _s(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Oo(t))&&(n&&(n+=" "),n+=e);return n}function B(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let o in n){let i=e[o],l=n[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Se(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=_s(i,l):o==="id"&&i&&l?e.id=Ws(i,l):e[o]=l!==void 0?l:i}}return e}function zo(...t){return t.length===1&&t[0]?t[0]:e=>{for(let r of t)typeof r=="function"?r(e):r!=null&&(r.current=e)}}const Us=new Set(["id"]),Gs=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),qs=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ys=/^(data-.*)$/;function G(t,e={}){let{labelable:r,isLink:n,propNames:o}=e,i={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(Us.has(l)||r&&Gs.has(l)||n&&qs.has(l)||o!=null&&o.has(l)||Ys.test(l))&&(i[l]=t[l]);return i}function be(t){if(Zs())t.focus({preventScroll:!0});else{let e=Xs(t);t.focus(),Js(e)}}let Ct=null;function Zs(){if(Ct==null){Ct=!1;try{document.createElement("div").focus({get preventScroll(){return Ct=!0,!0}})}catch{}}return Ct}function Xs(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Js(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function jt(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(r=>t.test(r.brand)))||t.test(window.navigator.userAgent)}function qr(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function he(t){let e=null;return()=>(e==null&&(e=t()),e)}const Ce=he(function(){return qr(/^Mac/i)}),Qs=he(function(){return qr(/^iPhone/i)}),Ho=he(function(){return qr(/^iPad/i)||Ce()&&navigator.maxTouchPoints>1}),Wt=he(function(){return Qs()||Ho()}),eu=he(function(){return Ce()||Wt()}),Yr=he(function(){return jt(/AppleWebKit/i)&&!Vo()}),Vo=he(function(){return jt(/Chrome/i)}),Zr=he(function(){return jt(/Android/i)}),tu=he(function(){return jt(/Firefox/i)}),ru=a.createContext({isNative:!0,open:iu,useHref:t=>t});function _t(){return a.useContext(ru)}function nu(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Fe(t,e,r=!0){var n,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:u}=e;tu()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(Ce()?i=!0:l=!0);let c=Yr()&&Ce()&&!Ho()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:u,bubbles:!0,cancelable:!0});Fe.isOpening=r,be(t),t.dispatchEvent(c),Fe.isOpening=!1}Fe.isOpening=!1;function ou(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function iu(t,e){ou(t,r=>Fe(r,e))}function jo(t){let e=_t();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let _e=new Map,Er=new Set;function On(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let o=_e.get(n.target);o||(o=new Set,_e.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let o=_e.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),_e.delete(n.target)),_e.size===0)){for(let i of Er)i();Er.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?On():document.addEventListener("DOMContentLoaded",On));function Wo(t){requestAnimationFrame(()=>{_e.size===0?t():Er.add(t)})}function _o(){let t=a.useRef(new Map),e=a.useCallback((o,i,l,s)=>{let u=s!=null&&s.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:i,eventTarget:o,fn:u,options:s}),o.addEventListener(i,u,s)},[]),r=a.useCallback((o,i,l,s)=>{var u;let c=((u=t.current.get(l))===null||u===void 0?void 0:u.fn)||l;o.removeEventListener(i,c,s),t.current.delete(l)},[]),n=a.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function Uo(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=Z(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}function ne(t){const e=a.useRef(null);return a.useMemo(()=>({get current(){return e.current},set current(r){e.current=r,typeof t=="function"?t(r):t&&(t.current=r)}}),[t])}function zn(t,e){const r=a.useRef(!0),n=a.useRef(null);z(()=>(r.current=!0,()=>{r.current=!1}),[]),z(()=>{r.current?r.current=!1:(!n.current||e.some((o,i)=>!Object.is(o,n[i])))&&t(),n.current=e},e)}function lu(){return typeof window.ResizeObserver<"u"}function Tr(t){const{ref:e,box:r,onResize:n}=t;a.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(lu()){const i=new window.ResizeObserver(l=>{l.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,r])}function Xr(t,e){z(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ct(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function Go(t,e){let r=t;for(ct(r,e)&&(r=r.parentElement);r&&!ct(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function au(t,e){const r=[];for(;t&&t!==document.documentElement;)ct(t,e)&&r.push(t),t=t.parentElement;return r}let su=0;const lr=new Map;function uu(t){let[e,r]=a.useState();return z(()=>{if(!t)return;let n=lr.get(t);if(n)r(n.element.id);else{let o=`react-aria-description-${su++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=t,document.body.appendChild(i),n={refCount:0,element:i},lr.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),lr.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function it(t,e,r,n){let o=Y(r),i=r==null;a.useEffect(()=>{if(i||!t.current)return;let l=t.current;return l.addEventListener(e,o,n),()=>{l.removeEventListener(e,o,n)}},[t,e,n,i,o])}function qo(t,e){let r=Hn(t,e,"left"),n=Hn(t,e,"top"),o=e.offsetWidth,i=e.offsetHeight,l=t.scrollLeft,s=t.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:p,scrollPaddingBottom:v,scrollPaddingLeft:f}=getComputedStyle(t),h=l+parseInt(c,10),m=s+parseInt(u,10),y=h+t.clientWidth,$=m+t.clientHeight,C=parseInt(d,10)||0,w=parseInt(v,10)||0,K=parseInt(p,10)||0,k=parseInt(f,10)||0;r<=l+k?l=r-parseInt(c,10)-k:r+o>y-K&&(l+=r+o-y+K),n<=m+C?s=n-parseInt(u,10)-C:n+i>$-w&&(s+=n+i-$+w),t.scrollLeft=l,t.scrollTop=s}function Hn(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;e.offsetParent&&(o+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){o-=t[n];break}e=e.offsetParent}return o}function Vn(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=au(t);for(let c of u)qo(c,t)}else{var r;let{left:u,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:p}=t.getBoundingClientRect();if(Math.abs(u-d)>1||Math.abs(c-p)>1){var n,o,i;e==null||(o=e.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=t.scrollIntoView)===null||i===void 0||i.call(t,{block:"nearest"})}}}}function Dr(t){return t.mozInputSource===0&&t.isTrusted?!0:Zr()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function cu(t){return!Zr()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Jr(t,e,r){let n=a.useRef(e),o=Y(()=>{r&&r(n.current)});a.useEffect(()=>{var i;let l=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[t,o])}const du="react-aria-clear-focus",fu="react-aria-focus",Yo="react-aria-update-activedescendant";function Ue(t){return Ce()?t.metaKey:t.ctrlKey}function Zo(t,e=!0){let[r,n]=a.useState(!0),o=r&&e;return z(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,o]),Jo(t,o,a.useCallback(()=>n(!1),[])),o}function Xo(t,e){let[r,n]=a.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=r==="exiting";return Jo(t,o,a.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Jo(t,e,r){z(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||Ne.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[t,e,r])}function Ee(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(t!==void 0),l=t!==void 0;a.useEffect(()=>{let c=i.current;c!==l&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?t:n,u=a.useCallback((c,...d)=>{let p=(v,...f)=>{r&&(Object.is(s,v)||r(v,...f)),l||(s=v)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((f,...h)=>{let m=c(l?s:f,...h);return p(m,...d),l?f:m})):(l||o(c),p(c,...d))},[l,s,r]);return[s,u]}function At(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}let Ge="default",kr="",Lt=new WeakMap;function jn(t){if(Wt()){if(Ge==="default"){const e=j(t);kr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Ge="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(Lt.set(t,t.style.userSelect),t.style.userSelect="none")}function wt(t){if(Wt()){if(Ge!=="disabled")return;Ge="restoring",setTimeout(()=>{Wo(()=>{if(Ge==="restoring"){const e=j(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=kr||""),kr="",Ge="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Lt.has(t)){let e=Lt.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Lt.delete(t)}}const dt=a.createContext({register:()=>{}});dt.displayName="PressResponderContext";function pu(t,e){return e.get?e.get.call(t):e.value}function Qo(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function vu(t,e){var r=Qo(t,e,"get");return pu(t,r)}function bu(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function hu(t,e,r){bu(t,e),e.set(t,r)}function gu(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Wn(t,e,r){var n=Qo(t,e,"set");return gu(t,n,r),r}function mu(t){let e=a.useContext(dt);if(e){let{register:r,...n}=e;t=B(n,t),r()}return Xr(e,t.ref),t}var Et=new WeakMap;class Tt{continuePropagation(){Wn(this,Et,!1)}get shouldStopPropagation(){return vu(this,Et)}constructor(e,r,n,o){hu(this,Et,{writable:!0,value:void 0}),Wn(this,Et,!0);var i;let l=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let u,c=0,d,p=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,p=n.clientY),s&&(d!=null&&p!=null?(u=d-s.left,c=p-s.top):(u=s.width/2,c=s.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=u,this.y=c}}const _n=Symbol("linkClicked");function Ae(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...v}=mu(t),[f,h]=a.useState(!1),m=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=_o(),C=Y((b,R)=>{let L=m.current;if(l||L.didFirePressStart)return!1;let T=!0;if(L.isTriggeringEvent=!0,n){let F=new Tt("pressstart",R,b);n(F),T=F.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,h(!0),T}),w=Y((b,R,L=!0)=>{let T=m.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let F=!0;if(o){let g=new Tt("pressend",R,b);o(g),F=g.shouldStopPropagation}if(r&&r(!1),h(!1),e&&L&&!l){let g=new Tt("press",R,b);e(g),F&&(F=g.shouldStopPropagation)}return T.isTriggeringEvent=!1,F}),K=Y((b,R)=>{let L=m.current;if(l)return!1;if(i){L.isTriggeringEvent=!0;let T=new Tt("pressup",R,b);return i(T),L.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),k=Y(b=>{let R=m.current;R.isPressed&&R.target&&(R.isOverTarget&&R.pointerType!=null&&w(de(R.target,b),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,$(),d||wt(R.target))}),E=Y(b=>{c&&k(b)}),A=a.useMemo(()=>{let b=m.current,R={onKeyDown(T){if(ar(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var F;Gn(T.target,T.key)&&T.preventDefault();let g=!0;if(!b.isPressed&&!T.repeat){b.target=T.currentTarget,b.isPressed=!0,g=C(T,"keyboard");let x=T.currentTarget,M=N=>{ar(N,x)&&!N.repeat&&x.contains(N.target)&&b.target&&K(de(b.target,N),"keyboard")};y(j(T.currentTarget),"keyup",Se(M,L),!0)}g&&T.stopPropagation(),T.metaKey&&Ce()&&((F=b.metaKeyEvents)===null||F===void 0||F.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!b.isTriggeringEvent&&!Fe.isOpening){let F=!0;if(l&&T.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Dr(T.nativeEvent))){!l&&!u&&be(T.currentTarget);let g=C(T,"virtual"),x=K(T,"virtual"),M=w(T,"virtual");F=g&&x&&M}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,F&&T.stopPropagation()}}},L=T=>{var F;if(b.isPressed&&b.target&&ar(T,b.target)){var g;Gn(T.target,T.key)&&T.preventDefault();let M=T.target;w(de(b.target,T),"keyboard",b.target.contains(M)),$(),T.key!=="Enter"&&Qr(b.target)&&b.target.contains(M)&&!T[_n]&&(T[_n]=!0,Fe(b.target,T,!1)),b.isPressed=!1,(g=b.metaKeyEvents)===null||g===void 0||g.delete(T.key)}else if(T.key==="Meta"&&(!((F=b.metaKeyEvents)===null||F===void 0)&&F.size)){var x;let M=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let N of M.values())(x=b.target)===null||x===void 0||x.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){R.onPointerDown=x=>{if(x.button!==0||!x.currentTarget.contains(x.target))return;if(cu(x.nativeEvent)){b.pointerType="virtual";return}ur(x.currentTarget)&&x.preventDefault(),b.pointerType=x.pointerType;let M=!0;if(!b.isPressed){b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=x.pointerId,b.target=x.currentTarget,!l&&!u&&be(x.currentTarget),d||jn(b.target),M=C(x,b.pointerType);let N=x.target;"releasePointerCapture"in N&&N.releasePointerCapture(x.pointerId),y(j(x.currentTarget),"pointerup",T,!1),y(j(x.currentTarget),"pointercancel",g,!1)}M&&x.stopPropagation()},R.onMouseDown=x=>{x.currentTarget.contains(x.target)&&x.button===0&&(ur(x.currentTarget)&&x.preventDefault(),x.stopPropagation())},R.onPointerUp=x=>{!x.currentTarget.contains(x.target)||b.pointerType==="virtual"||x.button===0&&K(x,b.pointerType||x.pointerType)},R.onPointerEnter=x=>{x.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,C(de(b.target,x),b.pointerType))},R.onPointerLeave=x=>{x.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,w(de(b.target,x),b.pointerType,!1),E(x))};let T=x=>{x.pointerId===b.activePointerId&&b.isPressed&&x.button===0&&b.target&&(b.target.contains(x.target)&&b.pointerType!=null?w(de(b.target,x),b.pointerType):b.isOverTarget&&b.pointerType!=null&&w(de(b.target,x),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,$(),d||wt(b.target),"ontouchend"in b.target&&x.pointerType!=="mouse"&&y(b.target,"touchend",F,{once:!0}))},F=x=>{ei(x.currentTarget)&&x.preventDefault()},g=x=>{k(x)};R.onDragStart=x=>{x.currentTarget.contains(x.target)&&k(x)}}else{R.onMouseDown=g=>{if(g.button!==0||!g.currentTarget.contains(g.target))return;if(ur(g.currentTarget)&&g.preventDefault(),b.ignoreEmulatedMouseEvents){g.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=g.currentTarget,b.pointerType=Dr(g.nativeEvent)?"virtual":"mouse",!l&&!u&&be(g.currentTarget),C(g,b.pointerType)&&g.stopPropagation(),y(j(g.currentTarget),"mouseup",T,!1)},R.onMouseEnter=g=>{if(!g.currentTarget.contains(g.target))return;let x=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,x=C(g,b.pointerType)),x&&g.stopPropagation()},R.onMouseLeave=g=>{if(!g.currentTarget.contains(g.target))return;let x=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,x=w(g,b.pointerType,!1),E(g)),x&&g.stopPropagation()},R.onMouseUp=g=>{g.currentTarget.contains(g.target)&&!b.ignoreEmulatedMouseEvents&&g.button===0&&K(g,b.pointerType||"mouse")};let T=g=>{if(g.button===0){if(b.isPressed=!1,$(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&sr(g,b.target)&&b.pointerType!=null?w(de(b.target,g),b.pointerType):b.target&&b.isOverTarget&&b.pointerType!=null&&w(de(b.target,g),b.pointerType,!1),b.isOverTarget=!1}};R.onTouchStart=g=>{if(!g.currentTarget.contains(g.target))return;let x=yu(g.nativeEvent);if(!x)return;b.activePointerId=x.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=g.currentTarget,b.pointerType="touch",!l&&!u&&be(g.currentTarget),d||jn(b.target),C(me(b.target,g),b.pointerType)&&g.stopPropagation(),y(le(g.currentTarget),"scroll",F,!0)},R.onTouchMove=g=>{if(!g.currentTarget.contains(g.target))return;if(!b.isPressed){g.stopPropagation();return}let x=Un(g.nativeEvent,b.activePointerId),M=!0;x&&sr(x,g.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,M=C(me(b.target,g),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,M=w(me(b.target,g),b.pointerType,!1),E(me(b.target,g))),M&&g.stopPropagation()},R.onTouchEnd=g=>{if(!g.currentTarget.contains(g.target))return;if(!b.isPressed){g.stopPropagation();return}let x=Un(g.nativeEvent,b.activePointerId),M=!0;x&&sr(x,g.currentTarget)&&b.pointerType!=null?(K(me(b.target,g),b.pointerType),M=w(me(b.target,g),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(M=w(me(b.target,g),b.pointerType,!1)),M&&g.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!d&&wt(b.target),$()},R.onTouchCancel=g=>{g.currentTarget.contains(g.target)&&(g.stopPropagation(),b.isPressed&&k(me(b.target,g)))};let F=g=>{b.isPressed&&g.target.contains(b.target)&&k({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=g=>{g.currentTarget.contains(g.target)&&k(g)}}return R},[y,l,u,$,d,k,E,w,C,K]);return a.useEffect(()=>()=>{var b;d||wt((b=m.current.target)!==null&&b!==void 0?b:void 0)},[d]),{isPressed:s||f,pressProps:B(v,A)}}function Qr(t){return t.tagName==="A"&&t.hasAttribute("href")}function ar(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof le(o).HTMLInputElement&&!ti(o,r)||o instanceof le(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Qr(o))&&r!=="Enter")}function yu(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Un(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function me(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function de(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function $u(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function xu(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function sr(t,e){let r=e.getBoundingClientRect(),n=$u(t);return xu(r,n)}function ur(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function ei(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Qr(t)}function Gn(t,e){return t instanceof HTMLInputElement?!ti(t,e):ei(t)}const Pu=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ti(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Pu.has(t.type)}const Su=a.forwardRef(({children:t,...e},r)=>{let n=a.useRef(!1),o=a.useContext(dt);r=ne(r||(o==null?void 0:o.ref));let i=B(o||{},{...e,ref:r,register(){n.current=!0,o&&o.register()}});return Xr(o,r),a.useEffect(()=>{n.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),a.createElement(dt.Provider,{value:i},t)});function Cu({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(dt.Provider,{value:e},t)}class wu{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=e}}function ri(t){let e=a.useRef({isFocused:!1,observer:null});z(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Y(n=>{t==null||t(n)});return a.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n.target,i=l=>{e.current.isFocused=!1,o.disabled&&r(new wu("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function ni(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=a.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),o&&o(!1),!0},[n,o]),l=ri(i),s=a.useCallback(u=>{const c=j(u.target);u.target===u.currentTarget&&c.activeElement===u.target&&(r&&r(u),o&&o(!0),l(u))},[o,r,l]);return{focusProps:{onFocus:!e&&(r||o||n)?s:void 0,onBlur:!e&&(n||o)?i:void 0}}}let Oe=null,Rr=new Set,st=new Map,Ie=!1,Kr=!1;const Eu={Tab:!0,Escape:!0};function Ut(t,e){for(let r of Rr)r(t,e)}function Tu(t){return!(t.metaKey||!Ce()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function It(t){Ie=!0,Tu(t)&&(Oe="keyboard",Ut("keyboard",t))}function ie(t){Oe="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ie=!0,Ut("pointer",t))}function oi(t){Dr(t)&&(Ie=!0,Oe="virtual")}function ii(t){t.target===window||t.target===document||(!Ie&&!Kr&&(Oe="virtual",Ut("virtual",t)),Ie=!1,Kr=!1)}function li(){Ie=!1,Kr=!0}function Lr(t){if(typeof window>"u"||st.get(le(t)))return;const e=le(t),r=j(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ie=!0,n.apply(this,arguments)},r.addEventListener("keydown",It,!0),r.addEventListener("keyup",It,!0),r.addEventListener("click",oi,!0),e.addEventListener("focus",ii,!0),e.addEventListener("blur",li,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",ie,!0),r.addEventListener("pointermove",ie,!0),r.addEventListener("pointerup",ie,!0)):(r.addEventListener("mousedown",ie,!0),r.addEventListener("mousemove",ie,!0),r.addEventListener("mouseup",ie,!0)),e.addEventListener("beforeunload",()=>{ai(t)},{once:!0}),st.set(e,{focus:n})}const ai=(t,e)=>{const r=le(t),n=j(t);e&&n.removeEventListener("DOMContentLoaded",e),st.has(r)&&(r.HTMLElement.prototype.focus=st.get(r).focus,n.removeEventListener("keydown",It,!0),n.removeEventListener("keyup",It,!0),n.removeEventListener("click",oi,!0),r.removeEventListener("focus",ii,!0),r.removeEventListener("blur",li,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",ie,!0),n.removeEventListener("pointermove",ie,!0),n.removeEventListener("pointerup",ie,!0)):(n.removeEventListener("mousedown",ie,!0),n.removeEventListener("mousemove",ie,!0),n.removeEventListener("mouseup",ie,!0)),st.delete(r))};function Du(t){const e=j(t);let r;return e.readyState!=="loading"?Lr(t):(r=()=>{Lr(t)},e.addEventListener("DOMContentLoaded",r)),()=>ai(t,r)}typeof document<"u"&&Du();function ft(){return Oe!=="pointer"}function pt(){return Oe}function si(t){Oe=t,Ut(t,null)}const ku=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ru(t,e,r){var n;const o=typeof window<"u"?le(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?le(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?le(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?le(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return t=t||(r==null?void 0:r.target)instanceof o&&!ku.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof i||(r==null?void 0:r.target)instanceof l&&(r==null?void 0:r.target.isContentEditable),!(t&&e==="keyboard"&&r instanceof s&&!Eu[r.key])}function Ku(t,e,r){Lr(),a.useEffect(()=>{let n=(o,i)=>{Ru(!!(r!=null&&r.isTextInput),o,i)&&t(ft())};return Rr.add(n),()=>{Rr.delete(n)}},e)}function Gt(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=t,i=a.useRef({isFocusWithin:!1}),l=a.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,i]),s=ri(l),u=a.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[n,o,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Bt=!1,cr=0;function Mr(){Bt=!0,setTimeout(()=>{Bt=!1},50)}function qn(t){t.pointerType==="touch"&&Mr()}function Lu(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",qn):document.addEventListener("touchend",Mr),cr++,()=>{cr--,!(cr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",qn):document.removeEventListener("touchend",Mr))}}function ze(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:o}=t,[i,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Lu,[]);let{hoverProps:u,triggerHoverEnd:c}=a.useMemo(()=>{let d=(f,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!f.currentTarget.contains(f.target))return;s.isHovered=!0;let m=f.currentTarget;s.target=m,e&&e({type:"hoverstart",target:m,pointerType:h}),r&&r(!0),l(!0)},p=(f,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let m=f.currentTarget;n&&n({type:"hoverend",target:m,pointerType:h}),r&&r(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=f=>{Bt&&f.pointerType==="mouse"||d(f,f.pointerType)},v.onPointerLeave=f=>{!o&&f.currentTarget.contains(f.target)&&p(f,f.pointerType)}):(v.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=f=>{!s.ignoreEmulatedMouseEvents&&!Bt&&d(f,"mouse"),s.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=f=>{!o&&f.currentTarget.contains(f.target)&&p(f,"mouse")}),{hoverProps:v,triggerHoverEnd:p}},[e,r,n,o,s]);return a.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:u,isHovered:i}}function Mu(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=t,i=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Y(u=>{r&&Dt(u,e)&&(o&&o(u),i.current.isPointerDown=!0)}),s=Y(u=>{r&&r(u)});a.useEffect(()=>{let u=i.current;if(n)return;const c=e.current,d=j(c);if(typeof PointerEvent<"u"){let p=v=>{u.isPointerDown&&Dt(v,e)&&s(v),u.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",p,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",p,!0)}}else{let p=f=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Dt(f,e)&&s(f),u.isPointerDown=!1},v=f=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Dt(f,e)&&s(f),u.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",p,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",v,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",p,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",v,!0)}}},[e,n,l,s])}function Dt(t,e){if(t.button>0)return!1;if(t.target){const r=t.target.ownerDocument;if(!r||!r.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function Yn(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(n),e&&r.stopPropagation()}}function Fu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Yn(t.onKeyDown),onKeyUp:Yn(t.onKeyUp)}}}const Au=500;function ui(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=Au,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=_o(),{pressProps:d}=Ae({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(r&&r({...v,type:"longpressstart"}),s.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...v,type:"longpress"}),s.current=void 0},i),v.pointerType==="touch")){let f=h=>{h.preventDefault()};u(v.target,"contextmenu",f,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(v.target,"contextmenu",f)},30)},{once:!0})}},onPressEnd(v){s.current&&clearTimeout(s.current),n&&(v.pointerType==="mouse"||v.pointerType==="touch")&&n({...v,type:"longpressend"})}}),p=uu(o&&!e?l:void 0);return{longPressProps:B(d,p)}}function Be(t){const e=j(t);if(pt()==="virtual"){let r=e.activeElement;Wo(()=>{e.activeElement===r&&t.isConnected&&be(t)})}else be(t)}function Iu(t){const e=le(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:l,visibility:s}=i(t);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Bu(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function ci(t,e){return t.nodeName!=="#comment"&&Iu(t)&&Bu(t,e)&&(!t.parentElement||ci(t.parentElement,t))}const Zn=a.createContext(null),Fr="react-aria-focus-scope-restore";let V=null;function di(t){let{children:e,contain:r,restoreFocus:n,autoFocus:o}=t,i=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:u}=a.useContext(Zn)||{},c=a.useMemo(()=>new Ir({scopeRef:s}),[s]);z(()=>{let v=u||U.root;if(U.getTreeNode(v.scopeRef)&&V&&!Nt(V,v.scopeRef)){let f=U.getTreeNode(V);f&&(v=f)}v.addChild(c),U.addNode(c)},[c,u]),z(()=>{let v=U.getTreeNode(s);v&&(v.contain=!!r)},[r]),z(()=>{var v;let f=(v=i.current)===null||v===void 0?void 0:v.nextSibling,h=[],m=y=>y.stopPropagation();for(;f&&f!==l.current;)h.push(f),f.addEventListener(Fr,m),f=f.nextSibling;return s.current=h,()=>{for(let y of h)y.removeEventListener(Fr,m)}},[e]),Wu(s,n,r),Hu(s,r),_u(s,n,r),ju(s,o),a.useEffect(()=>{const v=j(s.current?s.current[0]:void 0).activeElement;let f=null;if(ae(v,s.current)){for(let h of U.traverse())h.scopeRef&&ae(v,h.scopeRef.current)&&(f=h);f===U.getTreeNode(s)&&(V=f.scopeRef)}},[s]),z(()=>()=>{var v,f,h;let m=(h=(f=U.getTreeNode(s))===null||f===void 0||(v=f.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&h!==void 0?h:null;(s===V||Nt(s,V))&&(!m||U.getTreeNode(m))&&(V=m),U.removeTreeNode(s)},[s]);let d=a.useMemo(()=>Nu(s),[]),p=a.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return a.createElement(Zn.Provider,{value:p},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Nu(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||j(r[0]).activeElement,u=r[0].previousElementSibling,c=Me(r),d=te(c,{tabbable:o,accept:l},r);d.currentNode=ae(s,r)?s:u;let p=d.nextNode();return!p&&i&&(d.currentNode=u,p=d.nextNode()),p&&X(p,!0),p},focusPrevious(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||j(r[0]).activeElement,u=r[r.length-1].nextElementSibling,c=Me(r),d=te(c,{tabbable:o,accept:l},r);d.currentNode=ae(s,r)?s:u;let p=d.previousNode();return!p&&i&&(d.currentNode=u,p=d.previousNode()),p&&X(p,!0),p},focusFirst(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=Me(r),l=te(i,{tabbable:n,accept:o},r);l.currentNode=r[0].previousElementSibling;let s=l.nextNode();return s&&X(s,!0),s},focusLast(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=Me(r),l=te(i,{tabbable:n,accept:o},r);l.currentNode=r[r.length-1].nextElementSibling;let s=l.previousNode();return s&&X(s,!0),s}}}const en=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],Ou=en.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";en.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zu=en.join(':not([hidden]):not([tabindex="-1"]),');function Me(t){return t[0].parentElement}function lt(t){let e=U.getTreeNode(V);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Hu(t,e){let r=a.useRef(void 0),n=a.useRef(void 0);z(()=>{let o=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=j(o?o[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!lt(t)||c.isComposing)return;let d=i.activeElement,p=t.current;if(!p||!ae(d,p))return;let v=Me(p),f=te(v,{tabbable:!0},p);if(!d)return;f.currentNode=d;let h=c.shiftKey?f.previousNode():f.nextNode();h||(f.currentNode=c.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,h=c.shiftKey?f.previousNode():f.nextNode()),c.preventDefault(),h&&X(h,!0)},s=c=>{(!V||Nt(V,t))&&ae(c.target,t.current)?(V=t,r.current=c.target):lt(t)&&!$e(c.target,t)?r.current?r.current.focus():V&&V.current&&Ar(V.current):lt(t)&&(r.current=c.target)},u=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=pt();if(!((d==="virtual"||d===null)&&Zr()&&Vo())&&i.activeElement&&lt(t)&&!$e(i.activeElement,t))if(V=t,i.body.contains(c.target)){var v;r.current=c.target,(v=r.current)===null||v===void 0||v.focus()}else V.current&&Ar(V.current)})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[t,e]),z(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function fi(t){return $e(t)}function ae(t,e){return!t||!e?!1:e.some(r=>r.contains(t))}function $e(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of U.traverse(U.getTreeNode(e)))if(r&&ae(t,r.current))return!0;return!1}function Vu(t){return $e(t,V)}function Nt(t,e){var r;let n=(r=U.getTreeNode(e))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function X(t,e=!1){if(t!=null&&!e)try{Be(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function pi(t,e=!0){let r=t[0].previousElementSibling,n=Me(t),o=te(n,{tabbable:e},t);o.currentNode=r;let i=o.nextNode();return e&&!i&&(n=Me(t),o=te(n,{tabbable:!1},t),o.currentNode=r,i=o.nextNode()),i}function Ar(t,e=!0){X(pi(t,e))}function ju(t,e){const r=a.useRef(e);a.useEffect(()=>{if(r.current){V=t;const n=j(t.current?t.current[0]:void 0);!ae(n.activeElement,V.current)&&t.current&&Ar(t.current)}r.current=!1},[t])}function Wu(t,e,r){z(()=>{if(e||r)return;let n=t.current;const o=j(n?n[0]:void 0);let i=l=>{let s=l.target;ae(s,t.current)?V=t:fi(s)||(V=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[t,e,r])}function Xn(t){let e=U.getTreeNode(V);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function _u(t,e,r){const n=a.useRef(typeof document<"u"?j(t.current?t.current[0]:void 0).activeElement:null);z(()=>{let o=t.current;const i=j(o?o[0]:void 0);if(!e||r)return;let l=()=>{(!V||Nt(V,t))&&ae(i.activeElement,t.current)&&(V=t)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,r]),z(()=>{const o=j(t.current?t.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!lt(t)||l.isComposing)return;let s=o.activeElement;if(!$e(s,t)||!Xn(t))return;let u=U.getTreeNode(t);if(!u)return;let c=u.nodeToRestore,d=te(o.body,{tabbable:!0});d.currentNode=s;let p=l.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!p||!$e(p,t))&&c){d.currentNode=c;do p=l.shiftKey?d.previousNode():d.nextNode();while($e(p,t));l.preventDefault(),l.stopPropagation(),p?X(p,!0):fi(c)?X(c,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[t,e,r]),z(()=>{const o=j(t.current?t.current[0]:void 0);if(!e)return;let i=U.getTreeNode(t);if(i){var l;return i.nodeToRestore=(l=n.current)!==null&&l!==void 0?l:void 0,()=>{let s=U.getTreeNode(t);if(!s)return;let u=s.nodeToRestore;if(e&&u&&(o.activeElement&&$e(o.activeElement,t)||o.activeElement===o.body&&Xn(t))){let c=U.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){Jn(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&U.getTreeNode(d.scopeRef)){let p=pi(d.scopeRef.current,!0);Jn(p);return}d=d.parent}}})}}}},[t,e])}function Jn(t){t.dispatchEvent(new CustomEvent(Fr,{bubbles:!0,cancelable:!0}))&&X(t)}function te(t,e,r){let n=e!=null&&e.tabbable?zu:Ou,o=j(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(e==null||(l=e.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(n)&&ci(i)&&(!r||ae(i,r))&&(!(e!=null&&e.accept)||e.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(o.currentNode=e.from),o}function Uu(t,e={}){return{focusNext(r={}){let n=t.current;if(!n)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:s=e.accept}=r,u=o||j(n).activeElement,c=te(n,{tabbable:i,accept:s});n.contains(u)&&(c.currentNode=u);let d=c.nextNode();return!d&&l&&(c.currentNode=n,d=c.nextNode()),d&&X(d,!0),d},focusPrevious(r=e){let n=t.current;if(!n)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:s=e.accept}=r,u=o||j(n).activeElement,c=te(n,{tabbable:i,accept:s});if(n.contains(u))c.currentNode=u;else{let p=dr(c);return p&&X(p,!0),p??null}let d=c.previousNode();if(!d&&l){c.currentNode=n;let p=dr(c);if(!p)return null;d=p}return d&&X(d,!0),d??null},focusFirst(r=e){let n=t.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=r,s=te(n,{tabbable:o,accept:i}).nextNode();return s&&X(s,!0),s},focusLast(r=e){let n=t.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=r,l=te(n,{tabbable:o,accept:i}),s=dr(l);return s&&X(s,!0),s??null}}}function dr(t){let e,r;do r=t.lastChild(),r&&(e=r);while(r);return e}class tn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Ir({scopeRef:e});o.addChild(i),i.parent=o,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&ae(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var e;let r=new tn;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(e=o.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Ir({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ir{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let U=new tn;function Te(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,o=a.useRef({isFocused:!1,isFocusVisible:e||ft()}),[i,l]=a.useState(!1),[s,u]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=a.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(f=>{o.current.isFocused=f,l(f),c()},[c]);Ku(f=>{o.current.isFocusVisible=f,c()},[],{isTextInput:r});let{focusProps:p}=ni({isDisabled:n,onFocusChange:d}),{focusWithinProps:v}=Gt({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:n?v:p}}let vi=a.createContext(null);function Gu(t){let e=a.useContext(vi)||{};Xr(e,t);let{ref:r,...n}=e;return n}const qu=a.forwardRef(function(e,r){let{children:n,...o}=e,i=ne(r),l={...o,ref:i};return a.createElement(vi.Provider,{value:l},n)});function Ze(t,e){let{focusProps:r}=ni(t),{keyboardProps:n}=Fu(t),o=B(r,n),i=Gu(e),l=t.isDisabled?{}:i,s=a.useRef(t.autoFocus);return a.useEffect(()=>{s.current&&e.current&&Be(e.current),s.current=!1},[e]),{focusableProps:B({...o,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},l)}}function Yu(t,e){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,...u}=t,c={};r!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Ze(t,e),{pressProps:p,isPressed:v}=Ae({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:e}),f=G(u,{labelable:!0}),h=B(d,p),m=_t(),y=jo(t);return{isPressed:v,linkProps:B(f,y,{...h,...c,"aria-disabled":s||void 0,"aria-current":t["aria-current"],onClick:$=>{var C;(C=p.onClick)===null||C===void 0||C.call(p,$),l&&(l($),console.warn("onClick is deprecated, please use onPress")),!m.isNative&&$.currentTarget instanceof HTMLAnchorElement&&$.currentTarget.href&&!$.isDefaultPrevented()&&nu($.currentTarget,$)&&t.href&&($.preventDefault(),m.open($.currentTarget,$,t.href,t.routerOptions))}})}}const Zu=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Xu=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ju(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Zu.has(r.script)}let e=t.split("-")[0];return Xu.has(e)}const Qu=Symbol.for("react-aria.i18n.locale");function bi(){let t=typeof window<"u"&&window[Qu]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Ju(t)?"rtl":"ltr"}}let Br=bi(),at=new Set;function Qn(){Br=bi();for(let t of at)t(Br)}function ec(){let t=we(),[e,r]=a.useState(Br);return a.useEffect(()=>(at.size===0&&window.addEventListener("languagechange",Qn),at.add(r),()=>{at.delete(r),at.size===0&&window.removeEventListener("languagechange",Qn)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const tc=a.createContext(null);function He(){let t=ec();return a.useContext(tc)||t}const rc=Symbol.for("react-aria.i18n.locale"),nc=Symbol.for("react-aria.i18n.strings");let We;class qt{getStringForLocale(e,r){let o=this.getStringsForLocale(r)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${r} locale`);return o}getStringsForLocale(e){let r=this.strings[e];return r||(r=oc(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[rc];if(We===void 0){let o=window[nc];if(!o)return null;We={};for(let i in o)We[i]=new qt({[r]:o[i]},r)}let n=We==null?void 0:We[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}}function oc(t,e,r="en-US"){if(e[t])return e[t];let n=ic(t);if(e[n])return e[n];for(let o in e)if(o.startsWith(n+"-"))return e[o];return e[r]}function ic(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const eo=new Map,to=new Map;class lc{format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let o=r["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,l=eo.get(i);l||(l=new Intl.PluralRules(this.locale,{type:n}),eo.set(i,l));let s=l.select(e);return o=r[s]||r.other,typeof o=="function"?o():o}number(e){let r=to.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),to.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}constructor(e,r){this.locale=e,this.strings=r}}const ro=new WeakMap;function ac(t){let e=ro.get(t);return e||(e=new qt(t),ro.set(t,e)),e}function sc(t,e){return e&&qt.getGlobalDictionaryForPackage(e)||ac(t)}function rn(t,e){let{locale:r}=He(),n=sc(t,e);return a.useMemo(()=>new lc(r,n),[r,n])}let fr=new Map,Nr=!1;try{Nr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ot=!1;try{Ot=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const hi={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class uc{format(e){let r="";if(!Nr&&this.options.signDisplay!=null?r=dc(this.numberFormatter,this.options.signDisplay,e):r=this.numberFormatter.format(e),this.options.style==="unit"&&!Ot){var n;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return r;let s=(n=hi[o])===null||n===void 0?void 0:n[i];r+=s[l]||s.default}return r}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(r)}`}formatRangeToParts(e,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Nr&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Ot&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,r={}){this.numberFormatter=cc(e,r),this.options=r}}function cc(t,e={}){let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),e.style==="unit"&&!Ot){var n;let{unit:l,unitDisplay:s="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=hi[l])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);e={...e,style:"decimal"}}let o=t+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(fr.has(o))return fr.get(o);let i=new Intl.NumberFormat(t,e);return fr.set(o,i),i}function dc(t,e,r){if(e==="auto")return t.format(r);if(e==="never")return t.format(Math.abs(r));{let n=!1;if(e==="always"?n=r>0||Object.is(r,0):e==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=t.format(-r),i=t.format(r),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return t.format(r)}}function fc(t={}){let{locale:e}=He();return a.useMemo(()=>new uc(e,t),[e,t])}let pr=new Map;function nn(t){let{locale:e}=He(),r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(pr.has(r))return pr.get(r);let n=new Intl.Collator(e,t);return pr.set(r,n),n}function Yt(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:p,href:v,target:f,rel:h,type:m="button"}=t,y;r==="button"?y={type:m,disabled:n}:y={role:"button",tabIndex:n?void 0:0,href:r==="a"&&!n?v:void 0,target:r==="a"?f:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:$,isPressed:C}=Ae({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:o,onPressUp:s,isDisabled:n,preventFocusOnPress:c,ref:e}),{focusableProps:w}=Ze(t,e);d&&(w.tabIndex=n?-1:w.tabIndex);let K=B(w,$,G(t,{labelable:!0}));return{isPressed:C,buttonProps:B(y,K,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:k=>{p&&(p(k),console.warn("onClick is deprecated, please use onPress"))}})}}function gi(t,e,r){const{isSelected:n}=e,{isPressed:o,buttonProps:i}=Yt({...t,onPress:Se(e.toggle,t.onPress)},r);return{isPressed:o,isSelected:n,isDisabled:t.isDisabled||!1,buttonProps:B(i,{"aria-pressed":n})}}function pc(t,e){const{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=t;let[i,l]=a.useState(!1);z(()=>{var h;l(!!(e.current&&(!((h=e.current.parentElement)===null||h===void 0)&&h.closest('[role="toolbar"]'))))});const{direction:s}=He(),u=s==="rtl"&&o==="horizontal";let c=Uu(e);const d=h=>{if(h.currentTarget.contains(h.target)){if(o==="horizontal"&&h.key==="ArrowRight"||o==="vertical"&&h.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&h.key==="ArrowLeft"||o==="vertical"&&h.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(h.key==="Tab"){h.stopPropagation(),p.current=document.activeElement,h.shiftKey?c.focusFirst():c.focusLast();return}else return;h.stopPropagation(),h.preventDefault()}},p=a.useRef(null),v=h=>{!h.currentTarget.contains(h.relatedTarget)&&!p.current&&(p.current=h.target)},f=h=>{var m;if(p.current&&!h.currentTarget.contains(h.relatedTarget)&&(!((m=e.current)===null||m===void 0)&&m.contains(h.target))){var y;(y=p.current)===null||y===void 0||y.focus(),p.current=null}};return{toolbarProps:{...G(t,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:d,onFocusCapture:i?void 0:f,onBlurCapture:i?void 0:v}}}function vc(t,e,r){let{isDisabled:n}=t,{toolbarProps:o}=pc(t,r);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":n}}}function bc(t,e,r){let n={isSelected:e.selectedKeys.has(t.id),setSelected(u){e.setSelected(t.id,u)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:i,isDisabled:l,buttonProps:s}=gi({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},n,r);return e.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=n.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:l,buttonProps:s}}const mi=7e3;let ue=null;function no(t,e="assertive",r=mi){ue?ue.announce(t,e,r):(ue=new hc,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ue.announce(t,e,r):setTimeout(()=>{ue!=null&&ue.isAttached()&&(ue==null||ue.announce(t,e,r))},100))}class hc{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=mi){var o,i;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(l):(i=this.politeLog)===null||i===void 0||i.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const yi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$i={...yi,customError:!0,valid:!1},tt={isInvalid:!1,validationDetails:yi,validationErrors:[]},gc=a.createContext({}),Or="__formValidationState"+Date.now();function on(t){if(t[Or]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[Or];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return mc(t)}function mc(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=t;r&&(e||(e=r==="invalid"));let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:$i}:null,c=a.useMemo(()=>{if(!l||o==null)return null;let L=yc(l,o);return oo(L)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=a.useContext(gc),p=a.useMemo(()=>n?Array.isArray(n)?n.flatMap(L=>zr(d[L])):zr(d[n]):[],[d,n]),[v,f]=a.useState(d),[h,m]=a.useState(!1);d!==v&&(f(d),m(!1));let y=a.useMemo(()=>oo(h?[]:p),[h,p]),$=a.useRef(tt),[C,w]=a.useState(tt),K=a.useRef(tt),k=()=>{if(!E)return;A(!1);let L=c||i||$.current;vr(L,K.current)||(K.current=L,w(L))},[E,A]=a.useState(!1);return a.useEffect(k),{realtimeValidation:u||y||c||i||tt,displayValidation:s==="native"?u||y||C:u||y||c||i||C,updateValidation(L){s==="aria"&&!vr(C,L)?w(L):$.current=L},resetValidation(){let L=tt;vr(L,K.current)||(K.current=L,w(L)),s==="native"&&A(!1),m(!0)},commitValidation(){s==="native"&&A(!0),m(!0)}}}function zr(t){return t?Array.isArray(t)?t:[t]:[]}function yc(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return zr(r)}return[]}function oo(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:$i}:null}function vr(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function ln(t,e,r){let{validationBehavior:n,focus:o}=t;z(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(xc(r.current))}});let i=Y(()=>{e.resetValidation()}),l=Y(u=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&r&&d&&Pc(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),si("keyboard")}u.preventDefault()}),s=Y(()=>{e.commitValidation()});a.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let c=u.form;return u.addEventListener("invalid",l),u.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[r,l,s,i,n])}function $c(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function xc(t){return{isInvalid:!t.validity.valid,validationDetails:$c(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Pc(t){for(let e=0;e<t.elements.length;e++){let r=t.elements[e];if(!r.validity.valid)return r}return null}function Sc(t,e,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:l,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:p}=t,v=E=>{E.stopPropagation(),e.setSelected(E.target.checked)},f=s!=null,h=u!=null||c!=null;!f&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:y}=Ae({isDisabled:n}),{pressProps:$,isPressed:C}=Ae({isDisabled:n||o,onPress(){e.toggle()}}),{focusableProps:w}=Ze(t,r),K=B(m,w),k=G(t,{labelable:!0});return Jr(r,e.isSelected,e.setSelected),{labelProps:B($,{onClick:E=>E.preventDefault()}),inputProps:B(k,{"aria-invalid":p||d==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,onChange:v,disabled:n,...i==null?{}:{value:i},name:l,type:"checkbox",...K}),isSelected:e.isSelected,isPressed:y||C,isDisabled:n,isReadOnly:o,isInvalid:p||d==="invalid"}}function Cc(t,e,r){let n=on({...t,value:e.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=n.displayValidation,{labelProps:s,inputProps:u,isSelected:c,isPressed:d,isDisabled:p,isReadOnly:v}=Sc({...t,isInvalid:o},e,r);ln(t,n,r);let{isIndeterminate:f,isRequired:h,validationBehavior:m="aria"}=t;a.useEffect(()=>{r.current&&(r.current.indeterminate=!!f)});let{pressProps:y}=Ae({isDisabled:p||v,onPress(){let{[Or]:$}=t,{commitValidation:C}=$||n;C()}});return{labelProps:B(s,y),inputProps:{...u,checked:c,"aria-required":h&&m==="aria"||void 0,required:h&&m==="native"},isSelected:c,isPressed:d,isDisabled:p,isReadOnly:v,isInvalid:o,validationErrors:i,validationDetails:l}}function an(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=t;e=Z(e);let l=Z(),s={};r?(n=n?`${l} ${n}`:l,s={id:l,htmlFor:i==="label"?e:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=Uo({id:e,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:u}}function sn(t){let{description:e,errorMessage:r,isInvalid:n,validationState:o}=t,{labelProps:i,fieldProps:l}=an(t),s=ut([!!e,!!r,n,o]),u=ut([!!e,!!r,n,o]);return l=B(l,{"aria-describedby":[s,u,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:u}}}function xi(t={}){let{isReadOnly:e}=t,[r,n]=Ee(t.isSelected,t.defaultSelected||!1,t.onChange);function o(l){e||n(l)}function i(){e||n(!r)}return{isSelected:r,setSelected:o,toggle:i}}function wc(t){let{selectionMode:e="single",disallowEmptySelection:r,isDisabled:n=!1}=t,[o,i]=Ee(a.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),a.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:n,selectedKeys:o,setSelectedKeys:i,toggleKey(l){let s;e==="multiple"?(s=new Set(o),s.has(l)&&(!r||s.size>1)?s.delete(l):s.add(l)):s=new Set(o.has(l)&&!r?[]:[l]),i(s)},setSelected(l,s){s!==o.has(l)&&this.toggleKey(l)}}}const io={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Pi(t={}){let{style:e,isFocusable:r}=t,[n,o]=a.useState(!1),{focusWithinProps:i}=Gt({isDisabled:!r,onFocusWithinChange:s=>o(s)}),l=a.useMemo(()=>n?e:e?{...io,...e}:io,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Si(t){let{children:e,elementType:r="div",isFocusable:n,style:o,...i}=t,{visuallyHiddenProps:l}=Pi(t);return a.createElement(r,B(i,l),e)}function Ec(t,e){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=t,[u,c]=Ee(t.value,t.defaultValue||"",t.onChange),{focusableProps:d}=Ze(t,e),p=on({...t,value:u}),{isInvalid:v,validationErrors:f,validationDetails:h}=p.displayValidation,{labelProps:m,fieldProps:y,descriptionProps:$,errorMessageProps:C}=sn({...t,isInvalid:v,errorMessage:t.errorMessage||f}),w=G(t,{labelable:!0});const K={type:l,pattern:t.pattern};return Jr(e,u,c),ln(t,p,e),a.useEffect(()=>{if(e.current instanceof le(e.current).HTMLTextAreaElement){let k=e.current;Object.defineProperty(k,"defaultValue",{get:()=>k.value,set:()=>{},configurable:!0})}},[e]),{labelProps:m,inputProps:B(w,r==="input"?K:void 0,{disabled:n,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":v||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:u,onChange:k=>c(k.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...d,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:v,validationErrors:f,validationDetails:h}}const ce={top:"top",bottom:"top",left:"left",right:"left"},zt={top:"bottom",bottom:"top",left:"right",right:"left"},Tc={top:"left",left:"top"},Hr={top:"height",left:"width"},Ci={width:"totalWidth",height:"totalHeight"},kt={};let q=typeof document<"u"?window.visualViewport:null;function lo(t){let e=0,r=0,n=0,o=0,i=0,l=0,s={};var u;let c=((u=q==null?void 0:q.scale)!==null&&u!==void 0?u:1)>1;if(t.tagName==="BODY"){let h=document.documentElement;n=h.clientWidth,o=h.clientHeight;var d;e=(d=q==null?void 0:q.width)!==null&&d!==void 0?d:n;var p;r=(p=q==null?void 0:q.height)!==null&&p!==void 0?p:o,s.top=h.scrollTop||t.scrollTop,s.left=h.scrollLeft||t.scrollLeft,q&&(i=q.offsetTop,l=q.offsetLeft)}else({width:e,height:r,top:i,left:l}=Ye(t)),s.top=t.scrollTop,s.left=t.scrollLeft,n=e,o=r;if(Yr()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){s.top=0,s.left=0;var v;i=(v=q==null?void 0:q.pageTop)!==null&&v!==void 0?v:0;var f;l=(f=q==null?void 0:q.pageLeft)!==null&&f!==void 0?f:0}return{width:e,height:r,totalWidth:n,totalHeight:o,scroll:s,top:i,left:l}}function Dc(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function ao(t,e,r,n,o,i,l){var s;let u=(s=o.scroll[t])!==null&&s!==void 0?s:0,c=n[Hr[t]],d=n.scroll[ce[t]]+i,p=c+n.scroll[ce[t]]-i,v=e-u+l[t]-n[ce[t]],f=e-u+r+l[t]-n[ce[t]];return v<d?d-v:f>p?Math.max(p-f,d-v):0}function kc(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function so(t){if(kt[t])return kt[t];let[e,r]=t.split(" "),n=ce[e]||"right",o=Tc[n];ce[r]||(r="center");let i=Hr[n],l=Hr[o];return kt[t]={placement:e,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:l},kt[t]}function br(t,e,r,n,o,i,l,s,u,c){let{placement:d,crossPlacement:p,axis:v,crossAxis:f,size:h,crossSize:m}=n,y={};var $;y[f]=($=t[f])!==null&&$!==void 0?$:0;var C,w,K,k;p==="center"?y[f]+=(((C=t[m])!==null&&C!==void 0?C:0)-((w=r[m])!==null&&w!==void 0?w:0))/2:p!==f&&(y[f]+=((K=t[m])!==null&&K!==void 0?K:0)-((k=r[m])!==null&&k!==void 0?k:0)),y[f]+=i;const E=t[f]-r[m]+u+c,A=t[f]+t[m]-u-c;if(y[f]=At(y[f],E,A),d===v){const b=s?l[h]:e[Ci[h]];y[zt[v]]=Math.floor(b-t[v]+o)}else y[v]=Math.floor(t[v]+t[h]+o);return y}function Rc(t,e,r,n,o,i,l,s){const u=n?r.height:e[Ci.height];var c;let d=t.top!=null?r.top+t.top:r.top+(u-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var p,v,f,h,m,y;let $=s!=="top"?Math.max(0,e.height+e.top+((p=e.scroll.top)!==null&&p!==void 0?p:0)-d-(((v=o.top)!==null&&v!==void 0?v:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+i)):Math.max(0,d+l-(e.top+((h=e.scroll.top)!==null&&h!==void 0?h:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((y=o.bottom)!==null&&y!==void 0?y:0)+i));return Math.min(e.height-i*2,$)}function uo(t,e,r,n,o,i){let{placement:l,axis:s,size:u}=i;var c,d;if(l===s)return Math.max(0,r[s]-t[s]-((c=t.scroll[s])!==null&&c!==void 0?c:0)+e[s]-((d=n[s])!==null&&d!==void 0?d:0)-n[zt[s]]-o);var p;return Math.max(0,t[u]+t[s]+t.scroll[s]-e[s]-r[s]-r[u]-((p=n[s])!==null&&p!==void 0?p:0)-n[zt[s]]-o)}function Kc(t,e,r,n,o,i,l,s,u,c,d,p,v,f,h,m){let y=so(t),{size:$,crossAxis:C,crossSize:w,placement:K,crossPlacement:k}=y,E=br(e,s,r,y,d,p,c,v,h,m),A=d,b=uo(s,c,e,o,i+d,y);if(l&&n[$]>b){let De=so(`${zt[K]} ${k}`),et=br(e,s,r,De,d,p,c,v,h,m);uo(s,c,e,o,i+d,De)>b&&(y=De,E=et,A=d)}let R="bottom";y.axis==="top"?y.placement==="top"?R="top":y.placement==="bottom"&&(R="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?R="bottom":y.crossPlacement==="bottom"&&(R="top"));let L=ao(C,E[C],r[w],s,u,i,c);E[C]+=L;let T=Rc(E,s,c,v,o,i,r.height,R);f&&f<T&&(T=f),r.height=Math.min(r.height,T),E=br(e,s,r,y,A,p,c,v,h,m),L=ao(C,E[C],r[w],s,u,i,c),E[C]+=L;let F={},g=e[C]+.5*e[w]-E[C]-o[ce[C]];const x=h/2+m;var M,N,O,D;const H=ce[C]==="left"?((M=o.left)!==null&&M!==void 0?M:0)+((N=o.right)!==null&&N!==void 0?N:0):((O=o.top)!==null&&O!==void 0?O:0)+((D=o.bottom)!==null&&D!==void 0?D:0),Q=r[w]-H-h/2-m,Xe=e[C]+h/2-(E[C]+o[ce[C]]),Je=e[C]+e[w]-h/2-(E[C]+o[ce[C]]),Qe=At(g,Xe,Je);return F[C]=At(Qe,x,Q),{position:E,maxHeight:T,arrowOffsetLeft:F.left,arrowOffsetTop:F.top,placement:y.placement}}function Lc(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:s,offset:u,crossOffset:c,maxHeight:d,arrowSize:p=0,arrowBoundaryOffset:v=0}=t,f=n instanceof HTMLElement?Mc(n):document.documentElement,h=f===document.documentElement;const m=window.getComputedStyle(f).position;let y=!!m&&m!=="static",$=h?Ye(r):co(r,f);if(!h){let{marginTop:F,marginLeft:g}=window.getComputedStyle(r);$.top+=parseInt(F,10)||0,$.left+=parseInt(g,10)||0}let C=Ye(n),w=kc(n);var K,k;C.width+=((K=w.left)!==null&&K!==void 0?K:0)+((k=w.right)!==null&&k!==void 0?k:0);var E,A;C.height+=((E=w.top)!==null&&E!==void 0?E:0)+((A=w.bottom)!==null&&A!==void 0?A:0);let b=Dc(o),R=lo(s),L=lo(f),T=s.tagName==="BODY"?Ye(f):co(f,s);return f.tagName==="HTML"&&s.tagName==="BODY"&&(L.scroll.top=0,L.scroll.left=0),Kc(e,$,C,b,w,i,l,R,L,T,u,c,y,d,p,v)}function Ye(t){let{top:e,left:r,width:n,height:o}=t.getBoundingClientRect(),{scrollTop:i,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:e+i-s,left:r+l-u,width:n,height:o}}function co(t,e){let r=window.getComputedStyle(t),n;if(r.position==="fixed"){let{top:o,left:i,width:l,height:s}=t.getBoundingClientRect();n={top:o,left:i,width:l,height:s}}else{n=Ye(t);let o=Ye(e),i=window.getComputedStyle(e);o.top+=(parseInt(i.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Mc(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!fo(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!fo(e);)e=e.parentElement;return e||document.documentElement}function fo(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const wi=new WeakMap;function Fc(t){let{triggerRef:e,isOpen:r,onClose:n}=t;a.useEffect(()=>{if(!r||n===null)return;let o=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=n||wi.get(e.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,e])}let _=typeof document<"u"?window.visualViewport:null;function Ei(t){let{direction:e}=He(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:v=!0,isOpen:f=!0,onClose:h,maxHeight:m,arrowBoundaryOffset:y=0}=t,[$,C]=a.useState(null),w=[v,l,o.current,n.current,i.current,s,u,c,d,p,f,e,m,y,r],K=a.useRef(_==null?void 0:_.scale);a.useEffect(()=>{f&&(K.current=_==null?void 0:_.scale)},[f]);let k=a.useCallback(()=>{if(v===!1||!f||!o.current||!n.current||!c||(_==null?void 0:_.scale)!==K.current)return;let L=null;if(i.current&&i.current.contains(document.activeElement)){var T;let D=(T=document.activeElement)===null||T===void 0?void 0:T.getBoundingClientRect(),H=i.current.getBoundingClientRect();var F;if(L={type:"top",offset:((F=D==null?void 0:D.top)!==null&&F!==void 0?F:0)-H.top},L.offset>H.height/2){L.type="bottom";var g;L.offset=((g=D==null?void 0:D.bottom)!==null&&g!==void 0?g:0)-H.bottom}}let x=o.current;if(!m&&o.current){var M;x.style.top="0px",x.style.bottom="";var N;x.style.maxHeight=((N=(M=window.visualViewport)===null||M===void 0?void 0:M.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let O=Lc({placement:Ic(l,e),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:m,arrowSize:r,arrowBoundaryOffset:y});if(O.position){if(x.style.top="",x.style.bottom="",x.style.left="",x.style.right="",Object.keys(O.position).forEach(D=>x.style[D]=O.position[D]+"px"),x.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":"",L&&document.activeElement&&i.current){let D=document.activeElement.getBoundingClientRect(),H=i.current.getBoundingClientRect(),Q=D[L.type]-H[L.type];i.current.scrollTop+=Q-L.offset}C(O)}},w);z(k,w),Ac(k),Tr({ref:o,onResize:k}),Tr({ref:n,onResize:k});let E=a.useRef(!1);z(()=>{let L,T=()=>{E.current=!0,clearTimeout(L),L=setTimeout(()=>{E.current=!1},500),k()},F=()=>{E.current&&T()};return _==null||_.addEventListener("resize",T),_==null||_.addEventListener("scroll",F),()=>{_==null||_.removeEventListener("resize",T),_==null||_.removeEventListener("scroll",F)}},[k]);let A=a.useCallback(()=>{E.current||h==null||h()},[h,E]);Fc({triggerRef:n,isOpen:f,onClose:h&&A});var b,R;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(b=$==null?void 0:$.maxHeight)!==null&&b!==void 0?b:"100vh"}},placement:(R=$==null?void 0:$.placement)!==null&&R!==void 0?R:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:k}}function Ac(t){z(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Ic(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const fe=[];function Bc(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t;a.useEffect(()=>(o&&fe.push(e),()=>{let h=fe.indexOf(e);h>=0&&fe.splice(h,1)}),[o,e]);let u=()=>{fe[fe.length-1]===e&&r&&r()},c=h=>{(!s||s(h.target))&&fe[fe.length-1]===e&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!s||s(h.target))&&(fe[fe.length-1]===e&&(h.stopPropagation(),h.preventDefault()),u())},p=h=>{h.key==="Escape"&&!l&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),u())};Mu({ref:e,onInteractOutside:i&&o?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:v}=Gt({isDisabled:!n,onBlurWithin:h=>{!h.relatedTarget||Vu(h.relatedTarget)||(!s||s(h.relatedTarget))&&(r==null||r())}}),f=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:p,...v},underlayProps:{onPointerDown:f}}}function Ti(t,e,r){let{type:n}=t,{isOpen:o}=e;a.useEffect(()=>{r&&r.current&&wi.set(r.current,e.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let l=Z();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const hr=typeof document<"u"&&window.visualViewport,Nc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Rt=0,gr;function Oc(t={}){let{isDisabled:e}=t;z(()=>{if(!e)return Rt++,Rt===1&&(Wt()?gr=Hc():gr=zc()),()=>{Rt--,Rt===0&&gr()}},[e])}function zc(){return Se(qe(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),qe(document.documentElement,"overflow","hidden"))}function Hc(){let t,e,r=c=>{t=Go(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=qe(t,"overscrollBehavior","contain"))},n=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},o=()=>{e&&e()},i=c=>{let d=c.target;Vc(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",hr&&(hr.height<window.innerHeight?requestAnimationFrame(()=>{po(d)}):hr.addEventListener("resize",()=>po(d),{once:!0}))}))},l=null,s=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,p=window.pageYOffset;l=Se(rt(window,"scroll",c),qe(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),qe(document.documentElement,"overflow","hidden"),qe(document.body,"marginTop",`-${p}px`),()=>{window.scrollTo(d,p)}),window.scrollTo(0,0)},u=Se(rt(document,"touchstart",r,{passive:!1,capture:!0}),rt(document,"touchmove",n,{passive:!1,capture:!0}),rt(document,"touchend",o,{passive:!1,capture:!0}),rt(document,"focus",i,!0));return()=>{e==null||e(),l==null||l(),u()}}function qe(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function rt(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function po(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=Go(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect().top,i=r.getBoundingClientRect().top;i>o+r.clientHeight&&(n.scrollTop+=i-o)}r=n.parentElement}}function Vc(t){return t instanceof HTMLInputElement&&!Nc.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const Vr=a.createContext(null);function jc(t){let{children:e}=t,r=a.useContext(Vr),[n,o]=a.useState(0),i=a.useMemo(()=>({parent:r,modalCount:n,addModal(){o(l=>l+1),r&&r.addModal()},removeModal(){o(l=>l-1),r&&r.removeModal()}}),[r,n]);return a.createElement(Vr.Provider,{value:i},e)}function Wc(){let t=a.useContext(Vr);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function _c(t){let{modalProviderProps:e}=Wc();return a.createElement("div",{"data-overlay-container":!0,...t,...e})}function Uc(t){return a.createElement(jc,null,a.createElement(_c,t))}function Gc(t){let e=we(),{portalContainer:r=e?null:document.body,...n}=t;if(a.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let o=a.createElement(Uc,n);return Ne.createPortal(o,r)}var Di={};Di={dismiss:"تجاهل"};var ki={};ki={dismiss:"Отхвърляне"};var Ri={};Ri={dismiss:"Odstranit"};var Ki={};Ki={dismiss:"Luk"};var Li={};Li={dismiss:"Schließen"};var Mi={};Mi={dismiss:"Απόρριψη"};var Fi={};Fi={dismiss:"Dismiss"};var Ai={};Ai={dismiss:"Descartar"};var Ii={};Ii={dismiss:"Lõpeta"};var Bi={};Bi={dismiss:"Hylkää"};var Ni={};Ni={dismiss:"Rejeter"};var Oi={};Oi={dismiss:"התעלם"};var zi={};zi={dismiss:"Odbaci"};var Hi={};Hi={dismiss:"Elutasítás"};var Vi={};Vi={dismiss:"Ignora"};var ji={};ji={dismiss:"閉じる"};var Wi={};Wi={dismiss:"무시"};var _i={};_i={dismiss:"Atmesti"};var Ui={};Ui={dismiss:"Nerādīt"};var Gi={};Gi={dismiss:"Lukk"};var qi={};qi={dismiss:"Negeren"};var Yi={};Yi={dismiss:"Zignoruj"};var Zi={};Zi={dismiss:"Descartar"};var Xi={};Xi={dismiss:"Dispensar"};var Ji={};Ji={dismiss:"Revocare"};var Qi={};Qi={dismiss:"Пропустить"};var el={};el={dismiss:"Zrušiť"};var tl={};tl={dismiss:"Opusti"};var rl={};rl={dismiss:"Odbaci"};var nl={};nl={dismiss:"Avvisa"};var ol={};ol={dismiss:"Kapat"};var il={};il={dismiss:"Скасувати"};var ll={};ll={dismiss:"取消"};var al={};al={dismiss:"關閉"};var sl={};sl={"ar-AE":Di,"bg-BG":ki,"cs-CZ":Ri,"da-DK":Ki,"de-DE":Li,"el-GR":Mi,"en-US":Fi,"es-ES":Ai,"et-EE":Ii,"fi-FI":Bi,"fr-FR":Ni,"he-IL":Oi,"hr-HR":zi,"hu-HU":Hi,"it-IT":Vi,"ja-JP":ji,"ko-KR":Wi,"lt-LT":_i,"lv-LV":Ui,"nb-NO":Gi,"nl-NL":qi,"pl-PL":Yi,"pt-BR":Zi,"pt-PT":Xi,"ro-RO":Ji,"ru-RU":Qi,"sk-SK":el,"sl-SI":tl,"sr-SP":rl,"sv-SE":nl,"tr-TR":ol,"uk-UA":il,"zh-CN":ll,"zh-TW":al};function qc(t){return t&&t.__esModule?t.default:t}function vo(t){let{onDismiss:e,...r}=t,n=rn(qc(sl),"@react-aria/overlays"),o=Uo(r,n.format("dismiss")),i=()=>{e&&e()};return a.createElement(Si,null,a.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let nt=new WeakMap,oe=[];function Yc(t,e=document.body){let r=new Set(t),n=new Set,o=u=>{for(let v of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(v);let c=v=>{if(r.has(v)||v.parentElement&&n.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let f of r)if(v.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),p=c(u);if(p===NodeFilter.FILTER_ACCEPT&&i(u),p!==NodeFilter.FILTER_REJECT){let v=d.nextNode();for(;v!=null;)i(v),v=d.nextNode()}},i=u=>{var c;let d=(c=nt.get(u))!==null&&c!==void 0?c:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),n.add(u),nt.set(u,d+1))};oe.length&&oe[oe.length-1].disconnect(),o(e);let l=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(r.delete(d),n.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?r.add(d):d instanceof Element&&o(d)}});l.observe(e,{childList:!0,subtree:!0});let s={observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return oe.push(s),()=>{l.disconnect();for(let u of n){let c=nt.get(u);c!=null&&(c===1?(u.removeAttribute("aria-hidden"),nt.delete(u)):nt.set(u,c-1))}s===oe[oe.length-1]?(oe.pop(),oe.length&&oe[oe.length-1].observe()):oe.splice(oe.indexOf(s),1)}}function Zc(t,e){let{triggerRef:r,popoverRef:n,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=t,{overlayProps:u,underlayProps:c}=Bc({isOpen:e.isOpen&&!s["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},n),{overlayProps:d,arrowProps:p,placement:v}=Ei({...s,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:o?e.close:null});return Oc({isDisabled:o||!e.isOpen}),z(()=>{if(e.isOpen&&!o&&n.current)return Yc([n.current])},[o,e.isOpen,n]),{popoverProps:B(u,d),arrowProps:p,underlayProps:c,placement:v}}const Xc=a.createContext({});function Jc(){var t;return(t=a.useContext(Xc))!==null&&t!==void 0?t:{}}const ul=a.createContext(null);function Qc(t){let e=we(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[o,i]=a.useState(!1),l=a.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=Jc();if(!t.portalContainer&&s&&(r=s()),!r)return null;let u=t.children;return t.disableFocusManagement||(u=a.createElement(di,{restoreFocus:!0,contain:o&&!n},u)),u=a.createElement(ul.Provider,{value:l},a.createElement(Cu,null,u)),Ne.createPortal(u,r)}function ed(){let t=a.useContext(ul),e=t==null?void 0:t.setContain;z(()=>{e==null||e(!0)},[e])}const un=new WeakMap;function td(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function rd(t,e){let r=un.get(t);if(!r)throw new Error("Unknown list");return`${r.id}-option-${td(e)}`}function jr(t){return eu()?t.altKey:t.ctrlKey}const nd=1e3;function cl(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=a.useRef({search:"",timeout:void 0}).current,i=l=>{let s=od(l.key);if(!(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s,e.getKeyForSearch!=null){let u=e.getKeyForSearch(o.search,r.focusedKey);u==null&&(u=e.getKeyForSearch(o.search)),u!=null&&(r.setFocusedKey(u),n&&n(u))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},nd)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function od(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function id(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:v,scrollRef:f=n,linkBehavior:h="action"}=t,{direction:m}=He(),y=_t(),$=g=>{var x;if(g.altKey&&g.key==="Tab"&&g.preventDefault(),!(!((x=n.current)===null||x===void 0)&&x.contains(g.target)))return;const M=(I,ke)=>{if(I!=null){if(e.isLink(I)&&h==="selection"&&u&&!jr(g)){var ge;Ne.flushSync(()=>{e.setFocusedKey(I,ke)});let Bn=(ge=f.current)===null||ge===void 0?void 0:ge.querySelector(`[data-key="${CSS.escape(I.toString())}"]`),Nn=e.getItemProps(I);Bn&&y.open(Bn,g,Nn.href,Nn.routerOptions);return}if(e.setFocusedKey(I,ke),e.isLink(I)&&h==="override")return;g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(I):u&&!jr(g)&&e.replaceSelection(I)}};switch(g.key){case"ArrowDown":if(r.getKeyBelow){var N,O,D;let I=e.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,e.focusedKey):(O=r.getFirstKey)===null||O===void 0?void 0:O.call(r);I==null&&i&&(I=(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),M(I))}break;case"ArrowUp":if(r.getKeyAbove){var H,Q,Xe;let I=e.focusedKey!=null?(H=r.getKeyAbove)===null||H===void 0?void 0:H.call(r,e.focusedKey):(Q=r.getLastKey)===null||Q===void 0?void 0:Q.call(r);I==null&&i&&(I=(Xe=r.getLastKey)===null||Xe===void 0?void 0:Xe.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),M(I))}break;case"ArrowLeft":if(r.getKeyLeftOf){var Je,Qe,De;let I=e.focusedKey!=null?(Je=r.getKeyLeftOf)===null||Je===void 0?void 0:Je.call(r,e.focusedKey):null;I==null&&i&&(I=m==="rtl"?(Qe=r.getFirstKey)===null||Qe===void 0?void 0:Qe.call(r,e.focusedKey):(De=r.getLastKey)===null||De===void 0?void 0:De.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),M(I,m==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var et,St,or;let I=e.focusedKey!=null?(et=r.getKeyRightOf)===null||et===void 0?void 0:et.call(r,e.focusedKey):null;I==null&&i&&(I=m==="rtl"?(St=r.getLastKey)===null||St===void 0?void 0:St.call(r,e.focusedKey):(or=r.getFirstKey)===null||or===void 0?void 0:or.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),M(I,m==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let I=r.getFirstKey(e.focusedKey,Ue(g));e.setFocusedKey(I),I!=null&&(Ue(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(I):u&&e.replaceSelection(I))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let I=r.getLastKey(e.focusedKey,Ue(g));e.setFocusedKey(I),I!=null&&(Ue(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(I):u&&e.replaceSelection(I))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let I=r.getKeyPageBelow(e.focusedKey);I!=null&&(g.preventDefault(),M(I))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let I=r.getKeyPageAbove(e.focusedKey);I!=null&&(g.preventDefault(),M(I))}break;case"a":Ue(g)&&e.selectionMode==="multiple"&&s!==!0&&(g.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(g.stopPropagation(),g.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(g.shiftKey)n.current.focus();else{let I=te(n.current,{tabbable:!0}),ke,ge;do ge=I.lastChild(),ge&&(ke=ge);while(ge);ke&&!ke.contains(document.activeElement)&&be(ke)}break}}},C=a.useRef({top:0,left:0});it(f,"scroll",v?void 0:()=>{var g,x,M,N;C.current={top:(M=(g=f.current)===null||g===void 0?void 0:g.scrollTop)!==null&&M!==void 0?M:0,left:(N=(x=f.current)===null||x===void 0?void 0:x.scrollLeft)!==null&&N!==void 0?N:0}});let w=g=>{if(e.isFocused){g.currentTarget.contains(g.target)||e.setFocused(!1);return}if(g.currentTarget.contains(g.target)){if(e.setFocused(!0),e.focusedKey==null){var x,M;let D=Q=>{Q!=null&&(e.setFocusedKey(Q),u&&e.replaceSelection(Q))},H=g.relatedTarget;var N,O;H&&g.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?D((N=e.lastSelectedKey)!==null&&N!==void 0?N:(x=r.getLastKey)===null||x===void 0?void 0:x.call(r)):D((O=e.firstSelectedKey)!==null&&O!==void 0?O:(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))}else!v&&f.current&&(f.current.scrollTop=C.current.top,f.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&f.current){let D=f.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);D&&(D.contains(document.activeElement)||be(D),pt()==="keyboard"&&Vn(D,{containingElement:n.current}))}}},K=g=>{g.currentTarget.contains(g.relatedTarget)||e.setFocused(!1)},k=a.useRef(!1);it(n,fu,d?g=>{let{detail:x}=g;g.stopPropagation(),e.setFocused(!0),(x==null?void 0:x.focusStrategy)==="first"&&(k.current=!0)}:void 0);let E=Y(()=>{var g,x;let M=(x=(g=r.getFirstKey)===null||g===void 0?void 0:g.call(r))!==null&&x!==void 0?x:null;if(M==null){var N;(N=n.current)===null||N===void 0||N.dispatchEvent(new CustomEvent(Yo,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(k.current=!1)}else e.setFocusedKey(M),k.current=!1});zn(()=>{k.current&&E()},[e.collection,E]);let A=Y(()=>{e.collection.size>0&&(k.current=!1)});zn(()=>{A()},[e.focusedKey,A]),it(n,du,d?g=>{g.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const b=a.useRef(o);a.useEffect(()=>{if(b.current){var g,x;let O=null;var M;o==="first"&&(O=(M=(g=r.getFirstKey)===null||g===void 0?void 0:g.call(r))!==null&&M!==void 0?M:null);var N;o==="last"&&(O=(N=(x=r.getLastKey)===null||x===void 0?void 0:x.call(r))!==null&&N!==void 0?N:null);let D=e.selectedKeys;if(D.size){for(let H of D)if(e.canSelectItem(H)){O=H;break}}e.setFocused(!0),e.setFocusedKey(O),O==null&&!d&&n.current&&Be(n.current)}},[]);let R=a.useRef(e.focusedKey);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||b.current)&&f.current&&n.current){let g=pt(),x=n.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!x)return;(g==="keyboard"||b.current)&&(qo(f.current,x),g!=="virtual"&&Vn(x,{containingElement:n.current}))}!d&&e.isFocused&&e.focusedKey==null&&R.current!=null&&n.current&&Be(n.current),R.current=e.focusedKey,b.current=!1}),it(n,"react-aria-focus-scope-restore",g=>{g.preventDefault(),e.setFocused(!0)});let L={onKeyDown:$,onFocus:w,onBlur:K,onMouseDown(g){f.current===g.target&&g.preventDefault()}},{typeSelectProps:T}=cl({keyboardDelegate:r,selectionManager:e});c||(L=B(T,L));let F;return d?F=-1:F=e.focusedKey==null?0:-1,{collectionProps:{...L,tabIndex:F}}}function ld(t){let{id:e,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:s,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:p="action"}=t,v=_t();e=Z(e);let f=D=>{if(D.pointerType==="keyboard"&&jr(D))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(p==="selection"&&o.current){let H=r.getItemProps(n);v.open(o.current,D,H.href,H.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(p==="override"||p==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):D&&D.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||D&&(Ue(D)||D.pointerType==="touch"||D.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};a.useEffect(()=>{if(n===r.focusedKey&&r.isFocused)if(!l)s?s():document.activeElement!==o.current&&o.current&&Be(o.current);else{var H;let Q=new CustomEvent(Yo,{cancelable:!0,bubbles:!0});(H=o.current)===null||H===void 0||H.dispatchEvent(Q)}},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),u=u||r.isDisabled(n);let h={};!l&&!u?h={tabIndex:n===r.focusedKey?0:-1,onFocus(D){D.target===o.current&&r.setFocusedKey(n)}}:u&&(h.onMouseDown=D=>{D.preventDefault()});let m=r.isLink(n)&&p==="override",y=r.isLink(n)&&p!=="selection"&&p!=="none",$=!u&&r.canSelectItem(n)&&!m,C=(c||y)&&!u,w=C&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),K=C&&$&&r.selectionBehavior==="replace",k=w||K,E=a.useRef(null),A=k&&$,b=a.useRef(!1),R=a.useRef(!1),L=D=>{if(c&&c(),y&&o.current){let H=r.getItemProps(n);v.open(o.current,D,H.href,H.routerOptions)}},T={};i?(T.onPressStart=D=>{E.current=D.pointerType,b.current=A,D.pointerType==="keyboard"&&(!k||ho())&&f(D)},d?(T.onPressUp=w?void 0:D=>{D.pointerType==="mouse"&&$&&f(D)},T.onPress=w?L:D=>{D.pointerType!=="keyboard"&&D.pointerType!=="mouse"&&$&&f(D)}):T.onPress=D=>{if(w||K&&D.pointerType!=="mouse"){if(D.pointerType==="keyboard"&&!bo())return;L(D)}else D.pointerType!=="keyboard"&&$&&f(D)}):(T.onPressStart=D=>{E.current=D.pointerType,b.current=A,R.current=w,$&&(D.pointerType==="mouse"&&!w||D.pointerType==="keyboard"&&(!C||ho()))&&f(D)},T.onPress=D=>{(D.pointerType==="touch"||D.pointerType==="pen"||D.pointerType==="virtual"||D.pointerType==="keyboard"&&k&&bo()||D.pointerType==="mouse"&&R.current)&&(k?L(D):$&&f(D))}),h["data-key"]=n,T.preventFocusOnPress=l;let{pressProps:F,isPressed:g}=Ae(T),x=K?D=>{E.current==="mouse"&&(D.stopPropagation(),D.preventDefault(),L(D))}:void 0,{longPressProps:M}=ui({isDisabled:!A,onLongPress(D){D.pointerType==="touch"&&(f(D),r.setSelectionBehavior("toggle"))}}),N=D=>{E.current==="touch"&&b.current&&D.preventDefault()},O=r.isLink(n)?D=>{Fe.isOpening||D.preventDefault()}:void 0;return{itemProps:B(h,$||w?F:{},A?M:{},{onDoubleClick:x,onDragStartCapture:N,onClick:O,id:e}),isPressed:g,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:u,allowsSelection:$,hasAction:k}}function bo(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function ho(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class go{getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?r.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left+r.scrollLeft,y:i.top-o.top+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;var r,n;return{width:(r=e==null?void 0:e.scrollWidth)!==null&&r!==void 0?r:0,height:(n=e==null?void 0:e.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var r,n,o,i;return{x:(r=e==null?void 0:e.scrollLeft)!==null&&r!==void 0?r:0,y:(n=e==null?void 0:e.scrollTop)!==null&&n!==void 0?n:0,width:(o=e==null?void 0:e.offsetWidth)!==null&&o!==void 0?o:0,height:(i=e==null?void 0:e.offsetHeight)!==null&&i!==void 0?i:0}}constructor(e){this.ref=e}}class cn{isDisabled(e){var r;return this.disabledBehavior==="all"&&(((r=e.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,r){let n=e;for(;n!=null;){let o=this.collection.getItem(n);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(e){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(e,r,n){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(l,i)&&o!=null);return o}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!ct(r))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!ct(r))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let l=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(l,e)===0)return o;o=this.getNextKey(o)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new go(r.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new go(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function ad(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:l}=t,s=nn({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,c=a.useMemo(()=>i||new cn({collection:r,disabledKeys:n,disabledBehavior:u,ref:o,collator:s,layoutDelegate:l}),[i,l,r,n,o,s,u]),{collectionProps:d}=id({...t,ref:o,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function sd(t,e,r){let n=G(t,{labelable:!0}),o=t.selectionBehavior||"toggle",i=t.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=ad({...t,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Gt({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),u=Z(t.id);un.set(e,{id:u,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=an({...t,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:B(n,s,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...B(d,l)})}}class ud{build(e,r){return this.context=r,mo(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(a.isValidElement(r)&&r.type===a.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];a.Children.forEach(r,l=>{l&&o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let u of s)i++,yield u}}}getKey(e,r,n,o){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,o){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,C=>{y.push(C)});var i;let $=(i=e.index)!==null&&i!==void 0?i:0;for(const C of y)yield*this.getFullNode({element:C,index:$++},r,n,o);return}let l=e.element;if(!l&&e.value&&r&&r.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=o?o.key:null,yield y;return}l=r.renderer(e.value)}if(a.isValidElement(l)){let y=l.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let K=l.type;throw new Error(`Unknown element <${K}> in collection.`)}let $=y.getCollectionNode(l.props,this.context);var s;let C=(s=e.index)!==null&&s!==void 0?s:0,w=$.next();for(;!w.done&&w.value;){let K=w.value;e.index=C;var u;let k=(u=K.key)!==null&&u!==void 0?u:null;k==null&&(k=K.element?null:this.getKey(l,e,r,n));let A=[...this.getFullNode({...K,key:k,index:C,wrapper:cd(e.wrapper,K.wrapper)},this.getChildState(r,K),n?`${n}${l.key}`:l.key,o)];for(let b of A){var c,d;b.value=(d=(c=K.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,b.value&&this.cache.set(b.value,b);var p;if(e.type&&b.type!==e.type)throw new Error(`Unsupported type <${mr(b.type)}> in <${mr((p=o==null?void 0:o.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${mr(e.type)}> is supported.`);C++,yield b}w=$.next(A)}return}if(e.key==null||e.type==null)return;let v=this;var f,h;let m={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:(h=e.textValue)!==null&&h!==void 0?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:mo(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let $ of e.childNodes()){$.key!=null&&($.key=`${m.key}${$.key}`);let C=v.getFullNode({...$,index:y},v.getChildState(r,$),m.key,m);for(let w of C)y++,yield w}})};yield m}constructor(){this.cache=new WeakMap}}function mo(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function cd(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function mr(t){return t[0].toUpperCase()+t.slice(1)}function dd(t,e,r){let n=a.useMemo(()=>new ud,[]),{children:o,items:i,collection:l}=t;return a.useMemo(()=>{if(l)return l;let u=n.build({children:o,items:i},r);return e(u)},[n,o,i,l,r,e])}function dl(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function fd(t){return pd(t)}function pd(t,e){for(let r of t)return r}function yr(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[...yo(t,e),e],o=[...yo(t,r),r],i=n.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(e=n[i],r=o[i],e.index-r.index):n.findIndex(l=>l===r)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function yo(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}const $o=new WeakMap;function vd(t){let e=$o.get(t);if(e!=null)return e;let r=0,n=o=>{for(let i of o)i.type==="section"?n(dl(i,t)):r++};return n(t),$o.set(t,r),r}function bd(t,e,r){var n,o;let{key:i}=t,l=un.get(e);var s;let u=(s=t.isDisabled)!==null&&s!==void 0?s:e.selectionManager.isDisabled(i);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(i);var p;let v=(p=t.shouldSelectOnPressUp)!==null&&p!==void 0?p:l==null?void 0:l.shouldSelectOnPressUp;var f;let h=(f=t.shouldFocusOnHover)!==null&&f!==void 0?f:l==null?void 0:l.shouldFocusOnHover;var m;let y=(m=t.shouldUseVirtualFocus)!==null&&m!==void 0?m:l==null?void 0:l.shouldUseVirtualFocus;var $;let C=($=t.isVirtualized)!==null&&$!==void 0?$:l==null?void 0:l.isVirtualized,w=ut(),K=ut(),k={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Ce()&&Yr()||(k["aria-label"]=t["aria-label"],k["aria-labelledby"]=w,k["aria-describedby"]=K);let E=e.collection.getItem(i);if(C){let O=Number(E==null?void 0:E.index);k["aria-posinset"]=Number.isNaN(O)?void 0:O+1,k["aria-setsize"]=vd(e.collection)}let A=l!=null&&l.onAction?()=>{var O;return l==null||(O=l.onAction)===null||O===void 0?void 0:O.call(l,i)}:void 0,b=rd(e,i),{itemProps:R,isPressed:L,isFocused:T,hasAction:F,allowsSelection:g}=ld({selectionManager:e.selectionManager,key:i,ref:r,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&h,isVirtualized:C,shouldUseVirtualFocus:y,isDisabled:u,onAction:A||!(E==null||(n=E.props)===null||n===void 0)&&n.onAction?Se(E==null||(o=E.props)===null||o===void 0?void 0:o.onAction,A):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:b}),{hoverProps:x}=ze({isDisabled:u||!h,onHoverStart(){ft()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i))}}),M=G(E==null?void 0:E.props);delete M.id;let N=jo(E==null?void 0:E.props);return{optionProps:{...k,...B(M,R,x,N),id:b},labelProps:{id:w},descriptionProps:{id:K},isFocused:T,isFocusVisible:T&&ft(),isSelected:d,isDisabled:u,isPressed:L,allowsSelection:g,hasAction:F}}function hd(t){let{heading:e,"aria-label":r}=t,n=Z();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}var fl={};fl={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var pl={};pl={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var vl={};vl={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var bl={};bl={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var hl={};hl={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var gl={};gl={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ml={};ml={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var yl={};yl={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var $l={};$l={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var xl={};xl={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Pl={};Pl={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Sl={};Sl={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Cl={};Cl={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var wl={};wl={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var El={};El={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Tl={};Tl={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Dl={};Dl={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var kl={};kl={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Rl={};Rl={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Kl={};Kl={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Ll={};Ll={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ml={};Ml={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Fl={};Fl={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Al={};Al={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Il={};Il={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Bl={};Bl={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Nl={};Nl={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ol={};Ol={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var zl={};zl={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Hl={};Hl={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Vl={};Vl={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var jl={};jl={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Wl={};Wl={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var _l={};_l={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Ul={};Ul={"ar-AE":fl,"bg-BG":pl,"cs-CZ":vl,"da-DK":bl,"de-DE":hl,"el-GR":gl,"en-US":ml,"es-ES":yl,"et-EE":$l,"fi-FI":xl,"fr-FR":Pl,"he-IL":Sl,"hr-HR":Cl,"hu-HU":wl,"it-IT":El,"ja-JP":Tl,"ko-KR":Dl,"lt-LT":kl,"lv-LV":Rl,"nb-NO":Kl,"nl-NL":Ll,"pl-PL":Ml,"pt-BR":Fl,"pt-PT":Al,"ro-RO":Il,"ru-RU":Bl,"sk-SK":Nl,"sl-SI":Ol,"sr-SP":zl,"sv-SE":Hl,"tr-TR":Vl,"uk-UA":jl,"zh-CN":Wl,"zh-TW":_l};function gd(t){return t&&t.__esModule?t.default:t}function md(t,e,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=t,l=Z(),{triggerProps:s,overlayProps:u}=Ti({type:n},e,r),c=f=>{if(!o&&!(i==="longPress"&&!f.altKey)&&r&&r.current)switch(f.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),e.toggle("last");break;default:"continuePropagation"in f&&f.continuePropagation()}},d=rn(gd(Ul),"@react-aria/menu"),{longPressProps:p}=ui({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),v={onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!o&&e.open(f.pointerType==="virtual"?"first":null)},onPress(f){f.pointerType==="touch"&&!o&&e.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?v:p,id:l,onKeyDown:c},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function yd(t,e){let{role:r="dialog"}=t,n=ut();n=t["aria-label"]?void 0:n;let o=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){Be(e.current);let i=setTimeout(()=>{document.activeElement===e.current&&(o.current=!0,e.current&&(e.current.blur(),Be(e.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),ed(),{dialogProps:{...G(t,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}function $d(t,e,r){let{isDisabled:n}=t,o=Z(),i=Z(),s=!we()&&"onbeforematch"in document.body,u=a.useRef(null),c=a.useCallback(()=>{u.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found")}),Ne.flushSync(()=>{e.toggle()})},[r,e]);return it(r,"beforematch",s?c:null),z(()=>{u.current&&cancelAnimationFrame(u.current),s&&r.current&&!n&&(e.isExpanded?r.current.removeAttribute("hidden"):r.current.setAttribute("hidden","until-found"))},[n,r,e.isExpanded,s]),a.useEffect(()=>()=>{u.current&&cancelAnimationFrame(u.current)},[]),{buttonProps:{id:o,"aria-expanded":e.isExpanded,"aria-controls":i,onPress:d=>{!n&&d.pointerType!=="keyboard"&&e.toggle()},isDisabled:n,onPressStart(d){d.pointerType==="keyboard"&&!n&&e.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!e.isExpanded,hidden:s?!0:!e.isExpanded}}}function xd(t){let{value:e=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=t,s=G(t,{labelable:!0}),{labelProps:u,fieldProps:c}=an({...t,labelElementType:"span"});e=At(e,r,n);let d=(e-r)/(n-r),p=fc(l);if(!i&&!o){let v=l.style==="percent"?d:e;o=p.format(v)}return{progressBarProps:B(s,{...c,"aria-valuenow":i?void 0:e,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:u}}const Gl=new WeakMap;function Pd(t,e,r){let{keyboardDelegate:n,isDisabled:o,isRequired:i,name:l,validationBehavior:s="aria"}=t,u=nn({usage:"search",sensitivity:"base"}),c=a.useMemo(()=>n||new cn(e.collection,e.disabledKeys,r,u),[n,e.collection,e.disabledKeys,u]),{menuTriggerProps:d,menuProps:p}=md({isDisabled:o,type:"listbox"},e,r),v=b=>{switch(b.key){case"ArrowLeft":{var R,L;b.preventDefault();let g=e.selectedKey!=null?(R=c.getKeyAbove)===null||R===void 0?void 0:R.call(c,e.selectedKey):(L=c.getFirstKey)===null||L===void 0?void 0:L.call(c);g&&e.setSelectedKey(g);break}case"ArrowRight":{var T,F;b.preventDefault();let g=e.selectedKey!=null?(T=c.getKeyBelow)===null||T===void 0?void 0:T.call(c,e.selectedKey):(F=c.getFirstKey)===null||F===void 0?void 0:F.call(c);g&&e.setSelectedKey(g);break}}},{typeSelectProps:f}=cl({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(b){e.setSelectedKey(b)}}),{isInvalid:h,validationErrors:m,validationDetails:y}=e.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:w,errorMessageProps:K}=sn({...t,labelElementType:"span",isInvalid:h,errorMessage:t.errorMessage||m});f.onKeyDown=f.onKeyDownCapture,delete f.onKeyDownCapture;let k=G(t,{labelable:!0}),E=B(f,d,C),A=Z();return Gl.set(e,{isDisabled:o,isRequired:i,name:l,validationBehavior:s}),{labelProps:{...$,onClick:()=>{if(!t.isDisabled){var b;(b=r.current)===null||b===void 0||b.focus(),si("keyboard")}}},triggerProps:B(k,{...E,isDisabled:o,onKeyDown:Se(E.onKeyDown,v,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[A,E["aria-labelledby"],E["aria-label"]&&!E["aria-labelledby"]?E.id:null].filter(Boolean).join(" "),onFocus(b){e.isFocused||(t.onFocus&&t.onFocus(b),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(b){e.isOpen||(t.onBlur&&t.onBlur(b),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:A},menuProps:{...p,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:b=>{b.currentTarget.contains(b.relatedTarget)||(t.onBlur&&t.onBlur(b),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],E["aria-label"]&&!C["aria-labelledby"]?E.id:null].filter(Boolean).join(" ")},descriptionProps:w,errorMessageProps:K,isInvalid:h,validationErrors:m,validationDetails:y}}function Sd(t,e,r){let n=Gl.get(e)||{},{autoComplete:o,name:i=n.name,isDisabled:l=n.isDisabled}=t,{validationBehavior:s,isRequired:u}=n,{visuallyHiddenProps:c}=Pi();Jr(t.selectRef,e.selectedKey,e.setSelectedKey),ln({validationBehavior:s,focus:()=>{var p;return(p=r.current)===null||p===void 0?void 0:p.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:l,required:s==="native"&&u,name:i,value:(d=e.selectedKey)!==null&&d!==void 0?d:"",onChange:p=>e.setSelectedKey(p.target.value)}}}function Cd(t){let{state:e,triggerRef:r,label:n,name:o,isDisabled:i}=t,l=a.useRef(null),{containerProps:s,selectProps:u}=Sd({...t,selectRef:l},e,r);var c;return e.collection.size<=300?a.createElement("div",{...s,"data-testid":"hidden-select-container"},a.createElement("label",null,n,a.createElement("select",{...u,ref:l},a.createElement("option",null),[...e.collection.getKeys()].map(d=>{let p=e.collection.getItem(d);if(p&&p.type==="item")return a.createElement("option",{key:p.key,value:p.key},p.textValue)})))):o?a.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:o,disabled:i,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function wd(t,e){let r=G(t,{labelable:!0}),{hoverProps:n}=ze({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:B(r,n,{role:"tooltip"})}}function Ed(t,e,r){let{isDisabled:n,trigger:o}=t,i=Z(),l=a.useRef(!1),s=a.useRef(!1),u=()=>{(l.current||s.current)&&e.open(s.current)},c=$=>{!l.current&&!s.current&&e.close($)};a.useEffect(()=>{let $=C=>{r&&r.current&&C.key==="Escape"&&(C.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[r,e]);let d=()=>{o!=="focus"&&(pt()==="pointer"?l.current=!0:l.current=!1,u())},p=()=>{o!=="focus"&&(s.current=!1,l.current=!1,c())},v=()=>{s.current=!1,l.current=!1,c(!0)},f=()=>{ft()&&(s.current=!0,u())},h=()=>{s.current=!1,l.current=!1,c(!0)},{hoverProps:m}=ze({isDisabled:n,onHoverStart:d,onHoverEnd:p}),{focusableProps:y}=Ze({isDisabled:n,onFocus:f,onBlur:h},r);return{triggerProps:{"aria-describedby":e.isOpen?i:void 0,...B(y,m,{onPointerDown:v,onKeyDown:v})},tooltipProps:{id:i}}}const Le=S.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});function Td(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Dd=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kd=Td(function(t){return Dd.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});const{withContext:Rd}=S.createRecipeContext({recipe:Le}),Kd=Rd("button",{defaultProps:{type:"button"},shouldForwardProp(t,e){const r=!(e!=null&&e.includes(t))&&!S.defaultSystem.isValidProperty(t);return kd(t)&&r&&!t.includes("onPress")}}),Zt=a.forwardRef((t,e)=>{const{as:r,asChild:n,children:o,...i}=t,l=a.useRef(null),s=ne(S.mergeRefs(l,e)),u=r||(n?"a":"button")||"button",{buttonProps:c}=Yt({...i,elementType:u},s);return P.jsx(Kd,{...B(i,c,{as:r,asChild:n,ref:s}),children:o})});Zt.displayName="Button";const Ld=a.forwardRef(function(e,r){const{children:n,portalled:o=!0,portalRef:i,backdrop:l=!0,...s}=e;return P.jsxs(S.Portal,{disabled:!o,container:i,children:[l&&P.jsx(S.Dialog.Backdrop,{}),P.jsx(S.Dialog.Positioner,{children:P.jsx(S.Dialog.Content,{ref:r,...s,asChild:!1,children:n})})]})}),Md=a.forwardRef(function(e,r){return P.jsx(S.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...e,asChild:!0,children:P.jsx(Zt,{size:"xs",ref:r,children:e.children})})}),Fd=S.Dialog.Root,Ad=S.Dialog.Footer,Id=S.Dialog.Header,Bd=S.Dialog.Body,Nd=S.Dialog.Backdrop,Od=S.Dialog.Title,zd=S.Dialog.Description,Hd=S.Dialog.Trigger,Vd=S.Dialog.ActionTrigger,ht=a.forwardRef(({children:t,...e},r)=>P.jsx(Zt,{px:0,py:0,ref:r,...e,children:t}));ht.displayName="IconButton";const ql=S.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:jd}=S.createRecipeContext({recipe:ql}),Wd=jd("a"),Yl=a.forwardRef((t,e)=>{const{as:r,asChild:n,children:o,...i}=t,l=a.useRef(null),s=ne(S.mergeRefs(l,e)),u=r||(n?"span":"a")||"a",{linkProps:c}=Yu({...i,elementType:u},s);return P.jsx(Wd,{...B(i,c,{as:r,asChild:n,ref:s}),children:o})});Yl.displayName="Link";const _d=t=>P.jsx(S.List.Root,{...t}),Ud=t=>P.jsx(S.List.Item,{...t}),Zl=a.forwardRef((t,e)=>P.jsx(S.SimpleGrid,{ref:e,...t}));Zl.displayName="SimpleGrid";const Gd=Object.assign(Zl,{Item:S.GridItem}),qd=t=>P.jsx(S.Table.Root,{...t}),Yd=t=>P.jsx(S.Table.ColumnGroup,{...t}),Zd=t=>P.jsx(S.Table.Column,{...t}),Xd=t=>P.jsx(S.Table.Header,{...t}),Jd=t=>P.jsx(S.Table.Footer,{...t}),Qd=t=>P.jsx(S.Table.Row,{...t}),ef=t=>P.jsx(S.Table.Cell,{...t}),tf=t=>P.jsx(S.Table.Body,{...t}),rf=t=>P.jsx(S.Table.ColumnHeader,{...t}),Xl=a.forwardRef((t,e)=>P.jsx(S.Text,{ref:e,...t}));Xl.displayName="Text";a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);const nf=a.createContext({}),Ht=Symbol("default");function Ve({values:t,children:e}){for(let[r,n]of t)e=a.createElement(r.Provider,{value:n},e);return e}function J(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:s}=t;return a.useMemo(()=>{let u,c,d;return typeof e=="function"?u=e({...s,defaultClassName:o}):u=e,typeof r=="function"?c=r({...s,defaultStyle:l||{}}):c=r,typeof n=="function"?d=n({...s,defaultChildren:i}):n==null?d=i:d=n,{className:u??o,style:c||l?{...l,...c}:void 0,children:d??i,"data-rac":""}},[e,r,n,o,i,l,s])}function Xt(t,e){let r=a.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!e&&!r.slots[Ht])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=e||Ht;if(!r.slots[o])throw new Error(`Invalid slot "${e}". Valid slot names are ${n}.`);return r.slots[o]}return r}function re(t,e,r){let n=Xt(r,t.slot)||{},{ref:o,...i}=n,l=ne(a.useMemo(()=>zo(e,o),[e,o])),s=B(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?s.style=u=>{let c=typeof i.style=="function"?i.style(u):i.style,d={...u.defaultStyle,...c},p=typeof t.style=="function"?t.style({...u,defaultStyle:d}):t.style;return{...d,...p}}:s.style={...i.style,...t.style}),[s,l]}function dn(){let[t,e]=a.useState(!0),r=a.useRef(!1),n=a.useCallback(o=>{r.current=!0,e(!!o)},[]);return z(()=>{r.current||e(!1)},[]),[n,t]}function Jl(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class fn{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new fn(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=r}}class pn{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}filter(e){let r=new pn,n=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),l=null;for(let s of this.getChildren(o.key))if(e(s.textValue)||s.type==="header"){let u=s.clone();l==null&&(i.firstChildKey=u.key),r.firstKey==null&&(r.firstKey=i.key),l&&l.parentKey===u.parentKey?(l.nextKey=u.key,u.prevKey=l.key):u.prevKey=null,u.nextKey=null,r.addNode(u),l=u}l&&(l.type!=="header"?(i.lastChildKey=l.key,n==null?i.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,r.addNode(i)):(r.firstKey===i.key&&(r.firstKey=null),r.removeNode(l.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=i.key,i.prevKey=n.key,n=i,r.addNode(i))}else if(e(o.textValue)){let i=o.clone();r.firstKey==null&&(r.firstKey=i.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,r.addNode(i),n=i}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let o;n.prevKey!=null&&(o=r.getItem(n.prevKey),o.nextKey=null),r.removeNode(n.key),n=o}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Ql{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode;let n=r;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let r=e.nextSibling;for(;r;)r.index--,r=r.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class vt extends Ql{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof vt?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,r,n,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof vt?this.parentNode.node.key:null;var l;i.prevKey=(l=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var s;i.nextKey=(s=(r=this.nextSibling)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var u;i.firstChildKey=(u=(n=this.firstChild)===null||n===void 0?void 0:n.node.key)!==null&&u!==void 0?u:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(e,r,n,o){let i=this.ownerDocument.getMutableNode(this),{value:l,textValue:s,id:u,...c}=e;if(c.ref=r,i.props=c,i.rendered=n,i.render=o,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",u!=null&&u!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=u}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new fn(e,`react-aria-${++r.nodeId}`),this.ownerDocument.startTransaction()}}class of extends Ql{get isConnected(){return this.isMounted}createElement(e){return new vt(e,this)}getMutableNode(e){let r=e.node;return this.mutatedNodes.has(e)||(r=e.node.clone(),this.mutatedNodes.add(e),e.node=r),this.markDirty(e),r}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let r=this.getMutableCollection();if(!r.getItem(e.node.key)){r.addNode(e.node);for(let n of e)this.addNode(n)}this.markDirty(e)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof vt&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,r;let i=this.getMutableCollection();for(let l of this.mutatedNodes)l.isConnected&&i.addNode(l.node);var n,o;i.commit((n=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(o=(r=this.lastChild)===null||r===void 0?void 0:r.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function ea(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,l=a.useMemo(()=>new WeakMap,i);return a.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let p=l.get(d);if(!p){p=e(d);var s,u;let v=(u=(s=p.props.id)!==null&&s!==void 0?s:d.key)!==null&&u!==void 0?u:d.id;if(v==null)throw new Error("Could not determine key for item");n&&(v=n+":"+v),p=a.cloneElement(p,o?{key:v,id:v,value:d}:{key:v}),l.set(d,p)}c.push(p)}return c}else if(typeof e!="function")return e},[e,r,l,n,o])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Vt=a.createContext(!1),lf=typeof DocumentFragment<"u"?new DocumentFragment:null;function af(t){let e=a.useContext(Vt),r=we();if(e)return a.createElement(a.Fragment,null,t.children);let n=a.createElement(Vt.Provider,{value:!0},t.children);return r?a.createElement("template",{"data-react-aria-hidden":!0},n):Ne.createPortal(n,lf)}function ta(t){let e=(r,n)=>a.useContext(Vt)?null:t(r,n);return e.displayName=t.displayName||t.name,a.forwardRef(e)}function sf(){return a.useContext(Vt)}function uf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}},$r={};/**
25
2
  * @license React
26
3
  * use-sync-external-store-shim.production.js
27
4
  *
@@ -29,7 +6,7 @@ You may have forgotten to import it.`);const n=e.__emotion_real===e,o=n&&e.__emo
29
6
  *
30
7
  * This source code is licensed under the MIT license found in the
31
8
  * LICENSE file in the root directory of this source tree.
32
- */var gd;function ER(){if(gd)return xa;gd=1;var e=d;function t(g,f){return g===f&&(g!==0||1/g===1/f)||g!==g&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(g,f){var p=f(),h=n({inst:{value:p,getSnapshot:f}}),m=h[0].inst,b=h[1];return i(function(){m.value=p,m.getSnapshot=f,l(m)&&b({inst:m})},[g,p,f]),o(function(){return l(m)&&b({inst:m}),g(function(){l(m)&&b({inst:m})})},[g]),a(p),p}function l(g){var f=g.getSnapshot;g=g.value;try{var p=f();return!r(g,p)}catch{return!0}}function c(g,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return xa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,xa}var Sa={};/**
9
+ */var xo;function cf(){if(xo)return $r;xo=1;var t=a;function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,i=t.useLayoutEffect,l=t.useDebugValue;function s(p,v){var f=v(),h=n({inst:{value:f,getSnapshot:v}}),m=h[0].inst,y=h[1];return i(function(){m.value=f,m.getSnapshot=v,u(m)&&y({inst:m})},[p,f,v]),o(function(){return u(m)&&y({inst:m}),p(function(){u(m)&&y({inst:m})})},[p]),l(f),f}function u(p){var v=p.getSnapshot;p=p.value;try{var f=v();return!r(p,f)}catch{return!0}}function c(p,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return $r.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,$r}var xr={};/**
33
10
  * @license React
34
11
  * use-sync-external-store-shim.development.js
35
12
  *
@@ -37,14 +14,14 @@ You may have forgotten to import it.`);const n=e.__emotion_real===e,o=n&&e.__emo
37
14
  *
38
15
  * This source code is licensed under the MIT license found in the
39
16
  * LICENSE file in the root directory of this source tree.
40
- */var hd;function PR(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function t(p,h){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!g){var b=h();i(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}b=a({inst:{value:m,getSnapshot:h}});var y=b[0].inst,x=b[1];return l(function(){y.value=m,y.getSnapshot=h,r(y)&&x({inst:y})},[p,m,h]),s(function(){return r(y)&&x({inst:y}),p(function(){r(y)&&x({inst:y})})},[p]),c(m),m}function r(p){var h=p.getSnapshot;p=p.value;try{var m=h();return!i(p,m)}catch{return!0}}function n(p,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=d,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,g=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Sa.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Sa}var md;function $R(){return md||(md=1,process.env.NODE_ENV==="production"?wo.exports=ER():wo.exports=PR()),wo.exports}var kR=$R();const ab=d.createContext(!1),_n=d.createContext(null);function sb(e){if(d.useContext(_n))return e.content;let{collection:r,document:n}=IR(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(wR,null,d.createElement(_n.Provider,{value:n},e.content)),d.createElement(TR,{render:e.children,collection:r}))}function TR({collection:e,render:t}){return t(e)}function RR(e,t,r){let n=Zt(),o=d.useRef(n);o.current=n;let i=d.useCallback(()=>o.current?r():t(),[t,r]);return kR.useSyncExternalStore(e,i)}const OR=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:RR;function IR(e){let[t]=d.useState(()=>new xR((e==null?void 0:e())||new $l)),r=d.useCallback(a=>t.subscribe(a),[t]),n=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=OR(r,n,o);return X(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}const ps=d.createContext(null);function lb(e,t,r,n,o,i){let a=d.useCallback(l=>{l==null||l.setProps(t,r,n,i)},[t,r,n,i]),s=d.useContext(ps);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e),l.setProps(t,r,n,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?d.createElement(ps.Provider,{value:l},o):null}return d.createElement(e,{ref:a},o)}function cb(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=d.forwardRef((o,i)=>{if(!d.useContext(ab)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return lb(e,o,i,"children"in o?o.children:null,null,s=>d.createElement(r,{node:s}))});return n.displayName=t.name,n}function DR(e,t,r=ub){let n=({node:i})=>t(i.props,i.props.ref,i),o=d.forwardRef((i,a)=>{let s=r(i);var l;return(l=lb(e,i,a,null,s,c=>d.createElement(n,{node:c})))!==null&&l!==void 0?l:d.createElement(d.Fragment,null)});return o.displayName=t.name,o}function ub(e){return ob({...e,addIdAndValue:!0})}const vd=d.createContext(null);function db(e){let t=d.useContext(vd),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=ub({...e,idScope:n,dependencies:r});return d.useContext(_n)&&(o=d.createElement(AR,null,o)),t=d.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),d.createElement(vd.Provider,{value:t},o)}function AR({children:e}){let t=d.useContext(_n),r=d.useMemo(()=>d.createElement(_n.Provider,{value:null},d.createElement(ab.Provider,{value:!0},e)),[e]);return Zt()?d.createElement(ps.Provider,{value:t},r):ct.createPortal(r,t)}const fb=d.createContext({}),NR=d.createContext(null),LR=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),kl=d.createContext({}),zR=ib(function(t,r){[t,r]=je(t,r,kl),t=FR(t);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:a}=Ti(t,r),{focusProps:s,isFocused:l,isFocusVisible:c}=Qt(t),{hoverProps:u,isHovered:g}=Er({...t,isDisabled:t.isDisabled||o}),f={isHovered:g,isPressed:(n.isPressed||a)&&!o,isFocused:l,isFocusVisible:c,isDisabled:t.isDisabled||!1,isPending:o??!1},p=Me({...t,values:f,defaultClassName:"react-aria-Button"}),h=$e(i.id),m=$e(),b=i["aria-labelledby"];o&&(b?b=`${b} ${m}`:i["aria-label"]&&(b=`${h} ${m}`));let y=d.useRef(o);return d.useEffect(()=>{let x={"aria-labelledby":b||h};(!y.current&&l&&o||y.current&&l&&!o)&&Zu(x,"assertive"),y.current=o},[o,l,b,h]),d.createElement("button",{...ye(t,{propNames:LR}),...K(i,s,u),...p,type:i.type==="submit"&&o?"button":i.type,id:h,ref:r,"aria-labelledby":b,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":g||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},d.createElement(NR.Provider,{value:{id:m}},p.children))});function FR(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const Ii=d.createContext({}),pb=d.createContext(null);class bd{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n=null,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}}class it extends Set{constructor(t,r,n){super(t),t instanceof it?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function MR(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function _R(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),c=d.useRef(null),[,u]=d.useState(null),g=d.useMemo(()=>yd(e.selectedKeys),[e.selectedKeys]),f=d.useMemo(()=>yd(e.defaultSelectedKeys,new it),[e.defaultSelectedKeys]),[p,h]=Jt(g,f,e.onSelectionChange),m=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[b,y]=d.useState(o);o==="replace"&&b==="toggle"&&typeof p=="object"&&p.size===0&&y("replace");let x=d.useRef(o);return d.useEffect(()=>{o!==x.current&&(y(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:b,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(S){a.current=S,s(S)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(S,$="first"){l.current=S,c.current=$,u(S)},selectedKeys:p,setSelectedKeys(S){(n||!MR(S,p))&&h(S)},disabledKeys:m,disabledBehavior:i}}function yd(e,t){return e?e==="all"?"all":new it(e):t}class VR{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&ya(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&ya(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new it([r],r,r);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new it(a,s,r);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(l);for(let l of this.getKeyRange(r,s))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?ya(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new it(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new it([r],r,r):new it;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new it;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=IT(hv(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new it)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function gb(e){let{filter:t,layoutDelegate:r}=e,n=_R(e),o=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=d.useCallback(u=>t?new bd(t(u)):new bd(u),[t]),a=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=OT(e,i,a),l=d.useMemo(()=>new VR(s,n,{layoutDelegate:r}),[s,n,r]);const c=d.useRef(null);return d.useEffect(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)&&c.current){const y=c.current.getItem(n.focusedKey),x=[...c.current.getKeys()].map(v=>{const P=c.current.getItem(v);return(P==null?void 0:P.type)==="item"?P:null}).filter(v=>v!==null),S=[...s.getKeys()].map(v=>{const P=s.getItem(v);return(P==null?void 0:P.type)==="item"?P:null}).filter(v=>v!==null);var u,g;const $=((u=x==null?void 0:x.length)!==null&&u!==void 0?u:0)-((g=S==null?void 0:S.length)!==null&&g!==void 0?g:0);var f,p,h;let w=Math.min($>1?Math.max(((f=y==null?void 0:y.index)!==null&&f!==void 0?f:0)-$+1,0):(p=y==null?void 0:y.index)!==null&&p!==void 0?p:0,((h=S==null?void 0:S.length)!==null&&h!==void 0?h:0)-1),C=null,D=!1;for(;w>=0;){if(!l.isDisabled(S[w].key)){C=S[w];break}if(w<S.length-1&&!D)w++;else{D=!0;var m,b;w>((m=y==null?void 0:y.index)!==null&&m!==void 0?m:0)&&(w=(b=y==null?void 0:y.index)!==null&&b!==void 0?b:0),w--}}n.setFocusedKey(C?C.key:null)}c.current=s},[s,l,n,n.focusedKey]),{collection:s,disabledKeys:o,selectionManager:l}}function BR(e){var t;let[r,n]=Jt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=d.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:s}=gb({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{if(c==="all")return;var u;let g=(u=c.values().next().value)!==null&&u!==void 0?u:null;g===r&&e.onSelectionChange&&e.onSelectionChange(g),n(g)}}),l=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:r,setSelectedKey:n,selectedItem:l}}function Di(e){let[t,r]=Jt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=d.useCallback(()=>{r(!0)},[r]),o=d.useCallback(()=>{r(!1)},[r]),i=d.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function WR(e){let[t,r]=Jt(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const n=d.useCallback(()=>{r(!0)},[r]),o=d.useCallback(()=>{r(!1)},[r]),i=d.useCallback(()=>{r(!t)},[r,t]);return{isExpanded:t,setExpanded:r,expand:n,collapse:o,toggle:i}}function KR(e){let{allowsMultipleExpanded:t=!1,isDisabled:r=!1}=e,[n,o]=Jt(d.useMemo(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),d.useMemo(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return d.useEffect(()=>{!t&&n.size>1&&o(new Set([n.values().next().value]))}),{allowsMultipleExpanded:t,isDisabled:r,expandedKeys:n,setExpandedKeys:o,toggleKey(i){let a;t?(a=new Set(n),a.has(i)?a.delete(i):a.add(i)):a=new Set(n.has(i)?[]:[i]),o(a)}}}function HR(e){let t=Di(e),[r,n]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(c,u)=>{i(g=>u>g.length?g:[...g.slice(0,u),c])},closeSubmenu:(c,u)=>{i(g=>g[u]===c?g.slice(0,u):g)}}}function jR(e){let t=Di(e),[r,n]=d.useState(null),o=BR({...e,onSelectionChange:l=>{e.onSelectionChange!=null&&e.onSelectionChange(l),t.close(),i.commitValidation()}}),i=bl({...e,value:o.selectedKey}),[a,s]=d.useState(!1);return{...i,...o,...t,focusStrategy:r,open(l=null){o.collection.size!==0&&(n(l),t.open())},toggle(l=null){o.collection.size!==0&&(n(l),t.toggle())},isFocused:a,setFocused:s}}const UR=1500,xd=500;let lr={},GR=0,hn=!1,Pt=null,cr=null;function hb(e={}){let{delay:t=UR,closeDelay:r=xd}=e,{isOpen:n,open:o,close:i}=Di(e),a=d.useMemo(()=>`${++GR}`,[]),s=d.useRef(null),l=d.useRef(i),c=()=>{lr[a]=f},u=()=>{for(let h in lr)h!==a&&(lr[h](!0),delete lr[h])},g=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),c(),hn=!0,o(),Pt&&(clearTimeout(Pt),Pt=null),cr&&(clearTimeout(cr),cr=null)},f=h=>{h||r<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},r)),Pt&&(clearTimeout(Pt),Pt=null),hn&&(cr&&clearTimeout(cr),cr=setTimeout(()=>{delete lr[a],cr=null,hn=!1},Math.max(xd,r)))},p=()=>{u(),c(),!n&&!Pt&&!hn?Pt=setTimeout(()=>{Pt=null,hn=!0,g()},t):n||g()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),lr[a]&&delete lr[a]},[a]),{isOpen:n,open:h=>{!h&&t>0&&!s.current?p():g()},close:f}}const mb=d.createContext(null),gs=d.createContext({});let qR=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...o}=e;return o};const YR=ib(function(t,r){[t,r]=je(t,r,gs);let{hoverProps:n,isHovered:o}=Er(t),{isFocused:i,isFocusVisible:a,focusProps:s}=Qt({isTextInput:!0,autoFocus:t.autoFocus}),l=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",c=Me({...t,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"});return d.createElement("input",{...K(qR(t),s,n),...c,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":l||void 0})}),XR=d.createContext({}),ZR=d.createContext(null),JR=d.forwardRef(function(t,r){[t,r]=je(t,r,ZR);let{validationBehavior:n}=Oi(mb)||{};var o,i;let a=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=d.useRef(null),[l,c]=je({},s,gs),[u,g]=El(),[f,p]=d.useState("input"),{labelProps:h,inputProps:m,descriptionProps:b,errorMessageProps:y,...x}=j2({...rb(t),inputElementType:f,label:g,validationBehavior:a},c),S=d.useCallback(C=>{c.current=C,C&&p(C instanceof HTMLTextAreaElement?"textarea":"input")},[c]),$=Me({...t,values:{isDisabled:t.isDisabled||!1,isInvalid:x.isInvalid,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-TextField"}),w=ye(t);return delete w.id,d.createElement("div",{...w,...$,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},d.createElement($r,{values:[[fb,{...h,ref:u}],[gs,{...K(m,l),ref:S}],[XR,{...m,ref:S}],[Ii,{slots:{description:b,errorMessage:y}}],[pb,x]]},$.children))}),QR=d.createContext(null),eO=d.createContext(null),tO={CollectionRoot({collection:e,renderDropIndicator:t}){return Sd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Sd(e,t,r)}};function Sd(e,t,r){return ob({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){var o;let i=n.render(n);if(!r||n.type!=="item")return i;let a=n.key,s=e.getKeyAfter(a);return d.createElement(d.Fragment,null,r({type:"item",key:a,dropPosition:"before"}),i,(s==null||((o=e.getItem(s))===null||o===void 0?void 0:o.type)!=="item")&&r({type:"item",key:a,dropPosition:"after"}))}})}const Tl=d.createContext(tO);var vb={};vb={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var bb={};bb={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var yb={};yb={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var xb={};xb={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Sb={};Sb={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var wb={};wb={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Cb={};Cb={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Eb={};Eb={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Pb={};Pb={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var $b={};$b={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var kb={};kb={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Tb={};Tb={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Rb={};Rb={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Ob={};Ob={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var Ib={};Ib={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Db={};Db={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Ab={};Ab={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Nb={};Nb={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Lb={};Lb={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var zb={};zb={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Fb={};Fb={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Mb={};Mb={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var _b={};_b={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Vb={};Vb={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Bb={};Bb={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Wb={};Wb={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Kb={};Kb={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Hb={};Hb={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var jb={};jb={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Ub={};Ub={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Gb={};Gb={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var qb={};qb={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Yb={};Yb={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Xb={};Xb={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Zb={};Zb={"ar-AE":vb,"bg-BG":bb,"cs-CZ":yb,"da-DK":xb,"de-DE":Sb,"el-GR":wb,"en-US":Cb,"es-ES":Eb,"et-EE":Pb,"fi-FI":$b,"fr-FR":kb,"he-IL":Tb,"hr-HR":Rb,"hu-HU":Ob,"it-IT":Ib,"ja-JP":Db,"ko-KR":Ab,"lt-LT":Nb,"lv-LV":Lb,"nb-NO":zb,"nl-NL":Fb,"pl-PL":Mb,"pt-BR":_b,"pt-PT":Vb,"ro-RO":Bb,"ru-RU":Wb,"sk-SK":Kb,"sl-SI":Hb,"sr-SP":jb,"sv-SE":Ub,"tr-TR":Gb,"uk-UA":qb,"zh-CN":Yb,"zh-TW":Xb};const Ai=d.createContext({}),Jb=d.createContext(null),rO=d.forwardRef(function(t,r){let{render:n}=d.useContext(Jb);return d.createElement(d.Fragment,null,n(t,r))});function Qb(e,t){var r;let n=e==null?void 0:e.renderDropIndicator,o=e==null||(r=e.isVirtualDragging)===null||r===void 0?void 0:r.call(e),i=d.useCallback(a=>{if(o||t!=null&&t.isDropTarget(a))return n?n(a):d.createElement(rO,{target:a})},[t==null?void 0:t.target,o,n]);return e!=null&&e.useDropIndicator?i:void 0}function nO(e,t,r){var n,o;let i=e.focusedKey,a=null;if(!(t==null||(n=t.isVirtualDragging)===null||n===void 0)&&n.call(t)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"){a=r.target.key;var s;r.target.dropPosition==="after"&&(a=(s=r.collection.getKeyAfter(a))!==null&&s!==void 0?s:a)}return d.useMemo(()=>new Set([i,a].filter(l=>l!=null)),[i,a])}const e0=d.createContext({}),oO=cb("header",function(t,r){return[t,r]=je(t,r,e0),d.createElement("header",{className:"react-aria-Header",...t,ref:r},t.children)}),iO=d.createContext({}),Rl=d.createContext(null),qn=d.createContext(null),aO=d.forwardRef(function(t,r){[t,r]=je(t,r,Rl);let n=d.useContext(qn);return n?d.createElement(t0,{state:n,props:t,listBoxRef:r}):d.createElement(sb,{content:d.createElement(db,t)},o=>d.createElement(sO,{props:t,listBoxRef:r,collection:o}))});function sO({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:n}=d.useContext(Tl),{filterFn:o,collectionProps:i,collectionRef:a}=d.useContext(QR)||{};t=Ue(d.useMemo(()=>jh(t,a!==void 0?a:null),[a,t]));let s=d.useMemo(()=>o?r.filter(o):r,[r,o]),l=gb({...e,collection:s,layoutDelegate:n});return d.createElement(t0,{state:l,props:{...e,...i},listBoxRef:t})}function t0({state:e,props:t,listBoxRef:r}){let{dragAndDropHooks:n,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(n!=null&&n.useDraggableCollectionState),c=!!(n!=null&&n.useDroppableCollectionState),{direction:u}=Pr(),{disabledBehavior:g,disabledKeys:f}=s,p=vl({usage:"search",sensitivity:"base"}),{isVirtualized:h,layoutDelegate:m,dropTargetDelegate:b,CollectionRoot:y}=d.useContext(Tl),x=d.useMemo(()=>t.keyboardDelegate||new Cl({collection:a,collator:p,ref:r,disabledKeys:f,disabledBehavior:g,layout:o,orientation:i,direction:u,layoutDelegate:m}),[a,p,r,g,f,i,u,t.keyboardDelegate,o,m]),{listBoxProps:S}=kT({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:h},e,r),$=d.useRef(l),w=d.useRef(c);d.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),w.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,c]);let C,D,v,P=!1,T=null,I=d.useRef(null);if(l&&n){C=n.useDraggableCollectionState({collection:a,selectionManager:s,preview:n.renderDragPreview?I:void 0}),n.useDraggableCollection({},C,r);let R=n.DragPreview;T=n.renderDragPreview?d.createElement(R,{ref:I},n.renderDragPreview):null}if(c&&n){D=n.useDroppableCollectionState({collection:a,selectionManager:s});let R=n.dropTargetDelegate||b||new n.ListDropTargetDelegate(a,r,{orientation:i,layout:o,direction:u});v=n.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:R},D,r),P=D.isDropTarget({type:"root"})}let{focusProps:L,isFocused:E,isFocusVisible:O}=Qt(),A={isDropTarget:P,isEmpty:e.collection.size===0,isFocused:E,isFocusVisible:O,layout:t.layout||"stack",state:e},z=Me({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:A}),F=null;return e.collection.size===0&&t.renderEmptyState&&(F=d.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(A))),d.createElement(mm,null,d.createElement("div",{...ye(t),...K(S,L,v==null?void 0:v.collectionProps),...z,ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":P||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":E||void 0,"data-focus-visible":O||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},d.createElement($r,{values:[[Rl,t],[qn,e],[Ai,{dragAndDropHooks:n,dragState:C,dropState:D}],[iO,{elementType:"div"}],[Jb,{render:uO}],[eO,{name:"ListBoxSection",render:r0}]]},d.createElement(y,{collection:a,scrollRef:r,persistedKeys:nO(s,n,D),renderDropIndicator:Qb(n,D)})),F,T))}function r0(e,t,r,n="react-aria-ListBoxSection"){let o=d.useContext(qn),{dragAndDropHooks:i,dropState:a}=d.useContext(Ai),{CollectionBranch:s}=d.useContext(Tl),[l,c]=El();var u;let{headingProps:g,groupProps:f}=LT({heading:c,"aria-label":(u=e["aria-label"])!==null&&u!==void 0?u:void 0}),p=Me({defaultClassName:n,className:e.className,style:e.style,values:{}});return d.createElement("section",{...ye(e),...f,...p,ref:t},d.createElement(e0.Provider,{value:{...g,ref:l}},d.createElement(s,{collection:o.collection,parent:r,renderDropIndicator:Qb(i,a)})))}const lO=DR("section",r0),cO=cb("item",function(t,r,n){let o=Ue(r),i=d.useContext(qn),{dragAndDropHooks:a,dragState:s,dropState:l}=d.useContext(Ai),{optionProps:c,labelProps:u,descriptionProps:g,...f}=NT({key:n.key,"aria-label":t==null?void 0:t["aria-label"]},i,o),{hoverProps:p,isHovered:h}=Er({isDisabled:!f.allowsSelection&&!f.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=null;s&&a&&(m=a.useDraggableItem({key:n.key},s));let b=null;l&&a&&(b=a.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},l,o));let y=s&&s.isDragging(n.key),x=Me({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...f,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}});d.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let S=t.href?"a":"div";return d.createElement(S,{...K(c,p,m==null?void 0:m.dragProps,b==null?void 0:b.dropProps),...x,ref:o,"data-allows-dragging":!!s||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},d.createElement($r,{values:[[Ii,{slots:{label:u,description:g}}]]},x.children))});function uO(e,t){t=Ue(t);let{dragAndDropHooks:r,dropState:n}=d.useContext(Ai),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=r.useDropIndicator(e,n,t);return i?null:d.createElement(fO,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function dO(e,t){let{dropIndicatorProps:r,isDropTarget:n,...o}=e,i=Me({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return d.createElement("div",{...r,...i,role:"option",ref:t,"data-drop-target":n||void 0})}const fO=d.forwardRef(dO),n0=d.createContext({placement:"bottom"}),Ol=d.createContext(null),o0=d.forwardRef(function(t,r){[t,r]=je(t,r,Ol);let n=d.useContext(Ni),o=Di(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=rm(r,i.isOpen)||t.isExiting||!1;if(CR()){let l=t.children;return typeof l=="function"&&(l=l({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,l)}return i&&!i.isOpen&&!a?null:d.createElement(pO,{...t,triggerRef:t.triggerRef,state:i,popoverRef:r,isExiting:a})});function pO({state:e,isExiting:t,UNSTABLE_portalContainer:r,...n}){let o=d.useRef(null),[i,a]=d.useState(0);X(()=>{o.current&&e.isOpen&&a(o.current.getBoundingClientRect().width)},[e.isOpen,o]);var s;let{popoverProps:l,underlayProps:c,arrowProps:u,placement:g}=hT({...n,offset:(s=n.offset)!==null&&s!==void 0?s:8,arrowSize:i},e),f=n.popoverRef,p=tm(f,!!g)||n.isEntering||!1,h=Me({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:g,isEntering:p,isExiting:t}}),m={...l.style,...h.style};return d.createElement(bT,{...n,isExiting:t,portalContainer:r},!n.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),d.createElement("div",{...K(ye(n),l),...h,ref:f,slot:n.slot||void 0,style:m,"data-trigger":n.trigger,"data-placement":g,"data-entering":p||void 0,"data-exiting":t||void 0},!n.isNonModal&&d.createElement(sd,{onDismiss:e.close}),d.createElement(n0.Provider,{value:{...u,placement:g,ref:o}},h.children),d.createElement(sd,{onDismiss:e.close})))}const gO=d.createContext(null),i0=d.createContext(null),Ni=d.createContext(null);function hO(e){let t=HR(e),r=d.useRef(null),{triggerProps:n,overlayProps:o}=Im({type:"dialog"},t,r);return n.id=$e(),o["aria-labelledby"]=n.id,d.createElement($r,{values:[[Ni,t],[gO,t],[i0,o],[Ol,{trigger:"DialogTrigger",triggerRef:r}]]},d.createElement(j3,{...n,ref:r,isPressed:t.isOpen},e.children))}const mO=d.forwardRef(function(t,r){let n=t["aria-labelledby"];[t,r]=je(t,r,i0);let{dialogProps:o,titleProps:i}=MT({...t,"aria-labelledby":n},r),a=d.useContext(Ni);!o["aria-label"]&&!o["aria-labelledby"]&&(t["aria-labelledby"]?o["aria-labelledby"]=t["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=Me({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}});return d.createElement("section",{...ye(t),...o,...s,ref:r,slot:t.slot||void 0},d.createElement($r,{values:[[yR,{slots:{[oi]:{},title:{...i,level:2}}}],[kl,{slots:{[oi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))});function vO(e){return e&&e.__esModule?e.default:e}const Il=d.createContext(null),Dl=d.createContext(null),bO=d.forwardRef(function(t,r){[t,r]=je(t,r,Il);let{children:n,isDisabled:o=!1,isInvalid:i=!1,isRequired:a=!1}=t,s=d.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,o,i,a]);return d.createElement(sb,{content:s},l=>d.createElement(yO,{props:t,collection:l,selectRef:r}))});function yO({props:e,selectRef:t,collection:r}){let{validationBehavior:n}=Oi(mb)||{};var o,i;let a=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=jR({...e,collection:r,children:void 0,validationBehavior:a}),{isFocusVisible:l,focusProps:c}=Qt({within:!0}),u=d.useRef(null),[g,f]=El(),{labelProps:p,triggerProps:h,valueProps:m,menuProps:b,descriptionProps:y,errorMessageProps:x,...S}=BT({...rb(e),label:f,validationBehavior:a},s,u),[$,w]=d.useState(null),C=d.useCallback(()=>{u.current&&w(u.current.offsetWidth+"px")},[u]);Za({ref:u,onResize:C});let D=d.useMemo(()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:e.isRequired||!1}),[s.isOpen,s.isFocused,l,e.isDisabled,S.isInvalid,e.isRequired]),v=Me({...e,values:D,defaultClassName:"react-aria-Select"}),P=ye(e);delete P.id;let T=d.useRef(null);return d.createElement($r,{values:[[Il,e],[Dl,s],[a0,m],[fb,{...p,ref:g,elementType:"span"}],[kl,{...h,ref:u,isPressed:s.isOpen}],[Ni,s],[Ol,{trigger:"Select",triggerRef:u,scrollRef:T,placement:"bottom start",style:{"--trigger-width":$}}],[Rl,{...b,ref:T}],[qn,s],[Ii,{slots:{description:y,errorMessage:x}}],[pb,S]]},d.createElement("div",{...P,...v,...c,ref:t,slot:e.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":s.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":e.isRequired||void 0}),d.createElement(KT,{autoComplete:e.autoComplete,state:s,triggerRef:u,label:f,name:e.name,isDisabled:e.isDisabled}))}const a0=d.createContext(null),xO=d.forwardRef(function(t,r){var n,o;[t,r]=je(t,r,a0);let i=d.useContext(Dl),{placeholder:a}=Oi(Il),s=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,l=s==null?void 0:s.props.children;typeof l=="function"&&(l=l({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=ml(vO(Zb),"react-aria-components");var u,g,f;let p=Me({...t,defaultChildren:(u=l??a)!==null&&u!==void 0?u:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(g=(n=i.selectedItem)===null||n===void 0?void 0:n.value)!==null&&g!==void 0?g:null,selectedText:(f=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&f!==void 0?f:null,isPlaceholder:!s}}),h=ye(t);return d.createElement("span",{ref:r,...h,...p,"data-placeholder":!s||void 0},d.createElement(Ii.Provider,{value:void 0},p.children))}),SO=d.createContext({}),s0=d.createContext(null),wO=d.forwardRef(function(t,r){[t,r]=je(t,r,SO);let n=H2(t),{groupProps:o}=A2(t,n,r),i=Me({...t,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return d.createElement("div",{...o,...i,ref:r,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(s0.Provider,{value:n},i.children))}),CO=d.createContext({}),EO=d.forwardRef(function(t,r){[t,r]=je(t,r,CO);let n=d.useContext(s0),o=Pm(n&&t.id!=null?{isSelected:n.selectedKeys.has(t.id),onChange(m){n.setSelected(t.id,m)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=n&&t.id!=null?N2({...t,id:t.id},n,r):Sm({...t,id:t.id!=null?String(t.id):void 0},o,r),{focusProps:c,isFocused:u,isFocusVisible:g}=Qt(t),{hoverProps:f,isHovered:p}=Er(t),h=Me({...t,id:void 0,values:{isHovered:p,isPressed:a,isFocused:u,isSelected:o.isSelected,isFocusVisible:g,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"});return d.createElement("button",{...K(i,c,f),...h,ref:r,slot:t.slot||void 0,"data-focused":u||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":p||void 0,"data-focus-visible":g||void 0})}),Al=d.createContext(null),l0=d.createContext(null);function PO(e){let t=hb(e),r=d.useRef(null),{triggerProps:n,tooltipProps:o}=jT(e,t,r);return d.createElement($r,{values:[[Al,t],[l0,{...o,triggerRef:r}]]},d.createElement(m2,{...n,ref:r},e.children))}const $O=d.forwardRef(function({UNSTABLE_portalContainer:t,...r},n){[r,n]=je(r,n,l0);let o=d.useContext(Al),i=hb(r),a=r.isOpen!=null||r.defaultOpen!=null||!o?i:o,s=rm(n,a.isOpen)||r.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(fT,{portalContainer:t},d.createElement(kO,{...r,tooltipRef:n,isExiting:s}))});function kO(e){let t=d.useContext(Al),r=d.useRef(null),[n,o]=d.useState(0);X(()=>{r.current&&t.isOpen&&o(r.current.getBoundingClientRect().width)},[t.isOpen,r]);let{overlayProps:i,arrowProps:a,placement:s}=Om({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:n,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),l=tm(e.tooltipRef,!!s)||e.isEntering||!1,c=Me({...e,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:l,isExiting:e.isExiting,state:t}});e=K(e,i);let{tooltipProps:u}=HT(e,t);return d.createElement("div",{...u,ref:e.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":s??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},d.createElement(n0.Provider,{value:{...a,placement:s,ref:r}},c.children))}const c0=oe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:TO}=rt({recipe:c0}),RO=TO("div"),u0=d.forwardRef(function({children:t,placement:r="bottom",...n},o){return k.jsx(RO,{ref:o,asChild:!0,...n,children:k.jsx($O,{placement:r,...n,children:t})})});u0.displayName="Tooltip";const d0=PO;d0.displayName="TooltipTrigger";const f0=d.forwardRef(function(t,r){const n=d.useRef(null),o=Ue(Nt(n,r)),{focusableProps:i}=nn(t,o);if(d.isValidElement(t.children))return d.cloneElement(t.children,K(i,t.children.props,{ref:o}))});f0.displayName="MakeElementFocusable";var OO=(e,t,r,n,o,i,a,s)=>{let l=document.documentElement,c=["light","dark"];function u(p){(Array.isArray(e)?e:[e]).forEach(h=>{let m=h==="class",b=m&&i?o.map(y=>i[y]||y):o;m?(l.classList.remove(...b),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(h,p)}),g(p)}function g(p){s&&c.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let p=localStorage.getItem(t)||r,h=a&&p==="system"?f():p;u(h)}catch{}},wd=["light","dark"],p0="(prefers-color-scheme: dark)",IO=typeof window>"u",Nl=U.createContext(void 0),DO={setTheme:e=>{},themes:[]},AO=()=>{var e;return(e=U.useContext(Nl))!=null?e:DO},NO=e=>U.useContext(Nl)?U.createElement(U.Fragment,null,e.children):U.createElement(zO,{...e}),LO=["light","dark"],zO=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=LO,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:u,scriptProps:g})=>{let[f,p]=U.useState(()=>MO(o,a)),[h,m]=U.useState(()=>f==="system"?wa():f),b=l?Object.values(l):i,y=U.useCallback(w=>{let C=w;if(!C)return;w==="system"&&r&&(C=wa());let D=l?l[C]:C,v=t?_O(u):null,P=document.documentElement,T=I=>{I==="class"?(P.classList.remove(...b),D&&P.classList.add(D)):I.startsWith("data-")&&(D?P.setAttribute(I,D):P.removeAttribute(I))};if(Array.isArray(s)?s.forEach(T):T(s),n){let I=wd.includes(a)?a:null,L=wd.includes(C)?C:I;P.style.colorScheme=L}v==null||v()},[u]),x=U.useCallback(w=>{let C=typeof w=="function"?w(f):w;p(C);try{localStorage.setItem(o,C)}catch{}},[f]),S=U.useCallback(w=>{let C=wa(w);m(C),f==="system"&&r&&!e&&y("system")},[f,e]);U.useEffect(()=>{let w=window.matchMedia(p0);return w.addListener(S),S(w),()=>w.removeListener(S)},[S]),U.useEffect(()=>{let w=C=>{C.key===o&&(C.newValue?p(C.newValue):x(a))};return window.addEventListener("storage",w),()=>window.removeEventListener("storage",w)},[x]),U.useEffect(()=>{y(e??f)},[e,f]);let $=U.useMemo(()=>({theme:f,setTheme:x,forcedTheme:e,resolvedTheme:f==="system"?h:f,themes:r?[...i,"system"]:i,systemTheme:r?h:void 0}),[f,x,e,h,r,i]);return U.createElement(Nl.Provider,{value:$},U.createElement(FO,{forcedTheme:e,storageKey:o,attribute:s,enableSystem:r,enableColorScheme:n,defaultTheme:a,value:l,themes:i,nonce:u,scriptProps:g}),c)},FO=U.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:c})=>{let u=JSON.stringify([r,t,i,e,s,a,n,o]).slice(1,-1);return U.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${OO.toString()})(${u})`}})}),MO=(e,t)=>{if(IO)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},_O=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},wa=e=>(e||(e=window.matchMedia(p0)),e.matches?"dark":"light");function VO(e){return k.jsx(NO,{attribute:"class",disableTransitionOnChange:!0,...e})}function Ll(){const{resolvedTheme:e,setTheme:t}=AO();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function BO(e,t){const{colorMode:r}=Ll();return r==="light"?e:t}function WO(){const{colorMode:e}=Ll();return e==="light"?"Light Theme":"DarkTheme"}const KO=Yg({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function HO(e){var r;const t={};for(const n in e)(r=e[n])!=null&&r.value?t[n]=e[n].value:t[n]=e[n];return t}const jO=HO(pe.themeTokens.breakpoints),UO=Ug({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),GO={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},qO=Xg({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),YO=oe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),XO=oe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),ZO=oe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),zl=oe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),JO={avatar:Bh,button:fr,code:YO,heading:XO,kbd:ZO,link:Jv,tooltip:c0,textInput:zl},QO=rn.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...pe.themeTokens.color["system-palettes"],...pe.themeTokens.color["brand-palettes"],...pe.themeTokens.color["semantic-palettes"]}),eI=rn.shadows(pe.themeTokens.shadow),tI=rn.radii({}),rI={colors:QO,shadows:eI,radii:tI},nI=W({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),oI=W({className:"chakra-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),iI=W({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),aI=W({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),g0=W({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),sI=W({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),lI={dialog:nI,list:oI,table:iI,checkbox:aI,select:g0,accordion:sI},cI=qg(pe.themeTokens.textStyle),uI=Y.durations(pe.themeTokens.aspectRatio),dI=Y.animations(pe.themeTokens.animation),fI=Y.blurs(pe.themeTokens.blur),pI=Y.borders(pe.themeTokens.border),gI=Y.colors({...pe.themeTokens.color["blacks-and-whites"]}),hI=Y.durations(pe.themeTokens.duration),mI=Y.easings(pe.themeTokens.easing),vI=Y.fonts(pe.themeTokens.fontFamily),bI=Y.fontSizes(pe.themeTokens.fontSize),yI=Y.fontWeights(pe.themeTokens.fontWeight),xI=e=>Object.keys(e).reduce((t,r)=>{const o=parseFloat(e[r].value)/100;return t[r]={value:`${o}em`},t},{}),SI=Y.letterSpacings(xI(pe.themeTokens.letterSpacing)),wI=Y.lineHeights(pe.themeTokens.lineHeight),CI=Y.radii(pe.themeTokens.borderRadius),EI=Y.spacing(pe.themeTokens.spacing),PI=Y.sizes({...pe.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),$I=Y.zIndex(pe.themeTokens.zIndex),kI=Y.cursor(pe.themeTokens.cursor),TI={aspectRatios:uI,animations:dI,blurs:fI,borders:pI,colors:gI,durations:hI,easings:mI,fonts:vI,fontSizes:bI,fontWeights:yI,letterSpacings:SI,lineHeights:wI,radii:CI,spacing:EI,sizes:PI,zIndex:$I,cursor:kI},RI=il({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:UO,theme:{breakpoints:jO,keyframes:GO,tokens:TI,semanticTokens:rI,recipes:JO,slotRecipes:lI,textStyles:cI,layerStyles:qO,animationStyles:KO}}),h0=xh(eh,RI);function OI(){const[e,t]=d.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return d.useEffect(()=>{const n=document.documentElement,o=new MutationObserver(()=>{const i=r();t(i)});return o.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),e}function II({children:e,...t}){return k.jsx(Vy,{value:h0,children:k.jsx(VO,{enableSystem:!1,...t,children:k.jsx(k.Fragment,{children:e})})})}function Li(e){const t={},r={...e};return Object.keys(e).forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&Eh.isValidProperty(n)&&(t[n]=e[n],delete r[n])}),[t,r]}const{withProvider:DI,withContext:m0}=xt({key:"checkbox"}),AI=DI("label","root"),NI=m0("span","label"),LI=m0("span","indicator"),v0=d.forwardRef((e,t)=>{const r=d.useRef(null),n=Ue(Nt(r,t)),o=Si({key:"checkbox"}),[i]=o.splitVariantProps(e),[a,s]=Li(e),l=Pm(e),{inputProps:c}=K2(s,l,n),{isFocused:u,focusProps:g}=Qt(),f=l.isSelected&&!e.isIndeterminate,p=e.isIndeterminate,h={"data-selected":f,"data-indeterminate":p,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":u||void 0};return k.jsxs(AI,{"data-slot":"root",...i,...h,...a,children:[k.jsxs(LI,{"data-slot":"indicator",...h,children:[f&&k.jsx(Be.Check,{}),p&&k.jsx(Be.Remove,{}),k.jsx(Fl,{as:"span",children:k.jsx("input",{...K(c,g),ref:n})})]}),e.children&&k.jsx(NI,{"data-slot":"label",...h,children:e.children})]})});v0.displayName="Checkbox";const zi=d.forwardRef((e,t)=>k.jsx(p5,{ref:t,...e}));zi.displayName="Stack";const Fl=e=>{const{as:t="div",...r}=e;return k.jsx(km,{elementType:t,...r})};Fl.displayName="VisuallyHidden";const{withContext:zI}=rt({recipe:zl}),FI=zI("input"),b0=d.forwardRef((e,t)=>{const r=d.useRef(null),n=Ue(Nt(r,t)),o=tp({recipe:zl}),[i,a]=o.splitVariantProps(e),[s,l]=Li(a);return k.jsx(JR,{...l,children:k.jsx(FI,{ref:n,...i,...s,asChild:!0,children:k.jsx(YR,{})})})});b0.displayName="TextInput";const y0=d.forwardRef((e,t)=>k.jsx(rp,{ref:t,...e}));y0.displayName="Grid";const MI=Object.assign(y0,{Item:Th}),{withProvider:_I,withContext:Yn}=xt({key:"select"}),VI=_I("div","root"),BI=Yn("button","trigger"),WI=Yn("span","triggerLabel"),KI=Yn("div","options"),HI=Yn("div","option"),jI=Yn("div","optionGroup"),x0=()=>{const e=d.useContext(Dl);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return k.jsx(Gn,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:k.jsx(Be.Close,{})})};x0.displayName="Select.ClearButton";const Ml=d.forwardRef(({children:e,isLoading:t,isDisabled:r,...n},o)=>{const i=Si({recipe:g0}),[a,s]=i.splitVariantProps(n),[l,c]=Li(s),u={...c,isDisabled:t||r};return k.jsx(VI,{asChild:!0,ref:o,...a,...l,children:k.jsxs(bO,{...u,children:[k.jsxs(Re.div,{position:"relative",children:[k.jsx(BI,{zIndex:0,asChild:!0,children:k.jsx(zR,{children:k.jsx(WI,{asChild:!0,children:k.jsx(xO,{})})})}),k.jsxs(Pn,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[k.jsx(Pn,{width:"600",my:"auto",children:k.jsx(x0,{})}),k.jsx(Pn,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:k.jsx(kt,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?k.jsx(kt,{asChild:!0,animation:"spin",animationDuration:"slowest",children:k.jsx(Be.Loop,{})}):k.jsx(Be.KeyboardArrowDown,{})})})]})]}),k.jsx(o0,{children:e})]})})});Ml.displayName="Select.Root";const _l=e=>d.forwardRef(e),Vl=_l((e,t)=>{const[r,n]=Li(e);return k.jsx(KI,{asChild:!0,...r,children:k.jsx(aO,{ref:t,...n})})});Vl.displayName="Select.Options";const Bl=_l((e,t)=>k.jsx(HI,{asChild:!0,ref:t,children:k.jsx(cO,{...e})}));Bl.displayName="Select.Option";const Wl=_l(({label:e,items:t,children:r,...n},o)=>{if(t&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return k.jsxs(lO,{ref:o,...n,children:[k.jsx(jI,{asChild:!0,children:k.jsx(oO,{children:e})}),t?k.jsx(db,{items:t,children:i=>typeof r=="function"?r(i):null}):r]})});Wl.displayName="Select.OptionGroup";const UI={Root:Ml,Options:Vl,Option:Bl,OptionGroup:Wl},{withProvider:GI,withContext:Xn}=xt({key:"accordion"}),qI=GI("div","root"),YI=Xn("div","disclosure"),XI=Xn("button","trigger"),ZI=Xn("div","panel"),JI=Xn("div","accordionTitle"),hs=Xn("div","headerContentRight"),Kl=d.createContext(null),S0=d.createContext(null),QI=d.forwardRef(({children:e,onExpandedChange:t,...r},n)=>{const o=KR({...r,onExpandedChange:s=>{t==null||t(s.size>0)}}),i=Si({key:"accordion"}),[a]=i.splitVariantProps(r);return k.jsx(S0.Provider,{value:o,children:k.jsx(qI,{"data-slot":"root",ref:n,...a,children:e})})}),e6=d.forwardRef(({children:e},t)=>{const r=d.useContext(Kl);if(!r)throw new Error("Accordion.Header must be used within Accordion.Item");const n=d.Children.toArray(e).reduce((o,i)=>(d.isValidElement(i)&&i.type===hs?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return k.jsxs(Pn,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[k.jsxs(XI,{ref:Nt(r.triggerRef,t),...r.buttonProps,"data-slot":"trigger",outline:r.isFocusVisible?void 0:"none",children:[k.jsx(Be.KeyboardArrowRight,{}),k.jsx(JI,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&k.jsx(hs,{"data-slot":"headerContentRight",children:n.rightContent})]})}),t6=d.forwardRef((e,t)=>{const r=d.useContext(Kl),n=Ue(Nt(r==null?void 0:r.panelRef,t));return k.jsx(ZI,{ref:n,...kn({...r==null?void 0:r.panelProps,...e}),"data-slot":"panel",children:e.children})}),r6=d.forwardRef(({children:e,id:t,isDisabled:r,isExpanded:n,onExpandedChange:o,value:i},a)=>{const s=$e(),c=i||(t||s),u=d.useContext(S0),g=u?u.expandedKeys.has(c):n,f=WR({isExpanded:g,onExpandedChange:C=>{u&&u.toggleKey(c),o==null||o(C)}}),p=d.useRef(null),h=d.useRef(null),m=r||(u==null?void 0:u.isDisabled)||!1,{buttonProps:b,panelProps:y}=_T({isExpanded:f.isExpanded,isDisabled:m},f,p),{buttonProps:x}=Ti(b,h),{focusProps:S,isFocusVisible:$}=Qt(),w={isExpanded:f.isExpanded,triggerRef:h,panelRef:p,buttonProps:K(x,S),panelProps:y,isFocusVisible:$};return k.jsx(Kl.Provider,{value:w,children:k.jsx(YI,{"data-slot":"disclosure","data-value":c,"data-expanded":f.isExpanded,ref:a,children:e})})}),n6={Root:QI,Item:r6,Header:e6,Content:t6,HeaderRightContent:hs},o6=oe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:i6}=rt({recipe:o6}),a6=i6("div"),s6="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",l6="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",w0=d.forwardRef(({"aria-label":e="Loading data",...t},r)=>{const{progressBarProps:n}=VT({isIndeterminate:!0,"aria-label":e,...t});return k.jsx(a6,{ref:r,...K(t,n),"aria-label":e,children:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[k.jsx("path",{d:s6,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),k.jsx("path",{d:l6,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});w0.displayName="LoadingSpinner";const c6=W({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:u6,withContext:C0}=xt({recipe:c6}),d6=u6("div","root"),f6=C0("div","header"),p6=C0("div","content"),Hl=d.createContext(void 0),jl=d.forwardRef(({children:e,...t},r)=>{const{isFocused:n,isFocusVisible:o,focusProps:i}=Qt(),[a,s]=d.useState(null),[l,c]=d.useState(null),u=d.useMemo(()=>({setHeader:s,setContent:c}),[s,c]);return k.jsx(Hl.Provider,{value:u,children:k.jsxs(d6,{ref:r,...K(t,i),"data-focus":n||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[k.jsxs(zi,{direction:"column",gap:"200",children:[a,l]}),e]})})});jl.displayName="Card.Root";const Ul=({children:e,...t})=>{const r=d.useContext(Hl);return d.useEffect(()=>{if(r){const n=k.jsx(f6,{...t,children:e});return r.setHeader(n),()=>r.setHeader(null)}},[e,t]),null};Ul.displayName="Card.Header";const Gl=({children:e,...t})=>{const r=d.useContext(Hl);return d.useEffect(()=>{if(r){const n=k.jsx(p6,{...t,children:e});return r.setContent(n),()=>r.setContent(null)}},[e,t]),null};Gl.displayName="Card.Content";const g6={Root:jl,Header:Ul,Content:Gl},h6=oe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:m6}=rt({recipe:h6}),v6=m6("span"),b6=d.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=d.useRef(null),s=Ue(Nt(a,t)),l=r||"span";return k.jsx(v6,{as:l,...K(i,{ref:s}),children:o})}),y6=W({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:x6,withContext:Zn}=xt({recipe:y6}),S6=x6("div","root"),w6=Zn("div","title"),C6=Zn("div","description"),E6=Zn("div","icon"),P6=Zn("div","actions"),$6=Zn("div","dismissButton"),k6=e=>{switch(e){case"critical":return k.jsx(Be.ErrorOutline,{});case"info":return k.jsx(Be.Info,{});case"warning":return k.jsx(Be.WarningAmber,{});case"positive":return k.jsx(Be.CheckCircleOutline,{});default:return null}},Jn=d.createContext(void 0),E0=d.forwardRef(({children:e,...t},r)=>{const[n,o]=d.useState(null),[i,a]=d.useState(null),[s,l]=d.useState(null),[c,u]=d.useState(null),g=d.useMemo(()=>({setTitle:o,setDescription:a,setActions:l,setDismiss:u}),[o,a,l,u]);return k.jsx(Jn.Provider,{value:g,children:k.jsxs(S6,{ref:r,...t,role:"alert",children:[k.jsx(E6,{alignItems:"flex-start",children:k6(t.tone)}),k.jsxs(zi,{flex:"1",gap:"200",children:[k.jsxs(kt,{children:[n,i]}),s]}),c,e]})})});E0.displayName="Alert.Root";const P0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx(w6,{...t,fontWeight:"600",children:e});return r.setTitle(n),()=>r.setTitle(null)}},[e,t]),null};P0.displayName="Alert.Title";const $0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx(C6,{...t,children:e});return r.setDescription(n),()=>r.setDescription(null)}},[e,t]),null};$0.displayName="Alert.Description";const k0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx(P6,{...t,children:e});return r.setActions(n),()=>r.setActions(null)}},[e,t]),null};k0.displayName="Alert.Actions";const T0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx($6,{children:k.jsx(Gn,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:k.jsx(Be.Clear,{role:"img"})})});return r.setDismiss(n),()=>r.setDismiss(null)}},[e,t]),null};T0.displayName="Alert.DismissButton";const T6={Root:E0,Title:P0,Description:$0,Actions:k0,DismissButton:T0};var zf,Ff,Mf,_f;const R6=W({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...fr.base,...(zf=fr.variants)==null?void 0:zf.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Ff=fr.variants)==null?void 0:Ff.variant.solid}},variants:{size:{xs:{button:(Mf=fr.variants)==null?void 0:Mf.size.xs},md:{button:(_f=fr.variants)==null?void 0:_f.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:O6,withProvider:I6}=xt({recipe:R6}),D6=I6(wO,"root"),A6=O6(EO,"button"),ql=d.forwardRef(({children:e,...t},r)=>k.jsx(D6,{ref:r,...t,children:e}));ql.displayName="ToggleButtonGroup.Root";const Yl=d.forwardRef(({children:e,...t},r)=>k.jsx(A6,{...t,ref:r,children:e}));Yl.displayName="ToggleButtonGroup.Button";const N6={Root:ql,Button:Yl},L6=`
17
+ */var Po;function df(){return Po||(Po=1,process.env.NODE_ENV!=="production"&&function(){function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}function e(f,h){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!p){var y=h();i(m,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}y=l({inst:{value:m,getSnapshot:h}});var $=y[0].inst,C=y[1];return u(function(){$.value=m,$.getSnapshot=h,r($)&&C({inst:$})},[f,m,h]),s(function(){return r($)&&C({inst:$}),f(function(){r($)&&C({inst:$})})},[f]),c(m),m}function r(f){var h=f.getSnapshot;f=f.value;try{var m=h();return!i(f,m)}catch{return!0}}function n(f,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:t,l=o.useState,s=o.useEffect,u=o.useLayoutEffect,c=o.useDebugValue,d=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;xr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),xr}var So;function ff(){return So||(So=1,process.env.NODE_ENV==="production"?Kt.exports=cf():Kt.exports=df()),Kt.exports}var pf=ff();const ra=a.createContext(!1),bt=a.createContext(null);function na(t){if(a.useContext(bt))return t.content;let{collection:r,document:n}=gf(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(af,null,a.createElement(bt.Provider,{value:n},t.content)),a.createElement(vf,{render:t.children,collection:r}))}function vf({collection:t,render:e}){return e(t)}function bf(t,e,r){let n=we(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?r():e(),[e,r]);return pf.useSyncExternalStore(t,i)}const hf=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:bf;function gf(t){let[e]=a.useState(()=>new of((t==null?void 0:t())||new pn)),r=a.useCallback(l=>e.subscribe(l),[e]),n=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),i=hf(r,n,o);return z(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:i,document:e}}const Wr=a.createContext(null);function oa(t,e,r,n,o,i){let l=a.useCallback(u=>{u==null||u.setProps(e,r,n,i)},[e,r,n,i]),s=a.useContext(Wr);if(s){let u=s.ownerDocument.nodesByProps.get(e);return u||(u=s.ownerDocument.createElement(t),u.setProps(e,r,n,i),s.appendChild(u),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,u)),o?a.createElement(Wr.Provider,{value:u},o):null}return a.createElement(t,{ref:l},o)}function ia(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{if(!a.useContext(ra)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return oa(t,o,i,"children"in o?o.children:null,null,s=>a.createElement(r,{node:s}))});return n.displayName=e.name,n}function mf(t,e,r=la){let n=({node:i})=>e(i.props,i.props.ref,i),o=a.forwardRef((i,l)=>{let s=r(i);var u;return(u=oa(t,i,l,null,s,c=>a.createElement(n,{node:c})))!==null&&u!==void 0?u:a.createElement(a.Fragment,null)});return o.displayName=e.name,o}function la(t){return ea({...t,addIdAndValue:!0})}const Co=a.createContext(null);function aa(t){let e=a.useContext(Co),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope||(e==null?void 0:e.idScope),o=la({...t,idScope:n,dependencies:r});return a.useContext(bt)&&(o=a.createElement(yf,null,o)),e=a.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),a.createElement(Co.Provider,{value:e},o)}function yf({children:t}){let e=a.useContext(bt),r=a.useMemo(()=>a.createElement(bt.Provider,{value:null},a.createElement(ra.Provider,{value:!0},t)),[t]);return we()?a.createElement(Wr.Provider,{value:e},r):Ne.createPortal(r,e)}const sa=a.createContext({}),$f=a.createContext(null),xf=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),vn=a.createContext({}),Pf=ta(function(e,r){[e,r]=re(e,r,vn),e=Sf(e);let n=e,{isPending:o}=n,{buttonProps:i,isPressed:l}=Yt(e,r),{focusProps:s,isFocused:u,isFocusVisible:c}=Te(e),{hoverProps:d,isHovered:p}=ze({...e,isDisabled:e.isDisabled||o}),v={isHovered:p,isPressed:(n.isPressed||l)&&!o,isFocused:u,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:o??!1},f=J({...e,values:v,defaultClassName:"react-aria-Button"}),h=Z(i.id),m=Z(),y=i["aria-labelledby"];o&&(y?y=`${y} ${m}`:i["aria-label"]&&(y=`${h} ${m}`));let $=a.useRef(o);return a.useEffect(()=>{let C={"aria-labelledby":y||h};(!$.current&&u&&o||$.current&&u&&!o)&&no(C,"assertive"),$.current=o},[o,u,y,h]),a.createElement("button",{...G(e,{propNames:xf}),...B(i,s,d),...f,type:i.type==="submit"&&o?"button":i.type,id:h,ref:r,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":p||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},a.createElement($f.Provider,{value:{id:m}},f.children))});function Sf(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Jt=a.createContext({}),ua=a.createContext(null);class wo{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}getChildren(e){let r=this.keyMap.get(e);return(r==null?void 0:r.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let s of l.childNodes)r(s)};for(let l of e)r(l);let n=null,o=0;for(let[l,s]of this.keyMap)n?(n.nextKey=l,s.prevKey=n.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}}class se extends Set{constructor(e,r,n){super(e),e instanceof se?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function Cf(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function wf(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),u=a.useRef(null),c=a.useRef(null),[,d]=a.useState(null),p=a.useMemo(()=>Eo(t.selectedKeys),[t.selectedKeys]),v=a.useMemo(()=>Eo(t.defaultSelectedKeys,new se),[t.defaultSelectedKeys]),[f,h]=Ee(p,v,t.onSelectionChange),m=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=a.useState(o);o==="replace"&&y==="toggle"&&typeof f=="object"&&f.size===0&&$("replace");let C=a.useRef(o);return a.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(w){l.current=w,s(w)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(w,K="first"){u.current=w,c.current=K,d(w)},selectedKeys:f,setSelectedKeys(w){(n||!Cf(w,f))&&h(w)},disabledKeys:m,disabledBehavior:i}}function Eo(t,e){return t?t==="all"?"all":new se(t):e}class Ef{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!e||o&&yr(this.collection,o,e)<0)&&(e=o)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!e||o&&yr(this.collection,o,e)>0)&&(e=o)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new se([r],r,r);else{let l=this.state.selectedKeys;var o;let s=(o=l.anchorKey)!==null&&o!==void 0?o:r;n=new se(l,s,r);var i;for(let u of this.getKeyRange(s,(i=l.currentKey)!==null&&i!==void 0?i:r))n.delete(u);for(let u of this.getKeyRange(r,s))this.canSelectItem(u)&&n.add(u)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),o=this.collection.getItem(r);return n&&o?yr(this.collection,n,o)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);let o=[],i=e;for(;i!=null;){let l=this.collection.getItem(i);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new se(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new se([r],r,r):new se;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new se;for(let n of e){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let l=this.collection.getItem(n);(l==null?void 0:l.type)==="item"&&e.push(n);var i;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&r((i=(o=fd(dl(l,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new se)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(e){var r,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))===null||r===void 0?void 0:r.props}constructor(e,r,n){this.collection=e,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function ca(t){let{filter:e,layoutDelegate:r}=t,n=wf(t),o=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),i=a.useCallback(d=>e?new wo(e(d)):new wo(d),[e]),l=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=dd(t,i,l),u=a.useMemo(()=>new Ef(s,n,{layoutDelegate:r}),[s,n,r]);const c=a.useRef(null);return a.useEffect(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)&&c.current){const $=c.current.getItem(n.focusedKey),C=[...c.current.getKeys()].map(b=>{const R=c.current.getItem(b);return(R==null?void 0:R.type)==="item"?R:null}).filter(b=>b!==null),w=[...s.getKeys()].map(b=>{const R=s.getItem(b);return(R==null?void 0:R.type)==="item"?R:null}).filter(b=>b!==null);var d,p;const K=((d=C==null?void 0:C.length)!==null&&d!==void 0?d:0)-((p=w==null?void 0:w.length)!==null&&p!==void 0?p:0);var v,f,h;let k=Math.min(K>1?Math.max(((v=$==null?void 0:$.index)!==null&&v!==void 0?v:0)-K+1,0):(f=$==null?void 0:$.index)!==null&&f!==void 0?f:0,((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0)-1),E=null,A=!1;for(;k>=0;){if(!u.isDisabled(w[k].key)){E=w[k];break}if(k<w.length-1&&!A)k++;else{A=!0;var m,y;k>((m=$==null?void 0:$.index)!==null&&m!==void 0?m:0)&&(k=(y=$==null?void 0:$.index)!==null&&y!==void 0?y:0),k--}}n.setFocusedKey(E?E.key:null)}c.current=s},[s,u,n,n.focusedKey]),{collection:s,disabledKeys:o,selectionManager:u}}function Tf(t){var e;let[r,n]=Ee(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),o=a.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:l,selectionManager:s}=ca({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{if(c==="all")return;var d;let p=(d=c.values().next().value)!==null&&d!==void 0?d:null;p===r&&t.onSelectionChange&&t.onSelectionChange(p),n(p)}}),u=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:l,selectionManager:s,selectedKey:r,setSelectedKey:n,selectedItem:u}}function Qt(t){let[e,r]=Ee(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=a.useCallback(()=>{r(!0)},[r]),o=a.useCallback(()=>{r(!1)},[r]),i=a.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:o,toggle:i}}function Df(t){let[e,r]=Ee(t.isExpanded,t.defaultExpanded||!1,t.onExpandedChange);const n=a.useCallback(()=>{r(!0)},[r]),o=a.useCallback(()=>{r(!1)},[r]),i=a.useCallback(()=>{r(!e)},[r,e]);return{isExpanded:e,setExpanded:r,expand:n,collapse:o,toggle:i}}function kf(t){let{allowsMultipleExpanded:e=!1,isDisabled:r=!1}=t,[n,o]=Ee(a.useMemo(()=>t.expandedKeys?new Set(t.expandedKeys):void 0,[t.expandedKeys]),a.useMemo(()=>t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,[t.defaultExpandedKeys]),t.onExpandedChange);return a.useEffect(()=>{!e&&n.size>1&&o(new Set([n.values().next().value]))}),{allowsMultipleExpanded:e,isDisabled:r,expandedKeys:n,setExpandedKeys:o,toggleKey(i){let l;e?(l=new Set(n),l.has(i)?l.delete(i):l.add(i)):l=new Set(n.has(i)?[]:[i]),o(l)}}}function Rf(t){let e=Qt(t),[r,n]=a.useState(null),[o,i]=a.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:r,...e,open(c=null){n(c),e.open()},toggle(c=null){n(c),e.toggle()},close(){l()},expandedKeysStack:o,openSubmenu:(c,d)=>{i(p=>d>p.length?p:[...p.slice(0,d),c])},closeSubmenu:(c,d)=>{i(p=>p[d]===c?p.slice(0,d):p)}}}function Kf(t){let e=Qt(t),[r,n]=a.useState(null),o=Tf({...t,onSelectionChange:u=>{t.onSelectionChange!=null&&t.onSelectionChange(u),e.close(),i.commitValidation()}}),i=on({...t,value:o.selectedKey}),[l,s]=a.useState(!1);return{...i,...o,...e,focusStrategy:r,open(u=null){o.collection.size!==0&&(n(u),e.open())},toggle(u=null){o.collection.size!==0&&(n(u),e.toggle())},isFocused:l,setFocused:s}}const Lf=1500,To=500;let Re={},Mf=0,ot=!1,pe=null,Ke=null;function da(t={}){let{delay:e=Lf,closeDelay:r=To}=t,{isOpen:n,open:o,close:i}=Qt(t),l=a.useMemo(()=>`${++Mf}`,[]),s=a.useRef(null),u=a.useRef(i),c=()=>{Re[l]=v},d=()=>{for(let h in Re)h!==l&&(Re[h](!0),delete Re[h])},p=()=>{s.current&&clearTimeout(s.current),s.current=null,d(),c(),ot=!0,o(),pe&&(clearTimeout(pe),pe=null),Ke&&(clearTimeout(Ke),Ke=null)},v=h=>{h||r<=0?(s.current&&clearTimeout(s.current),s.current=null,u.current()):s.current||(s.current=setTimeout(()=>{s.current=null,u.current()},r)),pe&&(clearTimeout(pe),pe=null),ot&&(Ke&&clearTimeout(Ke),Ke=setTimeout(()=>{delete Re[l],Ke=null,ot=!1},Math.max(To,r)))},f=()=>{d(),c(),!n&&!pe&&!ot?pe=setTimeout(()=>{pe=null,ot=!0,p()},e):n||p()};return a.useEffect(()=>{u.current=i},[i]),a.useEffect(()=>()=>{s.current&&clearTimeout(s.current),Re[l]&&delete Re[l]},[l]),{isOpen:n,open:h=>{!h&&e>0&&!s.current?f():p()},close:v}}const fa=a.createContext(null),_r=a.createContext({});let Ff=t=>{let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,...o}=t;return o};const Af=ta(function(e,r){[e,r]=re(e,r,_r);let{hoverProps:n,isHovered:o}=ze(e),{isFocused:i,isFocusVisible:l,focusProps:s}=Te({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=J({...e,values:{isHovered:o,isFocused:i,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return a.createElement("input",{...B(Ff(e),s,n),...c,ref:r,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),If=a.createContext({}),Bf=a.createContext(null),Nf=a.forwardRef(function(e,r){[e,r]=re(e,r,Bf);let{validationBehavior:n}=Xt(fa)||{};var o,i;let l=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=a.useRef(null),[u,c]=re({},s,_r),[d,p]=dn(),[v,f]=a.useState("input"),{labelProps:h,inputProps:m,descriptionProps:y,errorMessageProps:$,...C}=Ec({...Jl(e),inputElementType:v,label:p,validationBehavior:l},c),w=a.useCallback(E=>{c.current=E,E&&f(E instanceof HTMLTextAreaElement?"textarea":"input")},[c]),K=J({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:C.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),k=G(e);return delete k.id,a.createElement("div",{...k,...K,ref:r,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":C.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(Ve,{values:[[sa,{...h,ref:d}],[_r,{...B(m,u),ref:w}],[If,{...m,ref:w}],[Jt,{slots:{description:y,errorMessage:$}}],[ua,C]]},K.children))}),Of=a.createContext(null),zf=a.createContext(null),Hf={CollectionRoot({collection:t,renderDropIndicator:e}){return Do(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return Do(t,e,r)}};function Do(t,e,r){return ea({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){var o;let i=n.render(n);if(!r||n.type!=="item")return i;let l=n.key,s=t.getKeyAfter(l);return a.createElement(a.Fragment,null,r({type:"item",key:l,dropPosition:"before"}),i,(s==null||((o=t.getItem(s))===null||o===void 0?void 0:o.type)!=="item")&&r({type:"item",key:l,dropPosition:"after"}))}})}const bn=a.createContext(Hf);var pa={};pa={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var va={};va={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var ba={};ba={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var ha={};ha={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var ga={};ga={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var ma={};ma={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var ya={};ya={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var $a={};$a={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var xa={};xa={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var Pa={};Pa={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Sa={};Sa={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Ca={};Ca={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var wa={};wa={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Ea={};Ea={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var Ta={};Ta={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Da={};Da={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var ka={};ka={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Ra={};Ra={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Ka={};Ka={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var La={};La={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Ma={};Ma={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Fa={};Fa={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var Aa={};Aa={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Ia={};Ia={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Ba={};Ba={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Na={};Na={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Oa={};Oa={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var za={};za={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Ha={};Ha={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Va={};Va={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var ja={};ja={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Wa={};Wa={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var _a={};_a={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Ua={};Ua={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Ga={};Ga={"ar-AE":pa,"bg-BG":va,"cs-CZ":ba,"da-DK":ha,"de-DE":ga,"el-GR":ma,"en-US":ya,"es-ES":$a,"et-EE":xa,"fi-FI":Pa,"fr-FR":Sa,"he-IL":Ca,"hr-HR":wa,"hu-HU":Ea,"it-IT":Ta,"ja-JP":Da,"ko-KR":ka,"lt-LT":Ra,"lv-LV":Ka,"nb-NO":La,"nl-NL":Ma,"pl-PL":Fa,"pt-BR":Aa,"pt-PT":Ia,"ro-RO":Ba,"ru-RU":Na,"sk-SK":Oa,"sl-SI":za,"sr-SP":Ha,"sv-SE":Va,"tr-TR":ja,"uk-UA":Wa,"zh-CN":_a,"zh-TW":Ua};const er=a.createContext({}),qa=a.createContext(null),Vf=a.forwardRef(function(e,r){let{render:n}=a.useContext(qa);return a.createElement(a.Fragment,null,n(e,r))});function Ya(t,e){var r;let n=t==null?void 0:t.renderDropIndicator,o=t==null||(r=t.isVirtualDragging)===null||r===void 0?void 0:r.call(t),i=a.useCallback(l=>{if(o||e!=null&&e.isDropTarget(l))return n?n(l):a.createElement(Vf,{target:l})},[e==null?void 0:e.target,o,n]);return t!=null&&t.useDropIndicator?i:void 0}function jf(t,e,r){var n,o;let i=t.focusedKey,l=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"){l=r.target.key;var s;r.target.dropPosition==="after"&&(l=(s=r.collection.getKeyAfter(l))!==null&&s!==void 0?s:l)}return a.useMemo(()=>new Set([i,l].filter(u=>u!=null)),[i,l])}const Za=a.createContext({}),Wf=ia("header",function(e,r){return[e,r]=re(e,r,Za),a.createElement("header",{className:"react-aria-Header",...e,ref:r},e.children)}),_f=a.createContext({}),hn=a.createContext(null),gt=a.createContext(null),Uf=a.forwardRef(function(e,r){[e,r]=re(e,r,hn);let n=a.useContext(gt);return n?a.createElement(Xa,{state:n,props:e,listBoxRef:r}):a.createElement(na,{content:a.createElement(aa,e)},o=>a.createElement(Gf,{props:e,listBoxRef:r,collection:o}))});function Gf({props:t,listBoxRef:e,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:n}=a.useContext(bn),{filterFn:o,collectionProps:i,collectionRef:l}=a.useContext(Of)||{};e=ne(a.useMemo(()=>zo(e,l!==void 0?l:null),[l,e]));let s=a.useMemo(()=>o?r.filter(o):r,[r,o]),u=ca({...t,collection:s,layoutDelegate:n});return a.createElement(Xa,{state:u,props:{...t,...i},listBoxRef:e})}function Xa({state:t,props:e,listBoxRef:r}){let{dragAndDropHooks:n,layout:o="stack",orientation:i="vertical"}=e,{collection:l,selectionManager:s}=t,u=!!(n!=null&&n.useDraggableCollectionState),c=!!(n!=null&&n.useDroppableCollectionState),{direction:d}=He(),{disabledBehavior:p,disabledKeys:v}=s,f=nn({usage:"search",sensitivity:"base"}),{isVirtualized:h,layoutDelegate:m,dropTargetDelegate:y,CollectionRoot:$}=a.useContext(bn),C=a.useMemo(()=>e.keyboardDelegate||new cn({collection:l,collator:f,ref:r,disabledKeys:v,disabledBehavior:p,layout:o,orientation:i,direction:d,layoutDelegate:m}),[l,f,r,p,v,i,d,e.keyboardDelegate,o,m]),{listBoxProps:w}=sd({...e,shouldSelectOnPressUp:u||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:h},t,r),K=a.useRef(u),k=a.useRef(c);a.useEffect(()=>{K.current!==u&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),k.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[u,c]);let E,A,b,R=!1,L=null,T=a.useRef(null);if(u&&n){E=n.useDraggableCollectionState({collection:l,selectionManager:s,preview:n.renderDragPreview?T:void 0}),n.useDraggableCollection({},E,r);let D=n.DragPreview;L=n.renderDragPreview?a.createElement(D,{ref:T},n.renderDragPreview):null}if(c&&n){A=n.useDroppableCollectionState({collection:l,selectionManager:s});let D=n.dropTargetDelegate||y||new n.ListDropTargetDelegate(l,r,{orientation:i,layout:o,direction:d});b=n.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:D},A,r),R=A.isDropTarget({type:"root"})}let{focusProps:F,isFocused:g,isFocusVisible:x}=Te(),M={isDropTarget:R,isEmpty:t.collection.size===0,isFocused:g,isFocusVisible:x,layout:e.layout||"stack",state:t},N=J({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:M}),O=null;return t.collection.size===0&&e.renderEmptyState&&(O=a.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(M))),a.createElement(di,null,a.createElement("div",{...G(e),...B(w,F,b==null?void 0:b.collectionProps),...N,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":R||void 0,"data-empty":t.collection.size===0||void 0,"data-focused":g||void 0,"data-focus-visible":x||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},a.createElement(Ve,{values:[[hn,e],[gt,t],[er,{dragAndDropHooks:n,dragState:E,dropState:A}],[_f,{elementType:"div"}],[qa,{render:Zf}],[zf,{name:"ListBoxSection",render:Ja}]]},a.createElement($,{collection:l,scrollRef:r,persistedKeys:jf(s,n,A),renderDropIndicator:Ya(n,A)})),O,L))}function Ja(t,e,r,n="react-aria-ListBoxSection"){let o=a.useContext(gt),{dragAndDropHooks:i,dropState:l}=a.useContext(er),{CollectionBranch:s}=a.useContext(bn),[u,c]=dn();var d;let{headingProps:p,groupProps:v}=hd({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),f=J({defaultClassName:n,className:t.className,style:t.style,values:{}});return a.createElement("section",{...G(t),...v,...f,ref:e},a.createElement(Za.Provider,{value:{...p,ref:u}},a.createElement(s,{collection:o.collection,parent:r,renderDropIndicator:Ya(i,l)})))}const qf=mf("section",Ja),Yf=ia("item",function(e,r,n){let o=ne(r),i=a.useContext(gt),{dragAndDropHooks:l,dragState:s,dropState:u}=a.useContext(er),{optionProps:c,labelProps:d,descriptionProps:p,...v}=bd({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},i,o),{hoverProps:f,isHovered:h}=ze({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=null;s&&l&&(m=l.useDraggableItem({key:n.key},s));let y=null;u&&l&&(y=l.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},u,o));let $=s&&s.isDragging(n.key),C=J({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:$,isDropTarget:y==null?void 0:y.isDropTarget}});a.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let w=e.href?"a":"div";return a.createElement(w,{...B(c,f,m==null?void 0:m.dragProps,y==null?void 0:y.dropProps),...C,ref:o,"data-allows-dragging":!!s||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":$||void 0,"data-drop-target":(y==null?void 0:y.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},a.createElement(Ve,{values:[[Jt,{slots:{label:d,description:p}}]]},C.children))});function Zf(t,e){e=ne(e);let{dragAndDropHooks:r,dropState:n}=a.useContext(er),{dropIndicatorProps:o,isHidden:i,isDropTarget:l}=r.useDropIndicator(t,n,e);return i?null:a.createElement(Jf,{...t,dropIndicatorProps:o,isDropTarget:l,ref:e})}function Xf(t,e){let{dropIndicatorProps:r,isDropTarget:n,...o}=t,i=J({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return a.createElement("div",{...r,...i,role:"option",ref:e,"data-drop-target":n||void 0})}const Jf=a.forwardRef(Xf),Qa=a.createContext({placement:"bottom"}),gn=a.createContext(null),es=a.forwardRef(function(e,r){[e,r]=re(e,r,gn);let n=a.useContext(tr),o=Qt(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?o:n,l=Xo(r,i.isOpen)||e.isExiting||!1;if(sf()){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,u)}return i&&!i.isOpen&&!l?null:a.createElement(Qf,{...e,triggerRef:e.triggerRef,state:i,popoverRef:r,isExiting:l})});function Qf({state:t,isExiting:e,UNSTABLE_portalContainer:r,...n}){let o=a.useRef(null),[i,l]=a.useState(0);z(()=>{o.current&&t.isOpen&&l(o.current.getBoundingClientRect().width)},[t.isOpen,o]);var s;let{popoverProps:u,underlayProps:c,arrowProps:d,placement:p}=Zc({...n,offset:(s=n.offset)!==null&&s!==void 0?s:8,arrowSize:i},t),v=n.popoverRef,f=Zo(v,!!p)||n.isEntering||!1,h=J({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:p,isEntering:f,isExiting:e}}),m={...u.style,...h.style};return a.createElement(Qc,{...n,isExiting:e,portalContainer:r},!n.isNonModal&&t.isOpen&&a.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),a.createElement("div",{...B(G(n),u),...h,ref:v,slot:n.slot||void 0,style:m,"data-trigger":n.trigger,"data-placement":p,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&a.createElement(vo,{onDismiss:t.close}),a.createElement(Qa.Provider,{value:{...d,placement:p,ref:o}},h.children),a.createElement(vo,{onDismiss:t.close})))}const ep=a.createContext(null),ts=a.createContext(null),tr=a.createContext(null);function tp(t){let e=Rf(t),r=a.useRef(null),{triggerProps:n,overlayProps:o}=Ti({type:"dialog"},e,r);return n.id=Z(),o["aria-labelledby"]=n.id,a.createElement(Ve,{values:[[tr,e],[ep,e],[ts,o],[gn,{trigger:"DialogTrigger",triggerRef:r}]]},a.createElement(Su,{...n,ref:r,isPressed:e.isOpen},t.children))}const rp=a.forwardRef(function(e,r){let n=e["aria-labelledby"];[e,r]=re(e,r,ts);let{dialogProps:o,titleProps:i}=yd({...e,"aria-labelledby":n},r),l=a.useContext(tr);!o["aria-label"]&&!o["aria-labelledby"]&&(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=J({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return a.createElement("section",{...G(e),...o,...s,ref:r,slot:e.slot||void 0},a.createElement(Ve,{values:[[nf,{slots:{[Ht]:{},title:{...i,level:2}}}],[vn,{slots:{[Ht]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))});function np(t){return t&&t.__esModule?t.default:t}const mn=a.createContext(null),yn=a.createContext(null),op=a.forwardRef(function(e,r){[e,r]=re(e,r,mn);let{children:n,isDisabled:o=!1,isInvalid:i=!1,isRequired:l=!1}=e,s=a.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,o,i,l]);return a.createElement(na,{content:s},u=>a.createElement(ip,{props:e,collection:u,selectRef:r}))});function ip({props:t,selectRef:e,collection:r}){let{validationBehavior:n}=Xt(fa)||{};var o,i;let l=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=Kf({...t,collection:r,children:void 0,validationBehavior:l}),{isFocusVisible:u,focusProps:c}=Te({within:!0}),d=a.useRef(null),[p,v]=dn(),{labelProps:f,triggerProps:h,valueProps:m,menuProps:y,descriptionProps:$,errorMessageProps:C,...w}=Pd({...Jl(t),label:v,validationBehavior:l},s,d),[K,k]=a.useState(null),E=a.useCallback(()=>{d.current&&k(d.current.offsetWidth+"px")},[d]);Tr({ref:d,onResize:E});let A=a.useMemo(()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:u,isDisabled:t.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:t.isRequired||!1}),[s.isOpen,s.isFocused,u,t.isDisabled,w.isInvalid,t.isRequired]),b=J({...t,values:A,defaultClassName:"react-aria-Select"}),R=G(t);delete R.id;let L=a.useRef(null);return a.createElement(Ve,{values:[[mn,t],[yn,s],[rs,m],[sa,{...f,ref:p,elementType:"span"}],[vn,{...h,ref:d,isPressed:s.isOpen}],[tr,s],[gn,{trigger:"Select",triggerRef:d,scrollRef:L,placement:"bottom start",style:{"--trigger-width":K}}],[hn,{...y,ref:L}],[gt,s],[Jt,{slots:{description:$,errorMessage:C}}],[ua,w]]},a.createElement("div",{...R,...b,...c,ref:e,slot:t.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":u||void 0,"data-open":s.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":t.isRequired||void 0}),a.createElement(Cd,{autoComplete:t.autoComplete,state:s,triggerRef:d,label:v,name:t.name,isDisabled:t.isDisabled}))}const rs=a.createContext(null),lp=a.forwardRef(function(e,r){var n,o;[e,r]=re(e,r,rs);let i=a.useContext(yn),{placeholder:l}=Xt(mn),s=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,u=s==null?void 0:s.props.children;typeof u=="function"&&(u=u({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=rn(np(Ga),"react-aria-components");var d,p,v;let f=J({...e,defaultChildren:(d=u??l)!==null&&d!==void 0?d:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(p=(n=i.selectedItem)===null||n===void 0?void 0:n.value)!==null&&p!==void 0?p:null,selectedText:(v=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&v!==void 0?v:null,isPlaceholder:!s}}),h=G(e);return a.createElement("span",{ref:r,...h,...f,"data-placeholder":!s||void 0},a.createElement(Jt.Provider,{value:void 0},f.children))}),ap=a.createContext({}),ns=a.createContext(null),sp=a.forwardRef(function(e,r){[e,r]=re(e,r,ap);let n=wc(e),{groupProps:o}=vc(e,n,r),i=J({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return a.createElement("div",{...o,...i,ref:r,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(ns.Provider,{value:n},i.children))}),up=a.createContext({}),cp=a.forwardRef(function(e,r){[e,r]=re(e,r,up);let n=a.useContext(ns),o=xi(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(m){n.setSelected(e.id,m)}}:e),{buttonProps:i,isPressed:l,isSelected:s,isDisabled:u}=n&&e.id!=null?bc({...e,id:e.id},n,r):gi({...e,id:e.id!=null?String(e.id):void 0},o,r),{focusProps:c,isFocused:d,isFocusVisible:p}=Te(e),{hoverProps:v,isHovered:f}=ze(e),h=J({...e,id:void 0,values:{isHovered:f,isPressed:l,isFocused:d,isSelected:o.isSelected,isFocusVisible:p,isDisabled:u,state:o},defaultClassName:"react-aria-ToggleButton"});return a.createElement("button",{...B(i,c,v),...h,ref:r,slot:e.slot||void 0,"data-focused":d||void 0,"data-disabled":u||void 0,"data-pressed":l||void 0,"data-selected":s||void 0,"data-hovered":f||void 0,"data-focus-visible":p||void 0})}),$n=a.createContext(null),os=a.createContext(null);function dp(t){let e=da(t),r=a.useRef(null),{triggerProps:n,tooltipProps:o}=Ed(t,e,r);return a.createElement(Ve,{values:[[$n,e],[os,{...o,triggerRef:r}]]},a.createElement(qu,{...n,ref:r},t.children))}const fp=a.forwardRef(function({UNSTABLE_portalContainer:e,...r},n){[r,n]=re(r,n,os);let o=a.useContext($n),i=da(r),l=r.isOpen!=null||r.defaultOpen!=null||!o?i:o,s=Xo(n,l.isOpen)||r.isExiting||!1;return!l.isOpen&&!s?null:a.createElement(Gc,{portalContainer:e},a.createElement(pp,{...r,tooltipRef:n,isExiting:s}))});function pp(t){let e=a.useContext($n),r=a.useRef(null),[n,o]=a.useState(0);z(()=>{r.current&&e.isOpen&&o(r.current.getBoundingClientRect().width)},[e.isOpen,r]);let{overlayProps:i,arrowProps:l,placement:s}=Ei({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowSize:n,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>e.close(!0)}),u=Zo(t.tooltipRef,!!s)||t.isEntering||!1,c=J({...t,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:u,isExiting:t.isExiting,state:e}});t=B(t,i);let{tooltipProps:d}=wd(t,e);return a.createElement("div",{...d,ref:t.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":s??void 0,"data-entering":u||void 0,"data-exiting":t.isExiting||void 0},a.createElement(Qa.Provider,{value:{...l,placement:s,ref:r}},c.children))}const is=S.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:vp}=S.createRecipeContext({recipe:is}),bp=vp("div"),ls=a.forwardRef(function({children:e,placement:r="bottom",...n},o){return P.jsx(bp,{ref:o,asChild:!0,...n,children:P.jsx(fp,{placement:r,...n,children:e})})});ls.displayName="Tooltip";const as=dp;as.displayName="TooltipTrigger";const ss=a.forwardRef(function(e,r){const n=a.useRef(null),o=ne(S.mergeRefs(n,r)),{focusableProps:i}=Ze(e,o);if(a.isValidElement(e.children))return a.cloneElement(e.children,B(i,e.children.props,{ref:o}))});ss.displayName="MakeElementFocusable";var hp=(t,e,r,n,o,i,l,s)=>{let u=document.documentElement,c=["light","dark"];function d(f){(Array.isArray(t)?t:[t]).forEach(h=>{let m=h==="class",y=m&&i?o.map($=>i[$]||$):o;m?(u.classList.remove(...y),u.classList.add(i&&i[f]?i[f]:f)):u.setAttribute(h,f)}),p(f)}function p(f){s&&c.includes(f)&&(u.style.colorScheme=f)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let f=localStorage.getItem(e)||r,h=l&&f==="system"?v():f;d(h)}catch{}},gp=Mt.createContext(void 0),mp={setTheme:t=>{},themes:[]},yp=()=>{var t;return(t=Mt.useContext(gp))!=null?t:mp};Mt.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:l,themes:s,nonce:u,scriptProps:c})=>{let d=JSON.stringify([r,e,i,t,s,l,n,o]).slice(1,-1);return Mt.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${hp.toString()})(${d})`}})});function xn(){const{resolvedTheme:t,setTheme:e}=yp();return{colorMode:t,setColorMode:e,toggleColorMode:()=>{e(t==="light"?"dark":"light")}}}function $p(t,e){const{colorMode:r}=xn();return r==="light"?t:e}function xp(){const{colorMode:t}=xn();return t==="light"?"Light Theme":"DarkTheme"}const Pp=S.defineAnimationStyles({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function Sp(t){var r;const e={};for(const n in t)(r=t[n])!=null&&r.value?e[n]=t[n].value:e[n]=t[n];return e}const Cp=Sp(W.themeTokens.breakpoints),wp=S.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),Ep={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},Tp=S.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),Dp=S.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),kp=S.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),Rp=S.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),Pn=S.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),Kp={avatar:Io,button:Le,code:Dp,heading:kp,kbd:Rp,link:ql,tooltip:is,textInput:Pn},Lp=S.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...W.themeTokens.color["system-palettes"],...W.themeTokens.color["brand-palettes"],...W.themeTokens.color["semantic-palettes"]}),Mp=S.defineSemanticTokens.shadows(W.themeTokens.shadow),Fp=S.defineSemanticTokens.radii({}),Ap={colors:Lp,shadows:Mp,radii:Fp},Ip=S.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),Bp=S.defineSlotRecipe({className:"chakra-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),Np=S.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),Op=S.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),us=S.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),zp=S.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),Hp={dialog:Ip,list:Bp,table:Np,checkbox:Op,select:us,accordion:zp},Vp=S.defineTextStyles(W.themeTokens.textStyle),jp=S.defineTokens.durations(W.themeTokens.aspectRatio),Wp=S.defineTokens.animations(W.themeTokens.animation),_p=S.defineTokens.blurs(W.themeTokens.blur),Up=S.defineTokens.borders(W.themeTokens.border),Gp=S.defineTokens.colors({...W.themeTokens.color["blacks-and-whites"]}),qp=S.defineTokens.durations(W.themeTokens.duration),Yp=S.defineTokens.easings(W.themeTokens.easing),Zp=S.defineTokens.fonts(W.themeTokens.fontFamily),Xp=S.defineTokens.fontSizes(W.themeTokens.fontSize),Jp=S.defineTokens.fontWeights(W.themeTokens.fontWeight),Qp=t=>Object.keys(t).reduce((e,r)=>{const o=parseFloat(t[r].value)/100;return e[r]={value:`${o}em`},e},{}),ev=S.defineTokens.letterSpacings(Qp(W.themeTokens.letterSpacing)),tv=S.defineTokens.lineHeights(W.themeTokens.lineHeight),rv=S.defineTokens.radii(W.themeTokens.borderRadius),nv=S.defineTokens.spacing(W.themeTokens.spacing),ov=S.defineTokens.sizes({...W.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),iv=S.defineTokens.zIndex(W.themeTokens.zIndex),lv=S.defineTokens.cursor(W.themeTokens.cursor),av={aspectRatios:jp,animations:Wp,blurs:_p,borders:Up,colors:Gp,durations:qp,easings:Yp,fonts:Zp,fontSizes:Xp,fontWeights:Jp,letterSpacings:ev,lineHeights:tv,radii:rv,spacing:nv,sizes:ov,zIndex:iv,cursor:lv},sv=S.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:wp,theme:{breakpoints:Cp,keyframes:Ep,tokens:av,semanticTokens:Ap,recipes:Kp,slotRecipes:Hp,textStyles:Vp,layerStyles:Tp,animationStyles:Pp}}),cs=S.createSystem(S.defaultBaseConfig,sv);function uv(){const[t,e]=a.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return a.useEffect(()=>{const n=document.documentElement,o=new MutationObserver(()=>{const i=r();e(i)});return o.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),t}function cv({children:t,...e}){return P.jsx(S.ChakraProvider,{value:cs,children:P.jsx(P.Fragment,{children:t})})}function rr(t){const e={},r={...t};return Object.keys(t).forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&S.defaultSystem.isValidProperty(n)&&(e[n]=t[n],delete r[n])}),[e,r]}const{withProvider:dv,withContext:ds}=S.createSlotRecipeContext({key:"checkbox"}),fv=dv("label","root"),pv=ds("span","label"),vv=ds("span","indicator"),fs=a.forwardRef((t,e)=>{const r=a.useRef(null),n=ne(S.mergeRefs(r,e)),o=S.useSlotRecipe({key:"checkbox"}),[i]=o.splitVariantProps(t),[l,s]=rr(t),u=xi(t),{inputProps:c}=Cc(s,u,n),{isFocused:d,focusProps:p}=Te(),v=u.isSelected&&!t.isIndeterminate,f=t.isIndeterminate,h={"data-selected":v,"data-indeterminate":f,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":d||void 0};return P.jsxs(fv,{"data-slot":"root",...i,...h,...l,children:[P.jsxs(vv,{"data-slot":"indicator",...h,children:[v&&P.jsx(ee.Check,{}),f&&P.jsx(ee.Remove,{}),P.jsx(Sn,{as:"span",children:P.jsx("input",{...B(c,p),ref:n})})]}),t.children&&P.jsx(pv,{"data-slot":"label",...h,children:t.children})]})});fs.displayName="Checkbox";const nr=a.forwardRef((t,e)=>P.jsx(S.Stack,{ref:e,...t}));nr.displayName="Stack";const Sn=t=>{const{as:e="div",...r}=t;return P.jsx(Si,{elementType:e,...r})};Sn.displayName="VisuallyHidden";const{withContext:bv}=S.createRecipeContext({recipe:Pn}),hv=bv("input"),ps=a.forwardRef((t,e)=>{const r=a.useRef(null),n=ne(S.mergeRefs(r,e)),o=S.useRecipe({recipe:Pn}),[i,l]=o.splitVariantProps(t),[s,u]=rr(l);return P.jsx(Nf,{...u,children:P.jsx(hv,{ref:n,...i,...s,asChild:!0,children:P.jsx(Af,{})})})});ps.displayName="TextInput";const vs=a.forwardRef((t,e)=>P.jsx(S.Grid,{ref:e,...t}));vs.displayName="Grid";const gv=Object.assign(vs,{Item:S.GridItem}),{withProvider:mv,withContext:mt}=S.createSlotRecipeContext({key:"select"}),yv=mv("div","root"),$v=mt("button","trigger"),xv=mt("span","triggerLabel"),Pv=mt("div","options"),Sv=mt("div","option"),Cv=mt("div","optionGroup"),bs=()=>{const t=a.useContext(yn);if(!(t!=null&&t.selectedKey))return null;const e=()=>{t==null||t.setSelectedKey(null)};return P.jsx(ht,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:e,children:P.jsx(ee.Close,{})})};bs.displayName="Select.ClearButton";const Cn=a.forwardRef(({children:t,isLoading:e,isDisabled:r,...n},o)=>{const i=S.useSlotRecipe({recipe:us}),[l,s]=i.splitVariantProps(n),[u,c]=rr(s),d={...c,isDisabled:e||r};return P.jsx(yv,{asChild:!0,ref:o,...l,...u,children:P.jsxs(op,{...d,children:[P.jsxs(S.chakra.div,{position:"relative",children:[P.jsx($v,{zIndex:0,asChild:!0,children:P.jsx(Pf,{children:P.jsx(xv,{asChild:!0,children:P.jsx(lp,{})})})}),P.jsxs(S.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[P.jsx(S.Flex,{width:"600",my:"auto",children:P.jsx(bs,{})}),P.jsx(S.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:P.jsx(ve,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:e?P.jsx(ve,{asChild:!0,animation:"spin",animationDuration:"slowest",children:P.jsx(ee.Loop,{})}):P.jsx(ee.KeyboardArrowDown,{})})})]})]}),P.jsx(es,{children:t})]})})});Cn.displayName="Select.Root";const wn=t=>a.forwardRef(t),En=wn((t,e)=>{const[r,n]=rr(t);return P.jsx(Pv,{asChild:!0,...r,children:P.jsx(Uf,{ref:e,...n})})});En.displayName="Select.Options";const Tn=wn((t,e)=>P.jsx(Sv,{asChild:!0,ref:e,children:P.jsx(Yf,{...t})}));Tn.displayName="Select.Option";const Dn=wn(({label:t,items:e,children:r,...n},o)=>{if(e&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return P.jsxs(qf,{ref:o,...n,children:[P.jsx(Cv,{asChild:!0,children:P.jsx(Wf,{children:t})}),e?P.jsx(aa,{items:e,children:i=>typeof r=="function"?r(i):null}):r]})});Dn.displayName="Select.OptionGroup";const wv={Root:Cn,Options:En,Option:Tn,OptionGroup:Dn},{withProvider:Ev,withContext:yt}=S.createSlotRecipeContext({key:"accordion"}),Tv=Ev("div","root"),Dv=yt("div","disclosure"),kv=yt("button","trigger"),Rv=yt("div","panel"),Kv=yt("div","accordionTitle"),Ur=yt("div","headerContentRight"),kn=a.createContext(null),hs=a.createContext(null),Lv=a.forwardRef(({children:t,onExpandedChange:e,...r},n)=>{const o=kf({...r,onExpandedChange:s=>{e==null||e(s.size>0)}}),i=S.useSlotRecipe({key:"accordion"}),[l]=i.splitVariantProps(r);return P.jsx(hs.Provider,{value:o,children:P.jsx(Tv,{"data-slot":"root",ref:n,...l,children:t})})}),Mv=a.forwardRef(({children:t},e)=>{const r=a.useContext(kn);if(!r)throw new Error("Accordion.Header must be used within Accordion.Item");const n=a.Children.toArray(t).reduce((o,i)=>(a.isValidElement(i)&&i.type===Ur?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return P.jsxs(S.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[P.jsxs(kv,{ref:S.mergeRefs(r.triggerRef,e),...r.buttonProps,"data-slot":"trigger",outline:r.isFocusVisible?void 0:"none",children:[P.jsx(ee.KeyboardArrowRight,{}),P.jsx(Kv,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&P.jsx(Ur,{"data-slot":"headerContentRight",children:n.rightContent})]})}),Fv=a.forwardRef((t,e)=>{const r=a.useContext(kn),n=ne(S.mergeRefs(r==null?void 0:r.panelRef,e));return P.jsx(Rv,{ref:n,...S.mergeProps({...r==null?void 0:r.panelProps,...t}),"data-slot":"panel",children:t.children})}),Av=a.forwardRef(({children:t,id:e,isDisabled:r,isExpanded:n,onExpandedChange:o,value:i},l)=>{const s=Z(),c=i||(e||s),d=a.useContext(hs),p=d?d.expandedKeys.has(c):n,v=Df({isExpanded:p,onExpandedChange:E=>{d&&d.toggleKey(c),o==null||o(E)}}),f=a.useRef(null),h=a.useRef(null),m=r||(d==null?void 0:d.isDisabled)||!1,{buttonProps:y,panelProps:$}=$d({isExpanded:v.isExpanded,isDisabled:m},v,f),{buttonProps:C}=Yt(y,h),{focusProps:w,isFocusVisible:K}=Te(),k={isExpanded:v.isExpanded,triggerRef:h,panelRef:f,buttonProps:B(C,w),panelProps:$,isFocusVisible:K};return P.jsx(kn.Provider,{value:k,children:P.jsx(Dv,{"data-slot":"disclosure","data-value":c,"data-expanded":v.isExpanded,ref:l,children:t})})}),Iv={Root:Lv,Item:Av,Header:Mv,Content:Fv,HeaderRightContent:Ur},Bv=S.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:Nv}=S.createRecipeContext({recipe:Bv}),Ov=Nv("div"),zv="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",Hv="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",gs=a.forwardRef(({"aria-label":t="Loading data",...e},r)=>{const{progressBarProps:n}=xd({isIndeterminate:!0,"aria-label":t,...e});return P.jsx(Ov,{ref:r,...B(e,n),"aria-label":t,children:P.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[P.jsx("path",{d:zv,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),P.jsx("path",{d:Hv,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});gs.displayName="LoadingSpinner";const Vv=S.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:jv,withContext:ms}=S.createSlotRecipeContext({recipe:Vv}),Wv=jv("div","root"),_v=ms("div","header"),Uv=ms("div","content"),Rn=a.createContext(void 0),Kn=a.forwardRef(({children:t,...e},r)=>{const{isFocused:n,isFocusVisible:o,focusProps:i}=Te(),[l,s]=a.useState(null),[u,c]=a.useState(null),d=a.useMemo(()=>({setHeader:s,setContent:c}),[s,c]);return P.jsx(Rn.Provider,{value:d,children:P.jsxs(Wv,{ref:r,...B(e,i),"data-focus":n||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[P.jsxs(nr,{direction:"column",gap:"200",children:[l,u]}),t]})})});Kn.displayName="Card.Root";const Ln=({children:t,...e})=>{const r=a.useContext(Rn);return a.useEffect(()=>{if(r){const n=P.jsx(_v,{...e,children:t});return r.setHeader(n),()=>r.setHeader(null)}},[t,e]),null};Ln.displayName="Card.Header";const Mn=({children:t,...e})=>{const r=a.useContext(Rn);return a.useEffect(()=>{if(r){const n=P.jsx(Uv,{...e,children:t});return r.setContent(n),()=>r.setContent(null)}},[t,e]),null};Mn.displayName="Card.Content";const Gv={Root:Kn,Header:Ln,Content:Mn},qv=S.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:Yv}=S.createRecipeContext({recipe:qv}),Zv=Yv("span"),Xv=a.forwardRef((t,e)=>{const{as:r,asChild:n,children:o,...i}=t,l=a.useRef(null),s=ne(S.mergeRefs(l,e)),u=r||"span";return P.jsx(Zv,{as:u,...B(i,{ref:s}),children:o})}),Jv=S.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:Qv,withContext:$t}=S.createSlotRecipeContext({recipe:Jv}),eb=Qv("div","root"),tb=$t("div","title"),rb=$t("div","description"),nb=$t("div","icon"),ob=$t("div","actions"),ib=$t("div","dismissButton"),lb=t=>{switch(t){case"critical":return P.jsx(ee.ErrorOutline,{});case"info":return P.jsx(ee.Info,{});case"warning":return P.jsx(ee.WarningAmber,{});case"positive":return P.jsx(ee.CheckCircleOutline,{});default:return null}},xt=a.createContext(void 0),ys=a.forwardRef(({children:t,...e},r)=>{const[n,o]=a.useState(null),[i,l]=a.useState(null),[s,u]=a.useState(null),[c,d]=a.useState(null),p=a.useMemo(()=>({setTitle:o,setDescription:l,setActions:u,setDismiss:d}),[o,l,u,d]);return P.jsx(xt.Provider,{value:p,children:P.jsxs(eb,{ref:r,...e,role:"alert",children:[P.jsx(nb,{alignItems:"flex-start",children:lb(e.tone)}),P.jsxs(nr,{flex:"1",gap:"200",children:[P.jsxs(ve,{children:[n,i]}),s]}),c,t]})})});ys.displayName="Alert.Root";const $s=({children:t,...e})=>{const r=a.useContext(xt);return a.useEffect(()=>{if(r){const n=P.jsx(tb,{...e,fontWeight:"600",children:t});return r.setTitle(n),()=>r.setTitle(null)}},[t,e]),null};$s.displayName="Alert.Title";const xs=({children:t,...e})=>{const r=a.useContext(xt);return a.useEffect(()=>{if(r){const n=P.jsx(rb,{...e,children:t});return r.setDescription(n),()=>r.setDescription(null)}},[t,e]),null};xs.displayName="Alert.Description";const Ps=({children:t,...e})=>{const r=a.useContext(xt);return a.useEffect(()=>{if(r){const n=P.jsx(ob,{...e,children:t});return r.setActions(n),()=>r.setActions(null)}},[t,e]),null};Ps.displayName="Alert.Actions";const Ss=({children:t,...e})=>{const r=a.useContext(xt);return a.useEffect(()=>{if(r){const n=P.jsx(ib,{children:P.jsx(ht,{"aria-label":"Dismiss",...e,variant:"ghost",size:"2xs",children:P.jsx(ee.Clear,{role:"img"})})});return r.setDismiss(n),()=>r.setDismiss(null)}},[t,e]),null};Ss.displayName="Alert.DismissButton";const ab={Root:ys,Title:$s,Description:xs,Actions:Ps,DismissButton:Ss};var Lo,Mo,Fo,Ao;const sb=S.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...Le.base,...(Lo=Le.variants)==null?void 0:Lo.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Mo=Le.variants)==null?void 0:Mo.variant.solid}},variants:{size:{xs:{button:(Fo=Le.variants)==null?void 0:Fo.size.xs},md:{button:(Ao=Le.variants)==null?void 0:Ao.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:ub,withProvider:cb}=S.createSlotRecipeContext({recipe:sb}),db=cb(sp,"root"),fb=ub(cp,"button"),Fn=a.forwardRef(({children:t,...e},r)=>P.jsx(db,{ref:r,...e,children:t}));Fn.displayName="ToggleButtonGroup.Root";const An=a.forwardRef(({children:t,...e},r)=>P.jsx(fb,{...e,ref:r,children:t}));An.displayName="ToggleButtonGroup.Button";const pb={Root:Fn,Button:An},vb=`
41
18
  "label"
42
19
  "input"
43
20
  "description"
44
21
  "error"
45
- `,z6=`
22
+ `,bb=`
46
23
  "label input"
47
24
  "label description"
48
25
  "label error"
49
- `,F6=W({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:L6},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:z6,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:M6,withContext:Qn}=xt({recipe:F6}),_6=M6("div","root"),V6=Qn("div","label"),B6=Qn("div","input"),W6=Qn("div","description"),K6=Qn("div","error"),H6=Qn("div","popover"),j6=d.forwardRef(({isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n,children:o,...i},a)=>{const[s,l]=d.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}),{labelProps:c,fieldProps:u,descriptionProps:g,errorMessageProps:f}=Sl({label:s.label,description:s.description,errorMessage:s.error});d.useEffect(()=>{l(h=>({...h,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}))},[e,t,r,n]);const p={...u,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n};return k.jsx(kr.Provider,{value:{context:s,setContext:l},children:k.jsxs(_6,{ref:a,...i,children:[s.label&&k.jsxs(V6,{...s.labelSlotProps,children:[k.jsxs("label",{...c,children:[s.label,t&&k.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&k.jsxs(hO,{children:[k.jsx(kt,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:k.jsx(kt,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:k.jsx(Gn,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:k.jsx(Be.HelpOutline,{})})})}),k.jsx(o0,{children:k.jsx(H6,{asChild:!0,children:k.jsx(mO,{children:k.jsx(kt,{p:"300",children:s.info})})})})]})]}),s.input&&k.jsx(B6,{...s.inputSlotProps,children:d.Children.map(s.input,h=>d.isValidElement(h)?d.cloneElement(h,p):h)}),s.description&&k.jsx(W6,{...g,...s.descriptionSlotProps,children:s.description}),e&&s.error&&k.jsxs(K6,{...f,...s.errorSlotProps,children:[k.jsx(kt,{as:Be.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),o]})})}),U6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,label:e,labelSlotProps:t}))},[e,r]),null},G6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,input:e,inputSlotProps:t}))},[e,r]),null},q6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,description:e,descriptionSlotProps:t}))},[e,r]),null},Y6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,error:e,errorSlotProps:t}))},[e,r]),null},X6=({children:e})=>{const{setContext:t}=d.useContext(kr);return d.useEffect(()=>{t(r=>({...r,info:e}))},[e,t]),null},kr=d.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),Z6={Root:j6,Label:U6,Input:G6,Description:q6,Error:Y6,InfoBox:X6};function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ms.apply(null,arguments)}var R0=["shift","alt","meta","mod","ctrl"],J6={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Wt(e){return(e&&J6[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Q6(e){return R0.includes(e)}function Ca(e,t){return t===void 0&&(t=","),e.split(t)}function Ea(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(a){return Wt(a)}),o={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(a){return!R0.includes(a)});return ms({},o,{keys:i,description:r,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&O0([Wt(e.key),Wt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&I0([Wt(e.key),Wt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Kt.clear()})})();var Kt=new Set;function Xl(e){return Array.isArray(e)}function eD(e,t){t===void 0&&(t=",");var r=Xl(e)?e:e.split(t);return r.every(function(n){return Kt.has(n.trim().toLowerCase())})}function O0(e){var t=Array.isArray(e)?e:[e];Kt.has("meta")&&Kt.forEach(function(r){return!Q6(r)&&Kt.delete(r.toLowerCase())}),t.forEach(function(r){return Kt.add(r.toLowerCase())})}function I0(e){var t=Array.isArray(e)?e:[e];e==="meta"?Kt.clear():t.forEach(function(r){return Kt.delete(r.toLowerCase())})}function tD(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function rD(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function nD(e){return D0(e,["input","textarea","select"])}function D0(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,o=null;return oD(r)&&n?o=e.composedPath()[0]&&e.composedPath()[0].tagName:o=r&&r.tagName,Xl(t)?!!(o&&t&&t.some(function(i){var a;return i.toLowerCase()===((a=o)==null?void 0:a.toLowerCase())})):!!(o&&t&&t)}function oD(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function iD(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var aD=function(t,r,n){n===void 0&&(n=!1);var o=r.alt,i=r.meta,a=r.mod,s=r.shift,l=r.ctrl,c=r.keys,u=t.key,g=t.code,f=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,b=Wt(g),y=u.toLowerCase();if(!(c!=null&&c.includes(b))&&!(c!=null&&c.includes(y))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(b))return!1;if(!n){if(o===!m&&y!=="alt"||s===!h&&y!=="shift")return!1;if(a){if(!p&&!f)return!1}else if(i===!p&&y!=="meta"&&y!=="os"||l===!f&&y!=="ctrl"&&y!=="control")return!1}return c&&c.length===1&&(c.includes(y)||c.includes(b))?!0:c?eD(c):!c},sD=d.createContext(void 0),lD=function(){return d.useContext(sD)};function A0(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&A0(e[n],t[n])},!0):e===t}var cD=d.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),uD=function(){return d.useContext(cD)};function dD(e){var t=d.useRef(void 0);return A0(t.current,e)||(t.current=e),t.current}var Cd=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},fD=typeof window<"u"?d.useLayoutEffect:d.useEffect;function pD(e,t,r,n){var o=d.useState(null),i=o[0],a=o[1],s=d.useRef(!1),l=r instanceof Array?n instanceof Array?void 0:n:r,c=Xl(e)?e.join(l==null?void 0:l.splitKey):e,u=r instanceof Array?r:n instanceof Array?n:void 0,g=d.useCallback(t,u??[]),f=d.useRef(g);u?f.current=g:f.current=t;var p=dD(l),h=uD(),m=h.enabledScopes,b=lD();return fD(function(){if(!((p==null?void 0:p.enabled)===!1||!iD(m,p==null?void 0:p.scopes))){var y=function(C,D){var v;if(D===void 0&&(D=!1),!(nD(C)&&!D0(C,p==null?void 0:p.enableOnFormTags))){if(i!==null){var P=i.getRootNode();if((P instanceof Document||P instanceof ShadowRoot)&&P.activeElement!==i&&!i.contains(P.activeElement)){Cd(C);return}}(v=C.target)!=null&&v.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||Ca(c,p==null?void 0:p.splitKey).forEach(function(T){var I,L=Ea(T,p==null?void 0:p.combinationKey);if(aD(C,L,p==null?void 0:p.ignoreModifiers)||(I=L.keys)!=null&&I.includes("*")){if(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(C)||D&&s.current)return;if(tD(C,L,p==null?void 0:p.preventDefault),!rD(C,L,p==null?void 0:p.enabled)){Cd(C);return}f.current(C,L),D||(s.current=!0)}})}},x=function(C){C.key!==void 0&&(O0(Wt(C.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&y(C))},S=function(C){C.key!==void 0&&(I0(Wt(C.code)),s.current=!1,p!=null&&p.keyup&&y(C,!0))},$=i||(l==null?void 0:l.document)||document;return $.addEventListener("keyup",S),$.addEventListener("keydown",x),b&&Ca(c,p==null?void 0:p.splitKey).forEach(function(w){return b.addHotkey(Ea(w,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){$.removeEventListener("keyup",S),$.removeEventListener("keydown",x),b&&Ca(c,p==null?void 0:p.splitKey).forEach(function(w){return b.removeHotkey(Ea(w,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[i,c,p,m]),a}function gD(){var e=d.useRef(!1),t=d.useCallback(function(){return e.current},[]);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var hD=function(e){e===void 0&&(e={});var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(i){n(function(a){return Object.assign({},a,i instanceof Function?i(a):i)})},[]);return[r,o]},Pa,Ed;function mD(){return Ed||(Ed=1,Pa=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Pa}var $a,Pd;function vD(){if(Pd)return $a;Pd=1;var e=mD(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var s,l,c,u,g,f,p=!1;a||(a={}),s=a.debug||!1;try{c=e(),u=document.createRange(),g=document.getSelection(),f=document.createElement("span"),f.textContent=i,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(m){if(m.stopPropagation(),a.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[a.format]||t.default;window.clipboardData.setData(b,i)}else m.clipboardData.clearData(),m.clipboardData.setData(a.format,i);a.onCopy&&(m.preventDefault(),a.onCopy(m.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),g.addRange(u);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");p=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(b){s&&console.error("unable to copy using clipboardData: ",b),s&&console.error("falling back to prompt"),l=n("message"in a?a.message:r),window.prompt(l,i)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(u):g.removeAllRanges()),f&&document.body.removeChild(f),c()}return p}return $a=o,$a}var bD=vD();const yD=Yf(bD);var xD=function(){var e=gD(),t=hD({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],o=d.useCallback(function(i){if(e()){var a,s;try{if(typeof i!="string"&&typeof i!="number"){var l=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),n({value:i,error:l,noUserInteraction:!0});return}else if(i===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),n({value:i,error:l,noUserInteraction:!0});return}s=i.toString(),a=yD(s),n({value:s,error:void 0,noUserInteraction:a})}catch(c){n({value:s,error:c,noUserInteraction:a})}}},[]);return[r,o]};exports.Accordion=n6;exports.Alert=T6;exports.Avatar=Wh;exports.Badge=b6;exports.Bleed=l5;exports.Box=kt;exports.Button=Ri;exports.Card=g6;exports.CardContent=Gl;exports.CardHeader=Ul;exports.CardRoot=jl;exports.Checkbox=v0;exports.Code=u5;exports.ColorModeLabel=WO;exports.DialogActionTrigger=oR;exports.DialogBackdrop=eR;exports.DialogBody=QT;exports.DialogCloseTrigger=YT;exports.DialogContent=qT;exports.DialogDescription=rR;exports.DialogFooter=ZT;exports.DialogHeader=JT;exports.DialogRoot=XT;exports.DialogTitle=tR;exports.DialogTrigger=nR;exports.Em=Q5;exports.Flex=Pn;exports.FormField=Z6;exports.FormFieldContext=kr;exports.Grid=MI;exports.Heading=X5;exports.Highlight=D5;exports.IconButton=Gn;exports.Kbd=L5;exports.Link=Qv;exports.List=V5;exports.ListItem=lR;exports.ListRoot=sR;exports.LoadingSpinner=w0;exports.MakeElementFocusable=f0;exports.NimbusProvider=II;exports.Select=UI;exports.SimpleGrid=cR;exports.Stack=zi;exports.Table=q5;exports.TableBody=vR;exports.TableCell=mR;exports.TableColumn=fR;exports.TableColumnGroup=dR;exports.TableColumnHeader=bR;exports.TableFooter=gR;exports.TableHeader=pR;exports.TableRoot=uR;exports.TableRow=hR;exports.Text=tb;exports.TextInput=b0;exports.ToggleButtonGroup=N6;exports.ToggleButtonGroupButton=Yl;exports.ToggleButtonGroupRoot=ql;exports.Tooltip=u0;exports.TooltipTrigger=d0;exports.VisuallyHidden=Fl;exports._SelectOption=Bl;exports._SelectOptionGroup=Wl;exports._SelectOptions=Vl;exports._SelectRoot=Ml;exports.system=h0;exports.useColorMode=Ll;exports.useColorModeValue=BO;exports.useColorScheme=OI;exports.useCopyToClipboard=xD;exports.useHotkeys=pD;
26
+ `,hb=S.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:vb},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:bb,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:gb,withContext:Pt}=S.createSlotRecipeContext({recipe:hb}),mb=gb("div","root"),yb=Pt("div","label"),$b=Pt("div","input"),xb=Pt("div","description"),Pb=Pt("div","error"),Sb=Pt("div","popover"),Cb=a.forwardRef(({isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n,children:o,...i},l)=>{const[s,u]=a.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n}),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:v}=sn({label:s.label,description:s.description,errorMessage:s.error});a.useEffect(()=>{u(h=>({...h,isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n}))},[t,e,r,n]);const f={...d,isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n};return P.jsx(je.Provider,{value:{context:s,setContext:u},children:P.jsxs(mb,{ref:l,...i,children:[s.label&&P.jsxs(yb,{...s.labelSlotProps,children:[P.jsxs("label",{...c,children:[s.label,e&&P.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&P.jsxs(tp,{children:[P.jsx(ve,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:P.jsx(ve,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:P.jsx(ht,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:P.jsx(ee.HelpOutline,{})})})}),P.jsx(es,{children:P.jsx(Sb,{asChild:!0,children:P.jsx(rp,{children:P.jsx(ve,{p:"300",children:s.info})})})})]})]}),s.input&&P.jsx($b,{...s.inputSlotProps,children:a.Children.map(s.input,h=>a.isValidElement(h)?a.cloneElement(h,f):h)}),s.description&&P.jsx(xb,{...p,...s.descriptionSlotProps,children:s.description}),t&&s.error&&P.jsxs(Pb,{...v,...s.errorSlotProps,children:[P.jsx(ve,{as:ee.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),o]})})}),wb=({children:t,...e})=>{const{setContext:r}=a.useContext(je);return a.useEffect(()=>{r(n=>({...n,label:t,labelSlotProps:e}))},[t,r]),null},Eb=({children:t,...e})=>{const{setContext:r}=a.useContext(je);return a.useEffect(()=>{r(n=>({...n,input:t,inputSlotProps:e}))},[t,r]),null},Tb=({children:t,...e})=>{const{setContext:r}=a.useContext(je);return a.useEffect(()=>{r(n=>({...n,description:t,descriptionSlotProps:e}))},[t,r]),null},Db=({children:t,...e})=>{const{setContext:r}=a.useContext(je);return a.useEffect(()=>{r(n=>({...n,error:t,errorSlotProps:e}))},[t,r]),null},kb=({children:t})=>{const{setContext:e}=a.useContext(je);return a.useEffect(()=>{e(r=>({...r,info:t}))},[t,e]),null},je=a.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),Rb={Root:Cb,Label:wb,Input:Eb,Description:Tb,Error:Db,InfoBox:kb};function Gr(){return Gr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gr.apply(null,arguments)}var Cs=["shift","alt","meta","mod","ctrl"],Kb={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function xe(t){return(t&&Kb[t]||t||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Lb(t){return Cs.includes(t)}function Pr(t,e){return e===void 0&&(e=","),t.split(e)}function Sr(t,e,r){e===void 0&&(e="+");var n=t.toLocaleLowerCase().split(e).map(function(l){return xe(l)}),o={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(l){return!Cs.includes(l)});return Gr({},o,{keys:i,description:r,hotkey:t})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(t){t.key!==void 0&&ws([xe(t.key),xe(t.code)])}),document.addEventListener("keyup",function(t){t.key!==void 0&&Es([xe(t.key),xe(t.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Pe.clear()})})();var Pe=new Set;function In(t){return Array.isArray(t)}function Mb(t,e){e===void 0&&(e=",");var r=In(t)?t:t.split(e);return r.every(function(n){return Pe.has(n.trim().toLowerCase())})}function ws(t){var e=Array.isArray(t)?t:[t];Pe.has("meta")&&Pe.forEach(function(r){return!Lb(r)&&Pe.delete(r.toLowerCase())}),e.forEach(function(r){return Pe.add(r.toLowerCase())})}function Es(t){var e=Array.isArray(t)?t:[t];t==="meta"?Pe.clear():e.forEach(function(r){return Pe.delete(r.toLowerCase())})}function Fb(t,e,r){(typeof r=="function"&&r(t,e)||r===!0)&&t.preventDefault()}function Ab(t,e,r){return typeof r=="function"?r(t,e):r===!0||r===void 0}function Ib(t){return Ts(t,["input","textarea","select"])}function Ts(t,e){e===void 0&&(e=!1);var r=t.target,n=t.composed,o=null;return Bb(r)&&n?o=t.composedPath()[0]&&t.composedPath()[0].tagName:o=r&&r.tagName,In(e)?!!(o&&e&&e.some(function(i){var l;return i.toLowerCase()===((l=o)==null?void 0:l.toLowerCase())})):!!(o&&e&&e)}function Bb(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function Nb(t,e){return t.length===0&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):e?t.some(function(r){return e.includes(r)})||t.includes("*"):!0}var Ob=function(e,r,n){n===void 0&&(n=!1);var o=r.alt,i=r.meta,l=r.mod,s=r.shift,u=r.ctrl,c=r.keys,d=e.key,p=e.code,v=e.ctrlKey,f=e.metaKey,h=e.shiftKey,m=e.altKey,y=xe(p),$=d.toLowerCase();if(!(c!=null&&c.includes(y))&&!(c!=null&&c.includes($))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(y))return!1;if(!n){if(o===!m&&$!=="alt"||s===!h&&$!=="shift")return!1;if(l){if(!f&&!v)return!1}else if(i===!f&&$!=="meta"&&$!=="os"||u===!v&&$!=="ctrl"&&$!=="control")return!1}return c&&c.length===1&&(c.includes($)||c.includes(y))?!0:c?Mb(c):!c},zb=a.createContext(void 0),Hb=function(){return a.useContext(zb)};function Ds(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(r,n){return r&&Ds(t[n],e[n])},!0):t===e}var Vb=a.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),jb=function(){return a.useContext(Vb)};function Wb(t){var e=a.useRef(void 0);return Ds(e.current,t)||(e.current=t),e.current}var ko=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},_b=typeof window<"u"?a.useLayoutEffect:a.useEffect;function Ub(t,e,r,n){var o=a.useState(null),i=o[0],l=o[1],s=a.useRef(!1),u=r instanceof Array?n instanceof Array?void 0:n:r,c=In(t)?t.join(u==null?void 0:u.splitKey):t,d=r instanceof Array?r:n instanceof Array?n:void 0,p=a.useCallback(e,d??[]),v=a.useRef(p);d?v.current=p:v.current=e;var f=Wb(u),h=jb(),m=h.enabledScopes,y=Hb();return _b(function(){if(!((f==null?void 0:f.enabled)===!1||!Nb(m,f==null?void 0:f.scopes))){var $=function(E,A){var b;if(A===void 0&&(A=!1),!(Ib(E)&&!Ts(E,f==null?void 0:f.enableOnFormTags))){if(i!==null){var R=i.getRootNode();if((R instanceof Document||R instanceof ShadowRoot)&&R.activeElement!==i&&!i.contains(R.activeElement)){ko(E);return}}(b=E.target)!=null&&b.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||Pr(c,f==null?void 0:f.splitKey).forEach(function(L){var T,F=Sr(L,f==null?void 0:f.combinationKey);if(Ob(E,F,f==null?void 0:f.ignoreModifiers)||(T=F.keys)!=null&&T.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(E)||A&&s.current)return;if(Fb(E,F,f==null?void 0:f.preventDefault),!Ab(E,F,f==null?void 0:f.enabled)){ko(E);return}v.current(E,F),A||(s.current=!0)}})}},C=function(E){E.key!==void 0&&(ws(xe(E.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&$(E))},w=function(E){E.key!==void 0&&(Es(xe(E.code)),s.current=!1,f!=null&&f.keyup&&$(E,!0))},K=i||(u==null?void 0:u.document)||document;return K.addEventListener("keyup",w),K.addEventListener("keydown",C),y&&Pr(c,f==null?void 0:f.splitKey).forEach(function(k){return y.addHotkey(Sr(k,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){K.removeEventListener("keyup",w),K.removeEventListener("keydown",C),y&&Pr(c,f==null?void 0:f.splitKey).forEach(function(k){return y.removeHotkey(Sr(k,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[i,c,f,m]),l}function Gb(){var t=a.useRef(!1),e=a.useCallback(function(){return t.current},[]);return a.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var qb=function(t){t===void 0&&(t={});var e=a.useState(t),r=e[0],n=e[1],o=a.useCallback(function(i){n(function(l){return Object.assign({},l,i instanceof Function?i(l):i)})},[]);return[r,o]},Cr,Ro;function Yb(){return Ro||(Ro=1,Cr=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(o){t.addRange(o)}),e&&e.focus()}}),Cr}var wr,Ko;function Zb(){if(Ko)return wr;Ko=1;var t=Yb(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,l)}function o(i,l){var s,u,c,d,p,v,f=!1;l||(l={}),s=l.debug||!1;try{c=t(),d=document.createRange(),p=document.getSelection(),v=document.createElement("span"),v.textContent=i,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(m){if(m.stopPropagation(),l.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[l.format]||e.default;window.clipboardData.setData(y,i)}else m.clipboardData.clearData(),m.clipboardData.setData(l.format,i);l.onCopy&&(m.preventDefault(),l.onCopy(m.clipboardData))}),document.body.appendChild(v),d.selectNodeContents(v),p.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");f=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",i),l.onCopy&&l.onCopy(window.clipboardData),f=!0}catch(y){s&&console.error("unable to copy using clipboardData: ",y),s&&console.error("falling back to prompt"),u=n("message"in l?l.message:r),window.prompt(u,i)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(d):p.removeAllRanges()),v&&document.body.removeChild(v),c()}return f}return wr=o,wr}var Xb=Zb();const Jb=uf(Xb);var Qb=function(){var t=Gb(),e=qb({value:void 0,error:void 0,noUserInteraction:!0}),r=e[0],n=e[1],o=a.useCallback(function(i){if(t()){var l,s;try{if(typeof i!="string"&&typeof i!="number"){var u=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(u),n({value:i,error:u,noUserInteraction:!0});return}else if(i===""){var u=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(u),n({value:i,error:u,noUserInteraction:!0});return}s=i.toString(),l=Jb(s),n({value:s,error:void 0,noUserInteraction:l})}catch(c){n({value:s,error:c,noUserInteraction:l})}}},[]);return[r,o]};Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>S.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>S.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>S.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>S.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>S.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>S.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>S.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>S.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>S.Table});exports.Accordion=Iv;exports.Alert=ab;exports.Avatar=Bo;exports.Badge=Xv;exports.Box=ve;exports.Button=Zt;exports.Card=Gv;exports.CardContent=Mn;exports.CardHeader=Ln;exports.CardRoot=Kn;exports.Checkbox=fs;exports.ColorModeLabel=xp;exports.DialogActionTrigger=Vd;exports.DialogBackdrop=Nd;exports.DialogBody=Bd;exports.DialogCloseTrigger=Md;exports.DialogContent=Ld;exports.DialogDescription=zd;exports.DialogFooter=Ad;exports.DialogHeader=Id;exports.DialogRoot=Fd;exports.DialogTitle=Od;exports.DialogTrigger=Hd;exports.FormField=Rb;exports.FormFieldContext=je;exports.Grid=gv;exports.IconButton=ht;exports.Link=Yl;exports.ListItem=Ud;exports.ListRoot=_d;exports.LoadingSpinner=gs;exports.MakeElementFocusable=ss;exports.NimbusProvider=cv;exports.Select=wv;exports.SimpleGrid=Gd;exports.Stack=nr;exports.TableBody=tf;exports.TableCell=ef;exports.TableColumn=Zd;exports.TableColumnGroup=Yd;exports.TableColumnHeader=rf;exports.TableFooter=Jd;exports.TableHeader=Xd;exports.TableRoot=qd;exports.TableRow=Qd;exports.Text=Xl;exports.TextInput=ps;exports.ToggleButtonGroup=pb;exports.ToggleButtonGroupButton=An;exports.ToggleButtonGroupRoot=Fn;exports.Tooltip=ls;exports.TooltipTrigger=as;exports.VisuallyHidden=Sn;exports._SelectOption=Tn;exports._SelectOptionGroup=Dn;exports._SelectOptions=En;exports._SelectRoot=Cn;exports.system=cs;exports.useColorMode=xn;exports.useColorModeValue=$p;exports.useColorScheme=uv;exports.useCopyToClipboard=Qb;exports.useHotkeys=Ub;
50
27
  //# sourceMappingURL=index.cjs.map