@revisium/admin 2.2.1 → 2.3.0
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{a as zm,c as Il,r as m,b as Si}from"./vendor-react-BVJTUrr9.js";var os={exports:{}},pn={};var Pl;function $m(){if(Pl)return pn;Pl=1;var e=zm(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var d,g={},f=null,u=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(u=l.ref);for(d in l)n.call(l,d)&&!i.hasOwnProperty(d)&&(g[d]=l[d]);if(a&&a.defaultProps)for(d in l=a.defaultProps,l)g[d]===void 0&&(g[d]=l[d]);return{$$typeof:t,type:a,key:f,ref:u,props:g,_owner:o.current}}return pn.Fragment=r,pn.jsx=s,pn.jsxs=s,pn}var Tl;function Mm(){return Tl||(Tl=1,os.exports=$m()),os.exports}var v=Mm();function Xd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Wm=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Bm=Xd(function(e){return Wm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Hm(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 jm(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 Gm=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(jm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Hm(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}(),Oe="-ms-",si="-moz-",Z="-webkit-",Kd="comm",va="rule",ba="decl",Um="@import",qd="@keyframes",Ym="@layer",Xm=Math.abs,wi=String.fromCharCode,Km=Object.assign;function qm(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function Zd(e){return e.trim()}function Zm(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function Ms(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Gn(e,t,r){return e.slice(t,r)}function mt(e){return e.length}function ya(e){return e.length}function xo(e,t){return t.push(e),e}function Jm(e,t){return e.map(t).join("")}var Ei=1,Gr=1,Jd=0,Me=0,fe=0,qr="";function ki(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ei,column:Gr,length:s,return:""}}function mn(e,t){return Km(ki("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qm(){return fe}function ev(){return fe=Me>0?Pe(qr,--Me):0,Gr--,fe===10&&(Gr=1,Ei--),fe}function Ue(){return fe=Me<Jd?Pe(qr,Me++):0,Gr++,fe===10&&(Gr=1,Ei++),fe}function yt(){return Pe(qr,Me)}function Bo(){return Me}function ro(e,t){return Gn(qr,e,t)}function Un(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 Qd(e){return Ei=Gr=1,Jd=mt(qr=e),Me=0,[]}function eu(e){return qr="",e}function Ho(e){return Zd(ro(Me-1,Ws(e===91?e+2:e===40?e+1:e)))}function tv(e){for(;(fe=yt())&&fe<33;)Ue();return Un(e)>2||Un(fe)>3?"":" "}function rv(e,t){for(;--t&&Ue()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return ro(e,Bo()+(t<6&&yt()==32&&Ue()==32))}function Ws(e){for(;Ue();)switch(fe){case e:return Me;case 34:case 39:e!==34&&e!==39&&Ws(fe);break;case 40:e===41&&Ws(e);break;case 92:Ue();break}return Me}function nv(e,t){for(;Ue()&&e+fe!==57;)if(e+fe===84&&yt()===47)break;return"/*"+ro(t,Me-1)+"*"+wi(e===47?e:Ue())}function ov(e){for(;!Un(yt());)Ue();return ro(e,Me)}function iv(e){return eu(jo("",null,null,null,[""],e=Qd(e),0,[0],e))}function jo(e,t,r,n,o,i,s,a,l){for(var c=0,d=0,g=s,f=0,u=0,h=0,p=1,y=1,C=1,S=0,w="",b=o,x=i,k=n,R=w;y;)switch(h=S,S=Ue()){case 40:if(h!=108&&Pe(R,g-1)==58){Ms(R+=J(Ho(S),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:R+=Ho(S);break;case 9:case 10:case 13:case 32:R+=tv(h);break;case 92:R+=rv(Bo()-1,7);continue;case 47:switch(yt()){case 42:case 47:xo(sv(nv(Ue(),Bo()),t,r),l);break;default:R+="/"}break;case 123*p:a[c++]=mt(R)*C;case 125*p:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:C==-1&&(R=J(R,/\f/g,"")),u>0&&mt(R)-g&&xo(u>32?Rl(R+";",n,r,g-1):Rl(J(R," ","")+";",n,r,g-2),l);break;case 59:R+=";";default:if(xo(k=Ol(R,t,r,c,d,o,a,w,b=[],x=[],g),i),S===123)if(d===0)jo(R,t,k,k,b,i,g,a,x);else switch(f===99&&Pe(R,3)===110?100:f){case 100:case 108:case 109:case 115:jo(e,k,k,n&&xo(Ol(e,k,k,0,0,o,a,w,o,b=[],g),x),o,x,g,a,n?b:x);break;default:jo(R,k,k,k,[""],x,0,a,x)}}c=d=u=0,p=C=1,w=R="",g=s;break;case 58:g=1+mt(R),u=h;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&ev()==125)continue}switch(R+=wi(S),S*p){case 38:C=d>0?1:(R+="\f",-1);break;case 44:a[c++]=(mt(R)-1)*C,C=1;break;case 64:yt()===45&&(R+=Ho(Ue())),f=yt(),d=g=mt(w=R+=ov(Bo())),S++;break;case 45:h===45&&mt(R)==2&&(p=0)}}return i}function Ol(e,t,r,n,o,i,s,a,l,c,d){for(var g=o-1,f=o===0?i:[""],u=ya(f),h=0,p=0,y=0;h<n;++h)for(var C=0,S=Gn(e,g+1,g=Xm(p=s[h])),w=e;C<u;++C)(w=Zd(p>0?f[C]+" "+S:J(S,/&\f/g,f[C])))&&(l[y++]=w);return ki(e,t,r,o===0?va:a,l,c,d)}function sv(e,t,r){return ki(e,t,r,Kd,wi(Qm()),Gn(e,2,-2),0)}function Rl(e,t,r,n){return ki(e,t,r,ba,Gn(e,0,n),Gn(e,n+1,-1),n)}function $r(e,t){for(var r="",n=ya(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function av(e,t,r,n){switch(e.type){case Ym:if(e.children.length)break;case Um:case ba:return e.return=e.return||e.value;case Kd:return"";case qd:return e.return=e.value+"{"+$r(e.children,n)+"}";case va:e.value=e.props.join(",")}return mt(r=$r(e.children,n))?e.return=e.value+"{"+r+"}":""}function lv(e){var t=ya(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function cv(e){return function(t){t.root||(t=t.return)&&e(t)}}var dv=function(t,r,n){for(var o=0,i=0;o=i,i=yt(),o===38&&i===12&&(r[n]=1),!Un(i);)Ue();return ro(t,Me)},uv=function(t,r){var n=-1,o=44;do switch(Un(o)){case 0:o===38&&yt()===12&&(r[n]=1),t[n]+=dv(Me-1,r,n);break;case 2:t[n]+=Ho(o);break;case 4:if(o===44){t[++n]=yt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=wi(o)}while(o=Ue());return t},gv=function(t,r){return eu(uv(Qd(t),r))},Nl=new WeakMap,fv=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&&!Nl.get(n))&&!o){Nl.set(t,!0);for(var i=[],s=gv(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},hv=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function tu(e,t){switch(qm(e,t)){case 5103:return Z+"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 Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+si+e+Oe+e+e;case 6828:case 4268:return Z+e+Oe+e+e;case 6165:return Z+e+Oe+"flex-"+e+e;case 5187:return Z+e+J(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+Oe+"flex-$1$2")+e;case 5443:return Z+e+Oe+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return Z+e+Oe+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+Oe+J(e,"shrink","negative")+e;case 5292:return Z+e+Oe+J(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+J(e,"-grow","")+Z+e+Oe+J(e,"grow","positive")+e;case 4554:return Z+J(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+Oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,Z+"$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(mt(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+si+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ms(e,"stretch")?tu(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,mt(e)-3-(~Ms(e,"!important")&&10))){case 107:return J(e,":",":"+Z)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Pe(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return Z+e+Oe+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+Oe+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+Oe+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+Oe+e+e}return e}var pv=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ba:t.return=tu(t.value,t.length);break;case qd:return $r([mn(t,{value:J(t.value,"@","@"+Z)})],o);case va:if(t.length)return Jm(t.props,function(i){switch(Zm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $r([mn(t,{props:[J(i,/:(read-\w+)/,":"+si+"$1")]})],o);case"::placeholder":return $r([mn(t,{props:[J(i,/:(plac\w+)/,":"+Z+"input-$1")]}),mn(t,{props:[J(i,/:(plac\w+)/,":"+si+"$1")]}),mn(t,{props:[J(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},mv=[pv],vv=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(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||mv,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),C=1;C<y.length;C++)i[y[C]]=!0;a.push(p)});var l,c=[fv,hv];{var d,g=[av,cv(function(p){d.insert(p)})],f=lv(c.concat(o,g)),u=function(y){return $r(iv(y),f)};l=function(y,C,S,w){d=S,u(y?y+"{"+C.styles+"}":C.styles),w&&(h.inserted[C.name]=!0)}}var h={key:r,sheet:new Gm({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(a),h};function Al(){return Al=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},Al.apply(null,arguments)}var is={exports:{}},Q={};var Vl;function bv(){if(Vl)return Q;Vl=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var k=x.$$typeof;switch(k){case t:switch(x=x.type,x){case l:case c:case n:case i:case o:case g:return x;default:switch(x=x&&x.$$typeof,x){case a:case d:case h:case u:case s:return x;default:return k}}case r:return k}}}function b(x){return w(x)===c}return Q.AsyncMode=l,Q.ConcurrentMode=c,Q.ContextConsumer=a,Q.ContextProvider=s,Q.Element=t,Q.ForwardRef=d,Q.Fragment=n,Q.Lazy=h,Q.Memo=u,Q.Portal=r,Q.Profiler=i,Q.StrictMode=o,Q.Suspense=g,Q.isAsyncMode=function(x){return b(x)||w(x)===l},Q.isConcurrentMode=b,Q.isContextConsumer=function(x){return w(x)===a},Q.isContextProvider=function(x){return w(x)===s},Q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Q.isForwardRef=function(x){return w(x)===d},Q.isFragment=function(x){return w(x)===n},Q.isLazy=function(x){return w(x)===h},Q.isMemo=function(x){return w(x)===u},Q.isPortal=function(x){return w(x)===r},Q.isProfiler=function(x){return w(x)===i},Q.isStrictMode=function(x){return w(x)===o},Q.isSuspense=function(x){return w(x)===g},Q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===c||x===i||x===o||x===g||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===u||x.$$typeof===s||x.$$typeof===a||x.$$typeof===d||x.$$typeof===y||x.$$typeof===C||x.$$typeof===S||x.$$typeof===p)},Q.typeOf=w,Q}var _l;function yv(){return _l||(_l=1,is.exports=bv()),is.exports}var ss,Ll;function xv(){if(Ll)return ss;Ll=1;var e=yv(),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 s(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function u(h,p,y){if(typeof p!="string"){if(f){var C=g(p);C&&C!==f&&u(h,C,y)}var S=l(p);c&&(S=S.concat(c(p)));for(var w=s(h),b=s(p),x=0;x<S.length;++x){var k=S[x];if(!r[k]&&!(y&&y[k])&&!(b&&b[k])&&!(w&&w[k])){var R=d(p,k);try{a(h,k,R)}catch{}}}}return h}return ss=u,ss}xv();var Cv=!0;function ru(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var xa=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Cv===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ca=function(t,r,n){xa(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 Sv(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 wv={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},Ev=/[A-Z]|^ms/g,kv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nu=function(t){return t.charCodeAt(1)===45},Fl=function(t){return t!=null&&typeof t!="boolean"},as=Xd(function(e){return nu(e)?e:e.replace(Ev,"-$&").toLowerCase()}),Dl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(kv,function(n,o,i){return vt={name:o,styles:i,next:vt},o})}return wv[t]!==1&&!nu(t)&&typeof r=="number"&&r!==0?r+"px":r};function Yn(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 vt={name:o.name,styles:o.styles,next:vt},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)vt={name:s.name,styles:s.styles,next:vt},s=s.next;var a=i.styles+";";return a}return Iv(e,t,r)}case"function":{if(e!==void 0){var l=vt,c=r(e);return vt=l,Yn(e,t,c)}break}}var d=r;if(t==null)return d;var g=t[d];return g!==void 0?g:d}function Iv(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Yn(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?n+=i+"{"+t[a]+"}":Fl(a)&&(n+=as(i)+":"+Dl(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Fl(s[l])&&(n+=as(i)+":"+Dl(i,s[l])+";");else{var c=Yn(e,t,s);switch(i){case"animation":case"animationName":{n+=as(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var zl=/label:\s*([^\s;{]+)\s*(;|$)/g,vt;function Sa(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="";vt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Yn(r,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=Yn(r,t,e[a]),n){var l=i;o+=l[a]}zl.lastIndex=0;for(var c="",d;(d=zl.exec(o))!==null;)c+="-"+d[1];var g=Sv(o)+c;return{name:g,styles:o,next:vt}}var Pv=function(t){return t()},ou=Il.useInsertionEffect?Il.useInsertionEffect:!1,iu=ou||Pv,$l=ou||m.useLayoutEffect,su=m.createContext(typeof HTMLElement<"u"?vv({key:"css"}):null);su.Provider;var wa=function(t){return m.forwardRef(function(r,n){var o=m.useContext(su);return t(r,o,n)})},Ea=m.createContext({}),ka={}.hasOwnProperty,Bs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tv=function(t,r){var n={};for(var o in r)ka.call(r,o)&&(n[o]=r[o]);return n[Bs]=t,n},Ov=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return xa(r,n,o),iu(function(){return Ca(r,n,o)}),null},Rv=wa(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Bs],i=[n],s="";typeof e.className=="string"?s=ru(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Sa(i,void 0,m.useContext(Ea));s+=t.key+"-"+a.name;var l={};for(var c in e)ka.call(e,c)&&c!=="css"&&c!==Bs&&(l[c]=e[c]);return l.className=s,r&&(l.ref=r),m.createElement(m.Fragment,null,m.createElement(Ov,{cache:t,serialized:a,isStringTag:typeof o=="string"}),m.createElement(o,l))}),Nv=Rv,Ml=function(t,r){var n=arguments;if(r==null||!ka.call(r,"css"))return m.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Nv,i[1]=Tv(t,r);for(var s=2;s<o;s++)i[s]=n[s];return m.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ml||(Ml={}));var Wl=wa(function(e,t){var r=e.styles,n=Sa([r],void 0,m.useContext(Ea)),o=m.useRef();return $l(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[t]),$l(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&Ca(t,n.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function Av(...e){return function(...r){e.forEach(n=>n?.(...r))}}const Vv=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),_v=/^on[A-Z]/;function Xn(...e){let t={};for(let r of e){for(let n in t){if(_v.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=Av(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=Vv(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 Lv=parseInt(m.version.split(".")[0],10),Fv=Lv>=19;function ls(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Dv(...e){const t=e.filter(r=>r!=null);if(Fv){const r=new Map;return n=>(t.forEach(o=>{const i=ls(o,n);i&&r.set(o,i)}),()=>{t.forEach(o=>{const i=r.get(o);i&&typeof i=="function"?i():ls(o,null)}),r.clear()})}else return r=>{t.forEach(n=>{ls(n,r)})}}function no(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}const ze=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Xe=e=>typeof e=="string",Ia=e=>typeof e=="function",xe=(...e)=>{const t=[];for(let r=0;r<e.length;r++){const n=e[r];if(!Xe(n))continue;const o=n.trim();o&&t.push(o)}return t.join(" ")};function zv(e){return e.default||e}function $v(e){const t=m.version;return!Xe(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const Pa=(...e)=>{const t=e.reduce((r,n)=>(n?.forEach(o=>r.add(o)),r),new Set([]));return Array.from(t)};function Mv(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Mr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=m.createContext(s);a.displayName=t;function l(){const c=m.useContext(a);if(!c&&r){const d=new Error(i??Mv(n,o));throw d.name="ContextError",Error.captureStackTrace?.(d,l),d}return c}return[a.Provider,l,a]}const[Wv,yr]=Mr({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function pN(e){const{value:t,children:r}=e;return v.jsxs(Wv,{value:t,children:[!t._config.disableLayers&&v.jsx(Wl,{styles:t.layers.atRule}),v.jsx(Wl,{styles:t._global}),r]})}const Bv=(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]},Wr=(e,t)=>{const r=Ia(t)?t:n=>t.includes(n);return Bv(e,r)},Hv=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function jv(e){return typeof e=="string"&&Hv.has(e)}function Gv(e,t,r){const{css:n,isValidProperty:o}=yr(),{children:i,...s}=e,a=m.useMemo(()=>{const[f,u]=Wr(s,S=>r(S,t.variantKeys)),[h,p]=Wr(u,t.variantKeys),[y,C]=Wr(p,o);return{forwardedProps:f,variantProps:h,styleProps:y,elementProps:C}},[t.variantKeys,r,s,o]),{css:l,...c}=a.styleProps,d=m.useMemo(()=>{const f={...a.variantProps},u=t.variantKeys.includes("colorPalette"),h=t.variantKeys.includes("orientation");return u||(f.colorPalette=s.colorPalette),h||(f.orientation=s.orientation),t(f)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:m.useMemo(()=>n(d,...Uv(l),c),[n,d,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const Uv=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),Yv=zv(Bm),Xv=Yv,Kv=e=>e!=="theme",qv=(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 Zv=typeof document<"u";const Bl=({cache:e,serialized:t,isStringTag:r})=>{xa(e,t,r);const n=iu(()=>Ca(e,t,r));if(!Zv&&n!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=xe(o,i.name),i=i.next;return v.jsx("style",{"data-emotion":xe(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},Hl={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Jv=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Qv=(e,t={},r={})=>{if(Jv(Hl,e)){r.forwardProps||(r.forwardProps=[]);const c=Hl[e];r.forwardProps=Pa([...r.forwardProps,...c])}const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,s;r!==void 0&&(i=r.label,s=r.target);let a=[];const l=wa((c,d,g)=>{const{cva:f,isValidProperty:u}=yr(),h=t.__cva__?t:f(t),p=tb(e.__emotion_cva,h),y=F=>(j,q)=>F.includes(j)?!0:!q?.includes(j)&&!u(j);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=y(r.forwardProps));const C=(F,j)=>{const q=typeof e=="string"&&e.charCodeAt(0)>96?Xv:Kv,pe=!j?.includes(F)&&!u(F);return q(F)&&pe},S=qv(e,r,n)||C,w=m.useMemo(()=>Object.assign({},r.defaultProps,no(c)),[c]),{props:b,styles:x}=Gv(w,p,S);let k="",R=[x],T=b;if(b.theme==null){T={};for(let F in b)T[F]=b[F];T.theme=m.useContext(Ea)}typeof b.className=="string"?k=ru(d.registered,R,b.className):b.className!=null&&(k=xe(k,b.className));const A=Sa(a.concat(R),d.registered,T);A.styles&&(k=xe(k,`${d.key}-${A.name}`)),s!==void 0&&(k=xe(k,s));const I=!S("as");let N=I&&b.as||o,E={};for(let F in b)if(!(I&&F==="as")){if(jv(F)){const j=F.replace("html","").toLowerCase();E[j]=b[F];continue}S(F)&&(E[F]=b[F])}let O=k.trim();O?E.className=O:Reflect.deleteProperty(E,"className"),E.ref=g;const W=r.forwardAsChild||r.forwardProps?.includes("asChild");if(b.asChild&&!W){const F=m.isValidElement(b.children)?m.Children.only(b.children):m.Children.toArray(b.children).find(m.isValidElement);if(!F)throw new Error("[chakra-ui > factory] No valid child found");N=F.type,E.children=null,Reflect.deleteProperty(E,"asChild"),E=Xn(E,F.props),E.ref=Dv(g,$v(F))}return E.as&&W?(E.as=void 0,v.jsxs(m.Fragment,{children:[v.jsx(Bl,{cache:d,serialized:A,isStringTag:typeof N=="string"}),v.jsx(N,{asChild:!0,...E,children:v.jsx(b.as,{children:E.children})})]})):v.jsxs(m.Fragment,{children:[v.jsx(Bl,{cache:d,serialized:A,isStringTag:typeof N=="string"}),v.jsx(N,{...E})]})});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`.${s}`}}),l},cs=Qv.bind(),ds=new Map,eb=new Proxy(cs,{apply(e,t,r){return cs(...r)},get(e,t){return ds.has(t)||ds.set(t,cs(t)),ds.get(t)}}),U=eb,tb=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),au=U("div");au.displayName="Box";const lu=m.forwardRef(function(t,r){const{size:n,...o}=t;return v.jsx(au,{...o,ref:r,boxSize:n,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...t.css}})});lu.displayName="Square";const cu=m.forwardRef(function(t,r){const{size:n,...o}=t;return v.jsx(lu,{size:n,ref:r,borderRadius:"9999px",...o})});cu.displayName="Circle";const du=Object.freeze({}),uu=Object.freeze({});function Ii(e){const{key:t,recipe:r}=e,n=yr();return m.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}const rb=e=>e.charAt(0).toUpperCase()+e.slice(1);function nt(e){const{key:t,recipe:r}=e,n=rb(t||r.className||"Component"),[o,i]=Mr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function s(c){const{unstyled:d,...g}=c,f=Ii({key:t,recipe:g.recipe||r}),[u,h]=m.useMemo(()=>f.splitVariantProps(g),[f,g]);return{styles:d?du:f(u),className:f.className,props:h}}const a=(c,d)=>{const g=U(c,{},d),f=m.forwardRef((u,h)=>{const p=i(),y=m.useMemo(()=>Xn(p,u),[u,p]),{styles:C,className:S,props:w}=s(y);return v.jsx(g,{...w,ref:h,css:[C,y.css],className:xe(S,y.className)})});return f.displayName=c.displayName||c.name,f};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}const gu=m.forwardRef(function(t,r){const{templateAreas:n,column:o,row:i,autoFlow:s,autoRows:a,templateRows:l,autoColumns:c,templateColumns:d,inline:g,...f}=t;return v.jsx(U.div,{...f,ref:r,css:[{display:g?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:c,gridColumn:o,gridRow:i,gridAutoFlow:s,gridAutoRows:a,gridTemplateRows:l,gridTemplateColumns:d},t.css]})});gu.displayName="Grid";var nb=Object.defineProperty,fu=e=>{throw TypeError(e)},ob=(e,t,r)=>t in e?nb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t,r)=>ob(e,typeof t!="symbol"?t+"":t,r),ib=(e,t,r)=>t.has(e)||fu("Cannot "+r),jl=(e,t,r)=>(ib(e,t,"read from private field"),t.get(e)),sb=(e,t,r)=>t.has(e)?fu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);function Go(e){return e==null?[]:Array.isArray(e)?e:[e]}var Br=e=>e[0],Pi=e=>e[e.length-1],ab=(e,t)=>e.indexOf(t)!==-1,ar=(e,...t)=>e.concat(t),dr=(e,...t)=>e.filter(r=>!t.includes(r)),Gl=(e,t)=>e.filter((r,n)=>n!==t),Yt=e=>Array.from(new Set(e)),us=(e,t)=>{const r=new Set(t);return e.filter(n=>!r.has(n))},Ur=(e,t)=>ab(e,t)?dr(e,t):ar(e,t);function hu(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,s=e.length,a=s-1;return t===-1?n>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function lb(e,t,r={}){return e[hu(e,t,r)]}function cb(e,t,r={}){const{step:n=1,loop:o=!0}=r;return hu(e,t,{step:-n,loop:o})}function db(e,t,r={}){return e[cb(e,t,r)]}function Ul(e,t){return e.reduce(([r,n],o)=>(t(o)?r.push(o):n.push(o),[r,n]),[[],[]])}var Yl=e=>e?.constructor.name==="Array",ub=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Te(e[r],t[r]))return!1;return!0},Te=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Yl(e)&&Yl(t))return ub(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(!Te(e[i],t[i]))return!1}return!0},Ln=e=>Array.isArray(e),gb=e=>e===!0||e===!1,pu=e=>e!=null&&typeof e=="object",lr=e=>pu(e)&&!Ln(e),Uo=e=>typeof e=="string",Lt=e=>typeof e=="function",fb=e=>e==null,rt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),hb=e=>Object.prototype.toString.call(e),mu=Function.prototype.toString,pb=mu.call(Object),mb=e=>{if(!pu(e)||hb(e)!="[object Object]"||yb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=rt(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&mu.call(r)==pb},vb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,bb=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,yb=e=>vb(e)||bb(e),Co=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Xl=e=>e,xb=e=>e(),Cb=()=>{},Yr=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},vu=(()=>{let e=0;return()=>(e++,e.toString(36))})();function At(e,t,...r){if(e in t){const o=t[e];return Lt(o)?o(...r):o}const n=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(n,At),n}var bu=(e,t)=>{try{return e()}catch(r){return r instanceof Error&&Error.captureStackTrace?.(r,bu),t?.()}},{floor:yu,abs:Kl,round:Ti,min:Sb,max:wb,pow:Eb,sign:kb}=Math,Hs=e=>Number.isNaN(e),Zt=e=>Hs(e)?0:e,xu=(e,t)=>(e%t+t)%t,Ib=(e,t)=>(e%t+t)%t,Pb=(e,t)=>Zt(e)>=t,Tb=(e,t)=>Zt(e)<=t,Ob=(e,t,r)=>{const n=Zt(e),o=t==null||n>=t,i=r==null||n<=r;return o&&i},Rb=(e,t,r)=>Ti((Zt(e)-t)/r)*r+t,Ne=(e,t,r)=>Sb(wb(Zt(e),t),r),Nb=(e,t,r)=>(Zt(e)-t)/(r-t),Ab=(e,t,r,n)=>Ne(Rb(e*(r-t)+t,t,n),t,r),ql=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let s=Eb(10,i);r=Ti(r*s)/s}return r},gs=(e,t)=>typeof t=="number"?yu(e*t+.5)/t:Ti(e),Zl=(e,t,r,n)=>{const o=t!=null?Number(t):0,i=Number(r),s=(e-o)%n;let a=Kl(s)*2>=n?e+kb(s)*(n-Kl(s)):e-s;if(a=ql(a,n),!Hs(o)&&a<o)a=o;else if(!Hs(i)&&a>i){const l=yu((i-o)/n),c=o+l*n;a=l<=0||c<o?i:c}return ql(a,n)},ie=(e,t=0,r=10)=>{const n=Math.pow(r,t);return Ti(e*n)/n},Jl=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},Cu=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(Jl(e),Jl(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},Vb=(e,t)=>Cu(Zt(e),"+",t),_b=(e,t)=>Cu(Zt(e),"-",t),Re=e=>typeof e=="number"?`${e}px`:e;function Zr(e){if(!mb(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]=Zr(o))}return r}function Lb(e,t=Object.is){let r={...e};const n=new Set,o=d=>(n.add(d),()=>n.delete(d)),i=()=>{n.forEach(d=>d())};return{subscribe:o,get:d=>r[d],set:(d,g)=>{t(r[d],g)||(r[d]=g,i())},update:d=>{let g=!1;for(const f in d){const u=d[f];u!==void 0&&!t(r[f],u)&&(r[f]=u,g=!0)}g&&i()},snapshot:()=>({...r})}}var So=()=>performance.now(),Yo,Fb=class{constructor(e){this.onTick=e,Ht(this,"frameId",null),Ht(this,"pausedAtMs",null),Ht(this,"context"),Ht(this,"cancelFrame",()=>{this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),Ht(this,"setStartMs",t=>{this.context.startMs=t}),Ht(this,"start",()=>{if(this.frameId!==null)return;const t=So();this.pausedAtMs!==null?(this.context.startMs+=t-this.pausedAtMs,this.pausedAtMs=null):this.context.startMs=t,this.frameId=requestAnimationFrame(jl(this,Yo))}),Ht(this,"pause",()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=So())}),Ht(this,"stop",()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=null)}),sb(this,Yo,t=>{if(this.context.now=t,this.context.deltaMs=t-this.context.startMs,this.onTick(this.context)===!1){this.stop();return}this.frameId=requestAnimationFrame(jl(this,Yo))}),this.context={now:0,startMs:So(),deltaMs:0}}get elapsedMs(){return this.pausedAtMs!==null?this.pausedAtMs-this.context.startMs:So()-this.context.startMs}};Yo=new WeakMap;function fs(e,t){const r=new Fb(({deltaMs:n})=>{if(n>=t)return e(),!1});return r.start(),()=>r.stop()}function gr(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Su(e,t){if(e==null)throw new Error(t())}function wu(e,t,r){let n=[];for(const o of t)e[o]==null&&n.push(o);if(n.length>0)throw new Error(`[zag-js${r?` > ${r}`:""}] missing required props: ${n.join(", ")}`)}function Db(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ne(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=m.createContext(s);a.displayName=t;function l(){const c=m.useContext(a);if(!c&&r){const d=new Error(i??Db(n,o));throw d.name="ContextError",rt(Error,"captureStackTrace")&&Lt(Error.captureStackTrace)&&Error.captureStackTrace(d,l),d}return c}return[a.Provider,l,a]}const[mN,Le]=ne({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var zb=Object.defineProperty,$b=(e,t,r)=>t in e?zb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hs=(e,t,r)=>$b(e,typeof t!="symbol"?t+"":t,r);function Mb(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function Wb(e){if(!e)return;const t=e.selectionStart??0,r=e.selectionEnd??0;Math.abs(r-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var Ql=e=>Math.max(0,Math.min(1,e)),Bb=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),ps=(...e)=>t=>e.reduce((r,n)=>n(r),t),_r=()=>{},Oi=e=>typeof e=="object"&&e!==null,Eu=2147483647,z=e=>e?"":void 0,Ta=e=>e?"true":void 0,Hb=1,jb=9,Gb=11,ve=e=>Oi(e)&&e.nodeType===Hb&&typeof e.nodeName=="string",Ri=e=>Oi(e)&&e.nodeType===jb,Ub=e=>Oi(e)&&e===e.window,ku=e=>ve(e)?e.localName||"":"#document";function Yb(e){return["html","body","#document"].includes(ku(e))}var Xb=e=>Oi(e)&&e.nodeType!==void 0,fr=e=>Xb(e)&&e.nodeType===Gb&&"host"in e,Kb=e=>ve(e)&&e.localName==="input",Iu=e=>!!e?.matches("a[href]"),qb=e=>ve(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Xt(e){if(!e)return!1;const t=e.getRootNode();return Hr(t)===e}var Zb=/(textarea|select)/;function Oa(e){if(e==null||!ve(e))return!1;try{return Kb(e)&&e.selectionStart!=null||Zb.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function _e(e,t){if(!e||!t||!ve(e)||!ve(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&fr(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fe(e){return Ri(e)?e:Ub(e)?e.document:e?.ownerDocument??document}function Jb(e){return Fe(e).documentElement}function ce(e){return fr(e)?ce(e.host):Ri(e)?e.defaultView??window:ve(e)?e.ownerDocument?.defaultView??window:window}function Hr(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}function Qb(e){if(ku(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fr(e)&&e.host||Jb(e);return fr(t)?t.host:t}function Ra(e){let t;try{if(t=e.getRootNode({composed:!0}),Ri(t)||fr(t))return t}catch{}return e.ownerDocument??document}var ms=new WeakMap;function zt(e){return ms.has(e)||ms.set(e,ce(e).getComputedStyle(e)),ms.get(e)}var Na=new Set(["menu","listbox","dialog","grid","tree","region"]),ey=e=>Na.has(e),Pu=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Tu(e,t){const r=new Set,n=Ra(e),o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=Pu(a);for(const c of l){if(!c||r.has(c))continue;r.add(c);const d=n.getElementById(c);if(d){const g=d.getAttribute("role"),f=d.getAttribute("aria-modal")==="true";if(g&&ey(g)&&!f&&(d===t||d.contains(t)||o(d)))return!0}}}return!1};return o(e)}function Ou(e,t){const r=Ra(e),n=new Set,o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=Pu(a);for(const c of l){if(!c||n.has(c))continue;n.add(c);const d=r.getElementById(c);if(d){const g=d.getAttribute("role"),f=d.getAttribute("aria-modal")==="true";g&&Na.has(g)&&!f&&(t(d),o(d))}}}};o(e)}function ty(e){const t=new Set;return Ou(e,r=>{e.contains(r)||t.add(r)}),Array.from(t)}function ry(e){const t=e.getAttribute("role");return!!(t&&Na.has(t))}function ny(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function oy(e){return ny(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function iy(e){if(!e.id)return!1;const t=Ra(e),r=CSS.escape(e.id),n=`[aria-controls~="${r}"][aria-expanded="true"], [aria-controls="${r}"][aria-expanded="true"]`;return!!(t.querySelector(n)&&ry(e))}var Ni=()=>typeof document<"u";function sy(){return navigator.userAgentData?.platform??navigator.platform}function ay(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var Aa=e=>Ni()&&e.test(sy()),Ru=e=>Ni()&&e.test(ay()),ly=e=>Ni()&&e.test(navigator.vendor),ec=()=>Ni()&&!!navigator.maxTouchPoints,cy=()=>Aa(/^iPhone/i),dy=()=>Aa(/^iPad/i)||oo()&&navigator.maxTouchPoints>1,Ai=()=>cy()||dy(),uy=()=>oo()||Ai(),oo=()=>Aa(/^Mac/i),Jr=()=>uy()&&ly(/apple/i),gy=()=>Ru(/Firefox/i),fy=()=>Ru(/Android/i);function hy(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function le(e){return hy(e)?.[0]??e.target}function js(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const n=e.button===1,o=py(e);return n||o}function tc(e){const t=e.currentTarget;if(!t)return!1;const r=t.localName;return e.altKey?r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit":!1}function Nu(e){return Cy(e).isComposing||e.keyCode===229}function py(e){return oo()?e.metaKey:e.ctrlKey}function my(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function vy(e){return e.pointerType===""&&e.isTrusted?!0:fy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Au=e=>e.button===0,Vu=e=>e.button===2||oo()&&e.ctrlKey&&e.button===0,by=e=>e.ctrlKey||e.altKey||e.metaKey,yy=e=>"touches"in e&&e.touches.length>0,xy={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},rc={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function ai(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let o=e.key;return o=xy[o]??o,r==="rtl"&&n==="horizontal"&&o in rc&&(o=rc[o]),o}function Cy(e){return e.nativeEvent??e}function Ft(e,t="client"){const r=yy(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var K=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}};function _u(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=ce(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function Sy(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function hr(e,t,r="value"){if(!e)return;const n=Sy(e);n&&_u(e,{type:n,property:r}).set?.call(e,t),e.setAttribute(r,t)}function Va(e,t){if(!e)return;_u(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Lu(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=ce(e);e instanceof o.HTMLInputElement&&(hr(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function Fu(e,t){const{checked:r,bubbles:n=!0}=t;if(!e)return;const o=ce(e);e instanceof o.HTMLInputElement&&(Va(e,r),e.dispatchEvent(new o.Event("click",{bubbles:n})))}function wy(e){return Ey(e)?e.form:e.closest("form")}function Ey(e){return e.matches("textarea, input, select, button")}function ky(e,t){if(!e)return;const r=wy(e),n=o=>{o.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}function Iy(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=ce(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Qr(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[ky(e,n),Iy(e,r)];return()=>o.forEach(i=>i?.())}var Du=e=>ve(e)&&e.tagName==="IFRAME",Py=/^(audio|video|details)$/;function zu(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var Ty=e=>!Number.isNaN(zu(e)),Oy=e=>zu(e)<0;function Ry(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const r=t(e);return(r===!0?e.shadowRoot:r)||null}function $u(e,t,r){const n=[...e],o=[...e],i=new Set,s=new Map;e.forEach((l,c)=>s.set(l,c));let a=0;for(;a<o.length;){const l=o[a++];if(!l||i.has(l))continue;i.add(l);const c=Ry(l,t);if(c){const d=Array.from(c.querySelectorAll(Vi)).filter(r),g=s.get(l);if(g!==void 0){const f=g+1;n.splice(f,0,...d),d.forEach((u,h)=>{s.set(u,f+h)});for(let u=f+d.length;u<n.length;u++)s.set(n[u],u)}else{const f=n.length;n.push(...d),d.forEach((u,h)=>{s.set(u,f+h)})}o.push(...d)}}return n}var Vi="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",_a=(e,t={})=>{if(!e)return[];const{includeContainer:r=!1,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll(Vi));(r==!0||r=="if-empty"&&o.length===0)&&ve(e)&&Dt(e)&&o.unshift(e);const s=[];for(const a of o)if(Dt(a)){if(Du(a)&&a.contentDocument){const l=a.contentDocument.body;s.push(..._a(l,{getShadowRoot:n}));continue}s.push(a)}return n?$u(s,n,Dt):s};function Dt(e){return!ve(e)||e.closest("[inert]")?!1:e.matches(Vi)&&qb(e)}function en(e,t={}){if(!e)return[];const{includeContainer:r,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll(Vi));r&&cr(e)&&o.unshift(e);const i=[];for(const s of o)if(cr(s)){if(Du(s)&&s.contentDocument){const a=s.contentDocument.body;i.push(...en(a,{getShadowRoot:n}));continue}i.push(s)}if(n){const s=$u(i,n,cr);return!s.length&&r?o:s}return!i.length&&r?o:i}function cr(e){return ve(e)&&e.tabIndex>0?!0:Dt(e)&&!Oy(e)}function Mu(e,t={}){const r=en(e,t),n=r[0]||null,o=r[r.length-1]||null;return[n,o]}function Ny(e,t={}){const{current:r,getShadowRoot:n}=t,o=en(e,{getShadowRoot:n}),i=e?.ownerDocument||document,s=r??Hr(i);if(!s)return null;const a=o.indexOf(s);return o[a+1]||null}function vn(e){return e.tabIndex<0&&(Py.test(e.localName)||Oa(e))&&!Ty(e)?0:e.tabIndex}function Kn(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?.querySelector("[data-autofocus],[autofocus]")),!i){const s=en(t);i=n?s.filter(n)[0]:s[0]}return i||t||void 0}function Ay(e){const t=e.currentTarget;if(!t)return!1;const[r,n]=Mu(t);return!(Xt(r)&&e.shiftKey||Xt(n)&&!e.shiftKey||!r&&!n)}var Wu=class Bu{constructor(){hs(this,"id",null),hs(this,"fn_cleanup"),hs(this,"cleanup",()=>{this.cancel()})}static create(){return new Bu}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function $(e){const t=Wu.create();return t.request(e),t.cleanup}function _i(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 Vy(e,t,r){const n=$(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function _y(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&r.includes(a.attributeName)&&n(a)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function io(e,t){const{defer:r}=t,n=r?$:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(_y(i,t))})),()=>{o.forEach(i=>i?.())}}function Ly(e,t){const{callback:r}=t;if(!e)return;const n=e.ownerDocument.defaultView||window,o=new n.MutationObserver(r);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function Fy(e,t){const{defer:r}=t,n=r?$:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(Ly(i,t))})),()=>{o.forEach(i=>i?.())}}function La(e){const t=()=>{const r=ce(e);e.dispatchEvent(new r.MouseEvent("click"))};gy()?Vy(e,"keyup",t):queueMicrotask(t)}function li(e){const t=Qb(e);return Yb(t)?Fe(t).body:ve(t)&&Fa(t)?t:li(t)}function Hu(e,t=[]){const r=li(e),n=r===e.ownerDocument.body,o=ce(r);return n?t.concat(o,o.visualViewport||[],Fa(r)?r:[]):t.concat(r,Hu(r,[]))}var Dy=/auto|scroll|overlay|hidden|clip/,zy=new Set(["inline","contents"]);function Fa(e){const t=ce(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return Dy.test(r+o+n)&&!zy.has(i)}function $y(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function qn(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Fa(r)||!$y(r)||e.scrollIntoView(n)}function ju(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-r,y:e.y-n},a={x:Ql(s.x/o),y:Ql(s.y/i)};function l(c={}){const{dir:d="ltr",orientation:g="horizontal",inverted:f}=c,u=typeof f=="object"?f.x:f,h=typeof f=="object"?f.y:f;return g==="horizontal"?d==="rtl"||u?1-a.x:a.x:h?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function My(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const a=[K(e,"pointerlockchange",i,!1),K(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var Lr="default",Gs="",Xo=new WeakMap;function Wy(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return Ai()?(Lr==="default"&&(Gs=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Lr="disabled"):t&&(Xo.set(t,t.style.userSelect),t.style.userSelect="none"),()=>By({target:t,doc:n})}function By(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(Ai()){if(Lr!=="disabled")return;Lr="restoring",setTimeout(()=>{_i(()=>{Lr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Gs||""),Gs="",Lr="default")})},300)}else if(t&&Xo.has(t)){const i=Xo.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Xo.delete(t)}}function Gu(e={}){const{defer:t,target:r,...n}=e,o=t?$:s=>s(),i=[];return i.push(o(()=>{const s=typeof r=="function"?r():r;i.push(Wy({...n,target:s}))})),()=>{i.forEach(s=>s?.())}}function Uu(e,t){const{onPointerMove:r,onPointerUp:n}=t,o=a=>{const l=Ft(a),c=Math.sqrt(l.x**2+l.y**2),d=a.pointerType==="touch"?10:5;if(!(c<d)){if(a.pointerType==="mouse"&&a.buttons===0){i(a);return}r({point:l,event:a})}},i=a=>{const l=Ft(a);n({point:l,event:a})},s=[K(e,"pointermove",o,!1),K(e,"pointerup",i,!1),K(e,"pointercancel",i,!1),K(e,"contextmenu",i,!1),Gu({doc:e})];return()=>{s.forEach(a=>a())}}function Yu(e){const{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:o,onPressEnd:i,isValidKey:s=S=>S.key==="Enter"}=e;if(!t)return _r;const a=ce(t);let l=_r,c=_r,d=_r;const g=S=>({point:Ft(S),event:S});function f(S){o?.(g(S))}function u(S){i?.(g(S))}const p=K(t,"pointerdown",S=>{c();const b=K(a,"pointerup",k=>{const R=le(k);_e(t,R)?n?.(g(k)):i?.(g(k))},{passive:!n,once:!0}),x=K(a,"pointercancel",u,{passive:!i,once:!0});c=ps(b,x),Xt(r)&&S.pointerType==="mouse"&&S.preventDefault(),f(S)},{passive:!o}),y=K(r,"focus",C);l=ps(p,y);function C(){const S=k=>{if(!s(k))return;const R=A=>{if(!s(A))return;const I=new a.PointerEvent("pointerup"),N=g(I);n?.(N),i?.(N)};c(),c=K(r,"keyup",R);const T=new a.PointerEvent("pointerdown");f(T)},w=()=>{const k=new a.PointerEvent("pointercancel");u(k)},b=K(r,"keydown",S),x=K(r,"blur",w);d=ps(b,x)}return()=>{l(),c(),d()}}function Hy(e,t={}){const{triggerElement:r,onFocus:n,onFocusEnter:o,getShadowRoot:i}=t,s=e?.ownerDocument||document,a=s.body;function l(c){if(c.key!=="Tab")return;let d=null;const[g,f]=Mu(e,{includeContainer:!0,getShadowRoot:i}),u=Ny(a,{current:r,getShadowRoot:i}),h=!g&&!f;c.shiftKey&&Xt(u)?(o?.(),d=f):c.shiftKey&&(Xt(g)||h)?d=r:!c.shiftKey&&Xt(r)?(o?.(),d=g):!c.shiftKey&&(Xt(f)||h)&&(d=u),d&&(c.preventDefault(),typeof n=="function"?n(d):d.focus())}return K(s,"keydown",l,!0)}function jy(e,t){const{defer:r,triggerElement:n,...o}=t,i=r?$:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof n=="function"?n():n;s.push(Hy(a,{triggerElement:l,...o}))})),()=>{s.forEach(a=>a?.())}}function pr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function tn(e,t){return e?.querySelector(t)??null}var Da=e=>e.id;function Xu(e,t,r=Da){return e.find(n=>r(n)===t)}function Li(e,t,r=Da){const n=Xu(e,t,r);return n?e.indexOf(n):-1}function za(e,t,r=!0){let n=Li(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function $a(e,t,r=!0){let n=Li(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])}function Gy(e){const t=new WeakMap;let r;const n=new WeakMap,o=a=>r||(r=new a.ResizeObserver(l=>{for(const c of l){n.set(c.target,c);const d=t.get(c.target);if(d)for(const g of d)g(c)}}),r);return{observe:(a,l)=>{let c=t.get(a)||new Set;c.add(l),t.set(a,c);const d=ce(a);return o(d).observe(a,e),()=>{const g=t.get(a);g&&(g.delete(l),g.size===0&&(t.delete(a),o(d).unobserve(a)))}},unobserve:a=>{t.delete(a),r?.unobserve(a)}}}var Uy=Gy({box:"border-box"}),Yy=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(),Xy=e=>Yy(e.dataset?.valuetext??e.textContent??""),Ky=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function qy(e,t,r,n=Da){const o=r?Li(e,r,n):-1;let i=r?Bb(e,o):e;return t.length===1&&(i=i.filter(a=>n(a)!==r)),i.find(a=>Ky(Xy(a),t))}function Zy(e,t,r){const n=e.getAttribute(t),o=n!=null;return e.setAttribute(t,r),()=>{o?e.setAttribute(t,n):e.removeAttribute(t)}}function Zn(e,t){if(!e)return _r;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 Jy(e,t,r){if(!e)return _r;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 Qy(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:s}=t,a=r.keysSoFar+o,c=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a;let d=e.slice();const g=qy(d,c,n,s);function f(){clearTimeout(r.timer),r.timer=-1}function u(h){r.keysSoFar=h,f(),h!==""&&(r.timer=+setTimeout(()=>{u(""),f()},i))}return u(a),g}var Xr=Object.assign(Qy,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:ex});function ex(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Ku={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function tx(e,t,r){const{signal:n}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${r}ms exceeded`))},r);n.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{n.aborted||(clearTimeout(l),s(c))}).catch(c=>{n.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function rx(e,t){const{timeout:r,rootNode:n}=t,o=ce(n),i=Fe(n),s=new o.AbortController;return tx(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const d=e();d&&d.isConnected&&(c.disconnect(),a(d))});c.observe(i.body,{childList:!0,subtree:!0})}),s,r)}var nx=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),ox=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,nc=e=>{const t={};let r;for(;r=ox.exec(e);)t[r[1]]=r[2];return t},ix=(e,t)=>{if(Uo(e)){if(Uo(t))return`${e};${t}`;e=nc(e)}else Uo(t)&&(t=nc(t));return Object.assign({},e??{},t??{})};function V(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=Yr(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=nx(t[o],r[o]);continue}if(o==="style"){t[o]=ix(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function oc(e,t,r){let n=[],o;return i=>{const s=e(i);return(s.length!==n.length||s.some((l,c)=>!Te(n[c],l)))&&(n=s,o=t(s,i)),o}}function ot(){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 so(){return{guards:ot(),createMachine:e=>e,choose:e=>function({choose:r}){return r(e)?.actions}}}var Rr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Rr||{}),vs="__init__";function sx(e){const t=()=>e.getRootNode?.()??document,r=()=>Fe(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>Hr(t()),isActiveElement:Xt,getById:s=>t().getElementById(s)}}function Et(...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 ax(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const bs=e=>{const t=m.memo(m.forwardRef((r,n)=>{const{asChild:o,children:i,...s}=r;if(!o)return m.createElement(e,{...s,ref:n},i);if(!m.isValidElement(i))return null;const a=m.Children.only(i),l=ax(a);return m.cloneElement(a,{...V(s,a.props),ref:n?Et(n,l):l})}));return t.displayName=e.displayName||e.name,t},lx=()=>{const e=new Map;return new Proxy(bs,{apply(t,r,n){return bs(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,bs(n)),e.get(n)}})},_=lx(),[vN,it]=ne({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:cx}=nt({key:"heading"}),dx=cx("h2");dx.displayName="Heading";const se=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,s=n;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),kt=e=>se()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function ux(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var M=()=>e=>Array.from(new Set(e));function gx(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&n({type:"NODE.SET",node:s})},unmount(){n({type:"UNMOUNT"})}}}var fx={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:["cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},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)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();const r=t.get("node");if(!r)return;const n=ce(r),o=new n.CustomEvent("exitcomplete",{bubbles:!1});r.dispatchEvent(o)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",zt(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},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?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});$(()=>{const s=wo(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{$(()=>{e.set("prevAnimationName",wo(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r,prop:n})=>{const o=t.get("node");if(!o)return;const i=c=>{(c.composedPath?.()?.[0]??c.target)===o&&e.set("prevAnimationName",wo(t.get("styles")))},s=c=>{const d=wo(t.get("styles"));le(c)===o&&d===e.get("unmountAnimationName")&&!n("present")&&r({type:"UNMOUNT",src:"animationend"})},a=c=>{le(c)===o&&!n("present")&&r({type:"UNMOUNT",src:"animationcancel"})};o.addEventListener("animationstart",i),o.addEventListener("animationcancel",a),o.addEventListener("animationend",s);const l=Zn(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",a),o.removeEventListener("animationend",s),_i(()=>l())}}}}};function wo(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var qu=typeof globalThis.document<"u"?m.useLayoutEffect:m.useEffect;function ci(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=m.useState(t),[o,i]=m.useState(n),s=e().value!==void 0,a=m.useRef(o);a.current=s?e().value:o;const l=m.useRef(a.current);qu(()=>{l.current=a.current},[o,e().value]);const c=g=>{const f=l.current,u=Lt(g)?g(f):g;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:u,prev:f}),s||i(u),r(u,f)||e().onChange?.(u,f)};function d(){return s?e().value:o}return{initial:n,ref:a,get:d,set(g){(e().sync?Si.flushSync:xb)(()=>c(g))},invoke(g,f){e().onChange?.(g,f)},hash(g){return e().hash?.(g)??String(g)}}}ci.cleanup=e=>{m.useEffect(()=>e,[])};ci.ref=e=>{const t=m.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function hx(e){const t=m.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var px=(e,t)=>{const r=m.useRef(!1),n=m.useRef(!1);m.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),m.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function We(e,t={}){const r=m.useMemo(()=>{const{id:N,ids:E,getRootNode:O}=t;return sx({id:N,ids:E,getRootNode:O})},[t]),n=(...N)=>{e.debug&&console.log(...N)},o=e.props?.({props:Zr(t),scope:r})??t,i=mx(o),s=e.context?.({prop:i,bindable:ci,scope:r,flush:ic,getContext(){return l},getComputed(){return x},getRefs(){return p},getEvent(){return u()}}),a=Zu(s),l={get(N){return a.current?.[N].ref.current},set(N,E){a.current?.[N].set(E)},initial(N){return a.current?.[N].initial},hash(N){const E=a.current?.[N].get();return a.current?.[N].hash(E)}},c=m.useRef(new Map),d=m.useRef(null),g=m.useRef(null),f=m.useRef({type:""}),u=()=>({...f.current,current(){return f.current},previous(){return g.current}}),h=()=>({...k,matches(...N){return N.includes(k.ref.current)},hasTag(N){return!!e.states[k.ref.current]?.tags?.includes(N)}}),p=hx(e.refs?.({prop:i,context:l})??{}),y=()=>({state:h(),context:l,event:u(),prop:i,send:I,action:C,guard:S,track:px,refs:p,computed:x,flush:ic,scope:r,choose:b}),C=N=>{const E=Lt(N)?N(y()):N;if(!E)return;const O=E.map(W=>{const F=e.implementations?.actions?.[W];return F||gr(`[zag-js] No implementation found for action "${JSON.stringify(W)}"`),F});for(const W of O)W?.(y())},S=N=>Lt(N)?N(y()):e.implementations?.guards?.[N](y()),w=N=>{const E=Lt(N)?N(y()):N;if(!E)return;const O=E.map(F=>{const j=e.implementations?.effects?.[F];return j||gr(`[zag-js] No implementation found for effect "${JSON.stringify(F)}"`),j}),W=[];for(const F of O){const j=F?.(y());j&&W.push(j)}return()=>W.forEach(F=>F?.())},b=N=>Go(N).find(E=>{let O=!E.guard;return Uo(E.guard)?O=!!S(E.guard):Lt(E.guard)&&(O=E.guard(y())),O}),x=N=>{Su(e.computed,()=>"[zag-js] No computed object found on machine");const E=e.computed[N];return E({context:l,event:u(),prop:i,refs:p,scope:r,computed:x})},k=ci(()=>({defaultValue:e.initialState({prop:i}),onChange(N,E){E&&(c.current.get(E)?.(),c.current.delete(E)),E&&C(e.states[E]?.exit),C(d.current?.actions);const O=w(e.states[N]?.effects);if(O&&c.current.set(N,O),E===vs){C(e.entry);const W=w(e.effects);W&&c.current.set(vs,W)}C(e.states[N]?.entry)}})),R=m.useRef(void 0),T=m.useRef(Rr.NotStarted);qu(()=>{queueMicrotask(()=>{const O=T.current===Rr.Started;T.current=Rr.Started,n(O?"rehydrating...":"initializing...");const W=R.current??k.initial;k.invoke(W,O?k.get():vs)});const N=c.current,E=k.ref.current;return()=>{n("unmounting..."),R.current=E,T.current=Rr.Stopped,N.forEach(O=>O?.()),c.current=new Map,d.current=null,queueMicrotask(()=>{C(e.exit)})}},[]);const A=()=>"ref"in k?k.ref.current:k.get(),I=N=>{queueMicrotask(()=>{if(T.current!==Rr.Started)return;g.current=f.current,f.current=N;let E=A();const O=e.states[E].on?.[N.type]??e.on?.[N.type],W=b(O);if(!W)return;d.current=W;const F=W.target??E;n("transition",N.type,W.target||E,`(${W.actions})`);const j=F!==E;j?Si.flushSync(()=>k.set(F)):W.reenter&&!j?k.invoke(E,E):C(W.actions??[])})};return e.watch?.(y()),{state:h(),send:I,context:l,prop:i,scope:r,refs:p,computed:x,event:u(),getStatus:()=>T.current}}function Zu(e){const t=m.useRef(e);return t.current=e,t}function mx(e){const t=Zu(e);return function(n){return t.current[n]}}function ic(e){queueMicrotask(()=>{Si.flushSync(()=>e())})}var qe=ux(e=>e);function Ju(e,t={}){const{sync:r=!1}=t,n=vx(e);return m.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function vx(e){const t=m.useRef(e);return t.current=e,t}const st=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,s=m.useRef(!1),a={...i,present:n,onExitComplete:Ju(e.onExitComplete)},l=We(fx,a),c=gx(l);c.present&&(s.current=!0);const d=!c.present&&!s.current&&t||r&&!c.present&&s.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:d}},[gt,Ze]=ne({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Fn=U("span");Fn.displayName="Span";const{withContext:bx}=nt({key:"text"}),yx=bx("p");yx.displayName="Text";function Us(e,t=[]){const r=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return m.useInsertionEffect(()=>{r.current=e}),m.useCallback((...n)=>r.current?.(...n),t)}function xx(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Cx(e,t={}){const{fallback:r=[],ssr:n=!0,getWindow:o}=t,i=Us(o),s=Array.isArray(e)?e:[e],a=r?.filter(d=>d!=null),[l,c]=m.useState(()=>s.map((d,g)=>{if(!n){const{media:f,matches:u}=(o?.()??window).matchMedia(d);return{media:f,matches:u}}return{media:d,matches:!!a[g]}}));return m.useEffect(()=>{const d=i()??window;c(h=>{const p=s.map(y=>{const{media:C,matches:S}=d.matchMedia(y);return{media:C,matches:S}});return h.every((y,C)=>y.matches===p[C].matches&&y.media===p[C].media)?h:p});const g=s.map(h=>d.matchMedia(h)),f=h=>{c(p=>p.slice().map(y=>y.media===h.media?{...y,matches:h.matches}:y))},u=g.map(h=>xx(h,f));return()=>u.forEach(h=>h())},[i]),l.map(d=>d.matches)}function Sx(e={}){e.fallback||(e.fallback="base");const t=yr();let r=!1;const o=t.breakpoints.values.map(({min:l,name:c})=>{const d={breakpoint:c,query:`(min-width: ${l})`,fallback:!r};return c===e.fallback&&(r=!0),d}).filter(({breakpoint:l})=>!!e.breakpoints?.includes(l)),i=o.map(({fallback:l})=>l),a=Cx(o.map(l=>l.query),{fallback:i,ssr:e.ssr}).lastIndexOf(!0);return o[a]?.breakpoint??e.fallback}function bN(e,t){const n=yr().normalizeValue(e),o=Sx({breakpoints:Object.keys(n),...t});return n[o]}function yN(e={}){const t=Us(e.onOpen),r=Us(e.onClose),[n,o]=m.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:n,s=e.open!==void 0,a=m.useCallback(()=>{s||o(!1),r?.()},[s,r]),l=m.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=m.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}const[Qu,Fi]=ne({name:"AccordionContext",hookName:"useAccordionContext",providerName:"<AccordionProvider />"}),[wx]=ne({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItemProvider />"}),Ex=e=>se()(e,["collapsedHeight","collapsedWidth","defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var B=(e,t=[])=>({parts:(...r)=>{if(kx(t))return B(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>B(e,[...t,...r]),omit:(...r)=>B(e,t.filter(n=>!r.includes(n))),rename:r=>B(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Sr(e)}"][data-part="${Sr(n)}"]`,`& [data-scope="${Sr(e)}"][data-part="${Sr(n)}"]`].join(", "),attrs:{"data-scope":Sr(e),"data-part":Sr(n)}}}),{})}),Sr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),kx=e=>e.length===0,eg=B("collapsible").parts("root","trigger","content","indicator"),Eo=eg.build(),Ix=e=>e.ids?.root??`collapsible:${e.id}`,Ys=e=>e.ids?.content??`collapsible:${e.id}:content`,Px=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,bn=e=>e.getById(Ys(e));function Tx(e,t){const{state:r,send:n,context:o,scope:i,prop:s}=e,a=r.matches("open")||r.matches("closing"),l=r.matches("open"),c=r.matches("closed"),{width:d,height:g}=o.get("size"),f=!!s("disabled"),u=s("collapsedHeight"),h=s("collapsedWidth"),p=u!=null,y=h!=null,C=p||y,S=!o.get("initial")&&l;return{disabled:f,visible:a,open:l,measureSize(){n({type:"size.measure"})},setOpen(w){r.matches("open")!==w&&n({type:w?"open":"close"})},getRootProps(){return t.element({...Eo.root.attrs,"data-state":l?"open":"closed",dir:s("dir"),id:Ix(i)})},getContentProps(){return t.element({...Eo.content.attrs,id:Ys(i),"data-collapsible":"","data-state":S?void 0:l?"open":"closed","data-disabled":z(f),"data-has-collapsed-size":z(C),hidden:!a&&!C,dir:s("dir"),style:{"--height":Re(g),"--width":Re(d),"--collapsed-height":Re(u),"--collapsed-width":Re(h),...c&&p&&{overflow:"hidden",minHeight:Re(u),maxHeight:Re(u)},...c&&y&&{overflow:"hidden",minWidth:Re(h),maxWidth:Re(h)}}})},getTriggerProps(){return t.element({...Eo.trigger.attrs,id:Px(i),dir:s("dir"),type:"button","data-state":l?"open":"closed","data-disabled":z(f),"aria-controls":Ys(i),"aria-expanded":a||!1,onClick(w){w.defaultPrevented||f||n({type:l?"close":"open"})}})},getIndicatorProps(){return t.element({...Eo.indicator.attrs,dir:s("dir"),"data-state":l?"open":"closed","data-disabled":z(f)})}}}var Ox={initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["setInitial","computeSize","toggleVisibility"])})},exit:["cleanupNode"],states:{closed:{effects:["trackTabbableElements"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let r;const n=$(()=>{const o=bn(t);if(!o)return;const i=zt(o).animationName;if(!i||i==="none"){e({type:"animation.end"});return}const a=l=>{le(l)===o&&e({type:"animation.end"})};o.addEventListener("animationend",a),r=()=>{o.removeEventListener("animationend",a)}});return()=>{n(),r?.()}},trackExitAnimation:({send:e,scope:t})=>{let r;const n=$(()=>{const o=bn(t);if(!o)return;const i=zt(o).animationName;if(!i||i==="none"){e({type:"animation.end"});return}const a=c=>{le(c)===o&&e({type:"animation.end"})};o.addEventListener("animationend",a);const l=Zn(o,{animationFillMode:"forwards"});r=()=>{o.removeEventListener("animationend",a),_i(()=>l())}});return()=>{n(),r?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t("collapsedHeight")&&!t("collapsedWidth"))return;const r=bn(e);if(!r)return;const n=()=>{const a=en(r).map(l=>Zy(l,"inert",""));return()=>{a.forEach(l=>l())}};let o=n();const i=Fy(r,{callback(){o(),o=n()}});return()=>{o(),i()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{const r=bn(t);if(!r)return;const{height:n,width:o}=r.getBoundingClientRect();e.set("size",{height:n,width:o})},computeSize:({refs:e,scope:t,context:r})=>{e.get("cleanup")?.();const n=$(()=>{const o=bn(t);if(!o)return;const i=o.hidden;o.style.animationName="none",o.style.animationDuration="0s",o.hidden=!1;const s=o.getBoundingClientRect();r.set("size",{height:s.height,width:s.width}),r.get("initial")&&(o.style.animationName="",o.style.animationDuration=""),o.hidden=i});e.set("cleanup",n)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}};M()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);const Rx=(e={})=>{const{lazyMount:t,unmountOnExit:r,...n}=e,o=m.useId(),i=m.useRef(!1),{dir:s}=it(),{getRootNode:a}=Le(),l={id:o,dir:s,getRootNode:a,...n},c=We(Ox,l),d=Tx(c,qe);d.visible&&(i.current=!0);const g=!d.visible&&!i.current&&t||r&&!d.visible&&i.current;return{...d,isUnmounted:g}},[Nx,tg]=ne({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),rg=m.forwardRef((e,t)=>{const[r,n]=Ex(e),o=Rx(r),i=V(o.getRootProps(),n);return v.jsx(Nx,{value:o,children:v.jsx(_.div,{...i,ref:t})})});rg.displayName="CollapsibleRoot";var Ax=Object.defineProperty,Vx=(e,t,r)=>t in e?Ax(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ma=(e,t,r)=>Vx(e,t+"",r),_x=(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},Wa=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 Nb(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=Ab(t,r,n,o);return Zl(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]=Ne(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(s=>s!==r),o=r||this.getChannels().find(s=>s!==n),i=this.getChannels().find(s=>s!==n&&s!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=Zl(Ne(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 _x(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Lx=/^#[\da-f]+$/i,Fx=/^rgba?\((.*)\)$/,Dx=/[^#]/gi,ng=class Ko extends Wa{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(Lx.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(Dx,"$&$&"):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(Fx);return n?.[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Ne(o,0,i<3?255:1))),r.length<3?void 0:new Ko(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),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(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 ja(ie(l*360,2),ie(a*100,2),ie(i*100,2),ie(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),s=(i+o)/2,a=i-o;let l=-1,c=-1;if(a===0)l=c=0;else{switch(c=a/(s<.5?i+o:2-i-o),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 Ha(ie(l*360,2),ie(c*100,2),ie(s*100,2),ie(this.alpha,2))}clone(){return new Ko(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 Ko.colorChannels}};Ma(ng,"colorChannels",["red","green","blue"]);var Ba=ng,zx=/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+)?)\)/,og=class qo extends Wa{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(zx)){const[n,o,i,s]=(r[1]??r[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new qo(xu(n,360),Ne(o,0,100),Ne(i,0,100),Ne(s??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}, ${ie(this.saturation,2)}%, ${ie(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ie(this.saturation,2)}%, ${ie(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 ja(ie(this.hue,2),ie(t*100,2),ie(n*100,2),ie(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return new Ba(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ie(this.alpha,2))}clone(){return new qo(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 qo.colorChannels}};Ma(og,"colorChannels",["hue","saturation","lightness"]);var Ha=og,$x=/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+)?)\)/,ig=class Zo extends Wa{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($x)){const[n,o,i,s]=(r[1]??r[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Zo(xu(n,360),Ne(o,0,100),Ne(i,0,100),Ne(s??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}, ${ie(this.saturation,2)}%, ${ie(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ie(this.saturation,2)}%, ${ie(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 Ha(ie(this.hue,2),ie(t*100,2),ie(n*100,2),ie(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,s=(i+t/60)%6)=>n-r*n*Math.max(Math.min(s,4-s,1),0);return new Ba(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ie(this.alpha,2))}clone(){return new Zo(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 Zo.colorChannels}};Ma(ig,"colorChannels",["hue","saturation","brightness"]);var ja=ig,Mx="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",Wx=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},sc=Wx(Mx),di=e=>{if(sc.has(e))return di(sc.get(e));const t=Ba.parse(e)||ja.parse(e)||Ha.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(r,di),r}return t};const Bx=["top","right","bottom","left"],Kt=Math.min,Ge=Math.max,ui=Math.round,ko=Math.floor,xt=e=>({x:e,y:e}),Hx={left:"right",right:"left",bottom:"top",top:"bottom"},jx={start:"end",end:"start"};function Xs(e,t,r){return Ge(e,Kt(t,r))}function $t(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function rn(e){return e.split("-")[1]}function Ga(e){return e==="x"?"y":"x"}function Ua(e){return e==="y"?"height":"width"}const Gx=new Set(["top","bottom"]);function bt(e){return Gx.has(Mt(e))?"y":"x"}function Ya(e){return Ga(bt(e))}function Ux(e,t,r){r===void 0&&(r=!1);const n=rn(e),o=Ya(e),i=Ua(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=gi(s)),[s,gi(s)]}function Yx(e){const t=gi(e);return[Ks(e),t,Ks(t)]}function Ks(e){return e.replace(/start|end/g,t=>jx[t])}const ac=["left","right"],lc=["right","left"],Xx=["top","bottom"],Kx=["bottom","top"];function qx(e,t,r){switch(e){case"top":case"bottom":return r?t?lc:ac:t?ac:lc;case"left":case"right":return t?Xx:Kx;default:return[]}}function Zx(e,t,r,n){const o=rn(e);let i=qx(Mt(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ks)))),i}function gi(e){return e.replace(/left|right|bottom|top/g,t=>Hx[t])}function Jx(e){return{top:0,right:0,bottom:0,left:0,...e}}function sg(e){return typeof e!="number"?Jx(e):{top:e,right:e,bottom:e,left:e}}function fi(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 cc(e,t,r){let{reference:n,floating:o}=e;const i=bt(t),s=Ya(t),a=Ua(s),l=Mt(t),c=i==="y",d=n.x+n.width/2-o.width/2,g=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let u;switch(l){case"top":u={x:d,y:n.y-o.height};break;case"bottom":u={x:d,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:g};break;case"left":u={x:n.x-o.width,y:g};break;default:u={x:n.x,y:n.y}}switch(rn(t)){case"start":u[s]-=f*(r&&c?-1:1);break;case"end":u[s]+=f*(r&&c?-1:1);break}return u}const Qx=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:g}=cc(c,n,l),f=n,u={},h=0;for(let p=0;p<a.length;p++){const{name:y,fn:C}=a[p],{x:S,y:w,data:b,reset:x}=await C({x:d,y:g,initialPlacement:n,placement:f,strategy:o,middlewareData:u,rects:c,platform:s,elements:{reference:e,floating:t}});d=S??d,g=w??g,u={...u,[y]:{...u[y],...b}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:g}=cc(c,f,l)),p=-1)}return{x:d,y:g,placement:f,strategy:o,middlewareData:u}};async function Jn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:g="floating",altBoundary:f=!1,padding:u=0}=$t(t,e),h=sg(u),y=a[f?g==="floating"?"reference":"floating":g],C=fi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),S=g==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=fi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:w,strategy:l}):S);return{top:(C.top-x.top+h.top)/b.y,bottom:(x.bottom-C.bottom+h.bottom)/b.y,left:(C.left-x.left+h.left)/b.x,right:(x.right-C.right+h.right)/b.x}}const e0=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=$t(e,t)||{};if(c==null)return{};const g=sg(d),f={x:r,y:n},u=Ya(o),h=Ua(u),p=await s.getDimensions(c),y=u==="y",C=y?"top":"left",S=y?"bottom":"right",w=y?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[u]-f[u]-i.floating[h],x=f[u]-i.reference[u],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let R=k?k[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(k)))&&(R=a.floating[w]||i.floating[h]);const T=b/2-x/2,A=R/2-p[h]/2-1,I=Kt(g[C],A),N=Kt(g[S],A),E=I,O=R-p[h]-N,W=R/2-p[h]/2+T,F=Xs(E,W,O),j=!l.arrow&&rn(o)!=null&&W!==F&&i.reference[h]/2-(W<E?I:N)-p[h]/2<0,q=j?W<E?W-E:W-O:0;return{[u]:f[u]+q,data:{[u]:F,centerOffset:W-F-q,...j&&{alignmentOffset:q}},reset:j}}}),t0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...y}=$t(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const C=Mt(o),S=bt(a),w=Mt(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(w||!p?[gi(a)]:Yx(a)),k=h!=="none";!f&&k&&x.push(...Zx(a,p,h,b));const R=[a,...x],T=await Jn(t,y),A=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&A.push(T[C]),g){const W=Ux(o,s,b);A.push(T[W[0]],T[W[1]])}if(I=[...I,{placement:o,overflows:A}],!A.every(W=>W<=0)){var N,E;const W=(((N=i.flip)==null?void 0:N.index)||0)+1,F=R[W];if(F&&(!(g==="alignment"?S!==bt(F):!1)||I.every(pe=>bt(pe.placement)===S?pe.overflows[0]>0:!0)))return{data:{index:W,overflows:I},reset:{placement:F}};let j=(E=I.filter(q=>q.overflows[0]<=0).sort((q,pe)=>q.overflows[1]-pe.overflows[1])[0])==null?void 0:E.placement;if(!j)switch(u){case"bestFit":{var O;const q=(O=I.filter(pe=>{if(k){const G=bt(pe.placement);return G===S||G==="y"}return!0}).map(pe=>[pe.placement,pe.overflows.filter(G=>G>0).reduce((G,Y)=>G+Y,0)]).sort((pe,G)=>pe[1]-G[1])[0])==null?void 0:O[0];q&&(j=q);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function dc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uc(e){return Bx.some(t=>e[t]>=0)}const r0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=$t(e,t);switch(n){case"referenceHidden":{const i=await Jn(t,{...o,elementContext:"reference"}),s=dc(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uc(s)}}}case"escaped":{const i=await Jn(t,{...o,altBoundary:!0}),s=dc(i,r.floating);return{data:{escapedOffsets:s,escaped:uc(s)}}}default:return{}}}}},ag=new Set(["left","top"]);async function n0(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Mt(r),a=rn(r),l=bt(r)==="y",c=ag.has(s)?-1:1,d=i&&l?-1:1,g=$t(t,e);let{mainAxis:f,crossAxis:u,alignmentAxis:h}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&typeof h=="number"&&(u=a==="end"?h*-1:h),l?{x:u*d,y:f*c}:{x:f*c,y:u*d}}const o0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await n0(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},i0=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:s=!1,limiter:a={fn:y=>{let{x:C,y:S}=y;return{x:C,y:S}}},...l}=$t(e,t),c={x:r,y:n},d=await Jn(t,l),g=bt(Mt(o)),f=Ga(g);let u=c[f],h=c[g];if(i){const y=f==="y"?"top":"left",C=f==="y"?"bottom":"right",S=u+d[y],w=u-d[C];u=Xs(S,u,w)}if(s){const y=g==="y"?"top":"left",C=g==="y"?"bottom":"right",S=h+d[y],w=h-d[C];h=Xs(S,h,w)}const p=a.fn({...t,[f]:u,[g]:h});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[f]:i,[g]:s}}}}}},s0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$t(e,t),d={x:r,y:n},g=bt(o),f=Ga(g);let u=d[f],h=d[g];const p=$t(a,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=f==="y"?"height":"width",b=i.reference[f]-i.floating[w]+y.mainAxis,x=i.reference[f]+i.reference[w]-y.mainAxis;u<b?u=b:u>x&&(u=x)}if(c){var C,S;const w=f==="y"?"width":"height",b=ag.has(Mt(o)),x=i.reference[g]-i.floating[w]+(b&&((C=s.offset)==null?void 0:C[g])||0)+(b?0:y.crossAxis),k=i.reference[g]+i.reference[w]+(b?0:((S=s.offset)==null?void 0:S[g])||0)-(b?y.crossAxis:0);h<x?h=x:h>k&&(h=k)}return{[f]:u,[g]:h}}}},a0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$t(e,t),d=await Jn(t,c),g=Mt(o),f=rn(o),u=bt(o)==="y",{width:h,height:p}=i.floating;let y,C;g==="top"||g==="bottom"?(y=g,C=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(C=g,y=f==="end"?"top":"bottom");const S=p-d.top-d.bottom,w=h-d.left-d.right,b=Kt(p-d[y],S),x=Kt(h-d[C],w),k=!t.middlewareData.shift;let R=b,T=x;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(T=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=S),k&&!f){const I=Ge(d.left,0),N=Ge(d.right,0),E=Ge(d.top,0),O=Ge(d.bottom,0);u?T=h-2*(I!==0||N!==0?I+N:Ge(d.left,d.right)):R=p-2*(E!==0||O!==0?E+O:Ge(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:R});const A=await s.getDimensions(a.floating);return h!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function Di(){return typeof window<"u"}function nn(e){return lg(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(lg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lg(e){return Di()?e instanceof Node||e instanceof Ye(e).Node:!1}function dt(e){return Di()?e instanceof Element||e instanceof Ye(e).Element:!1}function St(e){return Di()?e instanceof HTMLElement||e instanceof Ye(e).HTMLElement:!1}function gc(e){return!Di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}const l0=new Set(["inline","contents"]);function ao(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!l0.has(o)}const c0=new Set(["table","td","th"]);function d0(e){return c0.has(nn(e))}const u0=[":popover-open",":modal"];function zi(e){return u0.some(t=>{try{return e.matches(t)}catch{return!1}})}const g0=["transform","translate","scale","rotate","perspective"],f0=["transform","translate","scale","rotate","perspective","filter"],h0=["paint","layout","strict","content"];function Xa(e){const t=Ka(),r=dt(e)?ut(e):e;return g0.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)||f0.some(n=>(r.willChange||"").includes(n))||h0.some(n=>(r.contain||"").includes(n))}function p0(e){let t=qt(e);for(;St(t)&&!Kr(t);){if(Xa(t))return t;if(zi(t))return null;t=qt(t)}return null}function Ka(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const m0=new Set(["html","body","#document"]);function Kr(e){return m0.has(nn(e))}function ut(e){return Ye(e).getComputedStyle(e)}function $i(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qt(e){if(nn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gc(e)&&e.host||It(e);return gc(t)?t.host:t}function cg(e){const t=qt(e);return Kr(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&ao(t)?t:cg(t)}function Qn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=cg(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Ye(o);if(i){const a=qs(s);return t.concat(s,s.visualViewport||[],ao(o)?o:[],a&&r?Qn(a):[])}return t.concat(o,Qn(o,[],r))}function qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dg(e){const t=ut(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=St(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=ui(r)!==i||ui(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function qa(e){return dt(e)?e:e.contextElement}function jr(e){const t=qa(e);if(!St(t))return xt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=dg(t);let s=(i?ui(r.width):r.width)/n,a=(i?ui(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const v0=xt(0);function ug(e){const t=Ye(e);return!Ka()||!t.visualViewport?v0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b0(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ye(e)?!1:t}function mr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=qa(e);let s=xt(1);t&&(n?dt(n)&&(s=jr(n)):s=jr(e));const a=b0(i,r,n)?ug(i):xt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,g=o.height/s.y;if(i){const f=Ye(i),u=n&&dt(n)?Ye(n):n;let h=f,p=qs(h);for(;p&&n&&u!==h;){const y=jr(p),C=p.getBoundingClientRect(),S=ut(p),w=C.left+(p.clientLeft+parseFloat(S.paddingLeft))*y.x,b=C.top+(p.clientTop+parseFloat(S.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,g*=y.y,l+=w,c+=b,h=Ye(p),p=qs(h)}}return fi({width:d,height:g,x:l,y:c})}function Mi(e,t){const r=$i(e).scrollLeft;return t?t.left+r:mr(It(e)).left+r}function gg(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Mi(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function y0(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=It(n),a=t?zi(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=xt(1);const d=xt(0),g=St(n);if((g||!g&&!i)&&((nn(n)!=="body"||ao(s))&&(l=$i(n)),St(n))){const u=mr(n);c=jr(n),d.x=u.x+n.clientLeft,d.y=u.y+n.clientTop}const f=s&&!g&&!i?gg(s,l):xt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}}function x0(e){return Array.from(e.getClientRects())}function C0(e){const t=It(e),r=$i(e),n=e.ownerDocument.body,o=Ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Mi(e);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=Ge(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const fc=25;function S0(e,t){const r=Ye(e),n=It(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const d=Ka();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Mi(n);if(c<=0){const d=n.ownerDocument,g=d.body,f=getComputedStyle(g),u=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(n.clientWidth-g.clientWidth-u);h<=fc&&(i-=h)}else c<=fc&&(i+=c);return{width:i,height:s,x:a,y:l}}const w0=new Set(["absolute","fixed"]);function E0(e,t){const r=mr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=St(e)?jr(e):xt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function hc(e,t,r){let n;if(t==="viewport")n=S0(e,r);else if(t==="document")n=C0(It(e));else if(dt(t))n=E0(t,r);else{const o=ug(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fi(n)}function fg(e,t){const r=qt(e);return r===t||!dt(r)||Kr(r)?!1:ut(r).position==="fixed"||fg(r,t)}function k0(e,t){const r=t.get(e);if(r)return r;let n=Qn(e,[],!1).filter(a=>dt(a)&&nn(a)!=="body"),o=null;const i=ut(e).position==="fixed";let s=i?qt(e):e;for(;dt(s)&&!Kr(s);){const a=ut(s),l=Xa(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&w0.has(o.position)||ao(s)&&!l&&fg(e,s))?n=n.filter(d=>d!==s):o=a,s=qt(s)}return t.set(e,n),n}function I0(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?zi(t)?[]:k0(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const g=hc(t,d,o);return c.top=Ge(g.top,c.top),c.right=Kt(g.right,c.right),c.bottom=Kt(g.bottom,c.bottom),c.left=Ge(g.left,c.left),c},hc(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function P0(e){const{width:t,height:r}=dg(e);return{width:t,height:r}}function T0(e,t,r){const n=St(t),o=It(t),i=r==="fixed",s=mr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=xt(0);function c(){l.x=Mi(o)}if(n||!n&&!i)if((nn(t)!=="body"||ao(o))&&(a=$i(t)),n){const u=mr(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?gg(o,a):xt(0),g=s.left+a.scrollLeft-l.x-d.x,f=s.top+a.scrollTop-l.y-d.y;return{x:g,y:f,width:s.width,height:s.height}}function ys(e){return ut(e).position==="static"}function pc(e,t){if(!St(e)||ut(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return It(e)===r&&(r=r.ownerDocument.body),r}function hg(e,t){const r=Ye(e);if(zi(e))return r;if(!St(e)){let o=qt(e);for(;o&&!Kr(o);){if(dt(o)&&!ys(o))return o;o=qt(o)}return r}let n=pc(e,t);for(;n&&d0(n)&&ys(n);)n=pc(n,t);return n&&Kr(n)&&ys(n)&&!Xa(n)?r:n||p0(e)||r}const O0=async function(e){const t=this.getOffsetParent||hg,r=this.getDimensions,n=await r(e.floating);return{reference:T0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function R0(e){return ut(e).direction==="rtl"}const N0={convertOffsetParentRelativeRectToViewportRelativeRect:y0,getDocumentElement:It,getClippingRect:I0,getOffsetParent:hg,getElementRects:O0,getClientRects:x0,getDimensions:P0,getScale:jr,isElement:dt,isRTL:R0};function pg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A0(e,t){let r=null,n;const o=It(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:g,width:f,height:u}=c;if(a||t(),!f||!u)return;const h=ko(g),p=ko(o.clientWidth-(d+f)),y=ko(o.clientHeight-(g+u)),C=ko(d),w={rootMargin:-h+"px "+-p+"px "+-y+"px "+-C+"px",threshold:Ge(0,Kt(1,l))||1};let b=!0;function x(k){const R=k[0].intersectionRatio;if(R!==l){if(!b)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!pg(c,e.getBoundingClientRect())&&s(),b=!1}try{r=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(x,w)}r.observe(e)}return s(!0),i}function V0(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=qa(e),d=o||i?[...c?Qn(c):[],...Qn(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",r,{passive:!0}),i&&C.addEventListener("resize",r)});const g=c&&a?A0(c,r):null;let f=-1,u=null;s&&(u=new ResizeObserver(C=>{let[S]=C;S&&S.target===c&&u&&(u.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=u)==null||w.observe(t)})),r()}),c&&!l&&u.observe(c),u.observe(t));let h,p=l?mr(e):null;l&&y();function y(){const C=mr(e);p&&!pg(p,C)&&r(),p=C,h=requestAnimationFrame(y)}return r(),()=>{var C;d.forEach(S=>{o&&S.removeEventListener("scroll",r),i&&S.removeEventListener("resize",r)}),g?.(),(C=u)==null||C.disconnect(),u=null,l&&cancelAnimationFrame(h)}}const _0=o0,L0=i0,F0=t0,D0=a0,z0=r0,$0=e0,M0=s0,W0=(e,t,r)=>{const n=new Map,o={platform:N0,...r},i={...o.platform,_c:n};return Qx(e,t,{...o,platform:i})};function mc(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 B0(e){if(!e)return mc();const{x:t,y:r,width:n,height:o}=e;return mc(t,r,n,o)}function H0(e,t){return{contextElement:ve(e)?e:e?.contextElement,getBoundingClientRect:()=>{const r=e,n=t?.(r);return n||!r?B0(n):r.getBoundingClientRect()}}}var yn=e=>({variable:e,reference:`var(${e})`}),Vt={arrowSize:yn("--arrow-size"),arrowSizeHalf:yn("--arrow-size-half"),arrowBg:yn("--arrow-background"),transformOrigin:yn("--transform-origin"),arrowOffset:yn("--arrow-offset")},j0=e=>e==="top"||e==="bottom"?"y":"x";function G0(e,t){return{name:"transformOrigin",fn(r){const{elements:n,middlewareData:o,placement:i,rects:s,y:a}=r,l=i.split("-")[0],c=j0(l),d=o.arrow?.x||0,g=o.arrow?.y||0,f=t?.clientWidth||0,u=t?.clientHeight||0,h=d+f/2,p=g+u/2,y=Math.abs(o.shift?.y||0),C=s.reference.height/2,S=u/2,w=e.offset?.mainAxis??e.gutter,b=typeof w=="number"?w+S:w??S,x=y>b,k={top:`${h}px calc(100% + ${b}px)`,bottom:`${h}px ${-b}px`,left:`calc(100% + ${b}px) ${p}px`,right:`${-b}px ${p}px`}[l],R=`${h}px ${s.reference.y+C-a}px`,T=!!e.overlap&&c==="y"&&x;return n.floating.style.setProperty(Vt.transformOrigin.variable,T?R:k),{data:{transformOrigin:T?R:k}}}}}var U0={name:"rects",fn({rects:e}){return{data:e}}},Y0=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% + ${Vt.arrowOffset.reference})`}),{}}}};function X0(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function K0(e){return e.split("-")[0]}var q0={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function vc(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function Za(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function Z0(e,t,r){const n=e||t.createElement("div");return $0({element:n,padding:r.arrowPadding})}function J0(e,t){if(!fb(t.offset??t.gutter))return _0(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:s}=X0(r),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return Zr({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function Q0(e){if(!e.flip)return;const t=Za(e.boundary);return F0({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function eC(e){if(!e.slide&&!e.overlap)return;const t=Za(e.boundary);return L0({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:M0()})}function tC(e){return D0({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,s=Math.round(r.reference.width),a=Math.round(r.reference.height);o=Math.floor(o),n=Math.floor(n),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${n}px`)}})}function rC(e){if(e.hideWhenDetached)return z0({strategy:"referenceHidden",boundary:Za(e.boundary)??"clippingAncestors"})}function nC(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function oC(e,t,r={}){const n=r.getAnchorElement?.()??e,o=H0(n,r.getAnchorRect);if(!t||!o)return;const i=Object.assign({},q0,r),s=t.querySelector("[data-part=arrow]"),a=[J0(s,i),Q0(i),eC(i),Z0(s,t.ownerDocument,i),Y0(s),G0({gutter:i.gutter,offset:i.offset,overlap:i.overlap},s),tC(i),rC(i),U0],{placement:l,strategy:c,onComplete:d,onPositioned:g}=i,f=async()=>{if(!o||!t)return;const y=await W0(o,t,{placement:l,middleware:a,strategy:c});d?.(y),g?.({placed:!0});const C=ce(t),S=vc(C,y.x),w=vc(C,y.y);t.style.setProperty("--x",`${S}px`),t.style.setProperty("--y",`${w}px`),i.hideWhenDetached&&(y.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const b=t.firstElementChild;if(b){const x=zt(b);t.style.setProperty("--z-index",x.zIndex)}},u=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:f,floatingElement:t}),g?.({placed:!0})):await f()},h=nC(i.listeners),p=i.listeners?V0(o,t,u,h):Cb;return u(),()=>{p?.(),g?.({placed:!1})}}function Ke(e,t,r={}){const{defer:n,...o}=r,i=n?$:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(oC(a,l,o))})),()=>{s.forEach(a=>a?.())}}var iC={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Wi(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:Vt.arrowSize.reference,height:Vt.arrowSize.reference,[Vt.arrowSizeHalf.variable]:`calc(${Vt.arrowSize.reference} / 2)`,[Vt.arrowOffset.variable]:`calc(${Vt.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?iC[t.split("-")[0]]:void 0,background:Vt.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function sC(e){const t={each(r){for(let n=0;n<e.frames?.length;n+=1){const o=e.frames[n];o&&r(o)}},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 aC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var bc="pointerdown.outside",yc="focus.outside";function lC(e){for(const t of e)if(ve(t)&&Dt(t))return!0;return!1}var mg=e=>"clientY"in e;function cC(e,t){if(!mg(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 dC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function xc(e,t){if(!t||!mg(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,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return dC(s,a)?n||i:!1}function uC(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:s,followControlledElements:a=!0}=t;if(!e)return;const l=Fe(e),c=ce(e),d=sC(c),g=aC(c);function f(w,b){if(!ve(b)||!b.isConnected||_e(e,b)||cC(e,w)||a&&Tu(e,b))return!1;const x=l.querySelector(`[aria-controls="${e.id}"]`);if(x){const R=li(x);if(xc(w,R))return!1}const k=li(e);return xc(w,k)?!1:!r?.(b)}const u=new Set,h=fr(e?.getRootNode());function p(w){function b(x){const k=s&&!ec()?$:A=>A(),R=x??w,T=R?.composedPath?.()??[R?.target];k(()=>{const A=h?T[0]:le(w);if(!(!e||!f(w,A))){if(o||i){const I=Yr(o,i);e.addEventListener(bc,I,{once:!0})}Cc(e,bc,{bubbles:!1,cancelable:!0,detail:{originalEvent:R,contextmenu:Vu(R),focusable:lC(T),target:A}})}})}w.pointerType==="touch"?(u.forEach(x=>x()),u.add(K(l,"click",b,{once:!0})),u.add(g.addEventListener("click",b,{once:!0})),u.add(d.addEventListener("click",b,{once:!0}))):b()}const y=new Set,C=setTimeout(()=>{y.add(K(l,"pointerdown",p,!0)),y.add(g.addEventListener("pointerdown",p,!0)),y.add(d.addEventListener("pointerdown",p,!0))},0);function S(w){(s?$:x=>x())(()=>{const x=w?.composedPath?.()??[w?.target],k=h?x[0]:le(w);if(!(!e||!f(w,k))){if(n||i){const R=Yr(n,i);e.addEventListener(yc,R,{once:!0})}Cc(e,yc,{bubbles:!1,cancelable:!0,detail:{originalEvent:w,contextmenu:!1,focusable:Dt(k),target:k}})}})}return ec()||(y.add(K(l,"focusin",S,!0)),y.add(g.addEventListener("focusin",S,!0)),y.add(d.addEventListener("focusin",S,!0))),()=>{clearTimeout(C),u.forEach(w=>w()),y.forEach(w=>w())}}function vg(e,t){const{defer:r}=t,n=r?$:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(uC(i,t))})),()=>{o.forEach(i=>i?.())}}function Cc(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function gC(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return K(Fe(e),"keydown",r,{capture:!0})}var Sc="layer:request-dismiss",De={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){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<r},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const r=this.indexOf(e);return r===-1?[]:this.layers.slice(r+1).filter(n=>n.type===t)},getParentLayerOfType(e,t){const r=this.indexOf(e);if(!(r<=0))return this.layers.slice(0,r).reverse().find(n=>n.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>_e(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>_e(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>De.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const n=this.layers[r];hC(e,Sc,o=>{n.requestDismiss?.(o),o.defaultPrevented||n?.dismiss()}),fC(e,Sc,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function fC(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(o)}function hC(e,t,r){e.addEventListener(t,r,{once:!0})}var wc;function Ec(){De.layers.forEach(({node:e})=>{e.style.pointerEvents=De.isBelowPointerBlockingLayer(e)?"none":"auto"})}function pC(e){e.style.pointerEvents=""}function mC(e,t){const r=Fe(e),n=[];return De.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(wc=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=rx(()=>{const a=o();return ve(a)?a:null},{timeout:1e3});i.then(a=>n.push(Zn(a,{pointerEvents:"auto"}))),n.push(s)}),()=>{De.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=wc,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function vC(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){gr("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a,type:l="dialog"}=t,c={dismiss:n,node:e,type:l,pointerBlocking:i,requestDismiss:o};De.add(c),Ec();function d(p){const y=le(p.detail.originalEvent);De.isBelowPointerBlockingLayer(e)||De.isInBranch(y)||(t.onPointerDownOutside?.(p),t.onInteractOutside?.(p),!p.defaultPrevented&&(a&&console.log("onPointerDownOutside:",p.detail.originalEvent),n?.()))}function g(p){const y=le(p.detail.originalEvent);De.isInBranch(y)||(t.onFocusOutside?.(p),t.onInteractOutside?.(p),!p.defaultPrevented&&(a&&console.log("onFocusOutside:",p.detail.originalEvent),n?.()))}function f(p){De.isTopMost(e)&&(t.onEscapeKeyDown?.(p),!p.defaultPrevented&&n&&(p.preventDefault(),n()))}function u(p){if(!e)return!1;const y=typeof s=="function"?s():s,C=Array.isArray(y)?y:[y],S=t.persistentElements?.map(w=>w()).filter(ve);return S&&C.push(...S),C.some(w=>_e(w,p))||De.isInNestedLayer(e,p)}const h=[i?mC(e,t.persistentElements):void 0,gC(e,f),vg(e,{exclude:u,onFocusOutside:g,onPointerDownOutside:d,defer:t.defer})];return()=>{De.remove(e),Ec(),pC(e),h.forEach(p=>p?.())}}function xr(e,t){const{defer:r}=t,n=r?$:i=>i(),o=[];return o.push(n(()=>{const i=Lt(e)?e():e;o.push(vC(i,t))})),()=>{o.forEach(i=>i?.())}}function bC(e,t={}){const{defer:r}=t,n=r?$:i=>i(),o=[];return o.push(n(()=>{const i=Lt(e)?e():e;if(!i){gr("[@zag-js/dismissable] branch node is `null` or `undefined`");return}De.addBranch(i),o.push(()=>{De.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}var bg=B("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"]);bg.build();var yC=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,xC=e=>e.ids?.control??`color-picker:${e.id}:control`,CC=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,SC=e=>e.ids?.content??`color-picker:${e.id}:content`,wC=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,EC=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,kC=e=>e.ids?.area??`color-picker:${e.id}:area`,IC=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,PC=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,TC=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Jo=e=>e.getById(SC(e)),OC=e=>e.getById(IC(e)),RC=(e,t)=>e.getById(TC(e,t)),NC=e=>e.getById(EC(e)),kc=e=>e.getById(yC(e)),AC=e=>e.getById(kC(e)),VC=(e,t,r)=>{const n=AC(e);if(!n)return;const{getPercentValue:o}=ju(t,n);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},_C=e=>e.getById(xC(e)),xs=e=>e.getById(CC(e)),LC=e=>e.getById(wC(e)),FC=(e,t)=>e.getById(PC(e,t)),DC=(e,t,r,n)=>{const o=FC(e,r);if(!o)return;const{getPercentValue:i}=ju(t,o);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},zC=e=>[...pr(Jo(e),"input[data-channel]"),...pr(_C(e),"input[data-channel]")];function $C(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 Ic=e=>di(e),MC=/^[0-9a-fA-F]{3,8}$/;function WC(e){return MC.test(e)}function BC(e){return e.startsWith("#")?e:WC(e)?`#${e}`:e}var{and:HC}=ot();HC("isOpenControlled","closeOnSelect");function Pc(e,t,r){const n=zC(e);$(()=>{n.forEach(o=>{const i=o.dataset.channel;hr(o,$C(r||t,i))})})}function jC(e,t){const r=NC(e);r&&$(()=>hr(r,t))}M()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);M()(["xChannel","yChannel"]);M()(["channel","orientation"]);M()(["value","disabled"]);M()(["value","respectAlpha"]);M()(["size"]);var Io="__live-region__";function GC(e={}){const{level:t="polite",document:r=document,root:n,delay:o=0}=e,i=r.defaultView??window,s=n??r.body;function a(c,d){r.getElementById(Io)?.remove(),d=d??o;const f=r.createElement("span");f.id=Io,f.dataset.liveAnnouncer="true";const u=t!=="assertive"?"status":"alert";f.setAttribute("aria-live",t),f.setAttribute("role",u),Object.assign(f.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),s.appendChild(f),i.setTimeout(()=>{f.textContent=c},d)}function l(){r.getElementById(Io)?.remove()}return{announce:a,destroy:l,toJSON(){return Io}}}var yg=B("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");yg.build();M()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]);M()(["id"]);M()(["disabled","id"]);const[on,Ja]=ne({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),sn=e=>se()(e,["lazyMount","unmountOnExit"]),[UC,Qa]=ne({name:"AccordionItemPropsContext",hookName:"useAccordionItemPropsContext",providerName:"<AccordionItemPropsProvider />"}),YC=se(),xg=m.forwardRef((e,t)=>{const[r,n]=YC(e,["value","disabled"]),o=Fi(),i=Ja(),s=V(o.getItemProps(r),n),a=o.getItemState(r),l=o.getItemContentProps(r);return v.jsx(UC,{value:r,children:v.jsx(wx,{value:a,children:v.jsx(rg,{ref:t,open:a.expanded,ids:{content:l.id},...i,...s})})})});xg.displayName="AccordionItem";const Cg=m.forwardRef((e,t)=>{const r=tg();if(r.isUnmounted)return null;const n=V(r.getContentProps(),e);return v.jsx(_.div,{...n,ref:t})});Cg.displayName="CollapsibleContent";const XC=se(),Sg=m.forwardRef((e,t)=>{const r=Fi(),n=Qa(),o=r.getItemContentProps(n),[,i]=XC(o,["hidden","data-state"]),s=V(i,e);return v.jsx(Cg,{ref:t,...s})});Sg.displayName="AccordionItemContent";const wg=m.forwardRef((e,t)=>{const r=Fi(),n=Qa(),o=V(r.getItemIndicatorProps(n),e);return v.jsx(_.div,{...o,ref:t})});wg.displayName="AccordionItemIndicator";const Eg=m.forwardRef((e,t)=>{const r=Fi(),n=Qa(),o=tg(),i=r.getItemTriggerProps(n),s=V({...i,"aria-controls":o.isUnmounted?void 0:i["aria-controls"]},e);return v.jsx(_.button,{...s,ref:t})});Eg.displayName="AccordionItemTrigger";var kg=B("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator"),xn=kg.build(),hi=e=>e.ids?.root??`accordion:${e.id}`,KC=(e,t)=>e.ids?.item?.(t)??`accordion:${e.id}:item:${t}`,Cs=(e,t)=>e.ids?.itemContent?.(t)??`accordion:${e.id}:content:${t}`,pi=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,qC=e=>e.getById(hi(e)),Bi=e=>{const r=`[data-controls][data-ownedby='${CSS.escape(hi(e))}']:not([disabled])`;return pr(qC(e),r)},ZC=e=>Br(Bi(e)),JC=e=>Pi(Bi(e)),QC=(e,t)=>za(Bi(e),pi(e,t)),eS=(e,t)=>$a(Bi(e),pi(e,t));function tS(e,t){const{send:r,context:n,prop:o,scope:i,computed:s}=e,a=n.get("focusedValue"),l=n.get("value"),c=o("multiple");function d(f){let u=f;!c&&u.length>1&&(u=[u[0]]),r({type:"VALUE.SET",value:u})}function g(f){return{expanded:l.includes(f.value),focused:a===f.value,disabled:!!(f.disabled??o("disabled"))}}return{focusedValue:a,value:l,setValue:d,getItemState:g,getRootProps(){return t.element({...xn.root.attrs,dir:o("dir"),id:hi(i),"data-orientation":o("orientation")})},getItemProps(f){const u=g(f);return t.element({...xn.item.attrs,dir:o("dir"),id:KC(i,f.value),"data-state":u.expanded?"open":"closed","data-focus":z(u.focused),"data-disabled":z(u.disabled),"data-orientation":o("orientation")})},getItemContentProps(f){const u=g(f);return t.element({...xn.itemContent.attrs,dir:o("dir"),role:"region",id:Cs(i,f.value),"aria-labelledby":pi(i,f.value),hidden:!u.expanded,"data-state":u.expanded?"open":"closed","data-disabled":z(u.disabled),"data-focus":z(u.focused),"data-orientation":o("orientation")})},getItemIndicatorProps(f){const u=g(f);return t.element({...xn.itemIndicator.attrs,dir:o("dir"),"aria-hidden":!0,"data-state":u.expanded?"open":"closed","data-disabled":z(u.disabled),"data-focus":z(u.focused),"data-orientation":o("orientation")})},getItemTriggerProps(f){const{value:u}=f,h=g(f);return t.button({...xn.itemTrigger.attrs,type:"button",dir:o("dir"),id:pi(i,u),"aria-controls":Cs(i,u),"data-controls":Cs(i,u),"aria-expanded":h.expanded,disabled:h.disabled,"data-orientation":o("orientation"),"aria-disabled":h.disabled,"data-state":h.expanded?"open":"closed","data-ownedby":hi(i),onFocus(){h.disabled||r({type:"TRIGGER.FOCUS",value:u})},onBlur(){h.disabled||r({type:"TRIGGER.BLUR"})},onClick(p){h.disabled||(Jr()&&p.currentTarget.focus(),r({type:"TRIGGER.CLICK",value:u}))},onKeyDown(p){if(p.defaultPrevented||h.disabled)return;const y={ArrowDown(){s("isHorizontal")||r({type:"GOTO.NEXT",value:u})},ArrowUp(){s("isHorizontal")||r({type:"GOTO.PREV",value:u})},ArrowRight(){s("isHorizontal")&&r({type:"GOTO.NEXT",value:u})},ArrowLeft(){s("isHorizontal")&&r({type:"GOTO.PREV",value:u})},Home(){r({type:"GOTO.FIRST",value:u})},End(){r({type:"GOTO.LAST",value:u})}},C=ai(p,{dir:o("dir"),orientation:o("orientation")}),S=y[C];S&&(S(p),p.preventDefault())}})}}}var{and:rS,not:nS}=ot(),oS={props({props:e}){return{collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(r){e("onFocusChange")?.({value:r})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}}))}},computed:{isHorizontal:({prop:e})=>e("orientation")==="horizontal"},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:rS("isExpanded","canToggle"),actions:["collapse"]},{guard:nS("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:r}){const n=t("multiple")?dr(e.get("value"),r.value):[];e.set("value",n)},expand({context:e,prop:t,event:r}){const n=t("multiple")?ar(e.get("value"),r.value):[r.value];e.set("value",n)},focusFirstTrigger({scope:e}){ZC(e)?.focus()},focusLastTrigger({scope:e}){JC(e)?.focus()},focusNextTrigger({context:e,scope:t}){const r=e.get("focusedValue");if(!r)return;QC(t,r)?.focus()},focusPrevTrigger({context:e,scope:t}){const r=e.get("focusedValue");if(!r)return;eS(t,r)?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&(gr("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}};M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);M()(["value","disabled"]);const iS=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(oS,o);return tS(i,qe)},sS=se(),Ig=m.forwardRef((e,t)=>{const[r,n]=sn(e),[o,i]=sS(n,["collapsible","defaultValue","disabled","id","ids","multiple","onFocusChange","onValueChange","orientation","value"]),s=iS(o),a=V(s.getRootProps(),i);return v.jsx(Qu,{value:s,children:v.jsx(on,{value:r,children:v.jsx(_.div,{...a,ref:t})})})});Ig.displayName="AccordionRoot";const aS=se(),Pg=m.forwardRef((e,t)=>{const[r,n]=sn(e),[{value:o},i]=aS(n,["value"]),s=V(o.getRootProps(),i);return v.jsx(Qu,{value:o,children:v.jsx(on,{value:r,children:v.jsx(_.div,{...s,ref:t})})})});Pg.displayName="AccordionRootProvider";var Dn=(e,t)=>({x:e,y:t});function lS(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,s=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:s,center:Dn(i,s)}}function cS(e){const t=Dn(e.minX,e.minY),r=Dn(e.maxX,e.minY),n=Dn(e.maxX,e.maxY),o=Dn(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function dS(e,t){const r=lS(e),{top:n,right:o,left:i,bottom:s}=cS(r),[a]=t.split("-");return{top:[i,n,o,s],right:[n,o,s,i],bottom:[n,i,s,o],left:[o,n,i,s]}[a]}function uS(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i].x,l=e[i].y,c=e[s].x,d=e[s].y;l>n!=d>n&&r<(c-a)*(n-l)/(d-l)+a&&(o=!o)}return o}var Tg=B("avatar").parts("root","image","fallback");Tg.build();M()(["dir","id","ids","onStatusChange","getRootNode"]);var wr=new WeakMap,Po=new WeakMap,To={},Ss=0,Og=e=>e&&(e.host||Og(e.parentNode)),gS=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=Og(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),fS=new Set(["script","output","status","next-route-announcer"]),hS=e=>fS.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),pS=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o,followControlledElements:i=!0}=t,s=gS(r,Array.isArray(e)?e:[e]);To[n]||(To[n]=new WeakMap);const a=To[n],l=[],c=new Set,d=new Set(s),g=u=>{!u||c.has(u)||(c.add(u),g(u.parentNode))};s.forEach(u=>{g(u),i&&ve(u)&&Ou(u,h=>{g(h)})});const f=u=>{!u||d.has(u)||Array.prototype.forEach.call(u.children,h=>{if(c.has(h))f(h);else try{if(hS(h))return;const y=h.getAttribute(o)==="true",C=(wr.get(h)||0)+1,S=(a.get(h)||0)+1;wr.set(h,C),a.set(h,S),l.push(h),C===1&&y&&Po.set(h,!0),S===1&&h.setAttribute(n,""),y||h.setAttribute(o,"true")}catch(p){console.error("[zag-js > ariaHidden] cannot operate on ",h,p)}})};return f(r),c.clear(),Ss++,()=>{l.forEach(u=>{const h=wr.get(u)-1,p=a.get(u)-1;wr.set(u,h),a.set(u,p),h||(Po.has(u)||u.removeAttribute(o),Po.delete(u)),p||u.removeAttribute(n)}),Ss--,Ss||(wr=new WeakMap,wr=new WeakMap,Po=new WeakMap,To={})}},mS=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,vS=(e,t=mS(e),r="data-aria-hidden",n=!0)=>{if(t)return pS(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden",followControlledElements:n})},bS=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Rg(e,t={}){const{defer:r=!0}=t,n=r?bS:i=>i(),o=[];return o.push(n(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(vS(s))})),()=>{o.forEach(i=>i?.())}}var yS=Object.defineProperty,xS=(e,t,r)=>t in e?yS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t,r)=>xS(e,typeof t!="symbol"?t+"":t,r),Tc={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()}},CS=[],SS=class{constructor(e,t){ae(this,"trapStack"),ae(this,"config"),ae(this,"doc"),ae(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ae(this,"portalContainers",new Set),ae(this,"listenerCleanups",[]),ae(this,"handleFocus",n=>{const o=le(n),i=this.findContainerIndex(o,n)>=0;if(i||Ri(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(vn(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const d=c.findIndex(g=>g===this.state.mostRecentlyFocusedNode);d>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?d+1<c.length&&(s=c[d+1],a=!1):d-1>=0&&(s=c[d-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>vn(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ae(this,"handlePointerDown",n=>{const o=le(n);if(!(this.findContainerIndex(o,n)>=0)){if(Sn(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Sn(this.config.allowOutsideClick,n)||n.preventDefault()}}),ae(this,"handleClick",n=>{const o=le(n);this.findContainerIndex(o,n)>=0||Sn(this.config.clickOutsideDeactivates,n)||Sn(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),ae(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;Cn(n)&&n.preventDefault(),this.tryFocus(i)}}),ae(this,"handleEscapeKey",n=>{wS(n)&&Sn(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),ae(this,"_mutationObserver"),ae(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(a=>Array.from(a.removedNodes).some(c=>c===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(l=>{if(l.nodeType!==Node.ELEMENT_NODE)return!1;const c=l;return oy(c)?!0:c.id&&!this.state.containers.some(d=>d.contains(c))?iy(c):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),ae(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(n=>{this.observePortalContainer(n)}))}),ae(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!Dt(n)){const o=Hr(this.doc);if(o&&this.findContainerIndex(o)>=0)n=o;else{const i=this.state.tabbableGroups[0];n=i&&i.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}),ae(this,"tryFocus",n=>{if(n!==!1&&n!==Hr(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,ES(n)&&n.select()}}),ae(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(),Tc.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i?.();const c=()=>{Oc(()=>{if(l){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(d)}s?.()})};if(l&&a){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(d).then(c,c),this}return c(),this}),ae(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?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),ae(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?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),ae(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ae(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),ae(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),ae(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[n];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),ae(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,s=n.target||le(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let d=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>s===g);if(d<0&&(c?.container===s||Dt(s)&&!cr(s)&&!c?.nextTabbableNode(s,!1))&&(d=l),d>=0){const g=d===0?this.state.tabbableGroups.length-1:d-1,f=this.state.tabbableGroups[g];a=vn(s)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else Cn(o)||(a=c?.nextTabbableNode(s,!1))}else{let d=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>s===g);if(d<0&&(c?.container===s||Dt(s)&&!cr(s)&&!c?.nextTabbableNode(s))&&(d=l),d>=0){const g=d===this.state.tabbableGroups.length-1?0:d+1,f=this.state.tabbableGroups[g];a=vn(s)>=0?f.firstTabbableNode:f.firstDomTabbableNode}else Cn(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||CS;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(n){return Cn(n)&&!n.shiftKey},isKeyBackward(n){return Cn(n)&&n.shiftKey},...t};this.doc=r.document||Fe(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{ty(e).forEach(r=>{this.addPortalContainer(r)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(i=>i===e)||this.isControlledElement(n,e))}isControlledElement(e,t){return this.config.followControlledElements?Tu(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=en(e,{getShadowRoot:this.config.getShadowRoot}),r=_a(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],o=t[t.length-1],i=n,s=o;let a=!1;for(let c=0;c<t.length;c++)if(vn(t[c])>0){a=!0;break}function l(c,d=!0){const g=t.indexOf(c);if(g>=0)return t[g+(d?1:-1)];const f=r.indexOf(c);if(!(f<0)){if(d){for(let u=f+1;u<r.length;u++)if(cr(r[u]))return r[u]}else for(let u=f-1;u>=0;u--)if(cr(r[u]))return r[u]}}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,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 Tc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Oc(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(K(this.doc,"focusin",this.handleFocus,!0),K(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),K(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),K(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),K(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),K(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=Hr(this.doc),t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Cn=e=>e.key==="Tab",Sn=(e,...t)=>typeof e=="function"?e(...t):e,wS=e=>!e.isComposing&&e.key==="Escape",Oc=e=>setTimeout(e,0),ES=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Ng(e,t={}){let r;const n=$(()=>{const o=typeof e=="function"?e():e;if(o){r=new SS(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Fe(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var ws="data-scroll-lock";function kS(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Rc(e){const r=zt(e)?.scrollbarGutter;return r==="stable"||r?.startsWith("stable ")===!0}function Ag(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(ws))return;const s=Rc(n)||Rc(o),a=r.innerWidth-n.clientWidth;o.setAttribute(ws,"");const l=()=>Jy(n,"--scrollbar-width",`${a}px`),c=kS(n),d=()=>{const u={overflow:"hidden"};return!s&&a>0&&(u[c]=`${a}px`),Zn(o,u)},g=()=>{const{scrollX:u,scrollY:h,visualViewport:p}=r,y=p?.offsetLeft??0,C=p?.offsetTop??0,S={position:"fixed",overflow:"hidden",top:`${-(h-Math.floor(C))}px`,left:`${-(u-Math.floor(y))}px`,right:"0"};!s&&a>0&&(S[c]=`${a}px`);const w=Zn(o,S);return()=>{w?.(),r.scrollTo({left:u,top:h,behavior:"instant"})}},f=[l(),Ai()?g():d()];return()=>{f.forEach(u=>u?.()),o.removeAttribute(ws)}}var Vg=B("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");Vg.build();M()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]);M()(["index","readOnly"]);M()(["index","snapAlign"]);const IS=Vg.extendWith("progressText","autoplayIndicator"),[_g,Hi]=ne({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),Lg=m.forwardRef((e,t)=>{const r=Hi(),n=V(r.getControlProps(),e);return v.jsx(_.div,{...n,ref:t})});Lg.displayName="CheckboxControl";function PS(e){return!(e.metaKey||!oo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var TS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function OS(e,t,r){const n=r?le(r):null,o=ce(n);return e=e||n instanceof o.HTMLInputElement&&!TS.has(n?.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(RS,r.key))}var Jt=null,Zs=new Set,mi=new Map,vr=!1,Js=!1,RS={Tab:!0,Escape:!0};function ji(e,t){for(let r of Zs)r(e,t)}function vi(e){vr=!0,PS(e)&&(Jt="keyboard",ji("keyboard",e))}function tt(e){Jt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(vr=!0,ji("pointer",e))}function Fg(e){vy(e)&&(vr=!0,Jt="virtual")}function Dg(e){const t=le(e);t===ce(t)||t===Fe(t)||(!vr&&!Js&&(Jt="virtual",ji("virtual",e)),vr=!1,Js=!1)}function zg(){vr=!1,Js=!0}function NS(e){if(typeof window>"u"||mi.get(ce(e)))return;const t=ce(e),r=Fe(e);let n=t.HTMLElement.prototype.focus;function o(){Jt="virtual",ji("virtual",null),vr=!0,n.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}r.addEventListener("keydown",vi,!0),r.addEventListener("keyup",vi,!0),r.addEventListener("click",Fg,!0),t.addEventListener("focus",Dg,!0),t.addEventListener("blur",zg,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",tt,!0),r.addEventListener("pointermove",tt,!0),r.addEventListener("pointerup",tt,!0)):(r.addEventListener("mousedown",tt,!0),r.addEventListener("mousemove",tt,!0),r.addEventListener("mouseup",tt,!0)),t.addEventListener("beforeunload",()=>{AS(e)},{once:!0}),mi.set(t,{focus:n})}var AS=(e,t)=>{const r=ce(e),n=Fe(e),o=mi.get(r);if(o){try{Object.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}n.removeEventListener("keydown",vi,!0),n.removeEventListener("keyup",vi,!0),n.removeEventListener("click",Fg,!0),r.removeEventListener("focus",Dg,!0),r.removeEventListener("blur",zg,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",tt,!0),n.removeEventListener("pointermove",tt,!0),n.removeEventListener("pointerup",tt,!0)):(n.removeEventListener("mousedown",tt,!0),n.removeEventListener("mousemove",tt,!0),n.removeEventListener("mouseup",tt,!0)),mi.delete(r)}};function VS(){return Jt}function eo(){return Jt==="keyboard"}function Gi(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;NS(o),n?.({isFocusVisible:r||eo(),modality:Jt});const i=(s,a)=>{OS(!!t,s,a)&&n?.({isFocusVisible:eo(),modality:s})};return Zs.add(i),()=>{Zs.delete(i)}}var $g=B("checkbox").parts("root","label","control","indicator"),Oo=$g.build(),Mg=e=>e.ids?.root??`checkbox:${e.id}`,Nc=e=>e.ids?.label??`checkbox:${e.id}:label`,_S=e=>e.ids?.control??`checkbox:${e.id}:control`,Qs=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,LS=e=>e.getById(Mg(e)),zn=e=>e.getById(Qs(e));function FS(e,t){const{send:r,context:n,prop:o,computed:i,scope:s}=e,a=!!o("disabled"),l=!!o("readOnly"),c=!!o("required"),d=!!o("invalid"),g=!a&&n.get("focused"),f=!a&&n.get("focusVisible"),u=i("checked"),h=i("indeterminate"),p=n.get("checked"),y={"data-active":z(n.get("active")),"data-focus":z(g),"data-focus-visible":z(f),"data-readonly":z(l),"data-hover":z(n.get("hovered")),"data-disabled":z(a),"data-state":h?"indeterminate":u?"checked":"unchecked","data-invalid":z(d),"data-required":z(c)};return{checked:u,disabled:a,indeterminate:h,focused:g,checkedState:p,setChecked(C){r({type:"CHECKED.SET",checked:C,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:u,isTrusted:!1})},getRootProps(){return t.label({...Oo.root.attrs,...y,dir:o("dir"),id:Mg(s),htmlFor:Qs(s),onPointerMove(){a||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){a||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(C){le(C)===zn(s)&&C.stopPropagation()}})},getLabelProps(){return t.element({...Oo.label.attrs,...y,dir:o("dir"),id:Nc(s)})},getControlProps(){return t.element({...Oo.control.attrs,...y,dir:o("dir"),id:_S(s),"aria-hidden":!0})},getIndicatorProps(){return t.element({...Oo.indicator.attrs,...y,dir:o("dir"),hidden:!h&&!u})},getHiddenInputProps(){return t.input({id:Qs(s),type:"checkbox",required:o("required"),defaultChecked:u,disabled:a,"aria-labelledby":Nc(s),"aria-invalid":d,name:o("name"),form:o("form"),value:o("value"),style:Ku,onFocus(){const C=eo();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:C}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(C){if(l){C.preventDefault();return}const S=C.currentTarget.checked;r({type:"CHECKED.SET",checked:S,isTrusted:!0})}})}}}var{not:Ac}=ot(),DS={props({props:e}){return{value:"on",...e,defaultChecked:e.defaultChecked??!1}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Ac("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Ac("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Qo(e.get("checked")),checked:({context:e})=>zS(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return Yu({pointerNode:LS(r),keyboardNode:zn(r),isValidKey:n=>n.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Gi({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return Qr(zn(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){const n=zn(r);n&&(Va(n,t("checked")),n.indeterminate=Qo(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const r=Qo(t("checked"))?!0:!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const r=zn(t);Fu(r,{checked:e("checked")})})}}}};function Qo(e){return e==="indeterminate"}function zS(e){return Qo(e)?!1:!!e}M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Wg=$g.extendWith("group");function $S(e){const{value:t,onChange:r,defaultValue:n}=e,[o,i]=m.useState(n),s=t!==void 0,a=s?t:o,l=m.useCallback(c=>(s||i(c),r?.(c)),[s,r]);return[a,l]}const[xN,Bg]=ne({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});function MS(e={}){const t=Bg(),{defaultValue:r,value:n,onValueChange:o,disabled:i=t?.disabled,readOnly:s,name:a,invalid:l=t?.invalid}=e,c=!(i||s),d=Ju(o,{sync:!0}),[g,f]=$S({value:n,defaultValue:r||[],onChange:d}),u=S=>g.some(w=>String(w)===String(S)),h=S=>{u(S)?y(S):p(S)},p=S=>{c&&(u(S)||f(g.concat(S)))},y=S=>{c&&f(g.filter(w=>String(w)!==String(S)))};return{isChecked:u,value:g,name:a,disabled:!!i,readOnly:!!s,invalid:!!l,setValue:f,addValue:p,toggleValue:h,getItemProps:S=>({checked:S.value!=null?u(S.value):void 0,onCheckedChange(){S.value!=null&&h(S.value)},name:a,disabled:i,readOnly:s,invalid:l})}}const[WS,BS]=ne({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),HS=se(),Hg=m.forwardRef((e,t)=>{const[r,n]=HS(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),o=MS(r);return v.jsx(WS,{value:o,children:v.jsx(_.div,{ref:t,role:"group",...n,...Wg.build().group.attrs})})});Hg.displayName="CheckboxGroup";const[jS,at]=ne({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),jg=m.forwardRef((e,t)=>{const r=Hi(),n=V(r.getHiddenInputProps(),e),o=at();return v.jsx(_.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});jg.displayName="CheckboxHiddenInput";const Gg=m.forwardRef((e,t)=>{const r=Hi(),n=V(r.getLabelProps(),e);return v.jsx(_.span,{...n,ref:t})});Gg.displayName="CheckboxLabel";const GS=(e={})=>{const t=BS(),r=at(),n=m.useMemo(()=>V(e,t?.getItemProps({value:e.value})??{}),[e,t]),o=m.useId(),{getRootNode:i}=Le(),{dir:s}=it(),a={id:o,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:s,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:i,...n},l=We(DS,a);return FS(l,qe)},US=se(),Ug=m.forwardRef((e,t)=>{const[r,n]=US(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),o=GS(r),i=V(o.getRootProps(),n);return v.jsx(_g,{value:o,children:v.jsx(_.label,{...i,ref:t})})});Ug.displayName="CheckboxRoot";const YS=se(),Yg=m.forwardRef((e,t)=>{const[{value:r},n]=YS(e,["value"]),o=V(r.getRootProps(),n);return v.jsx(_g,{value:r,children:v.jsx(_.label,{...o,ref:t})})});Yg.displayName="CheckboxRootProvider";var Xg=B("clipboard").parts("root","control","trigger","indicator","input","label");Xg.build();M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);M()(["copied"]);const XS=bg.extendWith("view");var KS=Object.defineProperty,qS=(e,t,r)=>t in e?KS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t,r)=>qS(e,typeof t!="symbol"?t+"":t,r),ei={itemToValue(e){return typeof e=="string"?e:lr(e)&&rt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:lr(e)&&rt(e,"label")?e.label:ei.itemToValue(e)},isItemDisabled(e){return lr(e)&&rt(e,"disabled")?!!e.disabled:!1}},an=class Kg{constructor(t){this.options=t,P(this,"items"),P(this,"indexMap",null),P(this,"copy",r=>new Kg({...this.options,items:r??[...this.items]})),P(this,"isEqual",r=>Te(this.items,r.items)),P(this,"setItems",r=>this.copy(r)),P(this,"getValues",(r=this.items)=>{const n=[];for(const o of r){const i=this.getItemValue(o);i!=null&&n.push(i)}return n}),P(this,"find",r=>{if(r==null)return null;const n=this.indexOf(r);return n!==-1?this.at(n):null}),P(this,"findMany",r=>{const n=[];for(const o of r){const i=this.find(o);i!=null&&n.push(i)}return n}),P(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let n=0;const o=this.group();for(const[,i]of o)for(const s of i){if(n===r)return s;n++}return null}),P(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),P(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),P(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??ei.itemToValue(r)),P(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??ei.isItemDisabled(r)),P(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??ei.itemToString(r)),P(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),P(this,"stringifyItems",(r,n=", ")=>{const o=[];for(const i of r){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(n)}),P(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),P(this,"has",r=>this.indexOf(r)!==-1),P(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),P(this,"group",()=>{const{groupBy:r,groupSort:n}=this.options;if(!r)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=r(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return n&&i.sort(([s],[a])=>{if(typeof n=="function")return n(s,a);if(Array.isArray(n)){const l=n.indexOf(s),c=n.indexOf(a);return l===-1?1:c===-1?-1:l-c}return n==="asc"?s.localeCompare(a):n==="desc"?a.localeCompare(s):0}),i}),P(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))}),P(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))}),P(this,"indexOf",r=>{if(r==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(n=>this.getItemValue(n)===r);if(!this.indexMap){this.indexMap=new Map;let n=0;const o=this.group();for(const[,i]of o)for(const s of i){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,n),n++}}return this.indexMap.get(r)??-1}),P(this,"getByText",(r,n)=>{const o=n!=null?this.indexOf(n):-1,i=r.length===1;for(let s=0;s<this.items.length;s++){const a=this.items[(o+s+1)%this.items.length];if(!(i&&this.getItemValue(a)===n)&&!this.getItemDisabled(a)&&ZS(this.stringifyItem(a),r))return a}}),P(this,"search",(r,n)=>{const{state:o,currentValue:i,timeout:s=350}=n,a=o.keysSoFar+r,c=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,d=this.getByText(c,i),g=this.getItemValue(d);function f(){clearTimeout(o.timer),o.timer=-1}function u(h){o.keysSoFar=h,f(),h!==""&&(o.timer=+setTimeout(()=>{u(""),f()},s))}return u(a),g}),P(this,"update",(r,n)=>{let o=this.indexOf(r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),P(this,"upsert",(r,n,o="append")=>{let i=this.indexOf(r);return i===-1?(o==="append"?this.append:this.prepend)(n):this.copy([...this.items.slice(0,i),n,...this.items.slice(i+1)])}),P(this,"insert",(r,...n)=>this.copy(wn(this.items,r,...n))),P(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(wn(this.items,o,...n))}),P(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(wn(this.items,o+1,...n))}),P(this,"prepend",(...r)=>this.copy(wn(this.items,0,...r))),P(this,"append",(...r)=>this.copy(wn(this.items,this.items.length,...r))),P(this,"filter",r=>{const n=this.items.filter((o,i)=>r(this.stringifyItem(o),i,o));return this.copy(n)}),P(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)}))}),P(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(Ro(this.items,[o],n))}),P(this,"moveBefore",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Ro(this.items,i,o))}),P(this,"moveAfter",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Ro(this.items,i,o+1))}),P(this,"reorder",(r,n)=>this.copy(Ro(this.items,[r],n))),P(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return o<i?-1:o>i?1:0}),P(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[]}),P(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),P(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),s=this.getItemDisabled(n),a=[o,i,s].filter(Boolean).join(":");r+=a+","}return r}),P(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}},ZS=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function wn(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function Ro(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 JS=class ti extends Set{constructor(t=[]){super(t),P(this,"selectionMode","single"),P(this,"deselectable",!0),P(this,"copy",()=>{const r=new ti([...this]);return this.sync(r)}),P(this,"sync",r=>(r.selectionMode=this.selectionMode,r.deselectable=this.deselectable,r)),P(this,"isEmpty",()=>this.size===0),P(this,"isSelected",r=>this.selectionMode==="none"||r==null?!1:this.has(r)),P(this,"canSelect",(r,n)=>this.selectionMode!=="none"||!r.getItemDisabled(r.find(n))),P(this,"firstSelectedValue",r=>{let n=null;for(let o of this)(!n||r.compareValue(o,n)<0)&&(n=o);return n}),P(this,"lastSelectedValue",r=>{let n=null;for(let o of this)(!n||r.compareValue(o,n)>0)&&(n=o);return n}),P(this,"extendSelection",(r,n,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(r,o);const i=this.copy(),s=Array.from(this).pop();for(let a of r.getValueRange(n,s??o))i.delete(a);for(let a of r.getValueRange(o,n))this.canSelect(r,a)&&i.add(a);return i}),P(this,"toggleSelection",(r,n)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(n))return this.replaceSelection(r,n);const o=this.copy();return o.has(n)?o.delete(n):o.canSelect(r,n)&&o.add(n),o}),P(this,"replaceSelection",(r,n)=>{if(this.selectionMode==="none")return this;if(n==null)return this;if(!this.canSelect(r,n))return this;const o=new ti([n]);return this.sync(o)}),P(this,"setSelection",r=>{if(this.selectionMode==="none")return this;let n=new ti;for(let o of r)if(o!=null&&(n.add(o),this.selectionMode==="single"))break;return this.sync(n)}),P(this,"clearSelection",()=>{const r=this.copy();return r.deselectable&&r.size>0&&r.clear(),r}),P(this,"select",(r,n,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(n)&&this.deselectable?this.toggleSelection(r,n):this.replaceSelection(r,n):this.selectionMode==="multiple"||o?this.toggleSelection(r,n):this.replaceSelection(r,n)),P(this,"deselect",r=>{const n=this.copy();return n.delete(r),n}),P(this,"isEqual",r=>Te(Array.from(this),Array.from(r)))}};function qg(e,t,r){for(let n=0;n<t.length;n++)e=r.getChildren(e,t.slice(n+1))[t[n]];return e}function QS(e){const t=ew(e),r=[],n=new Set;for(const o of t){const i=o.join();n.has(i)||(n.add(i),r.push(o))}return r}function Zg(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length-t.length}function ew(e){return e.sort(Zg)}function tw(e,t){let r;return je(e,{...t,onEnter:(n,o)=>{if(t.predicate(n,o))return r=n,"stop"}}),r}function rw(e,t){const r=[];return je(e,{onEnter:(n,o)=>{t.predicate(n,o)&&r.push(n)},getChildren:t.getChildren}),r}function Vc(e,t){let r;return je(e,{onEnter:(n,o)=>{if(t.predicate(n,o))return r=[...o],"stop"},getChildren:t.getChildren}),r}function nw(e,t){let r=t.initialResult;return je(e,{...t,onEnter:(n,o)=>{r=t.nextResult(r,n,o)}}),r}function ow(e,t){return nw(e,{...t,initialResult:[],nextResult:(r,n,o)=>(r.push(...t.transform(n,o)),r)})}function iw(e,t){const{predicate:r,create:n,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((u,h)=>{const p=[...a,h],y=i(u,p);y&&c.push(y)});const d=a.length===0,g=r(s,a),f=c.length>0;return d||g||f?n(s,c,a):null};return i(e,[])||n(e,[],[])}function sw(e,t){const r=[];let n=0;const o=new Map,i=new Map;return je(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,n++);const l=t.getChildren(s,a);l.forEach(u=>{i.has(u)||i.set(u,s),o.has(u)||o.set(u,n++)});const c=l.length>0?l.map(u=>o.get(u)):void 0,d=i.get(s),g=d?o.get(d):void 0,f=o.get(s);r.push({...s,_children:c,_parent:g,_index:f})}}),r}function aw(e,t){return{type:"insert",index:e,nodes:t}}function lw(e){return{type:"remove",indexes:e}}function el(){return{type:"replace"}}function Jg(e){return[e.slice(0,-1),e[e.length-1]]}function Qg(e,t,r=new Map){const[n,o]=Jg(e);for(let s=n.length-1;s>=0;s--){const a=n.slice(0,s).join();switch(r.get(a)?.type){case"remove":continue}r.set(a,el())}const i=r.get(n.join());switch(i?.type){case"remove":r.set(n.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:r.set(n.join(),aw(o,t))}return r}function ef(e){const t=new Map,r=new Map;for(const n of e){const o=n.slice(0,-1).join(),i=r.get(o)??[];i.push(n[n.length-1]),r.set(o,i.sort((s,a)=>s-a))}for(const n of e)for(let o=n.length-2;o>=0;o--){const i=n.slice(0,o).join();t.has(i)||t.set(i,el())}for(const[n,o]of r)t.set(n,lw(o));return t}function cw(e,t){const r=new Map,[n,o]=Jg(e);for(let i=n.length-1;i>=0;i--){const s=n.slice(0,i).join();r.set(s,el())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),r}function Ui(e,t,r){return dw(e,{...r,getChildren:(n,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(n,o);default:return[]}},transform:(n,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return r.create(n,o.filter((d,g)=>!a.indexes.includes(g)),i);case"removeThenInsert":const l=o.filter((d,g)=>!a.removeIndexes.includes(g)),c=a.removeIndexes.reduce((d,g)=>g<d?d-1:d,a.insertIndex);return r.create(n,_c(l,c,0,...a.insertNodes),i);case"insert":return r.create(n,_c(o,a.index,0,...a.nodes),i);case"replace":return r.create(n,o,i);default:return n}}})}function _c(e,t,r,...n){return[...e.slice(0,t),...n,...e.slice(t+r)]}function dw(e,t){const r={};return je(e,{...t,onLeave:(n,o)=>{const i=[0,...o],s=i.join(),a=t.transform(n,r[s]??[],o),l=i.slice(0,-1).join(),c=r[l]??[];c.push(a),r[l]=c}}),r[""][0]}function uw(e,t){const{nodes:r,at:n}=t;if(n.length===0)throw new Error("Can't insert nodes at the root");const o=Qg(n,r);return Ui(e,o,t)}function gw(e,t){if(t.at.length===0)return t.node;const r=cw(t.at,t.node);return Ui(e,r,t)}function fw(e,t){if(t.indexPaths.length===0)return e;for(const n of t.indexPaths)if(n.length===0)throw new Error("Can't remove the root node");const r=ef(t.indexPaths);return Ui(e,r,t)}function hw(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const r=QS(t.indexPaths),n=r.map(i=>qg(e,i,t)),o=Qg(t.to,n,ef(r));return Ui(e,o,t)}function je(e,t){const{onEnter:r,onLeave:n,getChildren:o}=t;let i=[],s=[{node:e}];const a=t.reuseIndexPath?()=>i:()=>i.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const d=r?.(l.node,a());if(d==="stop")return;l.state=d==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.state<c.length){let g=l.state;i.push(g),s.push({node:c[g]}),l.state=g+1;continue}if(n?.(l.node,a())==="stop")return}i.pop(),s.pop()}}var tf=class rf{constructor(t){this.options=t,P(this,"rootNode"),P(this,"isEqual",r=>Te(this.rootNode,r.rootNode)),P(this,"getNodeChildren",r=>this.options.nodeToChildren?.(r)??Nr.nodeToChildren(r)??[]),P(this,"resolveIndexPath",r=>typeof r=="string"?this.getIndexPath(r):r),P(this,"resolveNode",r=>{const n=this.resolveIndexPath(r);return n?this.at(n):void 0}),P(this,"getNodeChildrenCount",r=>this.options.nodeToChildrenCount?.(r)??Nr.nodeToChildrenCount(r)),P(this,"getNodeValue",r=>this.options.nodeToValue?.(r)??Nr.nodeToValue(r)),P(this,"getNodeDisabled",r=>this.options.isNodeDisabled?.(r)??Nr.isNodeDisabled(r)),P(this,"stringify",r=>{const n=this.findNode(r);return n?this.stringifyNode(n):null}),P(this,"stringifyNode",r=>this.options.nodeToString?.(r)??Nr.nodeToString(r)),P(this,"getFirstNode",(r=this.rootNode)=>{let n;return je(r,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!n&&i.length>0&&!this.getNodeDisabled(o))return n=o,"stop"}}),n}),P(this,"getLastNode",(r=this.rootNode,n={})=>{let o;return je(r,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,r)){if(n.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),P(this,"at",r=>qg(this.rootNode,r,{getChildren:this.getNodeChildren})),P(this,"findNode",(r,n=this.rootNode)=>tw(n,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===r})),P(this,"findNodes",(r,n=this.rootNode)=>{const o=new Set(r.filter(i=>i!=null));return rw(n,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),P(this,"sort",r=>r.reduce((n,o)=>{const i=this.getIndexPath(o);return i&&n.push({value:o,indexPath:i}),n},[]).sort((n,o)=>Zg(n.indexPath,o.indexPath)).map(({value:n})=>n)),P(this,"getIndexPath",r=>Vc(this.rootNode,{getChildren:this.getNodeChildren,predicate:n=>this.getNodeValue(n)===r})),P(this,"getValue",r=>{const n=this.at(r);return n?this.getNodeValue(n):void 0}),P(this,"getValuePath",r=>{if(!r)return[];const n=[];let o=[...r];for(;o.length>0;){const i=this.at(o);i&&n.unshift(this.getNodeValue(i)),o.pop()}return n}),P(this,"getDepth",r=>Vc(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===r})?.length??0),P(this,"isSameNode",(r,n)=>this.getNodeValue(r)===this.getNodeValue(n)),P(this,"isRootNode",r=>this.isSameNode(r,this.rootNode)),P(this,"contains",(r,n)=>!r||!n?!1:n.slice(0,r.length).every((o,i)=>r[i]===n[i])),P(this,"getNextNode",(r,n={})=>{let o=!1,i;return je(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(n.skip?.({value:l,node:s,indexPath:a}))return l===r&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===r&&(o=!0)}}),i}),P(this,"getPreviousNode",(r,n={})=>{let o,i=!1;return je(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(n.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===r)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),P(this,"getParentNodes",r=>{const n=this.resolveIndexPath(r)?.slice();if(!n)return[];const o=[];for(;n.length>0;){n.pop();const i=this.at(n);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),P(this,"getDescendantNodes",(r,n)=>{const o=this.resolveNode(r);if(!o)return[];const i=[];return je(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!n?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),P(this,"getDescendantValues",(r,n)=>this.getDescendantNodes(r,n).map(i=>this.getNodeValue(i))),P(this,"getParentIndexPath",r=>r.slice(0,-1)),P(this,"getParentNode",r=>{const n=this.resolveIndexPath(r);return n?this.at(this.getParentIndexPath(n)):void 0}),P(this,"visit",r=>{const{skip:n,...o}=r;je(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return n?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),P(this,"getPreviousSibling",r=>{const n=this.getParentNode(r);if(!n)return;const o=this.getNodeChildren(n);let i=r[r.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),P(this,"getNextSibling",r=>{const n=this.getParentNode(r);if(!n)return;const o=this.getNodeChildren(n);let i=r[r.length-1];for(;++i<o.length;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),P(this,"getSiblingNodes",r=>{const n=this.getParentNode(r);return n?this.getNodeChildren(n):[]}),P(this,"getValues",(r=this.rootNode)=>ow(r,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),P(this,"isValidDepth",(r,n)=>n==null?!0:typeof n=="function"?n(r.length):r.length===n),P(this,"isBranchNode",r=>this.getNodeChildren(r).length>0||this.getNodeChildrenCount(r)!=null),P(this,"getBranchValues",(r=this.rootNode,n={})=>{let o=[];return je(r,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(n.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,n.depth)&&o.push(this.getNodeValue(i))}}),o}),P(this,"flatten",(r=this.rootNode)=>sw(r,{getChildren:this.getNodeChildren})),P(this,"_create",(r,n)=>this.getNodeChildren(r).length>0||n.length>0?{...r,children:n}:{...r}),P(this,"_insert",(r,n,o)=>this.copy(uw(r,{at:n,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),P(this,"copy",r=>new rf({...this.options,rootNode:r})),P(this,"_replace",(r,n,o)=>this.copy(gw(r,{at:n,node:o,getChildren:this.getNodeChildren,create:this._create}))),P(this,"_move",(r,n,o)=>this.copy(hw(r,{indexPaths:n,to:o,getChildren:this.getNodeChildren,create:this._create}))),P(this,"_remove",(r,n)=>this.copy(fw(r,{indexPaths:n,getChildren:this.getNodeChildren,create:this._create}))),P(this,"replace",(r,n)=>this._replace(this.rootNode,r,n)),P(this,"remove",r=>this._remove(this.rootNode,r)),P(this,"insertBefore",(r,n)=>this.getParentNode(r)?this._insert(this.rootNode,r,n):void 0),P(this,"insertAfter",(r,n)=>{if(!this.getParentNode(r))return;const i=[...r.slice(0,-1),r[r.length-1]+1];return this._insert(this.rootNode,i,n)}),P(this,"move",(r,n)=>this._move(this.rootNode,r,n)),P(this,"filter",r=>{const n=iw(this.rootNode,{predicate:r,getChildren:this.getNodeChildren,create:this._create});return this.copy(n)}),P(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Nr={nodeToValue(e){return typeof e=="string"?e:lr(e)&&rt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:lr(e)&&rt(e,"label")?e.label:Nr.nodeToValue(e)},isNodeDisabled(e){return lr(e)&&rt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(lr(e)&&rt(e,"childrenCount"))return e.childrenCount}},nf=B("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");nf.build();var of=e=>new an(e);of.empty=()=>new an({items:[]});var pw=e=>e.ids?.control??`combobox:${e.id}:control`,mw=e=>e.ids?.input??`combobox:${e.id}:input`,vw=e=>e.ids?.content??`combobox:${e.id}:content`,bw=e=>e.ids?.positioner??`combobox:${e.id}:popper`,yw=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,xw=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,sr=e=>e.getById(vw(e)),$n=e=>e.getById(mw(e)),Lc=e=>e.getById(bw(e)),Fc=e=>e.getById(pw(e)),ri=e=>e.getById(yw(e)),Cw=e=>e.getById(xw(e)),En=(e,t)=>{if(t==null)return null;const r=`[role=option][data-value="${CSS.escape(t)}"]`;return tn(sr(e),r)},Dc=e=>{const t=$n(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},Sw=e=>{const t=ri(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:ww,createMachine:Ew,choose:kw}=so(),{and:me,not:He}=ww;Ew({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){La(t)},collection:of.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:r,getEvent:n}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Te,hash(o){return o.join(",")},onChange(o){const i=r(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(g=>a.getItemValue(g)===c)||a.find(c));i.set("selectedItems",l),e("onValueChange")?.({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const i=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue");const i=e("value")||e("defaultValue");if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=At(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=n(),l=(a.previousEvent||a).src;e("onInputValueChange")?.({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:r,action:n,send:o}){r([()=>e.hash("value")],()=>{n(["syncSelectedItems"])}),r([()=>e.get("inputValue")],()=>{n(["syncInputValue"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem","autofillInputValue"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:kw([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:me("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:me("isCustomValue",He("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:me("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:me("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:me("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:me("isOpenControlled","isCustomValue",He("hasHighlightedItem"),He("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:me("isCustomValue",He("hasHighlightedItem"),He("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:me("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:me("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:me("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:me("isOpenControlled","isCustomValue",He("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:me("isCustomValue",He("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:me("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:me("isOpenControlled","isCustomValue",He("hasHighlightedItem"),He("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:me("isCustomValue",He("hasHighlightedItem"),He("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:me("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:me("isOpenControlled","isCustomValue",He("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:me("isCustomValue",He("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:me("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const r=e("openOnChange");return gb(r)?r:!!r?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:r}){return t("disableLayer")?void 0:xr(()=>sr(r),{type:"listbox",defer:!0,exclude:()=>[$n(r),ri(r),Cw(r)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement({context:e,prop:t,scope:r}){const n=()=>Fc(r)||ri(r),o=()=>Lc(r);return e.set("currentPlacement",t("positioning").placement),Ke(n,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=$n(r);let i=[];const s=c=>{const d=n.current().type.includes("POINTER"),g=e.get("highlightedValue");if(d||!g)return;const f=sr(r),u=t("scrollToIndexFn");if(u){const y=t("collection").indexOf(g);u({index:y,immediate:c,getElement:()=>En(r,g)});return}const h=En(r,g),p=$(()=>{qn(h,{rootEl:f,block:"nearest"})});i.push(p)},a=$(()=>s(!0));i.push(a);const l=io(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:r,event:n}){Ke(()=>Fc(r),()=>Lc(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:r}=e,n=r("collection"),o=t.get("highlightedValue");if(!o||!n.has(o))return;const i=r("multiple")?Ur(t.get("value"),o):[o];r("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=At(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:r}){_i(()=>{const n=e.get("highlightedValue");if(n==null)return;const o=En(r,n),i=sr(r),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(n);s({index:a,immediate:!0,getElement:()=>En(r,n)});return}qn(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:r,flush:n,prop:o}=e;r.value!=null&&n(()=>{const i=o("multiple")?Ur(t.get("value"),r.value):[r.value];o("onSelect")?.({value:i,itemValue:r.value}),t.set("value",i);const s=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:r,flush:n,prop:o}=e;r.value!=null&&n(()=>{const i=dr(t.get("value"),r.value);t.set("value",i);const s=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){$(()=>{Dc(e)})},setFinalFocus({scope:e}){$(()=>{ri(e)?.dataset.focusable==null?Dc(e):Sw(e)})},syncInputValue({context:e,scope:t,event:r}){const n=$n(t);n&&(n.value=e.get("inputValue"),queueMicrotask(()=>{r.current().type!=="INPUT.CHANGE"&&Wb(n)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:r}){const n=t("selectionBehavior"),o=At(n,{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:r,event:n,prop:o}=e;r(()=>{t.set("value",n.value);const i=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(n.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:r,prop:n}=e;r(()=>{t.set("value",[]);const o=At(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const r=e("scrollToIndexFn");if(r){const n=e("collection").firstValue;r({index:0,immediate:!0,getElement:()=>En(t,n)})}else{const n=sr(t);if(!n)return;n.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:r}){const n=zc(t);e("onOpenChange")?.({open:!0,reason:n,value:r.get("value")})},invokeOnClose({prop:e,event:t,context:r}){const n=zc(t);e("onOpenChange")?.({open:!1,reason:n,value:r.get("value")})},highlightFirstItem({context:e,prop:t,scope:r}){(sr(r)?queueMicrotask:$)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:r}){(sr(r)?queueMicrotask:$)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getNextValue(n),!r&&t("loopFocus")&&(r=o.firstValue)):r=o.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getPreviousValue(n),!r&&t("loopFocus")&&(r=o.lastValue)):r=o.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){$(()=>{const[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){$(()=>{let n=null;r("hasSelectedItems")?n=t("collection").sort(e.get("value"))[0]:n=t("collection").firstValue,n&&e.set("highlightedValue",n)})},highlightLastOrSelectedItem({context:e,prop:t,computed:r}){$(()=>{const n=t("collection");let o=null;r("hasSelectedItems")?o=n.sort(e.get("value"))[0]:o=n.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:r,event:n,scope:o}){const i=$n(o),s=r("collection");if(!t("autoComplete")||!i||!n.keypress)return;const a=s.stringify(e.get("highlightedValue"));$(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:r}=e,n=r("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>n.getItemValue(c)===a)||n.find(a));t.set("selectedItems",i);const s=At(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const r=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",r)},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function zc(e){return(e.previousEvent||e).src}M()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);M()(["htmlFor"]);M()(["id"]);M()(["item","persistFocus"]);const Iw=nf.extendWith("empty"),[sf,Wt]=ne({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),tl=m.forwardRef((e,t)=>{const r=Wt(),n=Ja(),o=st({...n,present:r.open}),i=V(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:v.jsx(_.div,{...i,ref:Et(o.ref,t)})});tl.displayName="DialogBackdrop";const rl=m.forwardRef((e,t)=>{const r=Wt(),n=V(r.getCloseTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});rl.displayName="DialogCloseTrigger";const nl=m.forwardRef((e,t)=>{const r=Wt(),n=Ze(),o=V(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:v.jsx(_.div,{...o,ref:Et(n.ref,t)})});nl.displayName="DialogContent";const ol=m.forwardRef((e,t)=>{const r=Wt(),n=V(r.getDescriptionProps(),e);return v.jsx(_.div,{...n,ref:t})});ol.displayName="DialogDescription";const il=m.forwardRef((e,t)=>{const r=Wt(),n=V(r.getPositionerProps(),e);return Ze().unmounted?null:v.jsx(_.div,{...n,ref:t})});il.displayName="DialogPositioner";var sl=B("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Qt=sl.build(),af=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,lf=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,ea=e=>e.ids?.content??`dialog:${e.id}:content`,cf=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,ta=e=>e.ids?.title??`dialog:${e.id}:title`,ra=e=>e.ids?.description??`dialog:${e.id}:description`,df=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,No=e=>e.getById(ea(e)),Pw=e=>e.getById(af(e)),Tw=e=>e.getById(lf(e)),Ow=e=>e.getById(cf(e)),Rw=e=>e.getById(ta(e)),Nw=e=>e.getById(ra(e)),Aw=e=>e.getById(df(e));function Vw(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=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({...Qt.trigger.attrs,dir:i("dir"),id:cf(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":ea(s),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Qt.backdrop.attrs,dir:i("dir"),hidden:!l,id:lf(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Qt.positioner.attrs,dir:i("dir"),id:af(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...Qt.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:ea(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:ta(s),"aria-describedby":c.description?ra(s):void 0})},getTitleProps(){return t.element({...Qt.title.attrs,dir:i("dir"),id:ta(s)})},getDescriptionProps(){return t.element({...Qt.description.attrs,dir:i("dir"),id:ra(s)})},getCloseTriggerProps(){return t.button({...Qt.closeTrigger.attrs,dir:i("dir"),id:df(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var _w={props({props:e,scope:t}){const r=e.role==="alertdialog",n=r?()=>Aw(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...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 xr(()=>No(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),exclude:[Ow(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Ag(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?Ng(()=>No(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n,getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Rg(()=>[No(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){$(()=>{e.set("rendered",{title:!!Rw(t),description:!!Nw(t)})})},syncZIndex({scope:e}){$(()=>{const t=No(e);if(!t)return;const r=zt(t);[Pw(e),Tw(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex),o?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};M()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const Lw=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,getRootNode:r,dir:n,...e},i=We(_w,o);return Vw(i,qe)},uf=e=>{const[t,{children:r,...n}]=kt(e),[o]=sn(t),i=Lw(n),s=st(V({present:i.open},t));return v.jsx(sf,{value:i,children:v.jsx(on,{value:o,children:v.jsx(gt,{value:s,children:r})})})},gf=e=>{const[t,{value:r,children:n}]=kt(e),[o]=sn(t),i=st(V({present:r.open},t));return v.jsx(sf,{value:r,children:v.jsx(on,{value:o,children:v.jsx(gt,{value:i,children:n})})})},al=m.forwardRef((e,t)=>{const r=Wt(),n=V(r.getTitleProps(),e);return v.jsx(_.h2,{...n,ref:t})});al.displayName="DialogTitle";const ll=m.forwardRef((e,t)=>{const r=Wt(),n=Ze(),o=V({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return v.jsx(_.button,{...o,ref:t})});ll.displayName="DialogTrigger";var ff=B("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");ff.build();M()(["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 hf=m.forwardRef((e,t)=>{const r=at(),n=V(r.getErrorTextProps(),e);return r?.invalid?v.jsx(_.span,{...n,ref:t}):null});hf.displayName="FieldErrorText";const pf=m.forwardRef((e,t)=>{const r=at(),n=V(r?.getHelperTextProps(),e);return v.jsx(_.span,{...n,ref:t})});pf.displayName="FieldHelperText";const mf=m.forwardRef((e,t)=>{const r=at(),n=V(r?.getInputProps(),e);return v.jsx(_.input,{...n,ref:t})});mf.displayName="FieldInput";const vf=m.forwardRef((e,t)=>{const r=at(),n=V(r?.getLabelProps(),e);return v.jsx(_.label,{...n,ref:t})});vf.displayName="FieldLabel";const Fw=typeof window<"u"?m.useLayoutEffect:m.useEffect,bf=B("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),jt=bf.build(),Dw=(e={})=>{const t=Bg(),r=Le(),{ids:n,disabled:o=!!t?.disabled,invalid:i=!1,readOnly:s=!1,required:a=!1}=e,[l,c]=m.useState(!1),[d,g]=m.useState(!1),f=m.useId(),u=e.id??f,h=m.useRef(null),p=n?.control??`field::${u}`,y=n?.errorText??`field::${u}::error-text`,C=n?.helperText??`field::${u}::helper-text`,S=n?.label??`field::${u}::label`;Fw(()=>{const O=h.current;if(!O)return;const W=()=>{const q=r.getRootNode();c(!!q.getElementById(y)),g(!!q.getElementById(C))};W();const F=r.getWindow(),j=new F.MutationObserver(W);return j.observe(O,{childList:!0,subtree:!0}),()=>j.disconnect()},[r,y,C]);const w=m.useMemo(()=>{const O=[];return l&&i&&O.push(y),d&&O.push(C),O.join(" ")||void 0},[i,y,C,l,d]),b=m.useMemo(()=>()=>({...jt.root.attrs,id:p,ref:h,role:"group","data-disabled":z(o),"data-invalid":z(i),"data-readonly":z(s)}),[o,i,s,p]),x=m.useMemo(()=>()=>({...jt.label.attrs,id:S,"data-disabled":z(o),"data-invalid":z(i),"data-readonly":z(s),"data-required":z(a),htmlFor:u}),[o,i,s,a,u,S]),k=m.useMemo(()=>()=>({"aria-describedby":w,"aria-invalid":Ta(i),"data-invalid":z(i),"data-required":z(a),"data-readonly":z(s),id:u,required:a,disabled:o,readOnly:s}),[w,i,a,s,u,o]),R=m.useMemo(()=>()=>({...k(),...jt.input.attrs}),[k]),T=m.useMemo(()=>()=>({...k(),...jt.textarea.attrs}),[k]),A=m.useMemo(()=>()=>({...k(),...jt.select.attrs}),[k]),I=m.useMemo(()=>()=>({id:C,...jt.helperText.attrs,"data-disabled":z(o)}),[o,C]),N=m.useMemo(()=>()=>({id:y,...jt.errorText.attrs,"aria-live":"polite"}),[y]),E=m.useMemo(()=>()=>({"aria-hidden":!0,...jt.requiredIndicator.attrs}),[]);return{ariaDescribedby:w,ids:{root:p,control:u,label:S,errorText:y,helperText:C},refs:{rootRef:h},disabled:o,invalid:i,readOnly:s,required:a,getLabelProps:x,getRootProps:b,getInputProps:R,getTextareaProps:T,getSelectProps:A,getHelperTextProps:I,getErrorTextProps:N,getRequiredIndicatorProps:E}},zw=se(),yf=m.forwardRef((e,t)=>{const[r,n]=zw(e,["id","ids","disabled","invalid","readOnly","required"]),o=Dw(r),i=V(o.getRootProps(),n);return v.jsx(jS,{value:o,children:v.jsx(_.div,{...i,ref:Et(t,o.refs.rootRef)})})});yf.displayName="FieldRoot";const xf=m.forwardRef((e,t)=>{const r=at(),n=V(r?.getSelectProps(),e);return v.jsx(_.select,{...n,ref:t})});xf.displayName="FieldSelect";function $w(e){if(!e)return;const t=zt(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function Mw(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function Ww(e){if(!e)return;const t=Fe(e),r=ce(e),n=Mw(t),o=$w(e);o&&(n.style.cssText+=o);function i(){r.requestAnimationFrame(()=>{n.innerHTML=e.value;const s=r.getComputedStyle(n);e?.style.setProperty("width",s.width)})}return i(),e?.addEventListener("input",i),e?.addEventListener("change",i),()=>{t.body.removeChild(n),e?.removeEventListener("input",i),e?.removeEventListener("change",i)}}var Bw=e=>{if(!e)return;const t=zt(e),r=ce(e),n=Fe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let c;t.boxSizing==="content-box"?c=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):c=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&c>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),c=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${c}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),o()}});const a=new r.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new r.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),n.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Cf=m.forwardRef((e,t)=>{const{autoresize:r,...n}=e,o=m.useRef(null),i=at(),s=V(i?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return m.useEffect(()=>{if(r)return Bw(o.current)},[r]),v.jsx(_.textarea,{...s,ref:Et(t,o)})});Cf.displayName="FieldTextarea";const Sf=B("fieldset").parts("root","errorText","helperText","legend");Sf.build();var wf=B("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");wf.build();M()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);M()(["file","type"]);const[Ef,lo]=ne({name:"HoverCardContext",hookName:"useHoverCardContext",providerName:"<HoverCardProvider />"}),kf=m.forwardRef((e,t)=>{const r=lo(),n=V(r.getArrowProps(),e);return v.jsx(_.div,{...n,ref:t})});kf.displayName="HoverCardArrow";const If=m.forwardRef((e,t)=>{const r=lo(),n=V(r.getArrowTipProps(),e);return v.jsx(_.div,{...n,ref:t})});If.displayName="HoverCardArrowTip";const Pf=m.forwardRef((e,t)=>{const r=lo(),n=Ze(),o=V(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:v.jsx(_.div,{...o,ref:Et(n.ref,t)})});Pf.displayName="HoverCardContent";const Tf=m.forwardRef((e,t)=>{const r=lo(),n=V(r.getPositionerProps(),e);return Ze().unmounted?null:v.jsx(_.div,{...n,ref:t})});Tf.displayName="HoverCardPositioner";var Of=B("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),kn=Of.build(),Rf=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,Nf=e=>e.ids?.content??`hover-card:${e.id}:content`,Af=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Hw=e=>e.ids?.arrow??`hover-card:${e.id}:arrow`,Es=e=>e.getById(Rf(e)),jw=e=>e.getById(Nf(e)),$c=e=>e.getById(Af(e));function Gw(e,t){const{state:r,send:n,prop:o,context:i,scope:s}=e,a=r.hasTag("open"),l=Wi({...o("positioning"),placement:i.get("currentPlacement")});return{open:a,setOpen(c){r.hasTag("open")!==c&&(o("disabled")||n({type:c?"OPEN":"CLOSE"}))},reposition(c={}){n({type:"POSITIONING.SET",options:c})},getArrowProps(){return t.element({id:Hw(s),...kn.arrow.attrs,dir:o("dir"),style:l.arrow})},getArrowTipProps(){return t.element({...kn.arrowTip.attrs,dir:o("dir"),style:l.arrowTip})},getTriggerProps(){return t.element({...kn.trigger.attrs,dir:o("dir"),"data-placement":i.get("currentPlacement"),id:Rf(s),"data-state":a?"open":"closed",onPointerEnter(c){c.pointerType!=="touch"&&(o("disabled")||n({type:"POINTER_ENTER",src:"trigger"}))},onPointerLeave(c){c.pointerType!=="touch"&&(o("disabled")||n({type:"POINTER_LEAVE",src:"trigger"}))},onFocus(){o("disabled")||n({type:"TRIGGER_FOCUS"})},onBlur(){o("disabled")||n({type:"TRIGGER_BLUR"})}})},getPositionerProps(){return t.element({id:Af(s),...kn.positioner.attrs,dir:o("dir"),style:l.floating})},getContentProps(){return t.element({...kn.content.attrs,dir:o("dir"),id:Nf(s),hidden:!a,tabIndex:-1,"data-state":a?"open":"closed","data-placement":i.get("currentPlacement"),onPointerEnter(c){c.pointerType!=="touch"&&(o("disabled")||n({type:"POINTER_ENTER",src:"content"}))},onPointerLeave(c){c.pointerType!=="touch"&&(o("disabled")||n({type:"POINTER_LEAVE",src:"content"}))}})}}}var{not:Ao,and:Mc}=ot(),Uw={props({props:e}){return{disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({prop:e,bindable:t}){return{open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(r){e("onOpenChange")?.({open:r})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,action:r,prop:n,send:o}){e([()=>n("disabled")],()=>{n("disabled")&&o({type:"CLOSE",src:"disabled.change"})}),e([()=>t.get("open")],()=>{r(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:Mc("isOpenControlled",Ao("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:Ao("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:Mc("isOpenControlled",Ao("isPointer")),actions:["invokeOnClose"]},{guard:Ao("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>e("open")!=null},effects:{waitForOpenDelay({send:e,prop:t}){const r=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay({send:e,prop:t}){const r=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(r)},trackPositioning({context:e,prop:t,scope:r}){e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const n=()=>$c(r);return Ke(Es(r),n,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},trackDismissableElement({send:e,scope:t,prop:r}){return xr(()=>jw(t),{type:"popover",defer:!0,exclude:[Es(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:r("onInteractOutside"),onPointerDownOutside:r("onPointerDownOutside"),onFocusOutside(o){o.preventDefault(),r("onFocusOutside")?.(o)}})}},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:r,event:n}){const o=()=>$c(r);Ke(Es(r),o,{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility({prop:e,event:t,send:r}){queueMicrotask(()=>{r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}};M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);const Yw=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(Uw,o);return Gw(i,qe)},Xw=e=>{const[t,{children:r,...n}]=kt(e),o=Yw(n),i=st(V({present:o.open},t));return v.jsx(Ef,{value:o,children:v.jsx(gt,{value:i,children:r})})},Kw=e=>{const[t,{value:r,children:n}]=kt(e),o=st(V({present:r.open},t));return v.jsx(Ef,{value:r,children:v.jsx(gt,{value:o,children:n})})},Vf=m.forwardRef((e,t)=>{const r=lo(),n=V(r.getTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});Vf.displayName="HoverCardTrigger";var _f=B("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");_f.build();var Lf=e=>new tf(e);Lf.empty=()=>new tf({rootNode:{children:[]}});var Ff=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Ee=(e,t)=>{t!=null&&e.getById(Ff(e,t))?.focus()},qw=(e,t)=>`tree:${e.id}:rename-input:${t}`,Wc=(e,t)=>e.getById(qw(e,t));function Zw(e,t,r){const n=e.getDescendantValues(t),o=n.every(i=>r.includes(i));return Yt(o?dr(r,...n):ar(r,...n))}function Vo(e,t){const{context:r,prop:n,refs:o}=e;if(!n("loadChildren")){r.set("expandedValue",p=>Yt(ar(p,...t)));return}const i=r.get("loadingStatus"),[s,a]=Ul(t,p=>i[p]==="loaded");if(s.length>0&&r.set("expandedValue",p=>Yt(ar(p,...s))),a.length===0)return;const l=n("collection"),[c,d]=Ul(a,p=>{const y=l.findNode(p);return l.getNodeChildren(y).length>0});if(c.length>0&&r.set("expandedValue",p=>Yt(ar(p,...c))),d.length===0)return;r.set("loadingStatus",p=>({...p,...d.reduce((y,C)=>({...y,[C]:"loading"}),{})}));const g=d.map(p=>{const y=l.getIndexPath(p),C=l.getValuePath(y),S=l.findNode(p);return{id:p,indexPath:y,valuePath:C,node:S}}),f=o.get("pendingAborts"),u=n("loadChildren");Su(u,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const h=g.map(({id:p,indexPath:y,valuePath:C,node:S})=>{const w=f.get(p);w&&(w.abort(),f.delete(p));const b=new AbortController;return f.set(p,b),u({valuePath:C,indexPath:y,node:S,signal:b.signal})});Promise.allSettled(h).then(p=>{const y=[],C=[],S=r.get("loadingStatus");let w=n("collection");p.forEach((b,x)=>{const{id:k,indexPath:R,node:T,valuePath:A}=g[x];b.status==="fulfilled"?(S[k]="loaded",y.push(k),w=w.replace(R,{...T,children:b.value})):(f.delete(k),Reflect.deleteProperty(S,k),C.push({node:T,error:b.reason,indexPath:R,valuePath:A}))}),r.set("loadingStatus",S),y.length&&(r.set("expandedValue",b=>Yt(ar(b,...y))),n("onLoadChildrenComplete")?.({collection:w})),C.length&&n("onLoadChildrenError")?.({nodes:C})})}function Gt(e){const{prop:t,context:r}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!r.get("expandedValue").includes(s))}}var{and:ft}=ot();ft("isMultipleSelection","moveFocus"),ft("isShiftKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isBranchFocused","isBranchExpanded"),ft("isShiftKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isCtrlKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isCtrlKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection");function er(e,t){const{prop:r,scope:n,computed:o}=e,i=r("scrollToIndexFn");if(!i)return!1;const s=r("collection"),a=o("visibleNodes");for(let l=0;l<a.length;l++){const{node:c,indexPath:d}=a[l];if(s.getNodeValue(c)===t)return i({index:l,node:c,indexPath:d,getElement:()=>n.getById(Ff(n,t))}),!0}return!1}M()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"]);M()(["node","indexPath"]);var Df=B("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Df.build();var zf=e=>new an(e);zf.empty=()=>new an({items:[]});var Jw=e=>e.ids?.content??`select:${e.id}:content`,Qw=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Bc=e=>e.getById(Jw(e)),Hc=(e,t)=>e.getById(Qw(e,t)),{guards:eE,createMachine:tE}=so(),{or:rE}=eE;tE({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:zf.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Te,onChange(r){const n=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Xr.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const r=new JS(e.get("value"));return r.selectionMode=t("selectionMode"),r.deselectable=!!t("deselectable"),r},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:rE("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>Gi({root:e.getRootNode?.(),onChange(r){t.set("focusVisible",r.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:r}){const n=i=>{const s=e.get("highlightedValue");if(s==null||VS()!=="keyboard")return;const l=Bc(r),c=t("scrollToIndexFn");if(c){const g=t("collection").indexOf(s);c?.({index:g,immediate:i,getElement(){return Hc(r,s)}});return}const d=Hc(r,s);qn(d,{rootEl:l,block:"nearest"})};return $(()=>n(!0)),io(()=>Bc(r),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:r,computed:n}){const o=r.value??e.get("highlightedValue"),i=t("collection");if(o==null||!i.has(o))return;const s=n("selection");if(r.shiftKey&&n("multiple")&&r.anchorValue){const a=s.extendSelection(i,r.anchorValue,o);In(s,a,t("onSelect")),e.set("value",Array.from(a))}else{const a=s.select(i,o,r.metaKey);In(s,a,t("onSelect")),e.set("value",Array.from(a))}},selectWithKeyboard({context:e,prop:t,event:r,computed:n}){const o=n("selection"),i=t("collection");if(r.shiftKey&&n("multiple")&&r.anchorValue){const s=o.extendSelection(i,r.anchorValue,r.value);In(o,s,t("onSelect")),e.set("value",Array.from(s));return}if(t("selectOnHighlight")){const s=o.replaceSelection(i,r.value);In(o,s,t("onSelect")),e.set("value",Array.from(s))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r,computed:n}){const o=t("collection"),i=n("selection"),s=i.select(o,r.value);In(i,s,t("onSelect")),e.set("value",Array.from(s))},clearItem({context:e,event:t,computed:r}){const o=r("selection").deselect(t.value);e.set("value",Array.from(o))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(s=>n.find(l=>r.getItemValue(l)===s)||r.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t,refs:r}){const n=t("collection"),o=e.get("highlightedValue"),{autoHighlight:i}=r.get("inputState");if(i){queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)});return}o!=null&&!n.has(o)&&queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const n=t("collection").firstValue;n!=null&&e.set("highlightedValue",n)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}});var nE=(e,t)=>{const r=new Set(e);for(const n of t)r.delete(n);return r};function In(e,t,r){const n=nE(t,e);for(const o of n)r?.({value:o})}M()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);M()(["item","highlightOnHover"]);M()(["id"]);M()(["htmlFor"]);const oE=Df.extendWith("empty"),[$f,Ce]=ne({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),Mf=m.forwardRef((e,t)=>{const r=Ce(),n=V(r.getArrowProps(),e);return v.jsx(_.div,{...n,ref:t})});Mf.displayName="MenuArrow";const Wf=m.forwardRef((e,t)=>{const r=Ce(),n=V(r.getArrowTipProps(),e);return v.jsx(_.div,{...n,ref:t})});Wf.displayName="MenuArrowTip";const[cl]=ne({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[Yi,Bf]=ne({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),iE=se(),Hf=m.forwardRef((e,t)=>{const[r,n]=iE(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),o={...r,type:"checkbox"},i=Ce(),s=V(i.getOptionItemProps(o),n),a=i.getOptionItemState(o);return v.jsx(Yi,{value:o,children:v.jsx(cl,{value:a,children:v.jsx(_.div,{...s,ref:t})})})});Hf.displayName="MenuCheckboxItem";const jf=m.forwardRef((e,t)=>{const r=Ce(),n=Ze(),o=V(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:v.jsx(_.div,{...o,ref:Et(n.ref,t)})});jf.displayName="MenuContent";const Gf=m.forwardRef((e,t)=>{const r=Ce(),n=V(r.getContextTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});Gf.displayName="MenuContextTrigger";const Uf=m.forwardRef((e,t)=>{const r=Ce(),n=V(r.getIndicatorProps(),e);return v.jsx(_.div,{...n,ref:t})});Uf.displayName="MenuIndicator";const sE=se(),Yf=m.forwardRef((e,t)=>{const[r,n]=sE(e,["closeOnSelect","disabled","value","valueText","onSelect"]),o=Ce(),i=V(o.getItemProps(r),n),s=o.getItemState(r);return m.useEffect(()=>o.addItemListener({id:s.id,onSelect:r.onSelect}),[s.id,r.onSelect]),v.jsx(Yi,{value:r,children:v.jsx(cl,{value:s,children:v.jsx(_.div,{...i,ref:t})})})});Yf.displayName="MenuItem";const[Xf,Kf]=ne({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),aE=se(),qf=m.forwardRef((e,t)=>{const[r,n]=aE(e,["id"]),o=Ce(),s={id:m.useId(),...r},a=V(o.getItemGroupProps(s),n);return v.jsx(Xf,{value:s,children:v.jsx(_.div,{...a,ref:t})})});qf.displayName="MenuItemGroup";const Zf=m.forwardRef((e,t)=>{const r=Ce(),n=Kf(),o=V(r.getItemGroupLabelProps({htmlFor:n.id}),e);return v.jsx(_.div,{...o,ref:t})});Zf.displayName="MenuItemGroupLabel";const Jf=m.forwardRef((e,t)=>{const r=Ce(),n=Bf(),o=V(r.getItemIndicatorProps(n),e);return v.jsx(_.div,{...o,ref:t})});Jf.displayName="MenuItemIndicator";const Qf=m.forwardRef((e,t)=>{const r=Ce(),n=Bf(),o=V(r.getItemTextProps(n),e);return v.jsx(_.div,{...o,ref:t})});Qf.displayName="MenuItemText";const eh=m.forwardRef((e,t)=>{const r=Ce(),n=V(r.getPositionerProps(),e);return Ze().unmounted?null:v.jsx(_.div,{...n,ref:t})});eh.displayName="MenuPositioner";const lE=se(),th=m.forwardRef((e,t)=>{const[r,n]=lE(e,["closeOnSelect","disabled","value","valueText"]),o=Ce(),i=Kf(),s={...r,checked:i.value===r.value,type:"radio",onCheckedChange:()=>i.onValueChange?.({value:r.value})},a=V(o.getOptionItemProps(s),n),l=o.getOptionItemState(s);return v.jsx(Yi,{value:s,children:v.jsx(cl,{value:l,children:v.jsx(_.div,{...a,ref:t})})})});th.displayName="MenuRadioItem";const cE=se(),rh=m.forwardRef((e,t)=>{const[r,n]=cE(e,["id","onValueChange","value"]),o=Ce(),s={id:m.useId(),...r},a=V(o.getItemGroupProps({id:s.id}),n);return v.jsx(Xf,{value:s,children:v.jsx(_.div,{...a,ref:t})})});rh.displayName="MenuRadioItemGroup";const nh=e=>{const t=m.useRef(e),r=m.useRef(!1);m.useEffect(()=>{t.current=e}),m.useEffect(()=>{r.current!==!0&&(r.current=!0,t.current())},[])};var oh=B("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),Ve=oh.build(),bi=e=>e.ids?.trigger??`menu:${e.id}:trigger`,ih=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Fr=e=>e.ids?.content??`menu:${e.id}:content`,dE=e=>e.ids?.arrow??`menu:${e.id}:arrow`,sh=e=>e.ids?.positioner??`menu:${e.id}:popper`,uE=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,to=(e,t)=>`${e.id}/${t}`,tr=e=>e?.dataset.value??null,jc=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,Ut=e=>e.getById(Fr(e)),Gc=e=>e.getById(sh(e)),_o=e=>e.getById(bi(e)),gE=(e,t)=>t?e.getById(to(e,t)):null,ks=e=>e.getById(ih(e)),co=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(Fr(e))}]:not([data-disabled])`;return pr(Ut(e),r)},fE=e=>Br(co(e)),hE=e=>Pi(co(e)),dl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,pE=(e,t)=>{const r=co(e),n=r.findIndex(o=>dl(o,t.value));return lb(r,n,{loop:t.loop??t.loopFocus})},mE=(e,t)=>{const r=co(e),n=r.findIndex(o=>dl(o,t.value));return db(r,n,{loop:t.loop??t.loopFocus})},vE=(e,t)=>{const r=co(e),n=r.find(o=>dl(o,t.value));return Xr(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},Lo=e=>ve(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),bE=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("data-controls"),na="menu:select";function yE(e,t){if(!e)return;const r=ce(e),n=new r.CustomEvent(na,{detail:{value:t}});e.dispatchEvent(n)}function xE(e,t){const{context:r,send:n,state:o,computed:i,prop:s,scope:a}=e,l=o.hasTag("open"),c=r.get("isSubmenu"),d=i("isTypingAhead"),g=s("composite"),f=r.get("currentPlacement"),u=r.get("anchorPoint"),h=r.get("highlightedValue"),p=Wi({...s("positioning"),placement:u?"bottom":f});function y(b){return{id:to(a,b.value),disabled:!!b.disabled,highlighted:h===b.value}}function C(b){const x=b.valueText??b.value;return{...b,id:b.value,valueText:x}}function S(b){return{...y(C(b)),checked:!!b.checked}}function w(b){const{closeOnSelect:x,valueText:k,value:R}=b,T=y(b),A=to(a,R);return t.element({...Ve.item.attrs,id:A,role:"menuitem","aria-disabled":Ta(T.disabled),"data-disabled":z(T.disabled),"data-ownedby":Fr(a),"data-highlighted":z(T.highlighted),"data-value":R,"data-valuetext":k,onDragStart(I){I.currentTarget.matches("a[href]")&&I.preventDefault()},onPointerMove(I){if(T.disabled||I.pointerType!=="mouse")return;const N=I.currentTarget;T.highlighted||n({type:"ITEM_POINTERMOVE",id:A,target:N,closeOnSelect:x})},onPointerLeave(I){if(T.disabled||I.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const E=I.currentTarget;n({type:"ITEM_POINTERLEAVE",id:A,target:E,closeOnSelect:x})},onPointerDown(I){if(T.disabled)return;const N=I.currentTarget;n({type:"ITEM_POINTERDOWN",target:N,id:A,closeOnSelect:x})},onClick(I){if(tc(I)||js(I)||T.disabled)return;const N=I.currentTarget;n({type:"ITEM_CLICK",target:N,id:A,closeOnSelect:x})}})}return{highlightedValue:h,open:l,setOpen(b){o.hasTag("open")!==b&&n({type:b?"OPEN":"CLOSE"})},setHighlightedValue(b){n({type:"HIGHLIGHTED.SET",value:b})},setParent(b){n({type:"PARENT.SET",value:b,id:b.prop("id")})},setChild(b){n({type:"CHILD.SET",value:b,id:b.prop("id")})},reposition(b={}){n({type:"POSITIONING.SET",options:b})},addItemListener(b){const x=a.getById(b.id);if(!x)return;const k=()=>b.onSelect?.();return x.addEventListener(na,k),()=>x.removeEventListener(na,k)},getContextTriggerProps(){return t.element({...Ve.contextTrigger.attrs,dir:s("dir"),id:ih(a),"data-state":l?"open":"closed",onPointerDown(b){if(b.pointerType==="mouse")return;const x=Ft(b);n({type:"CONTEXT_MENU_START",point:x})},onPointerCancel(b){b.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(b){b.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(b){b.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(b){const x=Ft(b);n({type:"CONTEXT_MENU",point:x}),b.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(b){const x=b.getTriggerProps();return V(w({value:x.id}),x)},getTriggerProps(){return t.button({...c?Ve.triggerItem.attrs:Ve.trigger.attrs,"data-placement":r.get("currentPlacement"),type:"button",dir:s("dir"),id:bi(a),"data-uid":s("id"),"aria-haspopup":g?"menu":"dialog","aria-controls":Fr(a),"data-controls":Fr(a),"aria-expanded":l||void 0,"data-state":l?"open":"closed",onPointerMove(b){if(b.pointerType!=="mouse"||Lo(b.currentTarget)||!c)return;const k=Ft(b);n({type:"TRIGGER_POINTERMOVE",target:b.currentTarget,point:k})},onPointerLeave(b){if(Lo(b.currentTarget)||b.pointerType!=="mouse"||!c)return;const x=Ft(b);n({type:"TRIGGER_POINTERLEAVE",target:b.currentTarget,point:x})},onPointerDown(b){Lo(b.currentTarget)||Vu(b)||b.preventDefault()},onClick(b){b.defaultPrevented||Lo(b.currentTarget)||n({type:"TRIGGER_CLICK",target:b.currentTarget})},onBlur(){n({type:"TRIGGER_BLUR"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onKeyDown(b){if(b.defaultPrevented)return;const x={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},Enter(){n({type:"ARROW_DOWN",src:"enter"})},Space(){n({type:"ARROW_DOWN",src:"space"})}},k=ai(b,{orientation:"vertical",dir:s("dir")}),R=x[k];R&&(b.preventDefault(),R(b))}})},getIndicatorProps(){return t.element({...Ve.indicator.attrs,dir:s("dir"),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Ve.positioner.attrs,dir:s("dir"),id:sh(a),style:p.floating})},getArrowProps(){return t.element({id:dE(a),...Ve.arrow.attrs,dir:s("dir"),style:p.arrow})},getArrowTipProps(){return t.element({...Ve.arrowTip.attrs,dir:s("dir"),style:p.arrowTip})},getContentProps(){return t.element({...Ve.content.attrs,id:Fr(a),"aria-label":s("aria-label"),hidden:!l,"data-state":l?"open":"closed",role:g?"menu":"dialog",tabIndex:0,dir:s("dir"),"aria-activedescendant":i("highlightedId")||void 0,"aria-labelledby":bi(a),"data-placement":f,onPointerEnter(b){b.pointerType==="mouse"&&n({type:"MENU_POINTERENTER"})},onKeyDown(b){if(b.defaultPrevented||!_e(b.currentTarget,le(b)))return;const x=le(b);if(!(x?.closest("[role=menu]")===b.currentTarget||x===b.currentTarget))return;if(b.key==="Tab"&&!Ay(b)){b.preventDefault();return}const R={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},ArrowLeft(){n({type:"ARROW_LEFT"})},ArrowRight(){n({type:"ARROW_RIGHT"})},Enter(){n({type:"ENTER"})},Space(I){d?n({type:"TYPEAHEAD",key:I.key}):R.Enter?.(I)},Home(){n({type:"HOME"})},End(){n({type:"END"})}},T=ai(b,{dir:s("dir")}),A=R[T];if(A){A(b),b.stopPropagation(),b.preventDefault();return}s("typeahead")&&my(b)&&(by(b)||Oa(x)||(n({type:"TYPEAHEAD",key:b.key}),b.preventDefault()))}})},getSeparatorProps(){return t.element({...Ve.separator.attrs,role:"separator",dir:s("dir"),"aria-orientation":"horizontal"})},getItemState:y,getItemProps:w,getOptionItemState:S,getOptionItemProps(b){const{type:x,disabled:k,closeOnSelect:R}=b,T=C(b),A=S(b);return{...w(T),...t.element({"data-type":x,...Ve.item.attrs,dir:s("dir"),"data-value":T.value,role:`menuitem${x}`,"aria-checked":!!A.checked,"data-state":A.checked?"checked":"unchecked",onClick(I){if(k||tc(I)||js(I))return;const N=I.currentTarget;n({type:"ITEM_CLICK",target:N,option:T,closeOnSelect:R})}})}},getItemIndicatorProps(b){const x=S(Xl(b)),k=x.checked?"checked":"unchecked";return t.element({...Ve.itemIndicator.attrs,dir:s("dir"),"data-disabled":z(x.disabled),"data-highlighted":z(x.highlighted),"data-state":rt(b,"checked")?k:void 0,hidden:rt(b,"checked")?!x.checked:void 0})},getItemTextProps(b){const x=S(Xl(b)),k=x.checked?"checked":"unchecked";return t.element({...Ve.itemText.attrs,dir:s("dir"),"data-disabled":z(x.disabled),"data-highlighted":z(x.highlighted),"data-state":rt(b,"checked")?k:void 0})},getItemGroupLabelProps(b){return t.element({...Ve.itemGroupLabel.attrs,id:jc(a,b.htmlFor),dir:s("dir")})},getItemGroupProps(b){return t.element({id:uE(a,b.id),...Ve.itemGroup.attrs,dir:s("dir"),"aria-labelledby":jc(a,b.id),role:"group"})}}}var{not:Qe,and:Er,or:CE}=ot(),SE={props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){La(t.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},context({bindable:e,prop:t}){return{suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(r){t("onHighlightChange")?.({highlightedValue:r})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash(r){return`x: ${r?.x}, y: ${r?.y}`}})),isSubmenu:e(()=>({defaultValue:!1}))}},refs(){return{parent:null,children:{},typeaheadState:{...Xr.defaultOptions},positioningOverride:{}}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar!=="",highlightedId:({context:e,scope:t,refs:r})=>EE(r.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:r,prop:n}){e([()=>r.get("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>r.hash("anchorPoint")],()=>{r.get("anchorPoint")&&t(["reposition"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:Qe("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer","clearAnchorPoint"],on:{"CONTROLLED.OPEN":[{guard:CE("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:Er(Qe("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:Qe("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:Er("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:Qe("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:Er(Qe("isPointerSuspended"),Qe("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:Er(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:Er(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:Er(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>bE(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:r})=>!!(e.target??t.getById(r("highlightedId")))?.hasAttribute("data-controls"),isSubmenu:({context:e})=>e.get("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>Oa(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>e("open")!==void 0,isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){const t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:r,refs:n}){if(ks(r))return;const o={...t("positioning"),...n.get("positioningOverride")};e.set("currentPlacement",o.placement);const i=()=>Gc(r);return Ke(_o(r),i,{...o,defer:!0,onComplete(s){e.set("currentPlacement",s.placement)}})},trackInteractOutside({refs:e,scope:t,prop:r,context:n,send:o}){const i=()=>Ut(t);let s=!0;return xr(i,{type:"menu",defer:!0,exclude:[_o(t)],onInteractOutside:r("onInteractOutside"),onRequestDismiss:r("onRequestDismiss"),onFocusOutside(a){r("onFocusOutside")?.(a);const l=le(a.detail.originalEvent);if(_e(ks(t),l)){a.preventDefault();return}if(l?.dataset?.scope==="menu"&&l?.dataset?.part==="content"){a.preventDefault();return}},onEscapeKeyDown(a){r("onEscapeKeyDown")?.(a),n.get("isSubmenu")&&a.preventDefault(),Uc({parent:e.get("parent")})},onPointerDownOutside(a){r("onPointerDownOutside")?.(a);const l=le(a.detail.originalEvent);if(_e(ks(t),l)&&a.detail.contextmenu){a.preventDefault();return}s=!a.detail.focusable},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:s})}})},trackPointerMove({context:e,scope:t,send:r,refs:n,flush:o}){const i=n.get("parent");o(()=>{i.context.set("suspendPointer",!0)});const s=t.getDoc();return K(s,"pointermove",a=>{wE(e.get("intentPolygon"),{x:a.clientX,y:a.clientY})||(r({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),i.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:r}){const n=()=>{if(e.current().type.startsWith("ITEM_POINTER"))return;const i=t.getById(r("highlightedId")),s=Ut(t);qn(i,{rootEl:s,block:"nearest"})};return $(()=>n()),io(()=>Ut(t),{defer:!0,attributes:["aria-activedescendant"],callback:n})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",r=>Te(r,t.point)?r:t.point)},setSubmenuPlacement({context:e,computed:t,refs:r}){if(!e.get("isSubmenu"))return;const n=t("isRtl")?"left-start":"right-start";r.set("positioningOverride",{placement:n,gutter:0})},reposition({context:e,scope:t,prop:r,event:n,refs:o}){const i=()=>Gc(t),s=e.get("anchorPoint"),a=s?()=>({width:0,height:0,...s}):void 0,l={...r("positioning"),...o.get("positioningOverride")};Ke(_o(t),i,{...l,defer:!0,getAnchorRect:a,...n.options??{},listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},setOptionState({event:e}){if(!e.option)return;const{checked:t,onCheckedChange:r,type:n}=e.option;n==="radio"?r?.(!0):n==="checkbox"&&r?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:r,context:n}){const o=e.getById(t("highlightedId"));if(!o||o.dataset.disabled)return;const i=n.get("highlightedValue");Iu(o)?r("navigate")?.({value:i,node:o,href:o.href}):queueMicrotask(()=>o.click())},setIntentPolygon({context:e,scope:t,event:r}){const n=Ut(t),o=e.get("currentPlacement");if(!n||!o)return;const i=n.getBoundingClientRect(),s=dS(i,o);if(!s)return;const l=K0(o)==="right"?-5:5;e.set("intentPolygon",[{...r.point,x:r.point.x+l},...s])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},clearAnchorPoint({context:e}){e.set("anchorPoint",null)},resumePointer({refs:e,flush:t}){const r=e.get("parent");r&&t(()=>{r.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){const r=t.value||tr(t.target);e.set("highlightedValue",r)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){$(()=>{const t=Ut(e);Kn({root:t,enabled:!_e(t,e.getActiveElement()),filter(n){return!n.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(Ut(t)?queueMicrotask:$)(()=>{const n=fE(t);n&&e.set("highlightedValue",tr(n))})},highlightLastItem({context:e,scope:t}){(Ut(t)?queueMicrotask:$)(()=>{const n=hE(t);n&&e.set("highlightedValue",tr(n))})},highlightNextItem({context:e,scope:t,event:r,prop:n}){const o=pE(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",tr(o))},highlightPrevItem({context:e,scope:t,event:r,prop:n}){const o=mE(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",tr(o))},invokeOnSelect({context:e,prop:t,scope:r}){const n=e.get("highlightedValue");if(n==null)return;const o=gE(r,n);yE(o,n),t("onSelect")?.({value:n})},focusTrigger({scope:e,context:t,event:r}){t.get("isSubmenu")||t.get("anchorPoint")||r.restoreFocus===!1||queueMicrotask(()=>_o(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:r,refs:n}){const o=vE(e,{key:r.key,value:t.get("highlightedValue"),typeaheadState:n.get("typeaheadState")});o&&t.set("highlightedValue",tr(o))},setParentMenu({refs:e,event:t,context:r}){e.set("parent",t.value),r.set("isSubmenu",!0)},setChildMenu({refs:e,event:t}){const r=e.get("children");r[t.id]=t.value,e.set("children",r)},closeRootMenu({refs:e}){Uc({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:r}){const o=t.getById(r("highlightedId"))?.getAttribute("data-uid"),i=e.get("children");(o?i[o]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",tr(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}};function Uc(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function wE(e,t){return e?uS(e,t):!1}function EE(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return to(r,t);for(const o in e){const i=e[o],s=bi(i.scope);if(s===t)return s}return to(r,t)}M()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);M()(["closeOnSelect","disabled","value","valueText"]);M()(["htmlFor"]);M()(["id"]);M()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);const kE=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(SE,o);return{api:xE(i,qe),service:i}},[ah,lh]=ne({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[ch,IE]=ne({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),PE=se(),TE=e=>{const[t,r]=kt(e),[n,o]=PE(r,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),i=Ce(),s=lh(),{api:a,service:l}=kE(n),c=st(V({present:a.open},t));nh(()=>{s&&i&&(i.setChild(l),a.setParent(s))});const d=m.useCallback(()=>i?.getTriggerItemProps(a),[a,i]);return v.jsx(ch,{value:d,children:v.jsx(ah,{value:l,children:v.jsx($f,{value:a,children:v.jsx(gt,{value:c,...o})})})})},OE=e=>{const t=Ce(),r=lh(),[n,{value:o,children:i}]=kt(e),{api:s,service:a}=o,l=st(V({present:s.open},n));nh(()=>{r&&t&&(t.setChild(a),s.setParent(r))});const c=m.useCallback(()=>t?.getTriggerItemProps(s),[s,t]);return v.jsx(ch,{value:c,children:v.jsx(ah,{value:a,children:v.jsx($f,{value:s,children:v.jsx(gt,{value:l,children:i})})})})},dh=m.forwardRef((e,t)=>{const r=Ce(),n=V(r.getSeparatorProps(),e);return v.jsx(_.hr,{...n,ref:t})});dh.displayName="MenuSeparator";const uh=m.forwardRef((e,t)=>{const r=Ce(),n=Ze(),o=V({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return v.jsx(_.button,{...o,ref:t})});uh.displayName="MenuTrigger";const gh=m.forwardRef((e,t)=>{const r=IE(),n=V(r?.()??{},e);return v.jsx(Yi,{value:{value:n["data-value"]},children:v.jsx(_.div,{...n,ref:t})})});gh.displayName="MenuTriggerItem";const CN=e=>{const{children:t,disabled:r}=e,[n,o]=m.useState(e.container?.current),i=m.useSyncExternalStore(NE,()=>!1,()=>!0),{getRootNode:s}=Le();if(m.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||r)return v.jsx(v.Fragment,{children:t});const a=n??RE(s);return v.jsx(v.Fragment,{children:m.Children.map(t,l=>Si.createPortal(l,a))})},RE=e=>{const t=e?.(),r=t.getRootNode();return fr(r)?r:Fe(t).body},NE=()=>()=>{};let Is=new Map,oa=!1;try{oa=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let yi=!1;try{yi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const fh={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class AE{format(t){let r="";if(!oa&&this.options.signDisplay!=null?r=_E(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!yi){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=fh[o])===null||n===void 0?void 0:n[i];r+=a[s]||a.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!oa&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!yi&&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"&&!yi){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=fh[s])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(Is.has(o))return Is.get(o);let i=new Intl.NumberFormat(e,t);return Is.set(o,i),i}function _E(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),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(r)}}const LE=new RegExp("^.*\\(.*\\).*$"),FE=["latn","arab","hanidec","deva","beng","fullwide"];class hh{parse(t){return Ps(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return Ps(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return Ps(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Yc=new Map;function Ps(e,t,r){let n=Xc(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of FE)if(o!==n.options.numberingSystem){let i=Xc(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function Xc(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Yc.get(r);return n||(n=new DE(e,t),Yc.set(r,n)),n}class DE{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=kr(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 s=r.indexOf("-");r=r.replace("-",""),r=r.replace("+","");let a=r.indexOf(".");a===-1&&(a=r.length),r=r.replace(".",""),a-2===0?r=`0.${r}`:a-2===-1?r=`0.0${r}`:a-2===-2?r="0.00":r=`${r.slice(0,a-2)}.${r.slice(a-2)}`,s>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var o,i;let s={...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 hh(this.locale,s).parse(new AE(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&LE.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=kr(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=kr(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=kr(t," ",this.symbols.group),t=kr(t,/\u00A0/g,this.symbols.group)),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=kr(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,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=$E(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 Kc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),zE=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $E(e,t,r,n){var o,i,s,a;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),g=zE.map(I=>l.formatToParts(I));var f;let u=(f=(o=c.find(I=>I.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&f!==void 0?f:"-",h=(i=d.find(I=>I.type==="plusSign"))===null||i===void 0?void 0:i.value;!h&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(h="+");let y=(s=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(I=>I.type==="decimal"))===null||s===void 0?void 0:s.value,C=(a=c.find(I=>I.type==="group"))===null||a===void 0?void 0:a.value,S=c.filter(I=>!Kc.has(I.type)).map(I=>qc(I.value)),w=g.flatMap(I=>I.filter(N=>!Kc.has(N.type)).map(N=>qc(N.value))),b=[...new Set([...S,...w])].sort((I,N)=>N.length-I.length),x=b.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),R=new Map(k.map((I,N)=>[I,N])),T=new RegExp(`[${k.join("")}]`,"g");return{minusSign:u,plusSign:h,decimal:y,group:C,literals:x,numeral:T,index:I=>String(R.get(I))}}function kr(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function qc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ph=B("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");ph.build();var ME=e=>e.ids?.input??`number-input:${e.id}:input`,WE=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,BE=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,mh=e=>`number-input:${e.id}:cursor`,Fo=e=>e.getById(ME(e)),HE=e=>e.getById(WE(e)),jE=e=>e.getById(BE(e)),vh=e=>e.getDoc().getElementById(mh(e)),GE=(e,t)=>{let r=null;return t==="increment"&&(r=HE(e)),t==="decrement"&&(r=jE(e)),r},UE=(e,t)=>{if(!Jr())return KE(e,t),()=>{vh(e)?.remove()}},YE=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")}},XE=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),s=gs(o.movementX,i.devicePixelRatio),a=gs(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const c={x:r.x+s,y:r.y+a},d=i.innerWidth,g=gs(7.5,i.devicePixelRatio);return c.x=Ib(c.x+g,d)-g,{hint:l,point:c}},KE=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=mh(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:Eu,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
|
|
2
|
+
<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);">
|
|
3
|
+
<g transform="translate(2 3)">
|
|
4
|
+
<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>
|
|
5
|
+
<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>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>`,r.body.appendChild(n)};function qE(e,t){if(!(!e||!t.isActiveElement(e)))try{const{selectionStart:r,selectionEnd:n,value:o}=e;return r==null||n==null?void 0:{start:r,end:n,value:o}}catch{return}}function ZE(e,t,r){if(!(!e||!r.isActiveElement(e))){if(!t){const n=e.value.length;e.setSelectionRange(n,n);return}try{const n=e.value,{start:o,end:i,value:s}=t;if(n===s){e.setSelectionRange(o,i);return}const a=Zc(s,n,o),l=o===i?a:Zc(s,n,i),c=Math.max(0,Math.min(a,n.length)),d=Math.max(c,Math.min(l,n.length));e.setSelectionRange(c,d)}catch{const n=e.value.length;e.setSelectionRange(n,n)}}}function Zc(e,t,r){const n=e.slice(0,r),o=e.slice(r);let i=0;const s=Math.min(n.length,t.length);for(let c=0;c<s&&n[c]===t[c];c++)i=c+1;let a=0;const l=Math.min(o.length,t.length-i);for(let c=0;c<l;c++){const d=o.length-1-c,g=t.length-1-c;if(o[d]===t[g])a=c+1;else break}if(i>=n.length)return i;if(a>=o.length)return t.length-a;if(i>0)return i;if(a>0)return t.length-a;if(e.length>0){const c=r/e.length;return Math.round(c*t.length)}return t.length}var JE=(e,t={})=>new Intl.NumberFormat(e,t),QE=(e,t={})=>new hh(e,t),Ts=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?e===""?Number.NaN:n("parser").parse(e):parseFloat(e)},rr=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},ek=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:tk,guards:rk,createMachine:nk}=so(),{not:Jc,and:Qc}=rk;nk({props({props:e}){const t=ek(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){const o=r(),i=Ts(n,{computed:o,prop:e});e("onValueChange")?.({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})=>Ts(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>rr(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Tb(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Pb(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Ob(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})=>e("translations").valueText?.(t.get("value")),formatter:oc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>JE(e,t)),parser:oc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>QE(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale"),()=>JSON.stringify(o("formatOptions"))],()=>{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:Qc("clampValueOnBlur",Jc("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:Jc("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:tk([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Qc("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 Qr(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 UE(t,r)},preventTextSelection({scope:e}){return YE(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=GE(t,n);return io(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 s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return K(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Jr())return My(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(a){const l=r.get("scrubberCursorPoint"),c=n("isRtl"),d=XE(e,{point:l,isRtl:c,event:a});d.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:d.hint,point:d.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return Yr(K(o,"mousemove",i,!1),K(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=Fo(e);e.isActiveElement(r)||$(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=Vb(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Ne(o,r("min"),r("max"))),e.set("value",rr(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=_b(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Ne(o,r("min"),r("max"))),e.set("value",rr(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=Ne(r("valueAsNumber"),t("min"),t("max"));e.set("value",rr(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=Ts(t.value,{computed:n,prop:r});r("allowOverflow")||(o=Ne(o,r("min"),r("max"))),e.set("value",rr(o,{computed:n,prop:r}))},setValue({context:e,event:t}){const r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=rr(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=rr(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}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({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),s=t.selection??qE(i,n);$(()=>{hr(i,o),ZE(i,s,n)})},setFormattedValue({context:e,computed:t,action:r}){e.set("value",t("formattedValue")),r(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=vh(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});M()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var bh=B("pinInput").parts("root","label","input","control");bh.build();M()(["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"]);const[yh,Pt]=ne({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),xh=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getAnchorProps(),e);return v.jsx(_.div,{...n,ref:t})});xh.displayName="PopoverAnchor";const Ch=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getArrowProps(),e);return v.jsx(_.div,{...n,ref:t})});Ch.displayName="PopoverArrow";const Sh=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getArrowTipProps(),e);return v.jsx(_.div,{...n,ref:t})});Sh.displayName="PopoverArrowTip";const ul=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getCloseTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});ul.displayName="PopoverCloseTrigger";const gl=m.forwardRef((e,t)=>{const r=Pt(),n=Ze(),o=V(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:v.jsx(_.div,{...o,ref:Et(n.ref,t)})});gl.displayName="PopoverContent";const wh=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getDescriptionProps(),e);return v.jsx(_.div,{...n,ref:t})});wh.displayName="PopoverDescription";const Eh=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getIndicatorProps(),e);return v.jsx(_.div,{...n,ref:t})});Eh.displayName="PopoverIndicator";const kh=m.forwardRef((e,t)=>{const r=Pt(),n=Ze(),o=V(r.getPositionerProps(),e);return n.unmounted?null:v.jsx(_.div,{...o,ref:t})});kh.displayName="PopoverPositioner";var Ih=B("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),ht=Ih.build(),Ph=e=>e.ids?.anchor??`popover:${e.id}:anchor`,Th=e=>e.ids?.trigger??`popover:${e.id}:trigger`,ia=e=>e.ids?.content??`popover:${e.id}:content`,Oh=e=>e.ids?.positioner??`popover:${e.id}:popper`,ok=e=>e.ids?.arrow??`popover:${e.id}:arrow`,sa=e=>e.ids?.title??`popover:${e.id}:title`,aa=e=>e.ids?.description??`popover:${e.id}:desc`,ik=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,ed=e=>e.getById(Ph(e)),Ir=e=>e.getById(Th(e)),Pr=e=>e.getById(ia(e)),td=e=>e.getById(Oh(e)),sk=e=>e.getById(sa(e)),ak=e=>e.getById(aa(e));function lk(e,t){const{state:r,context:n,send:o,computed:i,prop:s,scope:a}=e,l=r.matches("open"),c=n.get("currentPlacement"),d=i("currentPortalled"),g=n.get("renderedElements"),f=Wi({...s("positioning"),placement:c});return{portalled:d,open:l,setOpen(u){r.matches("open")!==u&&o({type:u?"OPEN":"CLOSE"})},reposition(u={}){o({type:"POSITIONING.SET",options:u})},getArrowProps(){return t.element({id:ok(a),...ht.arrow.attrs,dir:s("dir"),style:f.arrow})},getArrowTipProps(){return t.element({...ht.arrowTip.attrs,dir:s("dir"),style:f.arrowTip})},getAnchorProps(){return t.element({...ht.anchor.attrs,dir:s("dir"),id:Ph(a)})},getTriggerProps(){return t.button({...ht.trigger.attrs,dir:s("dir"),type:"button","data-placement":c,id:Th(a),"aria-haspopup":"dialog","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":ia(a),onPointerDown(u){Au(u)&&Jr()&&u.currentTarget.focus()},onClick(u){u.defaultPrevented||o({type:"TOGGLE"})},onBlur(u){o({type:"TRIGGER_BLUR",target:u.relatedTarget})}})},getIndicatorProps(){return t.element({...ht.indicator.attrs,dir:s("dir"),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({id:Oh(a),...ht.positioner.attrs,dir:s("dir"),style:f.floating})},getContentProps(){return t.element({...ht.content.attrs,dir:s("dir"),id:ia(a),tabIndex:-1,role:"dialog","aria-modal":Ta(s("modal")),hidden:!l,"data-state":l?"open":"closed","data-expanded":z(l),"aria-labelledby":g.title?sa(a):void 0,"aria-describedby":g.description?aa(a):void 0,"data-placement":c})},getTitleProps(){return t.element({...ht.title.attrs,id:sa(a),dir:s("dir")})},getDescriptionProps(){return t.element({...ht.description.attrs,id:aa(a),dir:s("dir")})},getCloseTriggerProps(){return t.button({...ht.closeTrigger.attrs,dir:s("dir"),id:ik(a),type:"button","aria-label":"close",onClick(u){u.defaultPrevented||(u.stopPropagation(),o({type:"CLOSE"}))}})}}}var ck={props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:r}){e.set("currentPlacement",t("positioning").placement);const n=ed(r)??Ir(r);return Ke(n,()=>td(r),{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){const n=()=>Pr(r);let o=!0;return xr(n,{type:"popover",pointerBlocking:t("modal"),exclude:Ir(r),defer:!0,onEscapeKeyDown(i){t("onEscapeKeyDown")?.(i),!t("closeOnEscape")&&i.preventDefault()},onInteractOutside(i){t("onInteractOutside")?.(i),!i.defaultPrevented&&(o=!(i.detail.focusable||i.detail.contextmenu),t("closeOnInteractOutside")||i.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:jy(()=>Pr(t),{triggerElement:Ir(t),defer:!0,getShadowRoot:!0,onFocus(n){n.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?Rg(()=>[Pr(t),Ir(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return Ag(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?Ng(()=>Pr(t),{initialFocus:()=>Kn({root:Pr(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:r,context:n}){const o=ed(r)??Ir(r);Ke(o,()=>td(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(s){n.set("currentPlacement",s.placement)}})},checkRenderedElements({context:e,scope:t}){$(()=>{Object.assign(e.get("renderedElements"),{title:!!sk(t),description:!!ak(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||$(()=>{Kn({root:Pr(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){const r=e.restoreFocus??e.previousEvent?.restoreFocus;r!=null&&!r||$(()=>{Ir(t)?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const dk=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(ck,o);return lk(i,qe)},Rh=e=>{const[t,{children:r,...n}]=kt(e),o=dk(n),i=st(V({present:o.open},t));return v.jsx(yh,{value:o,children:v.jsx(gt,{value:i,children:r})})},Nh=e=>{const[t,{value:r,children:n}]=kt(e),o=st(V({present:r.open},t));return v.jsx(yh,{value:r,children:v.jsx(gt,{value:o,children:n})})},Ah=m.forwardRef((e,t)=>{const r=Pt(),n=V(r.getTitleProps(),e);return v.jsx(_.div,{...n,ref:t})});Ah.displayName="PopoverTitle";const Vh=m.forwardRef((e,t)=>{const r=Pt(),n=Ze(),o=V({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return v.jsx(_.button,{...o,ref:t})});Vh.displayName="PopoverTrigger";var fl=B("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");fl.build();M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var _h=B("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");_h.build();M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var hl=B("radio-group").parts("root","label","item","itemText","itemControl","indicator");hl.build();M()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"]);M()(["value","disabled","invalid"]);var Lh=B("rating-group").parts("root","label","item","control");Lh.build();M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);M()(["index"]);const[Fh,uo]=ne({name:"ScrollAreaContext",hookName:"useScrollAreaContext",providerName:"<ScrollAreaProvider />"}),Dh=m.forwardRef((e,t)=>{const r=uo(),n=V(r.getContentProps(),e);return v.jsx(_.div,{...n,ref:t})});Dh.displayName="ScrollAreaContent";const zh=m.forwardRef((e,t)=>{const r=uo(),n=V(r.getCornerProps(),e);return v.jsx(_.div,{...n,ref:t})});zh.displayName="ScrollAreaCorner";var uk=Object.defineProperty,gk=(e,t,r)=>t in e?uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Os=(e,t,r)=>gk(e,typeof t!="symbol"?t+"":t,r),$h=B("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner"),Tr=$h.build(),lt=e=>e.ids?.root??`scroll-area-${e.id}`,Mh=e=>e.ids?.viewport??`scroll-area-${e.id}:viewport`,Wh=e=>e.ids?.content??`scroll-area-${e.id}:content`,Xi=e=>e.getById(lt(e)),pt=e=>e.getById(Mh(e)),fk=e=>e.getById(Wh(e)),Mn=e=>tn(Xi(e),`[data-part=scrollbar][data-orientation=horizontal][data-ownedby="${lt(e)}"]`),Wn=e=>tn(Xi(e),`[data-part=scrollbar][data-orientation=vertical][data-ownedby="${lt(e)}"]`),Rs=e=>tn(Mn(e),`[data-part=thumb][data-orientation=horizontal][data-ownedby="${lt(e)}"]`),Ns=e=>tn(Wn(e),`[data-part=thumb][data-orientation=vertical][data-ownedby="${lt(e)}"]`),hk=e=>tn(Xi(e),`[data-part=corner][data-ownedby="${lt(e)}"]`);function pk(e,t){if(!e)return mk;let r=0,n=0;const o=e.scrollWidth-e.clientWidth;o>t&&(r=Math.min(1,Math.max(0,e.scrollLeft/o)));const i=e.scrollHeight-e.clientHeight;return i>t&&(n=Math.min(1,Math.max(0,e.scrollTop/i))),{x:r,y:n}}var mk={x:0,y:0},vk=300,bk=e=>e*(2-e);function Bh(e,t={}){const{top:r,left:n,duration:o=vk,easing:i=bk,onComplete:s}=t;if(!e)return;const a={startTime:0,startScrollTop:e.scrollTop,startScrollLeft:e.scrollLeft,targetScrollTop:r??e.scrollTop,targetScrollLeft:n??e.scrollLeft};let l=!1;const c=()=>{a.rafId&&(cancelAnimationFrame(a.rafId),a.rafId=void 0),l=!0},d=g=>{if(l)return;a.startTime===0&&(a.startTime=g);const f=g-a.startTime,u=Math.min(f/o,1),h=i(u),p=a.targetScrollTop-a.startScrollTop,y=a.targetScrollLeft-a.startScrollLeft;e.scrollTop=a.startScrollTop+p*h,e.scrollLeft=a.startScrollLeft+y*h,u<1?a.rafId=requestAnimationFrame(d):s?.()};return a.rafId=requestAnimationFrame(d),c}function yk(e,t={}){if(!e)return;const{top:r,left:n,behavior:o="smooth",easing:i,duration:s}=t;if(o==="smooth")Bh(e,{top:r,left:n,easing:i,duration:s});else{const a=Zr({behavior:o,top:r,left:n});e.scrollTo(a)}}function xk(e,t,r,n="smooth",o,i){if(!e)return;const s=e.scrollWidth-e.clientWidth,a=e.scrollHeight-e.clientHeight,l=r==="rtl";let c,d;switch(t){case"top":c=0;break;case"bottom":c=a;break;case"left":l?d=e.scrollLeft<=0?-s:0:d=0;break;case"right":l?d=e.scrollLeft<=0?0:s:d=s;break}if(n==="smooth")Bh(e,{top:c,left:d,easing:o,duration:i});else{const g=Zr({left:d,top:c,behavior:n});e.scrollTo(g)}}function Ck(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=r.matches("dragging"),l=o.get("hovering"),c=o.get("cornerSize"),d=o.get("thumbSize"),g=o.get("hiddenState"),f=o.get("atSides");return{isAtTop:f.top,isAtBottom:f.bottom,isAtLeft:f.left,isAtRight:f.right,hasOverflowX:!g.scrollbarXHidden,hasOverflowY:!g.scrollbarYHidden,getScrollProgress(){return pk(pt(s),0)},scrollToEdge(u){const{edge:h,behavior:p}=u;return xk(pt(s),h,i("dir"),p)},scrollTo(u){return yk(pt(s),u)},getScrollbarState(u){const h=u.orientation==="horizontal";return{hovering:l,dragging:a,scrolling:o.get(h?"scrollingX":"scrollingY"),hidden:h?g.scrollbarXHidden:g.scrollbarYHidden}},getRootProps(){return t.element({...Tr.root.attrs,id:lt(s),dir:i("dir"),role:"presentation","data-overflow-x":z(!g.scrollbarXHidden),"data-overflow-y":z(!g.scrollbarYHidden),onPointerEnter(u){const h=le(u);_e(u.currentTarget,h)&&n({type:"root.pointerenter",pointerType:u.pointerType})},onPointerMove(u){const h=le(u);_e(u.currentTarget,h)&&n({type:"root.pointerenter",pointerType:u.pointerType})},onPointerDown({pointerType:u}){n({type:"root.pointerdown",pointerType:u})},onPointerLeave(u){_e(u.currentTarget,u.relatedTarget)||n({type:"root.pointerleave"})},style:{position:"relative","--corner-width":Re(c?.width),"--corner-height":Re(c?.height),"--thumb-width":Re(d?.width),"--thumb-height":Re(d?.height)}})},getViewportProps(){const u=()=>{n({type:"user.scroll"})};return t.element({...Tr.viewport.attrs,role:"presentation","data-ownedby":lt(s),id:Mh(s),"data-at-top":z(f.top),"data-at-bottom":z(f.bottom),"data-at-left":z(f.left),"data-at-right":z(f.right),"data-overflow-x":z(!g.scrollbarXHidden),"data-overflow-y":z(!g.scrollbarYHidden),tabIndex:g.scrollbarXHidden||g.scrollbarYHidden?void 0:0,style:{overflow:"auto"},onScroll(h){n({type:"viewport.scroll",target:h.currentTarget})},onWheel:u,onTouchMove:u,onPointerMove:u,onPointerEnter:u,onKeyDown:u})},getContentProps(){return t.element({...Tr.content.attrs,id:Wh(s),role:"presentation","data-overflow-x":z(!g.scrollbarXHidden),"data-overflow-y":z(!g.scrollbarYHidden),style:{minWidth:"fit-content"}})},getScrollbarProps(u={}){const{orientation:h="vertical"}=u;return t.element({...Tr.scrollbar.attrs,"data-ownedby":lt(s),"data-orientation":h,"data-scrolling":z(o.get(h==="horizontal"?"scrollingX":"scrollingY")),"data-hover":z(l),"data-dragging":z(a),"data-overflow-x":z(!g.scrollbarXHidden),"data-overflow-y":z(!g.scrollbarYHidden),onPointerUp(){n({type:"scrollbar.pointerup",orientation:h})},onPointerDown(p){if(p.button!==0||p.currentTarget!==p.target)return;const y=Ft(p);n({type:"scrollbar.pointerdown",orientation:h,point:y}),p.stopPropagation()},style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",...h==="vertical"&&{top:0,bottom:"var(--corner-height)",insetInlineEnd:0},...h==="horizontal"&&{insetInlineStart:0,insetInlineEnd:"var(--corner-width)",bottom:0}}})},getThumbProps(u={}){const{orientation:h="vertical"}=u;return t.element({...Tr.thumb.attrs,"data-ownedby":lt(s),"data-orientation":h,"data-hover":z(l),"data-dragging":z(a),onPointerDown(p){if(p.button!==0)return;const y=Ft(p);n({type:"thumb.pointerdown",orientation:h,point:y})},style:{...h==="vertical"&&{height:"var(--thumb-height)"},...h==="horizontal"&&{width:"var(--thumb-width)"}}})},getCornerProps(){return t.element({...Tr.corner.attrs,"data-ownedby":lt(s),"data-hover":z(l),"data-state":g.cornerHidden?"hidden":"visible","data-overflow-x":z(!g.scrollbarXHidden),"data-overflow-y":z(!g.scrollbarYHidden),style:{position:"absolute",bottom:0,insetInlineEnd:0,width:"var(--corner-width)",height:"var(--corner-height)"}})}}}function et(e,t,r){if(!e)return 0;const n=zt(e),o=r==="x"?"Inline":"Block";return r==="x"&&t==="margin"?parseFloat(n[`${t}InlineStart`])*2:parseFloat(n[`${t}${o}Start`])+parseFloat(n[`${t}${o}End`])}function rd(e,t){const r=e.scrollTop,n=e.scrollLeft,o=t==="rtl",i=1,s=e.scrollHeight-e.clientHeight>i,a=e.scrollWidth-e.clientWidth>i,l=e.scrollWidth-e.clientWidth,c=e.scrollHeight-e.clientHeight;let d=!1,g=!1,f=!1,u=!1;return a&&(o&&n<=0?(d=Math.abs(n)>=l-i,g=Math.abs(n)<=i):(d=n<=i,g=n>=l-i)),s&&(f=r<=i,u=r>=c-i),{top:f,right:g,bottom:u,left:d}}var Pn=0,As=class{constructor(){Os(this,"currentId",Pn),Os(this,"clear",()=>{this.currentId!==Pn&&(clearTimeout(this.currentId),this.currentId=Pn)}),Os(this,"disposeEffect",()=>this.clear)}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Pn,t()},e)}isStarted(){return this.currentId!==Pn}},nd=20,Do=1e3,Sk={props({props:e}){return wu(e,["id"]),e},context({bindable:e}){return{scrollingX:e(()=>({defaultValue:!1})),scrollingY:e(()=>({defaultValue:!1})),hovering:e(()=>({defaultValue:!1})),dragging:e(()=>({defaultValue:!1})),touchModality:e(()=>({defaultValue:!1})),atSides:e(()=>({defaultValue:{top:!0,right:!1,bottom:!1,left:!0}})),cornerSize:e(()=>({defaultValue:{width:0,height:0}})),thumbSize:e(()=>({defaultValue:{width:0,height:0}})),hiddenState:e(()=>({defaultValue:{scrollbarYHidden:!1,scrollbarXHidden:!1,cornerHidden:!1},hash(t){return`Y:${t.scrollbarYHidden} X:${t.scrollbarXHidden} C:${t.cornerHidden}`}}))}},refs(){return{orientation:"vertical",scrollPosition:{x:0,y:0},scrollYTimeout:new As,scrollXTimeout:new As,scrollEndTimeout:new As,startX:0,startY:0,startScrollTop:0,startScrollLeft:0,programmaticScroll:!0}},initialState(){return"idle"},watch({track:e,prop:t,context:r,send:n}){e([()=>t("dir"),()=>r.hash("hiddenState")],()=>{n({type:"thumb.measure"})})},effects:["trackContentResize","trackViewportVisibility","trackWheelEvent"],entry:["checkHovering"],exit:["clearTimeouts"],on:{"thumb.measure":{actions:["setThumbSize"]},"viewport.scroll":{actions:["setThumbSize","setScrolling","setProgrammaticScroll"]},"root.pointerenter":{actions:["setTouchModality","setHovering"]},"root.pointerdown":{actions:["setTouchModality"]},"root.pointerleave":{actions:["clearHovering"]}},states:{idle:{on:{"scrollbar.pointerdown":{target:"dragging",actions:["scrollToPointer","startDragging"]},"thumb.pointerdown":{target:"dragging",actions:["startDragging"]}}},dragging:{effects:["trackPointerMove"],on:{"thumb.pointermove":{actions:["setDraggingScroll"]},"scrollbar.pointerup":{target:"idle",actions:["stopDragging"]},"thumb.pointerup":{target:"idle",actions:["clearScrolling","stopDragging"]}}}},implementations:{actions:{setTouchModality({context:e,event:t}){e.set("touchModality",t.pointerType==="touch")},setHovering({context:e}){e.set("hovering",!0)},clearHovering({context:e}){e.set("hovering",!1)},setProgrammaticScroll({refs:e}){e.get("scrollEndTimeout").start(100,()=>{e.set("programmaticScroll",!0)})},clearScrolling({context:e,event:t}){e.set(t.orientation==="vertical"?"scrollingY":"scrollingX",!1)},setThumbSize({context:e,scope:t,prop:r}){const n=pt(t);if(!n)return;const o=n.scrollHeight,i=n.scrollWidth;if(o===0||i===0)return;const s=Wn(t),a=Mn(t),l=Ns(t),c=Rs(t),d=n.clientHeight,g=n.clientWidth,f=n.scrollTop,u=n.scrollLeft,h=d>=o,p=g>=i,y=g/i,C=d/o,S=p?0:g,w=h?0:d,b=et(a,"padding","x"),x=et(s,"padding","y"),k=et(c,"margin","x"),R=et(l,"margin","y"),T=S-b-k,A=w-x-R,I=a?Math.min(a.offsetWidth,T):T,N=s?Math.min(s.offsetHeight,A):A,E=Math.max(nd,I*y),O=Math.max(nd,N*C);if(e.set("thumbSize",F=>F.height===O&&F.width===E?F:{width:E,height:O}),s&&l){const F=s.offsetHeight-O-x-R,j=f/(o-d),q=Math.min(F,Math.max(0,j*F));l.style.transform=`translate3d(0,${q}px,0)`}if(a&&c){const F=a.offsetWidth-E-b-k,j=u/(i-g),q=r("dir")==="rtl"?Ne(j*F,-F,0):Ne(j*F,0,F);c.style.transform=`translate3d(${q}px,0,0)`}if(hk(t)){if(p||h)e.set("cornerSize",{width:0,height:0});else if(!p&&!h){const F=s?.offsetWidth||0,j=a?.offsetHeight||0;e.set("cornerSize",{width:F,height:j})}}e.set("hiddenState",F=>{const j=h||p;return F.scrollbarYHidden===h&&F.scrollbarXHidden===p&&F.cornerHidden===j?F:{scrollbarYHidden:h,scrollbarXHidden:p,cornerHidden:j}}),e.set("atSides",F=>{const j=rd(n,r("dir"));return Te(F,j)?F:j})},checkHovering({scope:e,context:t}){pt(e)?.matches(":hover")&&t.set("hovering",!0)},setScrolling({event:e,refs:t,context:r,prop:n}){const o={x:e.target.scrollLeft,y:e.target.scrollTop},i=t.get("scrollPosition"),s=o.x-i.x,a=o.y-i.y;t.set("scrollPosition",o),r.set("atSides",l=>{const c=rd(e.target,n("dir"));return Te(l,c)?l:c}),a!==0&&(r.set("scrollingY",!0),t.get("scrollYTimeout").start(Do,()=>{r.set("scrollingY",!1)})),s!==0&&(r.set("scrollingX",!0),t.get("scrollXTimeout").start(Do,()=>{r.set("scrollingX",!1)}))},scrollToPointer({event:e,scope:t,prop:r}){const n=pt(t);if(!n)return;const o=Ns(t),i=Wn(t),s=Rs(t),a=Mn(t),l=e.point;if(o&&i&&e.orientation==="vertical"){const c=et(o,"margin","y"),d=et(i,"padding","y"),g=o.offsetHeight,f=i.getBoundingClientRect(),u=l.y-f.top-g/2-d+c/2,h=n.scrollHeight,p=n.clientHeight,y=i.offsetHeight-g-d-c,S=u/y*(h-p);n.scrollTop=S}if(s&&a&&e.orientation==="horizontal"){const c=et(s,"margin","x"),d=et(a,"padding","x"),g=s.offsetWidth,f=a.getBoundingClientRect(),u=l.x-f.left-g/2-d+c/2,h=n.scrollWidth,p=n.clientWidth,y=a.offsetWidth-g-d-c,C=u/y;let S;r("dir")==="rtl"?(S=(1-C)*(h-p),n.scrollLeft<=0&&(S=-S)):S=C*(h-p),n.scrollLeft=S}},startDragging({event:e,refs:t,scope:r}){t.set("startX",e.point.x),t.set("startY",e.point.y),t.set("orientation",e.orientation);const n=pt(r);n&&(t.set("startScrollTop",n.scrollTop),t.set("startScrollLeft",n.scrollLeft))},setDraggingScroll({event:e,refs:t,scope:r,context:n}){const o=t.get("startY"),i=t.get("startX"),s=t.get("startScrollTop"),a=t.get("startScrollLeft"),l=e.point,c=l.y-o,d=l.x-i,g=pt(r);if(!g)return;const f=g.scrollHeight,u=g.clientHeight,h=g.scrollWidth,p=g.clientWidth,y=t.get("orientation"),C=Ns(r),S=Wn(r);if(C&&S&&y==="vertical"){const x=et(S,"padding","y"),k=et(C,"margin","y"),R=C.offsetHeight,T=S.offsetHeight-R-x-k,A=c/T;g.scrollTop=s+A*(f-u),n.set("scrollingY",!0),t.get("scrollYTimeout").start(Do,()=>{n.set("scrollingY",!1)})}const w=Rs(r),b=Mn(r);if(w&&b&&y==="horizontal"){const x=et(b,"padding","x"),k=et(w,"margin","x"),R=w.offsetWidth,T=b.offsetWidth-R-x-k,A=d/T;g.scrollLeft=a+A*(h-p),n.set("scrollingX",!0),t.get("scrollXTimeout").start(Do,()=>{n.set("scrollingX",!1)})}},stopDragging({refs:e}){e.set("orientation",null)},clearTimeouts({refs:e}){e.get("scrollYTimeout").clear(),e.get("scrollXTimeout").clear(),e.get("scrollEndTimeout").clear()}},effects:{trackContentResize({scope:e,send:t}){const r=fk(e),n=Xi(e);if(!r||!n)return;const o=e.getWin(),i=new o.ResizeObserver(()=>{setTimeout(()=>{t({type:"thumb.measure"})},1)});return i.observe(r),i.observe(n),()=>{i.disconnect()}},trackViewportVisibility({scope:e,send:t}){const r=e.getWin(),n=pt(e);if(!n)return;const o=new r.IntersectionObserver(i=>{i.forEach(s=>{s.intersectionRatio>0&&(t({type:"thumb.measure"}),o.disconnect())})});return o.observe(n),()=>{o.disconnect()}},trackWheelEvent({scope:e}){const t=Wn(e),r=Mn(e);if(!t&&!r)return;const n=o=>{const i=pt(e);if(!i||o.ctrlKey)return;const s=o.currentTarget.dataset.orientation;if(s==="vertical"){const a=i.scrollHeight>i.clientHeight,l=i.scrollTop===0&&o.deltaY<0,c=i.scrollTop===i.scrollHeight-i.clientHeight&&o.deltaY>0;if(!(a&&o.deltaY!==0&&!(l||c)))return;o.preventDefault(),i.scrollTop+=o.deltaY}else if(s==="horizontal"){const a=i.scrollWidth>i.clientWidth,l=i.scrollLeft===0&&o.deltaX<0,c=i.scrollLeft===i.scrollWidth-i.clientWidth&&o.deltaX>0;if(!(a&&o.deltaX!==0&&!(l||c)))return;o.preventDefault(),i.scrollLeft+=o.deltaX}};return Yr(t&&K(t,"wheel",n,{passive:!1}),r&&K(r,"wheel",n,{passive:!1}))},trackPointerMove({scope:e,send:t,refs:r}){const n=e.getDoc(),o=r.get("orientation");return Uu(n,{onPointerMove({point:i}){t({type:"thumb.pointermove",orientation:o,point:i})},onPointerUp(){t({type:"thumb.pointerup",orientation:o})}})}}}};M()(["dir","getRootNode","ids","id"]);const wk=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(Sk,o);return Ck(i,qe)},Ek=se(),Hh=m.forwardRef((e,t)=>{const[r,n]=Ek(e,["id","ids"]),o=wk(r),i=V(o.getRootProps(),n);return v.jsx(Fh,{value:o,children:v.jsx(_.div,{...i,ref:t})})});Hh.displayName="ScrollAreaRoot";const kk=se(),jh=m.forwardRef((e,t)=>{const[{value:r},n]=kk(e,["value"]),o=V(r.getRootProps(),n);return v.jsx(Fh,{value:r,children:v.jsx(_.div,{...o,ref:t})})});jh.displayName="ScrollAreaRootProvider";const[Ik,Pk]=ne({name:"ScrollAreaScrollbarContext",hookName:"useScrollAreaScrollbarContext",providerName:"<ScrollAreaScrollbarProvider />"}),Tk=se(),Gh=m.forwardRef((e,t)=>{const[r,n]=Tk(e,["orientation"]),o=uo(),i=V(o.getScrollbarProps(r),n);return v.jsx(Ik,{value:r,children:v.jsx(_.div,{...i,ref:t})})});Gh.displayName="ScrollAreaScrollbar";const Uh=m.forwardRef((e,t)=>{const r=uo(),n=Pk(),o=V(r.getThumbProps(n),e);return v.jsx(_.div,{...o,ref:t})});Uh.displayName="ScrollAreaThumb";const Yh=m.forwardRef((e,t)=>{const r=uo(),n=V(r.getViewportProps(),e);return v.jsx(_.div,{...n,ref:t})});Yh.displayName="ScrollAreaViewport";const Xh=hl.rename("segment-group");Xh.build();var Kh=B("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Kh.build();var qh=e=>new an(e);qh.empty=()=>new an({items:[]});var Ok=e=>e.ids?.content??`select:${e.id}:content`,Rk=e=>e.ids?.trigger??`select:${e.id}:trigger`,Nk=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,Ak=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Vk=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,_k=e=>e.ids?.positioner??`select:${e.id}:positioner`,Vs=e=>e.getById(Vk(e)),Tn=e=>e.getById(Ok(e)),zo=e=>e.getById(Rk(e)),Lk=e=>e.getById(Nk(e)),od=e=>e.getById(_k(e)),_s=(e,t)=>t==null?null:e.getById(Ak(e,t)),{and:On,not:nr,or:Fk}=ot();Fk("isTriggerArrowDownEvent","isTriggerEnterEvent"),On(nr("multiple"),"hasSelectedItems"),nr("multiple"),On(nr("multiple"),"hasSelectedItems"),nr("multiple"),nr("multiple"),nr("multiple"),nr("multiple"),On("closeOnSelect","isOpenControlled"),On("hasHighlightedItem","loop","isLastItemHighlighted"),On("hasHighlightedItem","loop","isFirstItemHighlighted");function id(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}M()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);M()(["item","persistFocus"]);M()(["id"]);M()(["htmlFor"]);var Zh=B("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Zh.build();M()(["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"]);M()(["index","name"]);M()(["value"]);const[Jh,ln]=ne({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),Qh=m.forwardRef((e,t)=>{const r=ln(),n=V(r.getControlProps(),e);return v.jsx(_.span,{...n,ref:t})});Qh.displayName="SwitchControl";const ep=m.forwardRef((e,t)=>{const r=ln(),n=V(r.getHiddenInputProps(),e),o=at();return v.jsx(_.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});ep.displayName="SwitchHiddenInput";const tp=m.forwardRef((e,t)=>{const r=ln(),n=V(r.getLabelProps(),e);return v.jsx(_.span,{...n,ref:t})});tp.displayName="SwitchLabel";var rp=B("switch").parts("root","label","control","thumb"),$o=rp.build(),np=e=>e.ids?.root??`switch:${e.id}`,sd=e=>e.ids?.label??`switch:${e.id}:label`,Dk=e=>e.ids?.thumb??`switch:${e.id}:thumb`,zk=e=>e.ids?.control??`switch:${e.id}:control`,la=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,$k=e=>e.getById(np(e)),Dr=e=>e.getById(la(e));function Mk(e,t){const{context:r,send:n,prop:o,scope:i}=e,s=!!o("disabled"),a=!!o("readOnly"),l=!!o("required"),c=!!r.get("checked"),d=!s&&r.get("focused"),g=!s&&r.get("focusVisible"),f=!s&&r.get("active"),u={"data-active":z(f),"data-focus":z(d),"data-focus-visible":z(g),"data-readonly":z(a),"data-hover":z(r.get("hovered")),"data-disabled":z(s),"data-state":c?"checked":"unchecked","data-invalid":z(o("invalid")),"data-required":z(l)};return{checked:c,disabled:s,focused:d,setChecked(h){n({type:"CHECKED.SET",checked:h,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:c,isTrusted:!1})},getRootProps(){return t.label({...$o.root.attrs,...u,dir:o("dir"),id:np(i),htmlFor:la(i),onPointerMove(){s||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){s||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(h){if(s)return;le(h)===Dr(i)&&h.stopPropagation(),Jr()&&Dr(i)?.focus()}})},getLabelProps(){return t.element({...$o.label.attrs,...u,dir:o("dir"),id:sd(i)})},getThumbProps(){return t.element({...$o.thumb.attrs,...u,dir:o("dir"),id:Dk(i),"aria-hidden":!0})},getControlProps(){return t.element({...$o.control.attrs,...u,dir:o("dir"),id:zk(i),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:la(i),type:"checkbox",required:o("required"),defaultChecked:c,disabled:s,"aria-labelledby":sd(i),"aria-invalid":o("invalid"),name:o("name"),form:o("form"),value:o("value"),style:Ku,onFocus(){const h=eo();n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:h}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(h){if(a){h.preventDefault();return}const p=h.currentTarget.checked;n({type:"CHECKED.SET",checked:p,isTrusted:!0})}})}}}var{not:ad}=ot(),Wk={props({props:e}){return{defaultChecked:!1,label:"switch",value:"on",...e}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:n}){e([()=>t("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:ad("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:ad("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){if(!e("isDisabled"))return Yu({pointerNode:$k(t),keyboardNode:Dr(t),isValidKey:n=>n.key===" ",onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return Gi({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:r}){return Qr(Dr(r),{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){const n=e.initial("checked");t({type:"CHECKED.SET",checked:!!n,src:"form-reset"})}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){const r=Dr(t);r&&Va(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){const r=Dr(t);Fu(r,{checked:e.get("checked")})}}}};M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const Bk=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o=at(),i={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:n,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:r,...e},s=We(Wk,i);return Mk(s,qe)},Hk=se(),op=m.forwardRef((e,t)=>{const[r,n]=Hk(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=Bk(r),i=V(o.getRootProps(),n);return v.jsx(Jh,{value:o,children:v.jsx(_.label,{...i,ref:t})})});op.displayName="SwitchRoot";const jk=se(),ip=m.forwardRef((e,t)=>{const[{value:r},n]=jk(e,["value"]),o=V(r.getRootProps(),n);return v.jsx(Jh,{value:r,children:v.jsx(_.label,{...o,ref:t})})});ip.displayName="SwitchRootProvider";const sp=m.forwardRef((e,t)=>{const r=ln(),n=V(r.getThumbProps(),e);return v.jsx(_.span,{...n,ref:t})});sp.displayName="SwitchThumb";const[ap,Ki]=ne({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),Gk=se(),lp=m.forwardRef((e,t)=>{const[r,n]=Gk(e,["value"]),o=Ki(),i=Ja(),s=st({...i,present:o.value===e.value,immediate:!0}),a=V(o.getContentProps(r),s.getPresenceProps(),n);return v.jsx(gt,{value:s,children:s.unmounted?null:v.jsx(_.div,{...a,ref:Et(s.ref,t)})})});lp.displayName="TabContent";const cp=m.forwardRef((e,t)=>{const r=Ki(),n=V(r.getIndicatorProps(),e);return v.jsx(_.div,{...n,ref:t})});cp.displayName="TabIndicator";const dp=m.forwardRef((e,t)=>{const r=Ki(),n=V(r.getListProps(),e);return v.jsx(_.div,{...n,ref:t})});dp.displayName="TabList";const Uk=se(),up=m.forwardRef((e,t)=>{const[r,n]=Uk(e,["disabled","value"]),o=Ki(),i=V(o.getTriggerProps(r),n);return v.jsx(_.button,{...i,ref:t})});up.displayName="TabTrigger";var Yk=B("tabs").parts("root","list","trigger","content","indicator"),Rn=Yk.build(),Xk=e=>e.ids?.root??`tabs:${e.id}`,Hn=e=>e.ids?.list??`tabs:${e.id}:list`,ca=(e,t)=>e.ids?.content?.(t)??`tabs:${e.id}:content-${t}`,ur=(e,t)=>e.ids?.trigger?.(t)??`tabs:${e.id}:trigger-${t}`,gp=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,Kk=e=>e.getById(Hn(e)),qk=(e,t)=>e.getById(ca(e,t)),ni=(e,t)=>t!=null?e.getById(ur(e,t)):null,ld=e=>e.getById(gp(e)),cn=e=>{const r=`[role=tab][data-ownedby='${CSS.escape(Hn(e))}']:not([disabled])`;return pr(Kk(e),r)},Zk=e=>Br(cn(e)),Jk=e=>Pi(cn(e)),Qk=(e,t)=>za(cn(e),ur(e,t.value),t.loopFocus),eI=(e,t)=>$a(cn(e),ur(e,t.value),t.loopFocus),fp=e=>({x:e?.offsetLeft??0,y:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),tI=(e,t)=>{const r=Xu(cn(e),ur(e,t));return fp(r)};function rI(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=i("translations"),l=r.matches("focused"),c=i("orientation")==="vertical",d=i("orientation")==="horizontal",g=i("composite");function f(u){return{selected:o.get("value")===u.value,focused:o.get("focusedValue")===u.value,disabled:!!u.disabled}}return{value:o.get("value"),focusedValue:o.get("focusedValue"),setValue(u){n({type:"SET_VALUE",value:u})},clearValue(){n({type:"CLEAR_VALUE"})},setIndicatorRect(u){const h=ur(s,u);n({type:"SET_INDICATOR_RECT",id:h})},syncTabIndex(){n({type:"SYNC_TAB_INDEX"})},selectNext(u){n({type:"TAB_FOCUS",value:u,src:"selectNext"}),n({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(u){n({type:"TAB_FOCUS",value:u,src:"selectPrev"}),n({type:"ARROW_PREV",src:"selectPrev"})},focus(){const u=o.get("value");u&&ni(s,u)?.focus()},getRootProps(){return t.element({...Rn.root.attrs,id:Xk(s),"data-orientation":i("orientation"),"data-focus":z(l),dir:i("dir")})},getListProps(){return t.element({...Rn.list.attrs,id:Hn(s),role:"tablist",dir:i("dir"),"data-focus":z(l),"aria-orientation":i("orientation"),"data-orientation":i("orientation"),"aria-label":a?.listLabel,onKeyDown(u){if(u.defaultPrevented||Nu(u)||!_e(u.currentTarget,le(u)))return;const h={ArrowDown(){d||n({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){d||n({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){c||n({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){c||n({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){n({type:"HOME"})},End(){n({type:"END"})}};let p=ai(u,{dir:i("dir"),orientation:i("orientation")});const y=h[p];if(y){u.preventDefault(),y(u);return}}})},getTriggerState:f,getTriggerProps(u){const{value:h,disabled:p}=u,y=f(u);return t.button({...Rn.trigger.attrs,role:"tab",type:"button",disabled:p,dir:i("dir"),"data-orientation":i("orientation"),"data-disabled":z(p),"aria-disabled":p,"data-value":h,"aria-selected":y.selected,"data-selected":z(y.selected),"data-focus":z(y.focused),"aria-controls":y.selected?ca(s,h):void 0,"data-ownedby":Hn(s),"data-ssr":z(o.get("ssr")),id:ur(s,h),tabIndex:y.selected&&g?0:-1,onFocus(){n({type:"TAB_FOCUS",value:h})},onBlur(C){C.relatedTarget?.getAttribute("role")!=="tab"&&n({type:"TAB_BLUR"})},onClick(C){C.defaultPrevented||js(C)||p||(Jr()&&C.currentTarget.focus(),n({type:"TAB_CLICK",value:h}))}})},getContentProps(u){const{value:h}=u,p=o.get("value")===h;return t.element({...Rn.content.attrs,dir:i("dir"),id:ca(s,h),tabIndex:g?0:-1,"aria-labelledby":ur(s,h),role:"tabpanel","data-ownedby":Hn(s),"data-selected":z(p),"data-orientation":i("orientation"),hidden:!p})},getIndicatorProps(){const u=o.get("indicatorRect"),h=u==null||u.width===0&&u.height===0&&u.x===0&&u.y===0;return t.element({id:gp(s),...Rn.indicator.attrs,dir:i("dir"),"data-orientation":i("orientation"),hidden:h,style:{"--transition-property":"left, right, top, bottom, width, height","--left":Re(u?.x),"--top":Re(u?.y),"--width":Re(u?.width),"--height":Re(u?.height),position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:"var(--transition-duration, 150ms)",transitionTimingFunction:"var(--transition-timing-function)",[d?"left":"top"]:d?"var(--left)":"var(--top)"}})}}}var{createMachine:nI}=so(),oI=nI({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){La(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(r){e("onFocusChange")?.({focusedValue:r})}})),ssr:t(()=>({defaultValue:!0})),indicatorRect:t(()=>({defaultValue:null}))}},watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value")],()=>{n(["syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),r([()=>t("dir"),()=>t("orientation")],()=>{n(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:t}){$(()=>{const r=e.get("focusedValue");if(!r)return;const o=t("deselectable")&&e.get("value")===r?null:r;e.set("value",o)})},setFocusedValue({context:e,event:t,flush:r}){t.value!=null&&r(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:r}){const n=r("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",n?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){$(()=>{Zk(e)?.focus()})},focusLastTab({scope:e}){$(()=>{Jk(e)?.focus()})},focusNextTab({context:e,prop:t,scope:r,event:n}){const o=n.value??e.get("focusedValue");if(!o)return;const i=Qk(r,{value:o,loopFocus:t("loopFocus")});$(()=>{t("composite")?i?.focus():i?.dataset.value!=null&&e.set("focusedValue",i.dataset.value)})},focusPrevTab({context:e,prop:t,scope:r,event:n}){const o=n.value??e.get("focusedValue");if(!o)return;const i=eI(r,{value:o,loopFocus:t("loopFocus")});$(()=>{t("composite")?i?.focus():i?.dataset.value!=null&&e.set("focusedValue",i.dataset.value)})},syncTabIndex({context:e,scope:t}){$(()=>{const r=e.get("value");if(!r)return;const n=qk(t,r);if(!n)return;_a(n).length>0?n.removeAttribute("tabindex"):n.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},setIndicatorRect({context:e,event:t,scope:r}){const n=t.id??e.get("value");!ld(r)||!n||!ni(r,n)||e.set("indicatorRect",tI(r,n))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:r}){const n=t.get("indicatorCleanup");if(n&&n(),!ld(r))return;const i=()=>{const l=ni(r,e.get("value"));if(!l)return;const c=fp(l);e.set("indicatorRect",d=>Te(d,c)?d:c)};i();const s=cn(r),a=Yr(...s.map(l=>Uy.observe(l,i)));t.set("indicatorCleanup",a)},navigateIfNeeded({context:e,prop:t,scope:r}){const n=e.get("value");if(!n)return;const o=ni(r,n);Iu(o)&&t("navigate")?.({value:n,node:o,href:o.href})}}}});M()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);M()(["disabled","value"]);M()(["value"]);const iI=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(oI,o);return rI(i,qe)},sI=se(),hp=m.forwardRef((e,t)=>{const[r,n]=sn(e),[o,i]=sI(n,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),s=iI(o),a=V(s.getRootProps(),i);return v.jsx(ap,{value:s,children:v.jsx(on,{value:r,children:v.jsx(_.div,{...a,ref:t})})})});hp.displayName="TabsRoot";const aI=se(),pp=m.forwardRef((e,t)=>{const[r,n]=sn(e),[{value:o},i]=aI(n,["value"]),s=V(o.getRootProps(),i);return v.jsx(ap,{value:o,children:v.jsx(on,{value:r,children:v.jsx(_.div,{...s,ref:t})})})});pp.displayName="TabsRootProvider";var mp=B("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");mp.build();var lI=e=>e.ids?.root??`tags-input:${e.id}`,cI=e=>e.ids?.input??`tags-input:${e.id}:input`,dI=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,da=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,uI=(e,t)=>e.ids?.itemInput?.(t)??`${da(e,t)}:input`,gI=e=>`${e}:input`,cd=(e,t)=>e.getById(gI(t)),fI=e=>pr(vp(e),"[data-part=item]"),hI=(e,t)=>e.getById(uI(e,t)),vp=e=>e.getById(lI(e)),Nn=e=>e.getById(cI(e)),bp=e=>e.getById(dI(e)),br=e=>pr(vp(e),"[data-part=item-preview]:not([data-disabled])"),pI=e=>br(e)[0],mI=e=>br(e)[br(e).length-1],vI=(e,t)=>$a(br(e),t,!1),bI=(e,t)=>za(br(e),t,!1),yI=(e,t)=>br(e)[t],An=(e,t)=>Li(br(e),t),xI=(e,t)=>{const r=bp(e);r&&Lu(r,{value:t})},{and:Vn,not:or,or:CI}=ot();Vn(CI(or("isAtMax"),"allowOverflow"),or("isInputValueEmpty")),or("hasHighlightedTag"),Vn("hasTags","isCaretAtStart"),Vn("hasTags","isCaretAtStart"),Vn("hasTags","isCaretAtStart",or("isLastTagHighlighted")),or("isCaretAtStart"),Vn("isTagEditable","hasHighlightedTag"),or("isCaretAtStart"),or("isCaretAtStart");M()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]);M()(["index","disabled","value"]);var SI=B("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),Ar=SI.build(),wI=e=>`toast-group:${e}`,dd=(e,t)=>e.getById(`toast-group:${t}`),yp=e=>`toast:${e.id}`,ud=e=>e.getById(yp(e)),gd=e=>`toast:${e.id}:title`,fd=e=>`toast:${e.id}:description`,EI=e=>`toast${e.id}:close`,hd={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function Ls(e,t){return e??hd[t]??hd.DEFAULT}var kI=e=>typeof e=="string"?{left:e,right:e,bottom:e,top:e}:e;function II(e,t){const{prop:r,computed:n,context:o}=e,{offsets:i,gap:s}=r("store").attrs,a=o.get("heights"),l=kI(i),c=r("dir")==="rtl",d=t.replace("-start",c?"-right":"-left").replace("-end",c?"-left":"-right"),g=d.includes("right"),f=d.includes("left"),u={position:"fixed",pointerEvents:n("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${s}px`,"--first-height":`${a[0]?.height||0}px`,"--viewport-offset-left":l.left,"--viewport-offset-right":l.right,"--viewport-offset-top":l.top,"--viewport-offset-bottom":l.bottom,zIndex:Eu};let h="center";if(g&&(h="flex-end"),f&&(h="flex-start"),u.alignItems=h,d.includes("top")){const p=l.top;u.top=`max(env(safe-area-inset-top, 0px), ${p})`}if(d.includes("bottom")){const p=l.bottom;u.bottom=`max(env(safe-area-inset-bottom, 0px), ${p})`}if(!d.includes("left")){const p=l.right;u.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${p})`}if(!d.includes("right")){const p=l.left;u.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${p})`}return u}function PI(e,t){const{prop:r,context:n,computed:o}=e,i=r("parent"),s=i.computed("placement"),{gap:a}=i.prop("store").attrs,[l]=s.split("-"),c=n.get("mounted"),d=n.get("remainingTime"),g=o("height"),f=o("frontmost"),u=!f,h=!r("stacked"),p=r("stacked"),C=r("type")==="loading"?Number.MAX_SAFE_INTEGER:d,S=o("heightIndex")*a+o("heightBefore"),w={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${r("removeDelay")}ms`,"--duration":`${C}ms`,"--initial-height":`${g}px`,"--offset":`${S}px`,"--index":r("index"),"--z-index":o("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},b=x=>Object.assign(w,x);return l==="top"?b({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):l==="bottom"&&b({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),c&&(b({"--y":"0","--opacity":"1"}),p&&b({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||b({"--opacity":"0",pointerEvents:"none"}),u&&h&&(b({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||b({"--y":"calc(var(--sign) * 40%)"})),u&&p&&!t&&b({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),f&&!t&&b({"--y":"calc(var(--lift) * -100%)"}),w}function TI(e,t){const{computed:r}=e,n={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"},o=i=>Object.assign(n,i);return r("frontmost")&&!t&&o({height:"calc(var(--initial-height) + 80%)"}),n}function OI(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function RI(e,t){const{context:r,prop:n,send:o,refs:i,computed:s}=e;return{getCount(){return r.get("toasts").length},getToasts(){return r.get("toasts")},getGroupProps(a={}){const{label:l="Notifications"}=a,{hotkey:c}=n("store").attrs,d=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=s("placement"),[f,u="center"]=g.split("-");return t.element({...Ar.group.attrs,dir:n("dir"),tabIndex:-1,"aria-label":`${g} ${l} ${d}`,id:wI(g),"data-placement":g,"data-side":f,"data-align":u,"aria-live":"polite",role:"region",style:II(e,g),onMouseEnter(){i.get("ignoreMouseTimer").isActive()||o({type:"REGION.POINTER_ENTER",placement:g})},onMouseMove(){i.get("ignoreMouseTimer").isActive()||o({type:"REGION.POINTER_ENTER",placement:g})},onMouseLeave(){i.get("ignoreMouseTimer").isActive()||o({type:"REGION.POINTER_LEAVE",placement:g})},onFocus(h){o({type:"REGION.FOCUS",target:h.relatedTarget})},onBlur(h){i.get("isFocusWithin")&&!_e(h.currentTarget,h.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe(a){return n("store").subscribe(()=>a(r.get("toasts")))}}}var{guards:NI,createMachine:AI}=so(),{and:VI}=NI,_I=AI({props({props:e}){return{dir:"ltr",id:vu(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:Wu.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(r=>r.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:VI("isOverlapping","isPointerOut"),target:"overlap",actions:["collapseToasts","resumeToasts","restoreFocusIfPointerOut"]},{guard:"isPointerOut",target:"stack",actions:["resumeToasts","restoreFocusIfPointerOut"]},{actions:["clearFocusWithin"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight","ignoreMouseEventsTemporarily"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["clearPointerWithin","resumeToasts","collapseToasts"]},{actions:["clearPointerWithin","resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["setPointerWithin","pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["setPointerWithin","pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap"),isPointerOut:({refs:e})=>!e.get("isPointerWithin")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(r=>{if(r.dismiss){e.set("toasts",n=>n.filter(o=>o.id!==r.id));return}e.set("toasts",n=>{const o=n.findIndex(i=>i.id===r.id);return o!==-1?[...n.slice(0,o),{...n[o],...r},...n.slice(o+1)]:[r,...n]})})},trackHotKeyPress({prop:e,send:t}){return K(document,"keydown",n=>{const{hotkey:o}=e("store").attrs;o.every(s=>n[s]||n.code===s)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const o=r.getDoc();return K(o,"visibilitychange",()=>{const i=o.visibilityState==="hidden";t({type:i?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){const o=t.get("toasts"),i=r("placement"),s=o.length>0;if(!s){e.get("dismissableCleanup")?.();return}if(s&&e.get("dismissableCleanup"))return;const l=bC(()=>dd(n,i),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{dd(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",r=>r.filter(n=>n.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreFocusIfPointerOut({refs:e}){!e.get("lastFocusedEl")||e.get("isPointerWithin")||(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},setPointerWithin({refs:e}){e.set("isPointerWithin",!0)},clearPointerWithin({refs:e}){e.set("isPointerWithin",!1),e.get("lastFocusedEl")&&!e.get("isFocusWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null))},clearFocusWithin({refs:e}){e.set("isFocusWithin",!1)},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},ignoreMouseEventsTemporarily({refs:e}){e.get("ignoreMouseTimer").request()},clearMouseEventTimer({refs:e}){e.get("ignoreMouseTimer").cancel()}}}});function LI(e,t){const{state:r,send:n,prop:o,scope:i,context:s,computed:a}=e,l=r.hasTag("visible"),c=r.hasTag("paused"),d=s.get("mounted"),g=a("frontmost"),f=o("parent").computed("placement"),u=o("type"),h=o("stacked"),p=o("title"),y=o("description"),C=o("action"),[S,w="center"]=f.split("-");return{type:u,title:p,description:y,placement:f,visible:l,paused:c,closable:!!o("closable"),pause(){n({type:"PAUSE"})},resume(){n({type:"RESUME"})},dismiss(){n({type:"DISMISS",src:"programmatic"})},getRootProps(){return t.element({...Ar.root.attrs,dir:o("dir"),id:yp(i),"data-state":l?"open":"closed","data-type":u,"data-placement":f,"data-align":w,"data-side":S,"data-mounted":z(d),"data-paused":z(c),"data-first":z(g),"data-sibling":z(!g),"data-stack":z(h),"data-overlap":z(!h),role:"status","aria-atomic":"true","aria-describedby":y?fd(i):void 0,"aria-labelledby":p?gd(i):void 0,tabIndex:0,style:PI(e,l),onKeyDown(b){b.defaultPrevented||b.key=="Escape"&&(n({type:"DISMISS",src:"keyboard"}),b.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:TI(e,l)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:OI()})},getTitleProps(){return t.element({...Ar.title.attrs,id:gd(i)})},getDescriptionProps(){return t.element({...Ar.description.attrs,id:fd(i)})},getActionTriggerProps(){return t.button({...Ar.actionTrigger.attrs,type:"button",onClick(b){b.defaultPrevented||(C?.onClick?.(),n({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return t.button({id:EI(i),...Ar.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(b){b.defaultPrevented||n({type:"DISMISS",src:"user"})}})}}}var{not:FI}=ot(),DI={props({props:e}){return wu(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:Ls(e.duration,e.type)}},initialState({prop:e}){return e("type")==="loading"||e("duration")===1/0?"visible:persist":"visible"},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:Ls(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),r=t.findIndex(n=>n.id===e("id"));return t.length-r},height:({prop:e})=>e("parent").context.get("heights").find(n=>n.id===e("id"))?.height??0,heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(r=>r.id===e("id")),frontmost:({prop:e})=>e("index")===0,heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),r=t.findIndex(n=>n.id===e("id"));return t.reduce((n,o,i)=>i>=r?n:n+o.height,0)},shouldPersist:({prop:e})=>e("type")==="loading"||e("duration")===1/0},watch({track:e,prop:t,send:r}){e([()=>t("message")],()=>{const n=t("message");n&&r({type:n,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{r({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:FI("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return fs(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay"))},waitForDuration({send:e,context:t,computed:r}){if(!r("shouldPersist"))return fs(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick({send:e}){return fs(()=>{e({type:"SHOW",src:"timer"})},0)},trackHeight({scope:e,prop:t}){let r;return $(()=>{const n=ud(e);if(!n)return;const o=()=>{const a=n.style.height;n.style.height="auto";const l=n.getBoundingClientRect().height;n.style.height=a;const c={id:t("id"),height:l};pd(t("parent"),c)},i=e.getWin(),s=new i.MutationObserver(o);s.observe(n,{childList:!0,subtree:!0,characterData:!0}),r=()=>s.disconnect()}),()=>r?.()}},guards:{isLoadingType:({prop:e})=>e("type")==="loading",shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){$(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:r}){queueMicrotask(()=>{const n=ud(e);if(!n)return;const o=n.style.height;n.style.height="auto";const i=n.getBoundingClientRect().height;n.style.height=o,r.set("initialHeight",i);const s={id:t("id"),height:i};pd(t("parent"),s)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:r}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",Ls(r("duration"),r("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",r=>{const n=t.get("closeTimerStartTime"),o=Date.now()-n;return t.set("lastCloseStartTimerStartTime",Date.now()),r-o})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}};function pd(e,t){const{id:r,height:n}=t;e.context.set("heights",o=>o.find(s=>s.id===r)?o.map(s=>s.id===r?{...s,height:n}:s):[{id:r,height:n},...o])}var zI=(e,t)=>({...t,...Zr(e)});function $I(e={}){const t=zI(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let r=[],n=[],o=new Set,i=[];const s=E=>(r.push(E),()=>{const O=r.indexOf(E);r.splice(O,1)}),a=E=>(r.forEach(O=>O(E)),E),l=E=>{if(n.length>=t.max){i.push(E);return}a(E),n.unshift(E)},c=()=>{for(;i.length>0&&n.length<t.max;){const E=i.shift();E&&(a(E),n.unshift(E))}},d=E=>{const O=E.id??`toast:${vu()}`,W=n.find(F=>F.id===O);return o.has(O)&&o.delete(O),W?n=n.map(F=>F.id===O?a({...F,...E,id:O}):F):l({id:O,duration:t.duration,removeDelay:t.removeDelay,type:"info",...E,stacked:!t.overlap,gap:t.gap}),O},g=E=>(o.add(E),E?(r.forEach(O=>O({id:E,dismiss:!0})),n=n.filter(O=>O.id!==E),c()):(n.forEach(O=>{r.forEach(W=>W({id:O.id,dismiss:!0}))}),n=[],i=[]),E);return{attrs:t,subscribe:s,create:d,update:(E,O)=>d({id:E,...O}),remove:g,dismiss:E=>{E!=null?n=n.map(O=>O.id===E?a({...O,message:"DISMISS"}):O):n=n.map(O=>a({...O,message:"DISMISS"}))},error:E=>d({...E,type:"error"}),success:E=>d({...E,type:"success"}),info:E=>d({...E,type:"info"}),warning:E=>d({...E,type:"warning"}),loading:E=>d({...E,type:"loading"}),getVisibleToasts:()=>n.filter(E=>!o.has(E.id)),getCount:()=>n.length,promise:(E,O,W={})=>{if(!O||!O.loading){gr("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const F=d({...W,...O.loading,promise:E,type:"loading"});let j=!0,q;const pe=Co(E).then(async Y=>{if(q=["resolve",Y],MI(Y)&&!Y.ok){j=!1;const de=Co(O.error,`HTTP Error! status: ${Y.status}`);d({...W,...de,id:F,type:"error"})}else if(O.success!==void 0){j=!1;const de=Co(O.success,Y);d({...W,...de,id:F,type:"success"})}}).catch(async Y=>{if(q=["reject",Y],O.error!==void 0){j=!1;const de=Co(O.error,Y);d({...W,...de,id:F,type:"error"})}}).finally(()=>{j&&g(F),O.finally?.()});return{id:F,unwrap:()=>new Promise((Y,de)=>pe.then(()=>q[0]==="reject"?de(q[1]):Y(q[1])).catch(de))}},pause:E=>{E!=null?n=n.map(O=>O.id===E?a({...O,message:"PAUSE"}):O):n=n.map(O=>a({...O,message:"PAUSE"}))},resume:E=>{E!=null?n=n.map(O=>O.id===E?a({...O,message:"RESUME"}):O):n=n.map(O=>a({...O,message:"RESUME"}))},isVisible:E=>!o.has(E)&&!!n.find(O=>O.id===E),isDismissed:E=>o.has(E),expand:()=>{n=n.map(E=>a({...E,stacked:!0}))},collapse:()=>{n=n.map(E=>a({...E,stacked:!1}))}}}var MI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",md={connect:RI,machine:_I};const SN=e=>$I(e),[WI,dn]=ne({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),xp=m.forwardRef((e,t)=>{const r=dn(),n=V(r.getActionTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});xp.displayName="ToastActionTrigger";const Cp=m.forwardRef((e,t)=>{const r=dn(),n=V(r.getCloseTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});Cp.displayName="ToastCloseTrigger";const Sp=m.forwardRef((e,t)=>{const r=dn(),n=V(r.getDescriptionProps(),e);return v.jsx(_.div,{...n,ref:t})});Sp.displayName="ToastDescription";const wp=m.forwardRef((e,t)=>{const r=dn(),n=V(r.getRootProps(),e);return v.jsxs("div",{...n,ref:t,children:[v.jsx("div",{...r.getGhostBeforeProps()}),e.children,v.jsx("div",{...r.getGhostAfterProps()})]})});wp.displayName="ToastRoot";const Ep=m.forwardRef((e,t)=>{const r=dn(),n=V(r.getTitleProps(),e);return v.jsx(_.div,{...n,ref:t})});Ep.displayName="ToastTitle";const kp=m.forwardRef((e,t)=>{const{toaster:r,children:n,...o}=e,i=it(),s=Le(),a=We(md.machine,{store:r,id:m.useId(),dir:i?.dir,getRootNode:s?.getRootNode}),l=md.connect(a,qe),c=V(l.getGroupProps(),o);return v.jsx(_.div,{...c,ref:t,children:l.getToasts().map((d,g)=>v.jsx(Ip,{value:d,parent:a,index:g,children:f=>n(f)},d.id))})});kp.displayName="Toaster";const Ip=e=>{const t=Le(),r={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},n=We(DI,{...r}),o=LI(n,qe);return v.jsx(WI,{value:o,children:e.children(e.value)})};Ip.displayName="ToastActor";const[Pp,go]=ne({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),Tp=m.forwardRef((e,t)=>{const r=go(),n=V(r.getArrowProps(),e);return v.jsx(_.div,{...n,ref:t})});Tp.displayName="TooltipArrow";const Op=m.forwardRef((e,t)=>{const r=go(),n=V(r.getArrowTipProps(),e);return v.jsx(_.div,{...n,ref:t})});Op.displayName="TooltipArrowTip";const Rp=m.forwardRef((e,t)=>{const r=go(),n=Ze(),o=V(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:v.jsx(_.div,{...o,ref:Et(n.ref,t)})});Rp.displayName="TooltipContent";const Np=m.forwardRef((e,t)=>{const r=go(),n=V(r.getPositionerProps(),e);return Ze().unmounted?null:v.jsx(_.div,{...n,ref:t})});Np.displayName="TooltipPositioner";var Ap=B("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),_n=Ap.build(),Vp=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,BI=e=>e.ids?.content??`tooltip:${e.id}:content`,HI=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,_p=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Fs=e=>e.getById(Vp(e)),vd=e=>e.getById(_p(e)),_t=Lb({id:null});function jI(e,t){const{state:r,context:n,send:o,scope:i,prop:s,event:a}=e,l=s("id"),c=!!s("aria-label"),d=r.matches("open","closing"),g=Vp(i),f=BI(i),u=s("disabled"),h=Wi({...s("positioning"),placement:n.get("currentPlacement")});return{open:d,setOpen(p){r.matches("open","closing")!==p&&o({type:p?"open":"close"})},reposition(p={}){o({type:"positioning.set",options:p})},getTriggerProps(){return t.button({..._n.trigger.attrs,id:g,dir:s("dir"),"data-expanded":z(d),"data-state":d?"open":"closed","aria-describedby":d?f:void 0,onClick(p){p.defaultPrevented||u||s("closeOnClick")&&o({type:"close",src:"trigger.click"})},onFocus(p){queueMicrotask(()=>{p.defaultPrevented||u||a.src!=="trigger.pointerdown"&&eo()&&o({type:"open",src:"trigger.focus"})})},onBlur(p){p.defaultPrevented||u||l===_t.get("id")&&o({type:"close",src:"trigger.blur"})},onPointerDown(p){p.defaultPrevented||u||Au(p)&&s("closeOnPointerDown")&&l===_t.get("id")&&o({type:"close",src:"trigger.pointerdown"})},onPointerMove(p){p.defaultPrevented||u||p.pointerType!=="touch"&&o({type:"pointer.move"})},onPointerOver(p){p.defaultPrevented||u||p.pointerType!=="touch"&&o({type:"pointer.move"})},onPointerLeave(){u||o({type:"pointer.leave"})},onPointerCancel(){u||o({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:HI(i),..._n.arrow.attrs,dir:s("dir"),style:h.arrow})},getArrowTipProps(){return t.element({..._n.arrowTip.attrs,dir:s("dir"),style:h.arrowTip})},getPositionerProps(){return t.element({id:_p(i),..._n.positioner.attrs,dir:s("dir"),style:h.floating})},getContentProps(){return t.element({..._n.content.attrs,dir:s("dir"),hidden:!d,"data-state":d?"open":"closed",role:c?void 0:"tooltip",id:c?void 0:f,"data-placement":n.get("currentPlacement"),onPointerEnter(){o({type:"content.pointer.move"})},onPointerLeave(){o({type:"content.pointer.leave"})},style:{pointerEvents:s("interactive")?"auto":"none"}})}}}var{and:GI,not:bd}=ot(),UI={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){const t=e.closeOnClick??!0,r=e.closeOnPointerDown??t;return{id:"x",openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:r,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:r}){e([()=>r("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:GI("noVisibleTooltip",bd("hasPointerMoveOpened")),target:"opening"},{guard:bd("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>_t.get("id")===null,isVisible:({prop:e})=>e("id")===_t.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{_t.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===_t.get("id")&&_t.set("id",null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:r,scope:n})=>{if(t.type!=="positioning.set")return;const o=()=>vd(n);return Ke(Fs(n),o,{...r("positioning"),...t.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility:({prop:e,event:t,send:r})=>{queueMicrotask(()=>{r({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>Gi({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:r})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const n=()=>vd(r);return Ke(Fs(r),n,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const r=t.getDoc();return K(r,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:r})=>{if(!t("closeOnScroll"))return;const n=Fs(r);if(!n)return;const i=Hu(n).map(s=>K(s,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{i.forEach(s=>s?.())}},trackStore:({prop:e,send:t})=>{let r;return queueMicrotask(()=>{r=_t.subscribe(()=>{_t.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>r?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?K(document,"keydown",n=>{Nu(n)||n.key==="Escape"&&(n.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const r=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t})=>{const r=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(r)}}}};M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const YI=e=>{const t=m.useId(),{getRootNode:r}=Le(),{dir:n}=it(),o={id:t,dir:n,getRootNode:r,...e},i=We(UI,o);return jI(i,qe)},XI=e=>{const[t,{children:r,...n}]=kt(e),o=YI(n),i=st(V({present:o.open},t));return v.jsx(Pp,{value:o,children:v.jsx(gt,{value:i,children:r})})},KI=e=>{const[t,{value:r,children:n}]=kt(e),o=st(V({present:r.open},t));return v.jsx(Pp,{value:r,children:v.jsx(gt,{value:o,children:n})})},Lp=m.forwardRef((e,t)=>{const r=go(),n=V(r.getTriggerProps(),e);return v.jsx(_.button,{...n,ref:t})});Lp.displayName="TooltipTrigger";function pl(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}const qI=(e,t)=>{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=t.raw(`opacity.${n}`)?.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:r};const s=i?Number(i)*100+"%":`${n}%`,a=o??r;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},re=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 ua(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>ua(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=ua(e[r]);return t}function ga(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!ze(e[r])&&ze(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&ze(t[r]))ga(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)ze(e[r][n])&&ze(t[r][n])?ga(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function un(e,...t){for(const r of t)ga(e,r);return e}const fa=e=>e!=null;function wt(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){if(ze(s)||Array.isArray(s)){const l={};for(const[c,d]of Object.entries(s)){const g=o?.(c,d)??c,f=[...a,g];if(n?.(s,f))return t(s,a);const u=i(d,f);fa(u)&&(l[g]=u)}return l}return t(s,a)}return i(e)}function qi(e,t){return Array.isArray(e)?e.map(r=>fa(r)?t(r):r):ze(e)?wt(e,r=>t(r)):fa(e)?t(e):e}const Mo=["value","type","description"],ZI=e=>e&&typeof e=="object"&&!Array.isArray(e),Fp=(...e)=>{const t=un({},...e.map(ua));return t.theme?.tokens&&wt(t.theme.tokens,r=>{const i=Object.keys(r).filter(a=>!Mo.includes(a)).length>0,s=Mo.some(a=>r[a]!=null);return i&&s&&(r.DEFAULT||(r.DEFAULT={}),Mo.forEach(a=>{var l;r[a]!=null&&((l=r.DEFAULT)[a]||(l[a]=r[a]),delete r[a])})),r},{stop(r){return ZI(r)&&Object.keys(r).some(n=>Mo.includes(n)||n!==n.toLowerCase()&&n!==n.toUpperCase())}}),t},JI=e=>e,be=e=>e,H=e=>e,QI=e=>e,eP=e=>e,gn=e=>e,tP=e=>e,rP=e=>e,nP=e=>e;function Dp(){const e=t=>t;return new Proxy(e,{get(){return e}})}const he=Dp(),ml=Dp(),zp=e=>e,oP=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function iP(e){return`${e}`.replace(oP,t=>`\\${t}`)}const sP=/[A-Z]/g;function aP(e){return e.replace(sP,t=>`-${t.toLowerCase()}`)}function $p(e,t={}){const{fallback:r="",prefix:n=""}=t,o=aP(["-",n,iP(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const lP=e=>/^var\(--.+\)$/.test(e),ye=(e,t)=>t!=null?`${e}(${t})`:t,ir=e=>{if(lP(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},yd=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=re("borderColor"),Nt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),dP=JI({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"}),zr=$p("bg-currentcolor"),xd=e=>e===zr.ref||e==="currentBg",te=e=>({...e("colors"),currentBg:zr}),uP=zp({conditions:dP,utilities:{background:{values:te,shorthand:["bg"],transform(e,t){if(xd(t.raw))return{background:zr.ref};const r=re("background")(e,t);return{...r,[zr.var]:r?.background}}},backgroundColor:{values:te,shorthand:["bgColor"],transform(e,t){if(xd(t.raw))return{backgroundColor:zr.ref};const r=re("backgroundColor")(e,t);return{...r,[zr.var]: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:te,transform:re("--gradient-from")},gradientTo:{values:te,transform:re("--gradient-to")},gradientVia:{values:te,transform(e,t){return{...re("--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"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:te,transform:re("borderColor")},borderTopColor:{values:te,transform:re("borderTopColor")},borderBlockStartColor:{values:te,transform:re("borderBlockStartColor")},borderBottomColor:{values:te,transform:re("borderBottomColor")},borderBlockEndColor:{values:te,transform:re("borderBlockEndColor")},borderLeftColor:{values:te,transform:re("borderLeftColor")},borderInlineStartColor:{values:te,shorthand:["borderStartColor"],transform:re("borderInlineStartColor")},borderRightColor:{values:te,transform:re("borderRightColor")},borderInlineEndColor:{values:te,shorthand:["borderEndColor"],transform:re("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:te,transform:re("color")},fill:{values:te,transform:re("fill")},stroke:{values:te,transform:re("stroke")},accentColor:{values:te,transform:re("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:te,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:te,transform:re("--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":ye("blur",e)})},brightness:{transform:e=>({"--brightness":ye("brightness",e)})},contrast:{transform:e=>({"--contrast":ye("contrast",e)})},grayscale:{transform:e=>({"--grayscale":ye("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":ye("hue-rotate",ir(e))})},invert:{transform:e=>({"--invert":ye("invert",e)})},saturate:{transform:e=>({"--saturate":ye("saturate",e)})},sepia:{transform:e=>({"--sepia":ye("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":ye("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":ye("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":ye("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":ye("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":ye("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":ye("hue-rotate",ir(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":ye("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":ye("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":ye("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":ye("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:te,transform:re("outlineColor")},focusRing:yd("&:is(:focus, [data-focus])"),focusVisibleRing:yd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:te,transform:re("--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:te,transform:re("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:te,transform:re("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:te,transform:re("--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:te,transform:re("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":ir(e)})},skewY:{transform:e=>({"--skew-y":ir(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:ir(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":ir(e)}}},rotateY:{transform(e){return{"--rotate-y":ir(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 Nt("all");case"position":return Nt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Nt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Nt("opacity");case"shadow":return Nt("box-shadow");case"transform":return Nt("transform");case"size":return Nt("width, height");case"backgrounds":return Nt("background, background-color, background-image, background-position");case"common":return Nt("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"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return gP[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:te,transform:re("caretColor")},cursor:{values:"cursor"}}}),gP={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 fP="",hP=fP.split(","),pP="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,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,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,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,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,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,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,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",mP=pP.split(",").concat(hP),vP=new Map(mP.map(e=>[e,!0]));function bP(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var yP=/&|@/,xP=bP(e=>vP.has(e)||e.startsWith("--")||yP.test(e));function ct(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}function Mp(e,t){const r={};return wt(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var CP=Object.defineProperty,SP=(e,t,r)=>t in e?CP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cd=(e,t,r)=>SP(e,typeof t!="symbol"?t+"":t,r);function xi(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(xi).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(n=>`${n}:${xi(e[n])}`).join(",")}}`:String(e)}class wP{constructor(t=500){Cd(this,"cache",new Map),Cd(this,"maxSize"),this.maxSize=t}get(t){const r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}}const $e=e=>{const t=new wP;function r(...n){const o=n.length===1?xi(n[0]):n.map(xi).join("|");let i=t.get(o);return i===void 0&&(i=e.apply(this,n),t.set(o,i)),i}return r},Wp=16,Ci="px",vl="em",jn="rem";function Bp(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Ci}|${vl}|${jn}`);return e.match(new RegExp(`${t.source}(${r.source})`))?.[1]}function Hp(e=""){if(typeof e=="number")return`${e}px`;const t=Bp(e);if(!t||t===Ci)return e;if(t===vl||t===jn)return`${parseFloat(e)*Wp}${Ci}`}function jp(e=""){const t=Bp(e);if(!t||t===jn)return e;if(t===vl)return`${parseFloat(e)}${jn}`;if(t===Ci)return`${parseFloat(e)/Wp}${jn}`}const EP=e=>e.charAt(0).toUpperCase()+e.slice(1);function kP(e){const t=IP(e),r=Object.fromEntries(t);function n(f){return r[f]}function o(f){return Or(n(f))}function i(){const f=Object.keys(r),u=PP(f),h=f.flatMap(p=>{const y=n(p),C=[`${p}Down`,Or({max:oi(y.min)})],S=[p,Or({min:y.min})],w=[`${p}Only`,o(p)];return[S,w,C]}).filter(([,p])=>p!=="").concat(u.map(([p,y])=>{const C=n(p),S=n(y);return[`${p}To${EP(y)}`,Or({min:C.min,max:oi(S.min)})]}));return Object.fromEntries(h)}function s(){const f=i();return Object.fromEntries(Object.entries(f))}const a=s(),l=f=>a[f];function c(){return Pa(["base",...Object.keys(r)])}function d(f){return Or({min:n(f).min})}function g(f){return Or({max:oi(n(f).min)})}return{values:Object.values(r),only:o,keys:c,conditions:a,getCondition:l,up:d,down:g}}function oi(e){const t=parseFloat(Hp(e)??"")-.04;return jp(`${t}px`)}function IP(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10)<parseInt(n,10)?-1:1).map(([r,n],o,i)=>{let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=oi(s)),[r,{name:r,min:jp(n),max:s}]})}function PP(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 Or({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const TP=/^@|&|&$/,OP=e=>{const{breakpoints:t,conditions:r={}}=e,n=ct(r,(d,g)=>[`_${d}`,g]),o=Object.assign({},n,t.conditions);function i(){return Object.keys(o)}function s(d){return i().includes(d)||TP.test(d)||d.startsWith("_")}const a=$e(d=>d.filter(g=>g!=="base").sort((g,f)=>{const u=s(g),h=s(f);return u&&!h?1:!u&&h?-1:0}));function l(d){return d.startsWith("@breakpoint")?t.getCondition(d.replace("@breakpoint ","")):d}function c(d){return Reflect.get(o,d)||d}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},oe=Object.freeze(Object.create(null)),RP=Object.freeze([]);function Zi(){return Object.create(null)}const Gp=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
|
|
8
|
+
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
|
|
9
|
+
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),NP=Gp("width"),AP=Gp("height"),Up=e=>({isMin:Pd(e.minMax,e.maxMin,e.min),isMax:Pd(e.maxMin,e.minMax,e.max)}),{isMin:ha,isMax:Sd}=Up(NP),{isMin:pa,isMax:wd}=Up(AP),Ed=/print/i,kd=/^print$/i,VP=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,_P=/(\d)/,Bn=Number.MAX_VALUE,LP={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Id(e){const t=VP.exec(e)||(ha(e)||pa(e)?_P.exec(e):null);if(!t)return Bn;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(LP[n]||1)}function Pd(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function FP(e,t){const r=Ed.test(e),n=kd.test(e),o=Ed.test(t),i=kd.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const DP=$e((e,t)=>{const r=FP(e,t);if(r!==null)return r;const n=ha(e)||pa(e),o=Sd(e)||wd(e),i=ha(t)||pa(t),s=Sd(t)||wd(t);if(n&&s)return-1;if(o&&i)return 1;const a=Id(e),l=Id(t);return a===Bn&&l===Bn?e.localeCompare(t):a===Bn?1:l===Bn?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function Td(e){return e.sort(([t],[r])=>DP(t,r))}function Yp(e){const t=[],r=[],n={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?r.push([s,a]):ze(a)?n[s]=Yp(a):n[s]=a;const o=Td(t),i=Td(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const Xp=/\s*!(important)?/i,zP=$e(e=>Xe(e)?Xp.test(e):!1),$P=$e(e=>Xe(e)?e.replace(Xp,"").trim():e);function Kp(e){const{transform:t,conditions:r,normalize:n}=e,o=BP(e);return $e(function(...s){const a=o(...s),l=n(a),c=Zi();return wt(l,(d,g)=>{const f=zP(d);if(d==null)return;const[u,...h]=r.sort(g).map(r.resolve);f&&(d=$P(d));let p=t(u,d)??oe;p=wt(p,y=>Xe(y)&&f?`${y} !important`:y,{getKey:y=>r.expandAtRule(y)}),MP(c,h.flat(),p)}),Yp(c)})}function MP(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Zi()),n=n[o]);un(n,r)}function WP(...e){return e.filter(t=>{if(!ze(t))return!1;const r=no(t);return Object.keys(r).length>0})}function BP(e){function t(r){const n=WP(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return $e(function(...n){return un({},...t(n))})}const qp=e=>({base:oe,variants:oe,defaultVariants:oe,compoundVariants:[],...e});function HP(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(a={}){const l=qp(a),{base:c,defaultVariants:d,compoundVariants:g}=l,f=ct(l.variants,(w,b)=>[w,ct(b,(x,k)=>[x,n(k)])]),u=Kp({conditions:r,normalize:n,transform(w,b){return f[w]?.[b]}}),h=(w={})=>{const b=n({...d,...no(w)});let x={...c};un(x,u(b));const k=s(g,b);return o.wrap("recipes",t(x,k))},p=Object.keys(f),y=w=>{const b=pl(w,["recipe"]),[x,k]=Wr(b,p),R=p.includes("colorPalette"),T=p.includes("orientation");return R||(x.colorPalette=w.colorPalette||d.colorPalette),T&&(k.orientation=w.orientation),[x,k]},C=ct(f,(w,b)=>[w,Object.keys(b)]);return Object.assign(w=>t(h(w)),{className:a.className,__cva__:!0,variantMap:C,variantKeys:p,raw:h,config:a,splitVariantProps:y,merge(w){return i(jP(e)(this,w))}})}function s(a,l){let c=oe;return a.forEach(d=>{Object.entries(d).every(([f,u])=>f==="css"?!0:(Array.isArray(u)?u:[u]).some(p=>l[f]===p))&&(c=t(c,d.css))}),c}return i}function jP(e){const{css:t}=e;return function(n,o){const i=qp(o.config),s=Pa(n.variantKeys,Object.keys(o.variants)),a=t(n.base,i.base),l=Object.fromEntries(s.map(f=>[f,t(n.config.variants[f],i.variants[f])])),c=un(n.config.defaultVariants,i.defaultVariants),d=[...n.compoundVariants,...i.compoundVariants];return{className:xe(n.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:d}}}const GP={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Od={reset:0,base:1,tokens:2,recipes:3};function UP(e){const t=e.layers??GP,n=Object.values(t).sort((o,i)=>Od[o]-Od[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function YP(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return wt(i,r,{stop:s=>Array.isArray(s),getKey:n?o:void 0})}}function XP(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=ze(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"}},s={[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 a=Object.entries(i).reduce((l,[c,d])=>(l[c]={[o]:d},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function KP(e){const{conditions:t,isValidProperty:r}=e;return function(o){return wt(o,i=>i,{getKey:(i,s)=>ze(s)&&!t.has(i)&&!r(i)?ZP(i).map(a=>{const l=a.startsWith("&")?a.slice(1):a;return qP(l)?`${l} &`:`&${l}`}).join(", "):i})}}function qP(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function ZP(e){const t=[];let r=0,n="",o=!1;for(let i=0;i<e.length;i++){const s=e[i];if(s==="\\"&&!o){o=!0,n+=s;continue}if(o){o=!1,n+=s;continue}s==="("?r++:s===")"&&r--,s===","&&r===0?(t.push(n.trim()),n=""):n+=s}return n&&t.push(n.trim()),t}const JP=(e=oe)=>{const t=o=>({base:e.base?.[o]??oe,variants:Zi(),defaultVariants:e.defaultVariants??oe,compoundVariants:e.compoundVariants?QP(e.compoundVariants,o):RP}),n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))n.forEach(([l,c])=>{var d;(d=c.variants)[o]??(d[o]={}),c.variants[o][s]=a[l]??oe});return Object.fromEntries(n)},QP=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function eT(e){const{cva:t}=e;return function(n=oe){const o=Object.entries(JP(n)).map(([g,f])=>[g,t(f)]);function i(g){const f=o.map(([u,h])=>[u,h(g)]);return Object.fromEntries(f)}const s=n.variants??oe,a=Object.keys(s);function l(g){const f=pl(g,["recipe"]),[u,h]=Wr(f,a),p=a.includes("colorPalette"),y=a.includes("orientation");return p||(u.colorPalette=g.colorPalette||n.defaultVariants?.colorPalette),y&&(h.orientation=g.orientation),[u,h]}const c=ct(s,(g,f)=>[g,Object.keys(f)]);let d={};return n.className&&(d=Object.fromEntries(n.slots.map(g=>[g,`${n.className}__${g}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:d})}}const tT=()=>e=>Array.from(new Set(e)),rT=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,nT=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Zp=e=>(e+"").replace(rT,nT),Jp=(e,t)=>{let r="",n=0,o="char",i="",s="";const a=[];for(;n<e.length;){const l=e[n];if(l==="{"){const d=e.indexOf("}",n);if(d===-1)break;const g=e.slice(n+1,d),f=t(g);r+=f??g,n=d+1;continue}if(o==="token"&&l===","){e[n]===""&&n++,o="fallback",a.push(o);const d=t(i);d?.endsWith(")")&&(r+=d.slice(0,-1)),i="",s="";continue}if(o==="fallback"&&s+l===", var("){const f=oT(e.slice(n+1))+n+1,u=e.slice(n+1,f);if(f===-1)break;r+=", var("+u+")",n=f+1,o=a.pop()??o,s="";continue}if(o==="token"||o==="fallback"){if(n++,l===")"){o=a.pop()??o??"char",s+=l;const d=i&&(t(i)??Zp(i));if(s){if(s=s.slice(1).trim(),!s.startsWith("token(")&&s.endsWith(")")&&(s=s.slice(0,-1)),s.includes("token(")){const f=Jp(s,t);f&&(s=f.slice(0,-1))}else if(s){const f=t(s);f&&(s=f)}}const g=r.at(-1);s?g?.trim()?r+=d.slice(0,-1)+(", "+s+")"):r+=s:r+=d||")",i="",s="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(s+=l);continue}const c=e.indexOf("token(",n);if(c!==-1){const d=c+6;r+=e.slice(n,c),n=d,o="token",a.push(o);continue}r+=l,n++}return r},oT=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 Qp(e){const t={};return e.forEach((r,n)=>{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const em=/({([^}]*)})/g,iT=/[{}]/g,sT=/\w+\.\w+/,tm=e=>{if(!Xe(e))return[];const t=e.match(em);return t?t.map(r=>r.replace(iT,"").trim()):[]},aT=e=>em.test(e);function rm(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let r=e.value;const n=Object.keys(t);for(let o=0;o<n.length;o++){const i=n[o],s=t[i];if(s.extensions.conditions)continue;const a=rm(s);r=r.replace(`{${i}}`,a)}return e.value=r,delete e.extensions.references,e.value}const lT=/calc/g;function nm(e){return ze(e)&&e.reference?e.reference:String(e)}const Ji=(e,...t)=>t.map(nm).join(` ${e} `).replace(lT,""),Rd=(...e)=>`calc(${Ji("+",...e)})`,Nd=(...e)=>`calc(${Ji("-",...e)})`,ma=(...e)=>`calc(${Ji("*",...e)})`,Ad=(...e)=>`calc(${Ji("/",...e)})`,Vd=e=>{const t=nm(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ma(t,-1)},Vr=Object.assign(e=>({add:(...t)=>Vr(Rd(e,...t)),subtract:(...t)=>Vr(Nd(e,...t)),multiply:(...t)=>Vr(ma(e,...t)),divide:(...t)=>Vr(Ad(e,...t)),negate:()=>Vr(Vd(e)),toString:()=>e.toString()}),{add:Rd,subtract:Nd,multiply:ma,divide:Ad,negate:Vd}),cT={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=n(l,t);if(Xe(a.value)&&a.value==="0rem")return;const d=[...a.path],g=d[d.length-1];g!=null&&(d[d.length-1]=`-${g}`);const f={...a,value:Vr.negate(c.ref),name:o(d),path:d,extensions:{...a.extensions,negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}};i(f)})}},dT=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),uT={enforce:"post",transform(e){e.allTokens.filter(r=>dT.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:Hp(r.value)})})}},gT={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(n(c),c)}),l.roots.forEach(c=>{const d=n(c),g=s.get(d)||[];if(g.push(a),s.set(d,g),a.extensions.default&&c.length===1){const f=l.keys[0]?.filter(Boolean);if(!f.length)return;const u=c.concat(f);i.set(n(u),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=n(l),d=n(l.slice(1));r({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:d,virtual:!0}},"pre")})}},fT={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},hT=[cT,gT,uT,fT],pT={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:n(s.filter(Boolean),r)}}},mT={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=tm(e.value);return o.length&&o.forEach(i=>{const s=n(i.split("."),r);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},vT={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 a=[...e.path];a.shift(),r=a}if(r.length===0)return{};const n=r.reduce((a,l,c,d)=>{const g=d.slice(0,c+1);return a.push(g),a},[]),o=r[0],i=t.formatTokenName(r),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,d)=>(a.push(d.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:n,keys:s}}}},bT=[pT,mT,vT],_d=e=>ze(e)&&Object.prototype.hasOwnProperty.call(e,"value");function yT(e){return e?{breakpoints:qi(e,t=>({value:t})),sizes:ct(e,(t,r)=>[`breakpoint-${t}`,{value:r}])}:{breakpoints:{},sizes:{}}}function xT(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=D=>D.join("."),s=(D,L)=>$p(D.join("-"),{prefix:L}),a=[],l=new Map,c=new Map,d=new Map,g=new Map,f=new Map,u=new Map,h=new Map,p=new Map,y=[];function C(D,L){a.push(D),l.set(D.name,D),L&&p.forEach(X=>{X.enforce===L&&Y(X,D)})}const S=yT(o),w=no({...r,breakpoints:S.breakpoints,sizes:{...r.sizes,...S.sizes}});function b(){wt(w,(D,L)=>{const X=L.includes("DEFAULT");L=Ld(L);const ee=L[0],ue=i(L),we=Xe(D)?{value:D}:D,Rt={value:we.value,originalValue:we.value,name:ue,path:L,extensions:{condition:"base",originalPath:L,category:ee,prop:i(L.slice(1))}};X&&(Rt.extensions.default=!0),C(Rt)},{stop:_d}),wt(n,(D,L)=>{const X=L.includes("DEFAULT");L=om(Ld(L));const ee=L[0],ue=i(L),we=Xe(D.value)?{value:{base:D.value}}:D,Rt={value:we.value.base||"",originalValue:we.value.base||"",name:ue,path:L,extensions:{originalPath:L,category:ee,conditions:we.value,condition:"base",prop:i(L.slice(1))}};X&&(Rt.extensions.default=!0),C(Rt)},{stop:_d})}function x(D){return l.get(D)}function k(D){const{condition:L}=D.extensions;L&&(c.has(L)||c.set(L,new Set),c.get(L).add(D))}function R(D){const{category:L,prop:X}=D.extensions;L&&(h.has(L)||h.set(L,new Map),h.get(L).set(X,D))}function T(D){const{condition:L,negative:X,virtual:ee,cssVar:ue}=D.extensions;X||ee||!L||!ue||(d.has(L)||d.set(L,new Map),d.get(L).set(ue.var,D.value))}function A(D){const{category:L,prop:X,cssVar:ee,negative:ue}=D.extensions;if(!L)return;u.has(L)||u.set(L,new Map);const we=ue?D.extensions.conditions?D.originalValue:D.value:ee.ref;u.get(L).set(X,we),f.set([L,X].join("."),we)}function I(D){const{colorPalette:L,virtual:X,default:ee}=D.extensions;!L||X||L.roots.forEach(ue=>{const we=i(ue);g.has(we)||g.set(we,new Map);const Rt=ST([...D.path],[...ue]),yo=i(Rt),rs=x(yo);if(!rs||!rs.extensions.cssVar)return;const{var:Lm}=rs.extensions.cssVar;if(g.get(we).set(Lm,D.extensions.cssVar.ref),ee&&ue.length===1){const Fm=i(["colors","colorPalette"]),wl=x(Fm);if(!wl)return;const Dm=i(D.path),El=x(Dm);if(!El)return;const kl=L.keys[0]?.filter(Boolean);if(!kl.length)return;const ns=i(ue.concat(kl));g.has(ns)||g.set(ns,new Map),g.get(ns).set(wl.extensions.cssVar.var,El.extensions.cssVar.ref)}})}let N={};function E(){a.forEach(D=>{k(D),R(D),T(D),A(D),I(D)}),N=Qp(u)}const O=(D,L)=>{if(!D||typeof D!="string")return{invalid:!0,value:D};const[X,ee]=D.split("/");if(!X||!ee)return{invalid:!0,value:X};const ue=L(X),we=x(`opacity.${ee}`)?.value;if(!we&&isNaN(Number(ee)))return{invalid:!0,value:X};const Rt=we?Number(we)*100+"%":`${ee}%`,yo=ue??X;return{invalid:!1,color:yo,value:`color-mix(in srgb, ${yo} ${Rt}, transparent)`}},W=$e((D,L)=>f.get(D)??L),F=$e(D=>N[D]||null),j=$e(D=>Jp(D,L=>{if(!L)return;if(L.includes("/")){const ee=O(L,ue=>W(ue));if(ee.invalid)throw new Error("Invalid color mix at "+L+": "+ee.value);return ee.value}const X=W(L);return X||(sT.test(L)?Zp(L):L)})),q={prefix:t,allTokens:a,tokenMap:l,registerToken:C,getByName:x,formatTokenName:i,formatCssVar:s,flatMap:f,cssVarMap:d,categoryMap:h,colorPaletteMap:g,getVar:W,getCategoryValues:F,expandReferenceInValue:j};function pe(...D){D.forEach(L=>{p.set(L.name,L)})}function G(...D){y.push(...D)}function Y(D,L){if(L.extensions.references||Ia(D.match)&&!D.match(L))return;const ee=(ue=>D.transform(ue,q))(L);switch(!0){case D.type==="extensions":Object.assign(L.extensions,ee);break;case D.type==="value":L.value=ee;break;default:L[D.type]=ee;break}}function de(D){y.forEach(L=>{L.enforce===D&&L.transform(q)})}function Be(D){p.forEach(L=>{L.enforce===D&&a.forEach(X=>{Y(L,X)})})}function Bt(){a.forEach(D=>{const L=CT(D);!L||L.length===0||L.forEach(X=>{C(X)})})}function hn(D){const L=tm(D),X=[];for(let ee=0;ee<L.length;ee++){const ue=x(L[ee]);ue&&X.push(ue)}return X}function Cr(){a.forEach(D=>{if(!aT(D.value))return;const L=hn(D.value);D.extensions.references=L.reduce((X,ee)=>(X[ee.name]=ee,X),{})})}function ts(){a.forEach(D=>{rm(D)})}function _m(){de("pre"),Be("pre"),Bt(),Cr(),ts(),de("post"),Be("post"),E()}return b(),pe(...bT),G(...hT),_m(),q}function Ld(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function om(e){return e.filter(t=>t!=="base")}function CT(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return wt(t,(n,o)=>{const i=om(o);if(!i.length)return;const s={...e,value:n,extensions:{...e.extensions,condition:i.join(":")}};r.push(s)}),r}function ST(e,t){const r=e.findIndex((n,o)=>t.every((i,s)=>e[o+s]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}tT()(["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 wT(e){return ct(e,(t,r)=>[t,r])}function ET(e){const t=wT(e.config),r=e.tokens,n=new Map,o=new Map;function i(T,A){t[T]=A,s(T,A)}const s=(T,A)=>{const I=p(A);I&&(o.set(T,I),g(T,A))},a=()=>{for(const[T,A]of Object.entries(t))A&&s(T,A)},l=()=>{for(const[T,A]of Object.entries(t)){const{shorthand:I}=A??{};if(!I)continue;(Array.isArray(I)?I:[I]).forEach(E=>n.set(E,T))}},c=()=>{const T=Qp(r.colorPaletteMap);i("colorPalette",{values:Object.keys(T),transform:$e(A=>T[A])})},d=new Map,g=(T,A)=>{if(!A)return;const I=p(A,E=>`type:Tokens["${E}"]`);if(typeof I=="object"&&I.type){d.set(T,new Set([`type:${I.type}`]));return}if(I){const E=new Set(Object.keys(I));d.set(T,E)}const N=d.get(T)??new Set;A.property&&d.set(T,N.add(`CssProperties["${A.property}"]`))},f=()=>{for(const[T,A]of Object.entries(t))A&&g(T,A)},u=(T,A)=>{const I=d.get(T)??new Set;d.set(T,new Set([...I,...A]))},h=()=>{const T=new Map;for(const[A,I]of d.entries()){if(I.size===0){T.set(A,["string"]);continue}const N=Array.from(I).map(E=>E.startsWith("CssProperties")?E:E.startsWith("type:")?E.replace("type:",""):JSON.stringify(E));T.set(A,N)}return T},p=(T,A)=>{const{values:I}=T,N=E=>{const O=A?.(E);return O?{[O]:O}:void 0};if(Xe(I))return N?.(I)??r.getCategoryValues(I)??oe;if(Array.isArray(I)){const E={};for(let O=0;O<I.length;O++)E[I[O]]=I[O];return E}return Ia(I)?I(A?N:r.getCategoryValues):I},y=$e((T,A)=>({[T]:T.startsWith("--")?r.getVar(A,A):A})),C=Object.assign(r.getVar,{raw:T=>r.getByName(T)}),S=$e((T,A)=>{const I=x(T);Xe(A)&&!A.includes("_EMO_")&&(A=r.expandReferenceInValue(A));const N=t[I];if(!N)return y(I,A);const E=o.get(I)?.[A];if(!N.transform)return y(T,E??A);const O=W=>qI(W,C);return N.transform(E??A,{raw:A,token:C,utils:{colorMix:O}})});function w(){l(),c(),a(),f()}w();const b=n.size>0,x=$e(T=>n.get(T)??T);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:b,transform:S,shorthands:n,resolveShorthand:x,register:i,getTypes:h,addPropertyType:u}}function kT(...e){const t=Fp(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=UP(t),c=xT({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:s}),d=kP(r.breakpoints??oe),g=OP({conditions:t.conditions??oe,breakpoints:d}),f=ET({config:n,tokens:c});function u(){const{textStyles:G,layerStyles:Y,animationStyles:de}=r,Be=no({textStyle:G,layerStyle:Y,animationStyle:de});for(const[Bt,hn]of Object.entries(Be)){const Cr=Mp(hn??oe,im);f.register(Bt,{values:Object.keys(Cr),transform(ts){return w(Cr[ts])}})}}u(),f.addPropertyType("animationName",Object.keys(r.keyframes??oe));const h=new Set(["css",...f.keys(),...g.keys()]),p=$e(G=>h.has(G)||xP(G)),y=G=>{if(Array.isArray(G)){const Y=Zi();for(let de=0;de<G.length;de++){const Be=G[de];if(Be!=null){const Bt=g.breakpoints[de];Y[Bt]=Be}}return Y}return G},C=YP({utility:f,normalize:y}),S=KP({conditions:g,isValidProperty:p}),w=Kp({transform:f.transform,conditions:g,normalize:C}),b=HP({css:w,conditions:g,normalize:C,layers:l}),x=eT({cva:b});function k(){const G={};for(const[Y,de]of c.cssVarMap.entries()){const Be=Object.fromEntries(de);if(Object.keys(Be).length===0)continue;const Bt=Y==="base"?i:g.resolve(Y),hn=Bt.startsWith("@"),Cr=w(S({[Bt]:hn?{[i]:Be}:Be}));un(G,Cr)}return l.wrap("tokens",G)}function R(){const G=ct(r.keyframes??oe,(de,Be)=>[`@keyframes ${de}`,Be]),Y=Object.assign({},G,w(S(o)));return l.wrap("base",Y)}function T(G){return Wr(G,p)}function A(){const G=XP({preflight:a});return l.wrap("reset",G)}const I=IT(c),N=(G,Y)=>I.get(G)?.value||Y;N.var=(G,Y)=>I.get(G)?.variable||Y;function E(G,Y){return r.recipes?.[G]??Y}function O(G,Y){return r.slotRecipes?.[G]??Y}function W(G){return Object.hasOwnProperty.call(r.recipes??oe,G)}function F(G){return Object.hasOwnProperty.call(r.slotRecipes??oe,G)}function j(G){return W(G)||F(G)}const q=[A(),R(),k()],pe={layerStyles:Ds(r.layerStyles??oe),textStyles:Ds(r.textStyles??oe),animationStyles:Ds(r.animationStyles??oe),tokens:Fd(c,Object.keys(r.tokens??oe),(G,Y)=>!G.extensions.conditions&&!Y.includes("colorPalette")),semanticTokens:Fd(c,Object.keys(r.semanticTokens??oe),G=>!!G.extensions.conditions),keyframes:Dd(r.keyframes??oe),breakpoints:Dd(r.breakpoints??oe)};return{$$chakra:!0,_config:t,_global:q,breakpoints:d,tokens:c,conditions:g,utility:f,token:N,properties:h,layers:l,isValidProperty:p,splitCssProps:T,normalizeValue:y,getTokenCss:k,getGlobalCss:R,getPreflightCss:A,css:w,cva:b,sva:x,getRecipe:E,getSlotRecipe:O,hasRecipe:j,isRecipe:W,isSlotRecipe:F,query:pe}}function IT(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,s=i||o?n.ref:r.value;t.set(r.name,{value:s,variable:n.ref})}),t}const im=e=>ze(e)&&"value"in e,Ds=e=>({list(){return Object.keys(Mp(e,im))},search(t){return this.list().filter(r=>r.includes(t))}}),Fd=(e,t,r)=>({categoryKeys:t,list(n){const o=e.categoryMap.get(n),i=o?[...o.entries()]:[],s=[];for(let a=0;a<i.length;a++){const[l,c]=i[a];r(c,l)&&s.push(l)}return s},search(n,o){return this.list(n).filter(i=>i.includes(o))}}),Dd=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),PT={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},zs="var(--chakra-empty,/*!*/ /*!*/)",TT=eP({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":zs,"--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}`,zs])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,zs])),"--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.emphasized/80"}}),OT=nP({"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:{}}}),RT=rP({"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"}}}),bl=be({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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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"}}),NT=be({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","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",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"}}),ke=be({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&: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"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:AT,defaultVariants:VT}=bl,_T=be({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:AT,defaultVariants:VT}),sm=be({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"}}),LT=be({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"}}}}),FT=be({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"}}),DT=be({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"}}),ge=be({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)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),zT=be({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ge.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"}}),$T=be({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"}}),MT=be({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"}}),WT=be({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:{}}}}),Ie=be({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.emphasized",_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"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),BT=be({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"}}),HT=be({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}}),jT=be({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"}}}),GT=be({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"}}),UT=be({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"}}),YT={badge:bl,button:NT,code:_T,container:LT,heading:FT,input:ge,inputAddon:zT,kbd:$T,link:MT,mark:WT,separator:BT,skeleton:HT,skipNavLink:jT,spinner:GT,textarea:UT,icon:DT,checkmark:ke,radiomark:Ie,colorSwatch:sm},XT=ml.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.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},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.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},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.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},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.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},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.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},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.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},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.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},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.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},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.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},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.500}",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),KT=ml.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),qT=ml.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}"}}}),ZT=kg.extendWith("itemBody"),JT=B("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),QT=B("alert").parts("title","description","root","indicator","content"),e1=B("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),t1=B("blockquote").parts("root","icon","content","caption"),r1=B("card").parts("root","header","body","footer","title","description"),n1=B("checkbox-card",["root","control","label","description","addon","indicator","content"]),o1=B("data-list").parts("root","item","itemLabel","itemValue"),i1=sl.extendWith("header","body","footer","backdrop"),s1=sl.extendWith("header","body","footer","backdrop"),a1=ff.extendWith("textarea"),l1=B("empty-state",["root","content","indicator","title","description"]),c1=bf.extendWith("requiredIndicator"),d1=Sf.extendWith("content"),u1=wf.extendWith("itemContent","dropzoneContent","fileText"),g1=B("list").parts("root","item","indicator"),f1=oh.extendWith("itemCommand"),h1=B("select").parts("root","field","indicator"),p1=Ih.extendWith("header","body","footer"),am=hl.extendWith("itemAddon","itemIndicator"),m1=am.extendWith("itemContent","itemDescription"),v1=Lh.extendWith("itemIndicator"),b1=Kh.extendWith("indicatorGroup"),y1=Iw.extendWith("indicatorGroup","empty"),x1=Zh.extendWith("markerIndicator"),C1=B("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),S1=B("status").parts("root","indicator"),w1=B("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),E1=rp.extendWith("indicator"),k1=B("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),I1=B("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),P1=B("tabs").parts("root","trigger","list","content","contentGroup","indicator"),T1=B("tag").parts("root","label","closeTrigger","startElement","endElement"),O1=B("timeline").parts("root","item","content","separator","indicator","connector","title","description"),R1=XS.extendWith("channelText"),N1=B("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),A1=yg.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");Xg.extendWith("valueText");const V1=oE,_1=H({className:"chakra-accordion",slots:ZT.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"}}),L1=H({className:"chakra-action-bar",slots:JT.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"}}}),F1=H({slots:QT.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)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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}}),D1=H({slots:Tg.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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},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"}}),z1=H({className:"chakra-blockquote",slots:t1.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"}}),$1=H({className:"chakra-breadcrumb",slots:e1.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"}}),M1=H({className:"chakra-card",slots:r1.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"}}),W1=H({className:"carousel",slots:IS.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),B1=H({slots:Wg.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:ke.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:ke.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:ke.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:ke.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:ke.variants?.size?.lg}},variant:{outline:{control:ke.variants?.variant?.outline},solid:{control:ke.variants?.variant?.solid},subtle:{control:ke.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),H1=H({slots:n1.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:ke.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:ke.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:ke.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:ke.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:ke.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:ke.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:ke.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:ke.variants?.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"}}),j1=H({slots:N1.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),G1=H({slots:eg.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),U1=H({className:"colorPicker",slots:R1.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:{...sm.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:{...ge.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:ge.variants?.size?.["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:ge.variants?.size?.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:ge.variants?.size?.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:ge.variants?.size?.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:ge.variants?.size?.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:ge.variants?.size?.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:ge.variants?.size?.["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:ge.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:ge.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Y1=H({className:"chakra-combobox",slots:y1.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},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:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),X1=H({slots:o1.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"}}),K1=H({slots:i1.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",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:"100dvw",minH:"100dvh","--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"}}),q1=H({slots:s1.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_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",alignItems:"stretch"},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",alignItems:"stretch"},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-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",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"}}),zd=gn({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),Z1=H({slots:a1.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...zd,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...zd,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"}}),J1=H({slots:l1.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"}}),Q1=H({className:"chakra-field",slots:c1.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"}}),eO=H({className:"fieldset",slots:d1.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"}}),tO=H({className:"chakra-file-upload",slots:u1.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:{}}),rO=H({className:"chakra-hover-card",slots:Of.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",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),nO=H({className:"chakra-list",slots:g1.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"}}),oO=H({className:"chakra-listbox",slots:V1.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),iO=H({className:"chakra-menu",slots:f1.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",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ii=H({className:"chakra-select",slots:b1.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",insetEnd:"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"}}),sO=H({className:"chakra-native-select",slots:h1.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","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_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:ii.variants?.variant.outline.trigger},subtle:{field:ii.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ii.defaultVariants}),$d=gn({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"}}),aO=H({className:"chakra-number-input",slots:ph.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ge.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:{...$d,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...$d,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ge.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ge.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ge.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ge.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:ct(ge.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Md,defaultVariants:lO}=ge,cO=H({className:"chakra-pin-input",slots:bh.keys(),base:{input:{...ge.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:ct(Md.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:ct(Md.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:lO}),dO=H({className:"chakra-popover",slots:p1.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",borderLeftWidth:"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"}}),uO=H({slots:fl.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"}}),gO=H({className:"chakra-progress-circle",slots:fl.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-dashoffset, 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"}}),fO=H({slots:_h.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"}}),hO=H({className:"chakra-radio-card",slots:m1.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:Ie.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:Ie.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ie.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ie.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Ie.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Ie.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Ie.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Ie.variants?.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"}}),pO=H({className:"chakra-radio-group",slots:am.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Ie.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Ie.variants?.variant?.outline},subtle:{itemControl:Ie.variants?.variant?.subtle},solid:{itemControl:Ie.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Ie.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Ie.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Ie.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Ie.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),mO=H({className:"chakra-rating-group",slots:v1.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","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_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:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),vO=H({className:"chakra-scroll-area",slots:$h.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),bO=H({className:"chakra-segment-group",slots:Xh.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"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",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[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:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),yO=H({className:"chakra-slider",slots:x1.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"}}),xO=H({slots:A1.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),CO=H({className:"chakra-stat",slots:C1.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"}}),SO=H({className:"chakra-status",slots:S1.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"}}),wO=H({className:"chakra-steps",slots:w1.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"}}),EO=H({slots:E1.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"}}),kO=H({className:"chakra-table",slots:k1.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}"},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"}}),IO=H({slots:P1.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",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-trigger-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-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Wo=bl.variants?.variant,PO=H({slots:T1.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:Wo?.subtle},solid:{root:Wo?.solid},outline:{root:Wo?.outline},surface:{root:Wo?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),TO=H({slots:mp.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),OO=H({slots:O1.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",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:"var(--timeline-content-gap)",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:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},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",showLastSeparator:!1}}),RO=H({slots:I1.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"}}}}),NO=H({slots:Ap.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",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Wd=gn({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),Bd=gn({flex:"1"}),Hd=gn({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),jd=gn({_selected:{layerStyle:"fill.solid"}}),AO=H({slots:_f.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:Wd,item:Wd,itemText:Bd,branchText:Bd,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:Hd,item:Hd},solid:{branchControl:jd,item:jd}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),VO={accordion:_1,actionBar:L1,alert:F1,avatar:D1,blockquote:z1,breadcrumb:$1,card:M1,carousel:W1,checkbox:B1,checkboxCard:H1,codeBlock:j1,collapsible:G1,dataList:X1,dialog:K1,drawer:q1,editable:Z1,emptyState:J1,field:Q1,fieldset:eO,fileUpload:tO,hoverCard:rO,list:nO,listbox:oO,menu:iO,nativeSelect:sO,numberInput:aO,pinInput:cO,popover:dO,progress:uO,progressCircle:gO,radioCard:hO,radioGroup:pO,ratingGroup:mO,scrollArea:vO,segmentGroup:bO,select:ii,combobox:Y1,slider:yO,splitter:xO,stat:CO,steps:wO,switch:EO,table:kO,tabs:IO,tag:PO,tagsInput:TO,toast:RO,tooltip:NO,status:SO,timeline:OO,colorPicker:U1,qrCode:fO,treeView:AO},_O=tP({"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"}}}),LO=he.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"}}),FO=he.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"}}),DO=he.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),zO=he.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),$O=he.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"}}}),MO=he.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"}}),WO=he.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),BO=he.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)"}}),HO=he.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"}}),jO=he.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"}}),Gd='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',GO=he.fonts({heading:{value:`Inter, ${Gd}`},body:{value:`Inter, ${Gd}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),UO=QI({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:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 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"}}}),YO=he.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),XO=he.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),KO=he.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"}}),lm=he.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"}}),qO=he.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"}}),ZO=he.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"}}),JO=he.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%"}}),QO=he.sizes({...qO,...lm,...JO,...ZO}),eR=he.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}}),tR={aspectRatios:FO,animations:LO,blurs:DO,borders:zO,colors:$O,durations:WO,easings:BO,fonts:GO,fontSizes:HO,fontWeights:jO,letterSpacings:YO,lineHeights:XO,radii:KO,spacing:lm,sizes:QO,zIndex:eR,cursor:MO},rR={colors:XT,shadows:qT,radii:KT},nR="chakra",oR=":where(html, .chakra-theme)",iR=zp({preflight:!0,cssVarsPrefix:nR,cssVarsRoot:oR,globalCss:TT,theme:{breakpoints:PT,keyframes:UO,tokens:tR,semanticTokens:rR,recipes:YT,slotRecipes:VO,textStyles:_O,layerStyles:OT,animationStyles:RT}}),sR=Fp(uP,iR);kT(sR);function aR(e){const{key:t,recipe:r}=e,n=yr();return m.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const lR=e=>e.charAt(0).toUpperCase()+e.slice(1),Ae=e=>{const{key:t,recipe:r}=e,n=lR(t||r.className||"Component"),[o,i]=Mr({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[s,a]=Mr({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=Mr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function d(h){const{unstyled:p,...y}=h,C=aR({key:t,recipe:y.recipe||r}),[S,w]=m.useMemo(()=>C.splitVariantProps(y),[y,C]);return{styles:m.useMemo(()=>p?uu:C(S),[p,S,C]),classNames:C.classNameMap,props:w}}function g(h,p={}){const{defaultProps:y}=p,C=S=>{const w=c(),b=m.useMemo(()=>Xn(y,w,S),[w,S]),{styles:x,classNames:k,props:R}=d(b);return v.jsx(o,{value:x,children:v.jsx(s,{value:k,children:v.jsx(h,{...R})})})};return C.displayName=h.displayName||h.name,C}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:d,withProvider:(h,p,y)=>{const{defaultProps:C,...S}=y??{},w=U(h,{},S),b=m.forwardRef((x,k)=>{const R=c(),T=m.useMemo(()=>Xn(C??{},R,x),[R,x]),{styles:A,props:I,classNames:N}=d(T),E=N[p],O=v.jsx(o,{value:A,children:v.jsx(s,{value:N,children:v.jsx(w,{ref:k,...I,css:[A[p],T.css],className:xe(T.className,E)})})});return y?.wrapElement?.(O,T)??O});return b.displayName=h.displayName||h.name,b},withContext:(h,p,y)=>{const C=U(h,{},y),S=m.forwardRef((w,b)=>{const{unstyled:x,...k}=w,R=i(),A=a()?.[p];return v.jsx(C,{...k,css:[!x&&p?R[p]:void 0,w.css],ref:b,className:xe(w.className,A)})});return S.displayName=h.displayName||h.name,S},withRootProvider:g,useStyles:i,useClassNames:a}},cm=U("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});cm.displayName="AbsoluteCenter";const cR=e=>v.jsx(U.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:v.jsx("path",{d:"M20 6 9 17l-5-5"})}),dm=e=>v.jsx(U.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:v.jsx("path",{d:"m6 9 6 6 6-6"})}),dR=e=>v.jsx(U.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:v.jsx("path",{d:"m9 18 6-6-6-6"})}),uR=e=>v.jsxs(U.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[v.jsx("circle",{cx:"12",cy:"12",r:"1"}),v.jsx("circle",{cx:"19",cy:"12",r:"1"}),v.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),gR=e=>v.jsx(U.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Ud=e=>v.jsx(U.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),um=e=>v.jsx(U.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),{withProvider:gm,withContext:fo}=Ae({key:"accordion"});gm(Pg,"root",{forwardAsChild:!0});const wN=gm(Ig,"root",{forwardAsChild:!0}),EN=fo(xg,"item",{forwardAsChild:!0}),kN=fo(Sg,"itemContent",{forwardAsChild:!0});fo("div","itemBody");const IN=fo(Eg,"itemTrigger",{forwardAsChild:!0}),PN=fo(wg,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:v.jsx(dm,{})}}),{withRootProvider:fm,withContext:ho}=Ae({key:"actionBar"});fm(Nh,{defaultProps:{lazyMount:!0,unmountOnExit:!0}});const TN=fm(Rh,{defaultProps:{autoFocus:!1,lazyMount:!0,unmountOnExit:!0}}),ON=ho("div","positioner",{forwardAsChild:!0}),RN=ho(gl,"content",{forwardAsChild:!0}),NN=ho("div","separator"),AN=ho("button","selectionTrigger"),VN=ho(ul,"closeTrigger",{forwardAsChild:!0}),Ct=e=>e?"":void 0,fR=U("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),yl=m.memo(m.forwardRef(function(t,r){const{align:n="center",justify:o="flex-start",children:i,wrap:s,skip:a,...l}=t,c=m.useMemo(()=>{let d=m.Children.toArray(i).filter(m.isValidElement);if(d.length===1)return d;const g=d.filter(u=>!a?.(u)),f=g.length;return g.length===1?d:d.map(u=>{const h=u.props;if(a?.(u))return u;const p=g.indexOf(u);return m.cloneElement(u,{...h,"data-group-item":"","data-first":Ct(p===0),"data-last":Ct(p===f-1),"data-between":Ct(p>0&&p<f-1),style:{"--group-count":f,"--group-index":p,...h?.style??{}}})})},[i,a]);return v.jsx(fR,{ref:r,alignItems:n,justifyContent:o,flexWrap:s,...l,className:xe("chakra-group",t.className),children:c})}));yl.displayName="Group";const{withContext:hR}=nt({key:"badge"}),pR=hR("span");pR.displayName="Badge";const{withProvider:mR,withContext:fn}=Ae({key:"breadcrumb"}),_N=mR("nav","root",{defaultProps:{"aria-label":"breadcrumb"}}),LN=fn("ol","list"),FN=fn("li","item"),DN=fn("a","link"),zN=fn("span","currentLink",{defaultProps:{role:"link","aria-current":"page"}}),$N=fn("li","separator",{defaultProps:{"aria-hidden":!0,children:v.jsx(dR,{})}});fn("li","ellipsis",{defaultProps:{role:"presentation","aria-hidden":!0,children:v.jsx(uR,{})}});const{withContext:vR}=nt({key:"spinner"}),hm=vR("span");hm.displayName="Spinner";const pm=m.forwardRef(function(t,r){const{spinner:n=v.jsx(hm,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?v.jsxs(Fn,{ref:r,display:"contents",...l,children:[o==="start"&&n,s,o==="end"&&n]}):n?v.jsxs(Fn,{ref:r,display:"contents",...l,children:[v.jsx(cm,{display:"inline-flex",children:n}),v.jsx(Fn,{visibility:"hidden",display:"contents",children:i})]}):v.jsx(Fn,{ref:r,display:"contents",...l,children:i}):i});pm.displayName="Loader";const{useRecipeResult:bR,PropsProvider:yR,usePropsContext:xR}=nt({key:"button"}),mm=m.forwardRef(function(t,r){const n=xR(),o=m.useMemo(()=>Xn(n,t),[n,t]),i=bR(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:d,...g}=i.props;return v.jsx(U.button,{type:"button",ref:r,...g,"data-loading":Ct(s),disabled:s||g.disabled,className:xe(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?v.jsx(pm,{spinner:c,text:a,spinnerPlacement:d,children:l}):l})});mm.displayName="Button";const CR=yR,vm=m.forwardRef(function(t,r){return v.jsx(mm,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})});vm.displayName="IconButton";const SR=m.forwardRef(function(t,r){const n=Ii({key:"button"}),[o,i]=m.useMemo(()=>n.splitVariantProps(t),[t,n]);return v.jsx(CR,{value:o,children:v.jsx(yl,{ref:r,...i})})});SR.displayName="ButtonGroup";const wR=m.forwardRef(function(t,r){return v.jsx(vm,{variant:"ghost","aria-label":"Close",ref:r,...t,children:t.children??v.jsx(um,{})})});wR.displayName="CloseButton";const ER=U("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});ER.displayName="Center";const bm=m.forwardRef(function(t,r){const n=Ii({key:"checkmark",recipe:t.recipe}),[o,i]=n.splitVariantProps(t),{checked:s,indeterminate:a,disabled:l,unstyled:c,children:d,...g}=i,f=c?du:n(o);return v.jsx(U.svg,{ref:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":a?"indeterminate":s?"checked":"unchecked","data-disabled":Ct(l),css:[f,t.css],...g,children:a?v.jsx("path",{d:"M5 12h14"}):s?v.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});bm.displayName="Checkmark";const{withProvider:ym,withContext:xm,useStyles:kR}=Ae({key:"checkbox"});ym(Yg,"root",{forwardAsChild:!0});const MN=ym(Ug,"root",{forwardAsChild:!0});xm(Gg,"label",{forwardAsChild:!0});const IR=m.forwardRef(function(t,r){const{checked:n,indeterminate:o,...i}=t,s=Hi(),a=kR();return n&&s.checked?v.jsx(U.svg,{ref:r,asChild:!0,...i,css:[a.indicator,t.css],children:n}):o&&s.indeterminate?v.jsx(U.svg,{ref:r,asChild:!0,...i,css:[a.indicator,t.css],children:o}):v.jsx(bm,{ref:r,checked:s.checked,indeterminate:s.indeterminate,disabled:s.disabled,unstyled:!0,...i,css:[a.indicator,t.css]})}),WN=xm(Lg,"control",{forwardAsChild:!0,defaultProps:{children:v.jsx(IR,{})}});U(Hg,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const BN=jg,{withContext:PR}=nt({key:"code"}),TR=PR("code");TR.displayName="Code";function OR(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{"&":qi(r,o=>n[o])}}function RR(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}const Qi=m.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:d,...g}=t,f=m.useMemo(()=>OR({gap:s,direction:n}),[s,n]),u=m.useMemo(()=>m.isValidElement(c)?RR(l).map((h,p,y)=>{const C=typeof h.key<"u"?h.key:p,S=c,w=m.cloneElement(S,{css:[f,S.props.css]});return v.jsxs(m.Fragment,{children:[h,p===y.length-1?null:w]},C)}):l,[l,c,f]);return v.jsx(U.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:a,gap:c?void 0:s,className:xe("chakra-stack",d),...g,children:u})});Qi.displayName="Stack";const{withRootProvider:Cm,withContext:Tt}=Ae({key:"dialog"});Cm(gf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const HN=Cm(uf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),jN=Tt(ll,"trigger",{forwardAsChild:!0}),GN=Tt(il,"positioner",{forwardAsChild:!0}),UN=Tt(nl,"content",{forwardAsChild:!0});Tt(ol,"description",{forwardAsChild:!0});const YN=Tt(al,"title",{forwardAsChild:!0}),XN=Tt(rl,"closeTrigger",{forwardAsChild:!0}),KN=m.forwardRef(function(t,r){const n=Wt();return v.jsx(U.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),qN=Tt(tl,"backdrop",{forwardAsChild:!0}),ZN=Tt("div","body"),JN=Tt("div","footer"),QN=Tt("div","header"),{withRootProvider:Sm,withContext:Ot}=Ae({key:"drawer"});Sm(gf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const eA=Sm(uf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});Ot(ll,"trigger",{forwardAsChild:!0});const tA=Ot(il,"positioner",{forwardAsChild:!0}),rA=Ot(nl,"content",{forwardAsChild:!0});Ot(ol,"description",{forwardAsChild:!0});const nA=Ot(al,"title",{forwardAsChild:!0}),oA=Ot(rl,"closeTrigger",{forwardAsChild:!0});m.forwardRef(function(t,r){const n=Wt();return v.jsx(U.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})});const iA=Ot(tl,"backdrop",{forwardAsChild:!0}),sA=Ot("div","body"),aA=Ot("div","footer"),lA=Ot("div","header"),{useRecipeResult:NR}=nt({key:"icon"}),wm=m.forwardRef(function(t,r){const{styles:n,className:o,props:i}=NR({asChild:!t.as,...t});return v.jsx(U.svg,{ref:r,focusable:!1,"aria-hidden":"true",...i,css:[n,t.css],className:xe(o,t.className)})});wm.displayName="Icon";function AR(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=m.Children.toArray(e.path),s=m.forwardRef((a,l)=>v.jsx(wm,{ref:l,asChild:!1,viewBox:t,...o,...a,children:i.length?i:v.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}const{withProvider:VR,withContext:xl,useStyles:_R,useClassNames:LR}=Ae({key:"field"}),cA=VR(yf,"root",{forwardAsChild:!0}),dA=xl(vf,"label",{forwardAsChild:!0});xl(pf,"helperText",{forwardAsChild:!0});xl(hf,"errorText",{forwardAsChild:!0});AR({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"});m.forwardRef(function(t,r){const{fallback:n,children:o="*",...i}=t,s=at(),a=LR(),l=_R();return s?.required?v.jsx(U.span,{ref:r,"aria-hidden":"true",...i,className:xe(a.requiredIndicator,t.className),css:[l.requiredIndicator,t.css],children:o}):n});const FR=m.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:d,...g}=t;return v.jsx(U.div,{ref:r,...g,css:{display:d?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})});FR.displayName="Flex";const{withRootProvider:Em,withContext:po}=Ae({key:"hoverCard"});Em(Kw);const uA=Em(Xw),gA=po(Vf,"trigger",{forwardAsChild:!0}),fA=po(Tf,"positioner",{forwardAsChild:!0}),hA=po(Pf,"content",{forwardAsChild:!0}),DR=po(If,"arrowTip",{forwardAsChild:!0}),pA=po(kf,"arrow",{forwardAsChild:!0,defaultProps:{children:v.jsx(DR,{})}}),zR=m.forwardRef(function(t,r){const{align:n,fit:o="cover",...i}=t;return v.jsx(U.img,{ref:r,objectFit:o,objectPosition:n,className:xe("chakra-image",t.className),...i})});zR.displayName="Image";const{withContext:$R}=nt({key:"input"}),mA=$R(mf),Yd=m.forwardRef(function({unstyled:t,...r},n){const o=Ii({key:"inputAddon",recipe:r.recipe}),[i,s]=o.splitVariantProps(r),a=t?uu:o(i);return v.jsx(U.div,{ref:n,...s,css:[a,r.css]})}),$s=U("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),vA=m.forwardRef(function(t,r){const{startElement:n,startElementProps:o,endElement:i,endElementProps:s,startAddon:a,startAddonProps:l,endAddon:c,endAddonProps:d,children:g,startOffset:f="0px",endOffset:u="0px",...h}=t,p=m.Children.only(g),y=!!(a||c);return v.jsxs(yl,{width:"full",ref:r,attached:y,skip:C=>C.type===$s,...h,children:[a&&v.jsx(Yd,{...l,children:a}),n&&v.jsx($s,{pointerEvents:"none",...o,children:n}),m.cloneElement(p,{...n&&{ps:`calc(var(--input-height) - ${f})`},...i&&{pe:`calc(var(--input-height) - ${u})`},...g.props}),i&&v.jsx($s,{placement:"end",...s,children:i}),c&&v.jsx(Yd,{...d,children:c})]})}),{withContext:MR}=nt({key:"link"}),WR=MR("a");WR.displayName="Link";const{withRootProvider:km,withContext:Se}=Ae({key:"menu"});km(OE);const bA=km(TE,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),yA=Se(uh,"trigger",{forwardAsChild:!0});Se(Gf,"contextTrigger",{forwardAsChild:!0});const xA=Se(eh,"positioner",{forwardAsChild:!0}),CA=Se(dh,"separator",{forwardAsChild:!0}),SA=Se(jf,"content",{forwardAsChild:!0}),BR=Se(Wf,"arrowTip",{forwardAsChild:!0});Se(Mf,"arrow",{forwardAsChild:!0,defaultProps:{children:v.jsx(BR,{})}});Se(Uf,"indicator",{forwardAsChild:!0});const wA=Se(qf,"itemGroup",{forwardAsChild:!0}),EA=Se(Zf,"itemGroupLabel",{forwardAsChild:!0}),kA=Se(Yf,"item",{forwardAsChild:!0}),IA=Se(gh,"item",{forwardAsChild:!0});Se(Qf,"itemText",{forwardAsChild:!0});Se("kbd","itemCommand");const PA=Se(Jf,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:v.jsx(cR,{boxSize:"4"})}}),TA=Se(Hf,"item",{forwardAsChild:!0}),OA=Se(rh,"itemGroup",{forwardAsChild:!0}),RA=Se(th,"item",{forwardAsChild:!0}),[HR,Im]=Mr({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:jR,useClassNames:Pm,useStyles:Tm}=Ae({key:"nativeSelect"}),NA=jR("div","root",{wrapElement(e,t){const r=at(),n=!!(r?.disabled??t.disabled),o=!!(r?.invalid??t.invalid);return v.jsx(HR,{value:{disabled:n,invalid:o},children:e})}}),GR=U(xf,{},{forwardAsChild:!0}),AA=m.forwardRef(function(t,r){const{children:n,placeholder:o,unstyled:i,...s}=t,{disabled:a,invalid:l}=Im(),c=Tm(),d=Pm();return v.jsxs(GR,{disabled:a,"data-invalid":Ct(l),...s,ref:r,className:xe(d.field,t.className),css:[i?void 0:c.field,t.css],children:[o&&v.jsx("option",{value:"",children:o}),n]})});function VA(e){const{unstyled:t,...r}=e,n=Tm(),{disabled:o,invalid:i}=Im(),s=Pm();return v.jsx(U.div,{...r,"data-disabled":Ct(o),"data-invalid":Ct(i),className:xe(s.indicator,e.className),css:[t?void 0:n.indicator,e.css],children:e.children??v.jsx(dm,{})})}const{withRootProvider:Om,withContext:Je}=Ae({key:"popover"});Om(Nh);const _A=Om(Rh),LA=Je(Vh,"trigger",{forwardAsChild:!0}),FA=Je(kh,"positioner",{forwardAsChild:!0}),DA=Je(gl,"content",{forwardAsChild:!0}),UR=Je(Sh,"arrowTip",{forwardAsChild:!0}),zA=Je(Ch,"arrow",{forwardAsChild:!0,defaultProps:{children:v.jsx(UR,{})}}),$A=Je(ul,"closeTrigger",{forwardAsChild:!0});Je(Eh,"indicator",{forwardAsChild:!0});const MA=Je(Ah,"title",{forwardAsChild:!0});Je(wh,"description",{forwardAsChild:!0});const WA=Je("footer","footer"),BA=Je("header","header"),HA=Je("div","body"),jA=Je(xh,void 0,{forwardAsChild:!0}),{withProvider:Rm,withContext:mo}=Ae({key:"scrollArea"});Rm(jh,"root",{forwardAsChild:!0});const GA=Rm(Hh,"root",{forwardAsChild:!0}),UA=mo(Yh,"viewport",{forwardAsChild:!0}),YA=mo(Dh,"content",{forwardAsChild:!0}),YR=mo(Uh,"thumb",{forwardAsChild:!0}),XA=mo(Gh,"scrollbar",{forwardAsChild:!0,defaultProps:{children:v.jsx(YR,{})}});mo(zh,"corner",{forwardAsChild:!0});const{useRecipeResult:XR}=nt({key:"separator"}),KR=m.forwardRef(function(t,r){const{styles:n,className:o,props:i}=XR(t),s=t.orientation||"horizontal";return v.jsx(U.span,{ref:r,role:Xe(s)?"separator":"presentation","aria-orientation":Xe(s)?s:void 0,...pl(i,["orientation"]),className:xe(o,t.className),css:[n,t.css]})});KR.displayName="Separator";const qR=m.forwardRef(function(t,r){const{columns:n,minChildWidth:o,...i}=t,s=yr(),a=o?JR(o,s):QR(n);return v.jsx(gu,{ref:r,templateColumns:a,...i})});qR.displayName="SimpleGrid";function ZR(e){return typeof e=="number"?`${e}px`:e}function JR(e,t){return qi(e,r=>{const n=t.tokens.getVar(`sizes.${r}`,ZR(r));return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function QR(e){return qi(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withContext:eN}=nt({key:"skeleton"}),Cl=eN("div");Cl.displayName="Skeleton";const tN=m.forwardRef(function(t,r){const{size:n,...o}=t;return v.jsx(cu,{size:n,asChild:!0,ref:r,children:v.jsx(Cl,{...o})})});tN.displayName="SkeletonCircle";const rN=m.forwardRef(function(t,r){const{noOfLines:n=3,gap:o,rootProps:i,...s}=t;return v.jsx(Qi,{gap:o,width:"full",ref:r,...i,children:Array.from({length:n}).map((a,l)=>v.jsx(Cl,{height:"4",_last:{maxW:n===1?"100%":"80%"},...s},l))})});rN.displayName="SkeletonText";const nN=U("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});nN.displayName="Spacer";const oN=m.forwardRef(function(t,r){return v.jsx(Qi,{align:"center",...t,direction:"row",ref:r})});oN.displayName="HStack";const iN=m.forwardRef(function(t,r){return v.jsx(Qi,{align:"center",...t,direction:"column",ref:r})});iN.displayName="VStack";const{withProvider:Nm,withContext:Sl,useStyles:sN}=Ae({key:"switch"});Nm(ip,"root",{forwardAsChild:!0});const KA=Nm(op,"root",{forwardAsChild:!0});Sl(tp,"label",{forwardAsChild:!0});const aN=Sl(sp,"thumb",{forwardAsChild:!0}),qA=Sl(Qh,"control",{forwardAsChild:!0,defaultProps:{children:v.jsx(aN,{})}});m.forwardRef(function(t,r){const n=ln(),o=sN(),{fallback:i,children:s,unstyled:a,...l}=t;return v.jsx(U.span,{ref:r,"data-checked":Ct(n.checked),...l,css:[a?void 0:o.indicator,t.css],children:n.checked?s:i})});m.forwardRef(function(t,r){const n=ln(),{fallback:o,children:i,...s}=t;return v.jsx(U.span,{ref:r,"data-checked":Ct(n.checked),...s,children:n.checked?i:o})});const ZA=ep,{withProvider:Am,withContext:vo}=Ae({key:"tabs"});Am(pp,"root",{forwardAsChild:!0});const JA=Am(hp,"root",{forwardAsChild:!0}),QA=vo(up,"trigger",{forwardAsChild:!0}),eV=vo(lp,"content",{forwardAsChild:!0});vo("div","contentGroup");const tV=vo(dp,"list",{forwardAsChild:!0});vo(cp,"indicator",{forwardAsChild:!0});const{withContext:lN}=nt({key:"textarea"}),cN=lN(Cf);cN.displayName="Textarea";const{withProvider:dN,withContext:es,useStyles:uN}=Ae({key:"toast"}),rV=U(kp,{},{forwardAsChild:!0}),nV=dN(wp,"root",{forwardAsChild:!0}),oV=es(Cp,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:v.jsx(um,{})}}),iV=es(Ep,"title",{forwardAsChild:!0}),sV=es(Sp,"description",{forwardAsChild:!0}),aV=es(xp,"actionTrigger",{forwardAsChild:!0}),gN={warning:Ud,success:gR,error:Ud},lV=m.forwardRef(function(t,r){const{unstyled:n,...o}=t,i=dn(),s=uN(),a=gN[i.type];return a?v.jsx(a,{ref:r,...o,css:[n?void 0:s.indicator,t.css]}):null}),{withRootProvider:Vm,withContext:bo}=Ae({key:"tooltip"});Vm(KI);const cV=Vm(XI,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),dV=bo(Lp,"trigger",{forwardAsChild:!0}),uV=bo(Np,"positioner",{forwardAsChild:!0}),gV=bo(Rp,"content",{forwardAsChild:!0}),fN=bo(Op,"arrowTip",{forwardAsChild:!0}),fV=bo(Tp,"arrow",{forwardAsChild:!0,defaultProps:{children:v.jsx(fN,{})}});export{SA as $,QN as A,au as B,YN as C,HN as D,ZN as E,FR as F,JA as G,tV as H,wm as I,QA as J,eV as K,XN as L,KR as M,nN as N,DN as O,CN as P,$N as Q,NA as R,hm as S,yx as T,AA as U,iN as V,JN as W,bA as X,yA as Y,xA as Z,Al as _,mm as a,AN as a$,wA as a0,TA as a1,PA as a2,WR as a3,_A as a4,LA as a5,FA as a6,DA as a7,BA as a8,WA as a9,wN as aA,EN as aB,IN as aC,PN as aD,kN as aE,Cl as aF,jN as aG,KN as aH,cu as aI,kA as aJ,GA as aK,UA as aL,XA as aM,YR as aN,OA as aO,RA as aP,IA as aQ,CA as aR,zR as aS,YA as aT,vA as aU,wR as aV,EA as aW,aN as aX,TN as aY,ON as aZ,RN as a_,SR as aa,$A as ab,HA as ac,cN as ad,oN as ae,pR as af,jA as ag,zA as ah,UR as ai,cA as aj,dA as ak,VA as al,uA as am,gA as an,fA as ao,hA as ap,pA as aq,DR as ar,ER as as,yN as at,MA as au,KA as av,ZA as aw,qA as ax,qR as ay,TR as az,vm as b,NN as b0,VN as b1,MN as b2,BN as b3,WN as b4,eA as b5,iA as b6,tA as b7,rA as b8,lA as b9,nA as ba,oA as bb,sA as bc,dx as bd,aA as be,bN as bf,kT as bg,sR as bh,pN as bi,mA as c,SN as d,rV as e,nV as f,lV as g,Qi as h,iV as i,v as j,sV as k,aV as l,oV as m,cV as n,dV as o,uV as p,gV as q,fV as r,fN as s,_N as t,LN as u,FN as v,zN as w,qN as x,GN as y,UN as z};
|