apache-airflow-providers-edge3 1.4.1rc1__py3-none-any.whl → 1.5.0__py3-none-any.whl

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.
Files changed (24) hide show
  1. airflow/providers/edge3/__init__.py +1 -1
  2. airflow/providers/edge3/cli/api_client.py +9 -3
  3. airflow/providers/edge3/cli/worker.py +20 -10
  4. airflow/providers/edge3/executors/edge_executor.py +6 -4
  5. airflow/providers/edge3/get_provider_info.py +7 -0
  6. airflow/providers/edge3/models/edge_job.py +1 -1
  7. airflow/providers/edge3/models/edge_worker.py +21 -7
  8. airflow/providers/edge3/plugins/edge_executor_plugin.py +1 -2
  9. airflow/providers/edge3/plugins/www/dist/main.umd.cjs +8 -117
  10. airflow/providers/edge3/plugins/www/package.json +18 -18
  11. airflow/providers/edge3/plugins/www/pnpm-lock.yaml +1291 -1185
  12. airflow/providers/edge3/plugins/www/src/main.tsx +0 -5
  13. airflow/providers/edge3/plugins/www/src/utils/index.ts +0 -1
  14. airflow/providers/edge3/worker_api/routes/_v2_compat.py +1 -0
  15. airflow/providers/edge3/worker_api/routes/jobs.py +4 -5
  16. airflow/providers/edge3/worker_api/routes/ui.py +8 -3
  17. airflow/providers/edge3/worker_api/routes/worker.py +8 -4
  18. {apache_airflow_providers_edge3-1.4.1rc1.dist-info → apache_airflow_providers_edge3-1.5.0.dist-info}/METADATA +10 -8
  19. {apache_airflow_providers_edge3-1.4.1rc1.dist-info → apache_airflow_providers_edge3-1.5.0.dist-info}/RECORD +23 -23
  20. apache_airflow_providers_edge3-1.5.0.dist-info/licenses/NOTICE +5 -0
  21. airflow/providers/edge3/plugins/www/src/utils/tokenHandler.ts +0 -51
  22. {apache_airflow_providers_edge3-1.4.1rc1.dist-info → apache_airflow_providers_edge3-1.5.0.dist-info}/WHEEL +0 -0
  23. {apache_airflow_providers_edge3-1.4.1rc1.dist-info → apache_airflow_providers_edge3-1.5.0.dist-info}/entry_points.txt +0 -0
  24. {airflow/providers/edge3 → apache_airflow_providers_edge3-1.5.0.dist-info/licenses}/LICENSE +0 -0
@@ -1,123 +1,14 @@
1
- (function(f,O){typeof exports=="object"&&typeof module<"u"?module.exports=O(require("react/jsx-runtime"),require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-router-dom","react-dom"],O):(f=typeof globalThis<"u"?globalThis:f||self,f.AirflowPlugin=O(f.ReactJSXRuntime,f.React,f.ReactRouterDOM,f.ReactDOM))})(this,(function(f,O,Ze,Zr){"use strict";function Qg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=Qg(O);function Qa(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Jg=/^((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)-.*))$/,Zg=Qa(function(e){return Jg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function ep(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 tp(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 np=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(tp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ep(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Oe="-ms-",eo="-moz-",Y="-webkit-",Ja="comm",zi="rule",Mi="decl",rp="@import",Za="@keyframes",op="@layer",ip=Math.abs,to=String.fromCharCode,sp=Object.assign;function ap(e,t){return ke(e,0)^45?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}function el(e){return e.trim()}function lp(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,n){return e.replace(t,n)}function $i(e,t){return e.indexOf(t)}function ke(e,t){return e.charCodeAt(t)|0}function dr(e,t,n){return e.slice(t,n)}function st(e){return e.length}function Bi(e){return e.length}function no(e,t){return t.push(e),e}function cp(e,t){return e.map(t).join("")}var ro=1,Rn=1,tl=0,Ae=0,ce=0,An="";function oo(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ro,column:Rn,length:s,return:""}}function hr(e,t){return sp(oo("",null,null,"",null,null,0),e,{length:-e.length},t)}function up(){return ce}function dp(){return ce=Ae>0?ke(An,--Ae):0,Rn--,ce===10&&(Rn=1,ro--),ce}function $e(){return ce=Ae<tl?ke(An,Ae++):0,Rn++,ce===10&&(Rn=1,ro++),ce}function at(){return ke(An,Ae)}function io(){return Ae}function fr(e,t){return dr(An,e,t)}function gr(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 nl(e){return ro=Rn=1,tl=st(An=e),Ae=0,[]}function rl(e){return An="",e}function so(e){return el(fr(Ae-1,Wi(e===91?e+2:e===40?e+1:e)))}function hp(e){for(;(ce=at())&&ce<33;)$e();return gr(e)>2||gr(ce)>3?"":" "}function fp(e,t){for(;--t&&$e()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return fr(e,io()+(t<6&&at()==32&&$e()==32))}function Wi(e){for(;$e();)switch(ce){case e:return Ae;case 34:case 39:e!==34&&e!==39&&Wi(ce);break;case 40:e===41&&Wi(e);break;case 92:$e();break}return Ae}function gp(e,t){for(;$e()&&e+ce!==57;)if(e+ce===84&&at()===47)break;return"/*"+fr(t,Ae-1)+"*"+to(e===47?e:$e())}function pp(e){for(;!gr(at());)$e();return fr(e,Ae)}function mp(e){return rl(ao("",null,null,null,[""],e=nl(e),0,[0],e))}function ao(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,h=s,d=0,m=0,g=0,p=1,v=1,y=1,C=0,b="",S=o,x=i,E=r,I=b;v;)switch(g=C,C=$e()){case 40:if(g!=108&&ke(I,h-1)==58){$i(I+=X(so(C),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:I+=so(C);break;case 9:case 10:case 13:case 32:I+=hp(g);break;case 92:I+=fp(io()-1,7);continue;case 47:switch(at()){case 42:case 47:no(vp(gp($e(),io()),t,n),l);break;default:I+="/"}break;case 123*p:a[c++]=st(I)*y;case 125*p:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+u:y==-1&&(I=X(I,/\f/g,"")),m>0&&st(I)-h&&no(m>32?il(I+";",r,n,h-1):il(X(I," ","")+";",r,n,h-2),l);break;case 59:I+=";";default:if(no(E=ol(I,t,n,c,u,o,a,b,S=[],x=[],h),i),C===123)if(u===0)ao(I,t,E,E,S,i,h,a,x);else switch(d===99&&ke(I,3)===110?100:d){case 100:case 108:case 109:case 115:ao(e,E,E,r&&no(ol(e,E,E,0,0,o,a,b,o,S=[],h),x),o,x,h,a,r?S:x);break;default:ao(I,E,E,E,[""],x,0,a,x)}}c=u=m=0,p=y=1,b=I="",h=s;break;case 58:h=1+st(I),m=g;default:if(p<1){if(C==123)--p;else if(C==125&&p++==0&&dp()==125)continue}switch(I+=to(C),C*p){case 38:y=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(st(I)-1)*y,y=1;break;case 64:at()===45&&(I+=so($e())),d=at(),u=h=st(b=I+=pp(io())),C++;break;case 45:g===45&&st(I)==2&&(p=0)}}return i}function ol(e,t,n,r,o,i,s,a,l,c,u){for(var h=o-1,d=o===0?i:[""],m=Bi(d),g=0,p=0,v=0;g<r;++g)for(var y=0,C=dr(e,h+1,h=ip(p=s[g])),b=e;y<m;++y)(b=el(p>0?d[y]+" "+C:X(C,/&\f/g,d[y])))&&(l[v++]=b);return oo(e,t,n,o===0?zi:a,l,c,u)}function vp(e,t,n){return oo(e,t,n,Ja,to(up()),dr(e,2,-2),0)}function il(e,t,n,r){return oo(e,t,n,Mi,dr(e,0,r),dr(e,r+1,-1),r)}function Vn(e,t){for(var n="",r=Bi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bp(e,t,n,r){switch(e.type){case op:if(e.children.length)break;case rp:case Mi:return e.return=e.return||e.value;case Ja:return"";case Za:return e.return=e.value+"{"+Vn(e.children,r)+"}";case zi:e.value=e.props.join(",")}return st(n=Vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yp(e){var t=Bi(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function xp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Cp=function(t,n,r){for(var o=0,i=0;o=i,i=at(),o===38&&i===12&&(n[r]=1),!gr(i);)$e();return fr(t,Ae)},kp=function(t,n){var r=-1,o=44;do switch(gr(o)){case 0:o===38&&at()===12&&(n[r]=1),t[r]+=Cp(Ae-1,n,r);break;case 2:t[r]+=so(o);break;case 4:if(o===44){t[++r]=at()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=to(o)}while(o=$e());return t},Sp=function(t,n){return rl(kp(nl(t),n))},sl=new WeakMap,wp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!sl.get(r))&&!o){sl.set(t,!0);for(var i=[],s=Sp(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Ep=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function al(e,t){switch(ap(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+eo+e+Oe+e+e;case 6828:case 4268:return Y+e+Oe+e+e;case 6165:return Y+e+Oe+"flex-"+e+e;case 5187:return Y+e+X(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+Oe+"flex-$1$2")+e;case 5443:return Y+e+Oe+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return Y+e+Oe+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+Oe+X(e,"shrink","negative")+e;case 5292:return Y+e+Oe+X(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+X(e,"-grow","")+Y+e+Oe+X(e,"grow","positive")+e;case 4554:return Y+X(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+Oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,Y+"$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(st(e)-1-t>6)switch(ke(e,t+1)){case 109:if(ke(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+eo+(ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$i(e,"stretch")?al(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ke(e,t+1)!==115)break;case 6444:switch(ke(e,st(e)-3-(~$i(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(ke(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Oe+e+e}return e}var Op=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Mi:t.return=al(t.value,t.length);break;case Za:return Vn([hr(t,{value:X(t.value,"@","@"+Y)})],o);case zi:if(t.length)return cp(t.props,function(i){switch(lp(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vn([hr(t,{props:[X(i,/:(read-\w+)/,":"+eo+"$1")]})],o);case"::placeholder":return Vn([hr(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),hr(t,{props:[X(i,/:(plac\w+)/,":"+eo+"$1")]}),hr(t,{props:[X(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},Ip=[Op],Tp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ip,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(p)});var l,c=[wp,Ep];{var u,h=[bp,xp(function(p){u.insert(p)})],d=yp(c.concat(o,h)),m=function(v){return Vn(mp(v),d)};l=function(v,y,C,b){u=C,m(v?v+"{"+y.styles+"}":y.styles),b&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new np({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(a),g};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hi={exports:{}},Q={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var ll;function Np(){if(ll)return Q;ll=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function b(x){if(typeof x=="object"&&x!==null){var E=x.$$typeof;switch(E){case t:switch(x=x.type,x){case l:case c:case r:case i:case o:case h:return x;default:switch(x=x&&x.$$typeof,x){case a:case u:case g:case m:case s:return x;default:return E}}case n:return E}}}function S(x){return b(x)===c}return Q.AsyncMode=l,Q.ConcurrentMode=c,Q.ContextConsumer=a,Q.ContextProvider=s,Q.Element=t,Q.ForwardRef=u,Q.Fragment=r,Q.Lazy=g,Q.Memo=m,Q.Portal=n,Q.Profiler=i,Q.StrictMode=o,Q.Suspense=h,Q.isAsyncMode=function(x){return S(x)||b(x)===l},Q.isConcurrentMode=S,Q.isContextConsumer=function(x){return b(x)===a},Q.isContextProvider=function(x){return b(x)===s},Q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Q.isForwardRef=function(x){return b(x)===u},Q.isFragment=function(x){return b(x)===r},Q.isLazy=function(x){return b(x)===g},Q.isMemo=function(x){return b(x)===m},Q.isPortal=function(x){return b(x)===n},Q.isProfiler=function(x){return b(x)===i},Q.isStrictMode=function(x){return b(x)===o},Q.isSuspense=function(x){return b(x)===h},Q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===i||x===o||x===h||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===m||x.$$typeof===s||x.$$typeof===a||x.$$typeof===u||x.$$typeof===v||x.$$typeof===y||x.$$typeof===C||x.$$typeof===p)},Q.typeOf=b,Q}var cl;function Rp(){return cl||(cl=1,Hi.exports=Np()),Hi.exports}var ji,ul;function Ap(){if(ul)return ji;ul=1;var e=Rp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$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]=r,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;function m(g,p,v){if(typeof p!="string"){if(d){var y=h(p);y&&y!==d&&m(g,y,v)}var C=l(p);c&&(C=C.concat(c(p)));for(var b=s(g),S=s(p),x=0;x<C.length;++x){var E=C[x];if(!n[E]&&!(v&&v[E])&&!(S&&S[E])&&!(b&&b[E])){var I=u(p,E);try{a(g,E,I)}catch{}}}}return g}return ji=m,ji}Ap();var Vp=!0;function dl(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ui=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Vp===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Gi=function(t,n,r){Ui(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function _p(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Lp={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},Fp=/[A-Z]|^ms/g,Dp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hl=function(t){return t.charCodeAt(1)===45},fl=function(t){return t!=null&&typeof t!="boolean"},qi=Qa(function(e){return hl(e)?e:e.replace(Fp,"-$&").toLowerCase()}),gl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Dp,function(r,o,i){return lt={name:o,styles:i,next:lt},o})}return Lp[t]!==1&&!hl(t)&&typeof n=="number"&&n!==0?n+"px":n};function pr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return lt={name:o.name,styles:o.styles,next:lt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)lt={name:s.name,styles:s.styles,next:lt},s=s.next;var a=i.styles+";";return a}return zp(e,t,n)}case"function":{if(e!==void 0){var l=lt,c=n(e);return lt=l,pr(e,t,c)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function zp(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=pr(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":fl(a)&&(r+=qi(i)+":"+gl(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])&&(r+=qi(i)+":"+gl(i,s[l])+";");else{var c=pr(e,t,s);switch(i){case"animation":case"animationName":{r+=qi(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var pl=/label:\s*([^\s;{]+)\s*(;|$)/g,lt;function Ki(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";lt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=pr(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=pr(n,t,e[a]),r){var l=i;o+=l[a]}pl.lastIndex=0;for(var c="",u;(u=pl.exec(o))!==null;)c+="-"+u[1];var h=_p(o)+c;return{name:h,styles:o,next:lt}}var Mp=function(t){return t()},ml=D.useInsertionEffect?D.useInsertionEffect:!1,vl=ml||Mp,bl=ml||D.useLayoutEffect,yl=D.createContext(typeof HTMLElement<"u"?Tp({key:"css"}):null);yl.Provider;var Yi=function(t){return O.forwardRef(function(n,r){var o=O.useContext(yl);return t(n,o,r)})},Xi=D.createContext({}),Qi={}.hasOwnProperty,Ji="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$p=function(t,n){var r={};for(var o in n)Qi.call(n,o)&&(r[o]=n[o]);return r[Ji]=t,r},Bp=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ui(n,r,o),vl(function(){return Gi(n,r,o)}),null},Wp=Yi(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ji],i=[r],s="";typeof e.className=="string"?s=dl(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Ki(i,void 0,D.useContext(Xi));s+=t.key+"-"+a.name;var l={};for(var c in e)Qi.call(e,c)&&c!=="css"&&c!==Ji&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),D.createElement(D.Fragment,null,D.createElement(Bp,{cache:t,serialized:a,isStringTag:typeof o=="string"}),D.createElement(o,l))}),Hp=Wp,xl=function(t,n){var r=arguments;if(n==null||!Qi.call(n,"css"))return D.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Hp,i[1]=$p(t,n);for(var s=2;s<o;s++)i[s]=r[s];return D.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(xl||(xl={}));var Cl=Yi(function(e,t){var n=e.styles,r=Ki([n],void 0,D.useContext(Xi)),o=D.useRef();return bl(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+" "+r.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]),bl(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&Gi(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function jp(...e){return function(...n){e.forEach(r=>r?.(...n))}}const Up=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),Gp=/^on[A-Z]/;function mr(...e){let t={};for(let n of e){for(let r in t){if(Gp.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=jp(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=Up(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}const qp=parseInt(D.version.split(".")[0],10)>=19;function Zi(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 Kp(...e){const t=e.filter(n=>n!=null);if(qp){const n=new Map;return r=>(t.forEach(o=>{const i=Zi(o,r);i&&n.set(o,i)}),()=>{t.forEach(o=>{const i=n.get(o);i&&typeof i=="function"?i():Zi(o,null)}),n.clear()})}else return n=>{t.forEach(r=>{Zi(r,n)})}}function vr(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const Ge=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function Yp(e){return e.default||e}const Ve=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),ct=e=>typeof e=="string",es=e=>typeof e=="function";function Xp(e){const t=D.version;return!ct(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const ts=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function Qp(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function _n(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=O.createContext(s);a.displayName=t;function l(){const c=O.useContext(a);if(!c&&n){const u=new Error(i??Qp(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[Jp,lo]=_n({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Zp(e){const{value:t,children:n}=e;return f.jsxs(Jp,{value:t,children:[!t._config.disableLayers&&f.jsx(Cl,{styles:t.layers.atRule}),f.jsx(Cl,{styles:t._global}),n]})}const em=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},Ln=(e,t)=>{const n=es(t)?t:r=>t.includes(r);return em(e,n)},tm=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function nm(e){return typeof e=="string"&&tm.has(e)}function rm(e,t,n){const{css:r,isValidProperty:o}=lo(),{children:i,...s}=e,a=O.useMemo(()=>{const[d,m]=Ln(s,C=>n(C,t.variantKeys)),[g,p]=Ln(m,t.variantKeys),[v,y]=Ln(p,o);return{forwardedProps:d,variantProps:g,styleProps:v,elementProps:y}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=O.useMemo(()=>{const d={...a.variantProps};return t.variantKeys.includes("colorPalette")||(d.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(d.orientation=s.orientation),t(d)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:O.useMemo(()=>r(u,...om(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const om=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),im=Yp(Zg),sm=e=>e!=="theme",am=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let lm=typeof document<"u";const kl=({cache:e,serialized:t,isStringTag:n})=>{Ui(e,t,n);const r=vl(()=>Gi(e,t,n));if(!lm&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=Ge(o,i.name),i=i.next;return f.jsx("style",{"data-emotion":Ge(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},Sl={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"]},cm=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ns=((e,t={},n={})=>{if(cm(Sl,e)){n.forwardProps||(n.forwardProps=[]);const c=Sl[e];n.forwardProps=ts([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=Yi((c,u,h)=>{const{cva:d,isValidProperty:m}=lo(),g=t.__cva__?t:d(t),p=um(e.__emotion_cva,g),v=z=>(H,J)=>z.includes(H)?!0:!J?.includes(H)&&!m(H);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=v(n.forwardProps));const y=(z,H)=>{const J=typeof e=="string"&&e.charCodeAt(0)>96?im:sm,ee=!H?.includes(z)&&!m(z);return J(z)&&ee},C=am(e,n,r)||y,b=D.useMemo(()=>Object.assign({},n.defaultProps,vr(c)),[c]),{props:S,styles:x}=rm(b,p,C);let E="",I=[x],P=S;if(S.theme==null){P={};for(let z in S)P[z]=S[z];P.theme=D.useContext(Xi)}typeof S.className=="string"?E=dl(u.registered,I,S.className):S.className!=null&&(E=Ge(E,S.className));const A=Ki(a.concat(I),u.registered,P);A.styles&&(E=Ge(E,`${u.key}-${A.name}`)),s!==void 0&&(E=Ge(E,s));const V=!C("as");let N=V&&S.as||o,k={};for(let z in S)if(!(V&&z==="as")){if(nm(z)){const H=z.replace("html","").toLowerCase();k[H]=S[z];continue}C(z)&&(k[z]=S[z])}let R=E.trim();R?k.className=R:Reflect.deleteProperty(k,"className"),k.ref=h;const F=n.forwardAsChild||n.forwardProps?.includes("asChild");if(S.asChild&&!F){const z=D.isValidElement(S.children)?D.Children.only(S.children):D.Children.toArray(S.children).find(D.isValidElement);if(!z)throw new Error("[chakra-ui > factory] No valid child found");N=z.type,k.children=null,Reflect.deleteProperty(k,"asChild"),k=mr(k,z.props),k.ref=Kp(h,Xp(z))}return k.as&&F?(k.as=void 0,f.jsxs(D.Fragment,{children:[f.jsx(kl,{cache:u,serialized:A,isStringTag:typeof N=="string"}),f.jsx(N,{asChild:!0,...k,children:f.jsx(S.as,{children:k.children})})]})):f.jsxs(D.Fragment,{children:[f.jsx(kl,{cache:u,serialized:A,isStringTag:typeof N=="string"}),f.jsx(N,{...k})]})});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=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),rs=new Map,ve=new Proxy(ns,{apply(e,t,n){return ns(...n)},get(e,t){return rs.has(t)||rs.set(t,ns(t)),rs.get(t)}}),um=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),br=ve("div");br.displayName="Box";const dm=Object.freeze({}),hm=Object.freeze({});function fm(e){const{key:t,recipe:n}=e,r=lo();return O.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const gm=e=>e.charAt(0).toUpperCase()+e.slice(1);function Vt(e){const{key:t,recipe:n}=e,r=gm(t||n.className||"Component"),[o,i]=_n({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...h}=c,d=fm({key:t,recipe:h.recipe||n}),[m,g]=O.useMemo(()=>d.splitVariantProps(h),[d,h]);return{styles:u?dm:d(m),className:d.className,props:g}}const a=(c,u)=>{const h=ve(c,{},u),d=O.forwardRef((m,g)=>{const p=i(),v=O.useMemo(()=>mr(p,m),[m,p]),{styles:y,className:C,props:b}=s(v);return f.jsx(h,{...b,ref:g,css:[y,v.css],className:Ge(C,v.className)})});return d.displayName=c.displayName||c.name,d};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function co(e){return e==null?[]:Array.isArray(e)?e:[e]}var yr=e=>e[0],os=e=>e[e.length-1],pm=(e,t)=>e.indexOf(t)!==-1,qt=(e,...t)=>e.concat(t),Kt=(e,...t)=>e.filter(n=>!t.includes(n)),wl=(e,t)=>e.filter((n,r)=>r!==t),_t=e=>Array.from(new Set(e)),is=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},Fn=(e,t)=>pm(e,t)?Kt(e,t):qt(e,t);function El(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function mm(e,t,n={}){return e[El(e,t,n)]}function vm(e,t,n={}){const{step:r=1,loop:o=!0}=n;return El(e,t,{step:-r,loop:o})}function bm(e,t,n={}){return e[vm(e,t,n)]}function Ol(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var Il=e=>e?.constructor.name==="Array",ym=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!_e(e[n],t[n]))return!1;return!0},_e=(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(Il(e)&&Il(t))return ym(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;o<r;o++)if(!Reflect.has(e,n[o]))return!1;for(let o=0;o<r;o++){const i=n[o];if(!_e(e[i],t[i]))return!1}return!0},xr=e=>Array.isArray(e),xm=e=>e===!0||e===!1,Tl=e=>e!=null&&typeof e=="object",Yt=e=>Tl(e)&&!xr(e),uo=e=>typeof e=="string",Xt=e=>typeof e=="function",Cm=e=>e==null,Lt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),km=e=>Object.prototype.toString.call(e),Pl=Function.prototype.toString,Sm=Pl.call(Object),wm=e=>{if(!Tl(e)||km(e)!="[object Object]"||Im(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Lt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Pl.call(n)==Sm},Em=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Om=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Im=e=>Em(e)||Om(e),ho=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Tm=e=>e(),Pm=()=>{},fo=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},Nm=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Ct(e,t,...n){if(e in t){const o=t[e];return Xt(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Ct),r}var Nl=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,Nl),t?.()}},{floor:Rl,abs:Al,round:go,min:Rm,max:Am,pow:Vm,sign:_m}=Math,ss=e=>Number.isNaN(e),Ft=e=>ss(e)?0:e,Vl=(e,t)=>(e%t+t)%t,Lm=(e,t)=>(e%t+t)%t,Fm=(e,t)=>Ft(e)>=t,Dm=(e,t)=>Ft(e)<=t,zm=(e,t,n)=>{const r=Ft(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},Mm=(e,t,n)=>go((Ft(e)-t)/n)*n+t,Le=(e,t,n)=>Rm(Am(Ft(e),t),n),$m=(e,t,n)=>(Ft(e)-t)/(n-t),Bm=(e,t,n,r)=>Le(Mm(e*(n-t)+t,t,r),t,n),_l=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=Vm(10,i);n=go(n*s)/s}return n},as=(e,t)=>typeof t=="number"?Rl(e*t+.5)/t:go(e),Ll=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=Al(s)*2>=r?e+_m(s)*(r-Al(s)):e-s;if(a=_l(a,r),!ss(o)&&a<o)a=o;else if(!ss(i)&&a>i){const l=Rl((i-o)/r),c=o+l*r;a=l<=0||c<o?i:c}return _l(a,r)},oe=(e,t=0,n=10)=>{const r=Math.pow(n,t);return go(e*r)/r},Fl=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Dl=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(Fl(e),Fl(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},Wm=(e,t)=>Dl(Ft(e),"+",t),Hm=(e,t)=>Dl(Ft(e),"-",t);function po(e){if(!wm(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=po(o))}return n}function jm(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,h)=>{t(n[u],h)||(n[u]=h,i())},update:u=>{let h=!1;for(const d in u){const m=u[d];m!==void 0&&!t(n[d],m)&&(n[d]=m,h=!0)}h&&i()},snapshot:()=>({...n})}}function Dn(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function zl(e,t){if(e==null)throw new Error(t())}function Um(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=O.createContext(s);a.displayName=t;function l(){const c=O.useContext(a);if(!c&&n){const u=new Error(i??Um(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[rP,Ml]=zn({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function Gm(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function qm(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var $l=e=>Math.max(0,Math.min(1,e)),Km=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Bl=()=>{},mo=e=>typeof e=="object"&&e!==null,Ym=2147483647,Xm=1,Qm=9,Jm=11,Ie=e=>mo(e)&&e.nodeType===Xm&&typeof e.nodeName=="string",vo=e=>mo(e)&&e.nodeType===Qm,Zm=e=>mo(e)&&e===e.window,Wl=e=>Ie(e)?e.localName||"":"#document";function ev(e){return["html","body","#document"].includes(Wl(e))}var tv=e=>mo(e)&&e.nodeType!==void 0,Qt=e=>tv(e)&&e.nodeType===Jm&&"host"in e,nv=e=>Ie(e)&&e.localName==="input",rv=e=>!!e?.matches("a[href]"),ov=e=>Ie(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function iv(e){if(!e)return!1;const t=e.getRootNode();return Cr(t)===e}var sv=/(textarea|select)/;function Hl(e){if(e==null||!Ie(e))return!1;try{return nv(e)&&e.selectionStart!=null||sv.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Dt(e,t){if(!e||!t||!Ie(e)||!Ie(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Qt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ne(e){return vo(e)?e:Zm(e)?e.document:e?.ownerDocument??document}function av(e){return Ne(e).documentElement}function he(e){return Qt(e)?he(e.host):vo(e)?e.defaultView??window:Ie(e)?e.ownerDocument?.defaultView??window:window}function Cr(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function lv(e){if(Wl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qt(e)&&e.host||av(e);return Qt(t)?t.host:t}function ls(e){let t;try{if(t=e.getRootNode({composed:!0}),vo(t)||Qt(t))return t}catch{}return e.ownerDocument??document}var cs=new WeakMap;function kr(e){return cs.has(e)||cs.set(e,he(e).getComputedStyle(e)),cs.get(e)}var us=new Set(["menu","listbox","dialog","grid","tree","region"]),cv=e=>us.has(e),jl=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Ul(e,t){const n=new Set,r=ls(e),o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=jl(a);for(const c of l){if(!c||n.has(c))continue;n.add(c);const u=r.getElementById(c);if(u){const h=u.getAttribute("role"),d=u.getAttribute("aria-modal")==="true";if(h&&cv(h)&&!d&&(u===t||u.contains(t)||o(u)))return!0}}}return!1};return o(e)}function Gl(e,t){const n=ls(e),r=new Set,o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=jl(a);for(const c of l){if(!c||r.has(c))continue;r.add(c);const u=n.getElementById(c);if(u){const h=u.getAttribute("role"),d=u.getAttribute("aria-modal")==="true";h&&us.has(h)&&!d&&(t(u),o(u))}}}};o(e)}function uv(e){const t=new Set;return Gl(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function dv(e){const t=e.getAttribute("role");return!!(t&&us.has(t))}function hv(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function fv(e){return hv(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function gv(e){if(!e.id)return!1;const t=ls(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&dv(e))}var bo=()=>typeof document<"u";function pv(){return navigator.userAgentData?.platform??navigator.platform}function mv(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ds=e=>bo()&&e.test(pv()),ql=e=>bo()&&e.test(mv()),vv=e=>bo()&&e.test(navigator.vendor),Kl=()=>bo()&&!!navigator.maxTouchPoints,bv=()=>ds(/^iPhone/i),yv=()=>ds(/^iPad/i)||xo()&&navigator.maxTouchPoints>1,yo=()=>bv()||yv(),xv=()=>xo()||yo(),xo=()=>ds(/^Mac/i),Yl=()=>xv()&&vv(/apple/i),Cv=()=>ql(/Firefox/i),kv=()=>ql(/Android/i);function Sv(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Be(e){return Sv(e)?.[0]??e.target}function wv(e){return Tv(e).isComposing||e.keyCode===229}function Ev(e){return e.pointerType===""&&e.isTrusted?!0:kv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ov=e=>e.button===2||xo()&&e.ctrlKey&&e.button===0,Iv=e=>"touches"in e&&e.touches.length>0;function Tv(e){return e.nativeEvent??e}function Xl(e,t="client"){const n=Iv(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var ae=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function Pv(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=he(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function Nv(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Jt(e,t,n="value"){if(!e)return;const r=Nv(e);r&&Pv(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function Ql(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=he(e);e instanceof o.HTMLInputElement&&(Jt(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Rv(e){return Av(e)?e.form:e.closest("form")}function Av(e){return e.matches("textarea, input, select, button")}function Vv(e,t){if(!e)return;const n=Rv(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function _v(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=he(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Co(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[Vv(e,r),_v(e,n)];return()=>o.forEach(i=>i?.())}var Jl=e=>Ie(e)&&e.tagName==="IFRAME",Lv=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),Fv=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,hs="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",Zl=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(hs));(t==!0||t=="if-empty"&&n.length===0)&&Ie(e)&&zt(e)&&n.unshift(e);const o=n.filter(zt);return o.forEach((i,s)=>{if(Jl(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Zl(a))}}),o};function zt(e){return!e||e.closest("[inert]")?!1:e.matches(hs)&&ov(e)}function fs(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(hs)).filter(Zt);return r.forEach((o,i)=>{if(Jl(o)&&o.contentDocument){const s=o.contentDocument.body,a=fs(s);r.splice(i,1,...a)}}),r.length,r}function Zt(e){return e!=null&&e.tabIndex>0?!0:zt(e)&&!Fv(e)}function Sr(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Hl(e))&&!Lv(e)?0:e.tabIndex}function gs(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=fs(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function ps(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function j(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function Dv(e,t,n){const r=j(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function zv(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function wr(e,t){const{defer:n}=t,r=n?j:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(zv(i,t))})),()=>{o.forEach(i=>i?.())}}function ec(e){const t=()=>{const n=he(e);e.dispatchEvent(new n.MouseEvent("click"))};Cv()?Dv(e,"keyup",t):queueMicrotask(t)}function ko(e){const t=lv(e);return ev(t)?Ne(t).body:Ie(t)&&ms(t)?t:ko(t)}function tc(e,t=[]){const n=ko(e),r=n===e.ownerDocument.body,o=he(n);return r?t.concat(o,o.visualViewport||[],ms(n)?n:[]):t.concat(n,tc(n,[]))}var Mv=/auto|scroll|overlay|hidden|clip/,$v=new Set(["inline","contents"]);function ms(e){const t=he(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return Mv.test(n+o+r)&&!$v.has(i)}function Bv(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Er(e,t){const{rootEl:n,...r}=t||{};!e||!n||!ms(n)||!Bv(n)||e.scrollIntoView(r)}function nc(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:$l(s.x/o),y:$l(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:h="horizontal",inverted:d}=c,m=typeof d=="object"?d.x:d,g=typeof d=="object"?d.y:d;return h==="horizontal"?u==="rtl"||m?1-a.x:a.x:g?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function Wv(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[ae(e,"pointerlockchange",i,!1),ae(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var Mn="default",vs="",So=new WeakMap;function Hv(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return yo()?(Mn==="default"&&(vs=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Mn="disabled"):t&&(So.set(t,t.style.userSelect),t.style.userSelect="none"),()=>jv({target:t,doc:r})}function jv(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(yo()){if(Mn!=="disabled")return;Mn="restoring",setTimeout(()=>{ps(()=>{Mn==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=vs||""),vs="",Mn="default")})},300)}else if(t&&So.has(t)){const i=So.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),So.delete(t)}}function rc(e={}){const{defer:t,target:n,...r}=e,o=t?j:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(Hv({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function Uv(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=a=>{const l=Xl(a),c=Math.sqrt(l.x**2+l.y**2),u=a.pointerType==="touch"?10:5;if(!(c<u)){if(a.pointerType==="mouse"&&a.button===0){i(a);return}n({point:l,event:a})}},i=a=>{const l=Xl(a);r({point:l,event:a})},s=[ae(e,"pointermove",o,!1),ae(e,"pointerup",i,!1),ae(e,"pointercancel",i,!1),ae(e,"contextmenu",i,!1),rc({doc:e})];return()=>{s.forEach(a=>a())}}function $n(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Gv(e,t){return e?.querySelector(t)??null}var bs=e=>e.id;function qv(e,t,n=bs){return e.find(r=>n(r)===t)}function wo(e,t,n=bs){const r=qv(e,t,n);return r?e.indexOf(r):-1}function oc(e,t,n=!0){let r=wo(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function ic(e,t,n=!0){let r=wo(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var Kv=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Yv=e=>Kv(e.dataset?.valuetext??e.textContent??""),Xv=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Qv(e,t,n,r=bs){const o=n?wo(e,n,r):-1;let i=n?Km(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>Xv(Yv(a),t))}function Eo(e,t){if(!e)return Bl;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function Jv(e,t,n){if(!e)return Bl;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function Zv(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a;let u=e.slice();const h=Qv(u,c,r,s);function d(){clearTimeout(n.timer),n.timer=-1}function m(g){n.keysSoFar=g,d(),g!==""&&(n.timer=+setTimeout(()=>{m(""),d()},i))}return m(a),h}var Bn=Object.assign(Zv,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:e0});function e0(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function t0(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function n0(e,t){const{timeout:n,rootNode:r}=t,o=he(r),i=Ne(r),s=new o.AbortController;return t0(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var r0=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),o0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,sc=e=>{const t={};let n;for(;n=o0.exec(e);)t[n[1]]=n[2];return t},i0=(e,t)=>{if(uo(e)){if(uo(t))return`${e};${t}`;e=sc(e)}else uo(t)&&(t=sc(t));return Object.assign({},e??{},t??{})};function qe(...e){let t={};for(let n of e){if(!n)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof n[o]=="function"){t[o]=fo(n[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=r0(t[o],n[o]);continue}if(o==="style"){t[o]=i0(t[o],n[o]);continue}t[o]=n[o]!==void 0?n[o]:t[o]}for(let o in n)t[o]===void 0&&(t[o]=n[o]);const r=Object.getOwnPropertySymbols(n);for(let o of r)t[o]=n[o]}return t}function ac(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!_e(r[c],l)))&&(r=s,o=t(s,i)),o}}function kt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function oP(e){return e}function ys(){return{guards:kt(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var Wn=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Wn||{}),xs="__init__";function s0(e){const t=()=>e.getRootNode?.()??document,n=()=>Ne(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>Cr(t()),isActiveElement:iv,getById:s=>t().getElementById(s)}}function Oo(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function a0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Cs=e=>{const t=O.memo(O.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return O.createElement(e,{...s,ref:r},i);if(!O.isValidElement(i))return null;const a=O.Children.only(i),l=a0(a);return O.cloneElement(a,{...qe(s,a.props),ref:r?Oo(r,l):l})}));return t.displayName=e.displayName||e.name,t},St=(()=>{const e=new Map;return new Proxy(Cs,{apply(t,n,r){return Cs(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Cs(r)),e.get(r)}})})(),[sP,l0]=zn({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),lc=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),cc=e=>lc()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function c0(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var M=()=>e=>Array.from(new Set(e));function u0(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var d0={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({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)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",kr(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});j(()=>{const s=Io(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{j(()=>{e.set("prevAnimationName",Io(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{const o=t.get("node");if(!o)return;const i=l=>{(l.composedPath?.()?.[0]??l.target)===o&&e.set("prevAnimationName",Io(t.get("styles")))},s=l=>{const c=Io(t.get("styles"));Be(l)===o&&c===e.get("unmountAnimationName")&&!r("present")&&n({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",i),o.addEventListener("animationcancel",s),o.addEventListener("animationend",s);const a=Eo(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",s),o.removeEventListener("animationend",s),ps(()=>a())}}}}};function Io(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var uc=typeof globalThis.document<"u"?O.useLayoutEffect:O.useEffect;function To(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=O.useState(t),[o,i]=O.useState(r),s=e().value!==void 0,a=O.useRef(o);a.current=s?e().value:o;const l=O.useRef(a.current);uc(()=>{l.current=a.current},[o,e().value]);const c=h=>{const d=l.current,m=Xt(h)?h(d):h;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:d}),s||i(m),n(m,d)||e().onChange?.(m,d)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(h){(e().sync?Zr.flushSync:Tm)(()=>c(h))},invoke(h,d){e().onChange?.(h,d)},hash(h){return e().hash?.(h)??String(h)}}}To.cleanup=e=>{O.useEffect(()=>e,[])},To.ref=e=>{const t=O.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function h0(e){const t=O.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var f0=(e,t)=>{const n=O.useRef(!1),r=O.useRef(!1);O.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),O.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function dc(e,t={}){const n=O.useMemo(()=>{const{id:N,ids:k,getRootNode:R}=t;return s0({id:N,ids:k,getRootNode:R})},[t]),r=(...N)=>{e.debug&&console.log(...N)},o=e.props?.({props:po(t),scope:n})??t,i=g0(o),s=e.context?.({prop:i,bindable:To,scope:n,flush:fc,getContext(){return l},getComputed(){return x},getRefs(){return p},getEvent(){return m()}}),a=hc(s),l={get(N){return a.current?.[N].ref.current},set(N,k){a.current?.[N].set(k)},initial(N){return a.current?.[N].initial},hash(N){const k=a.current?.[N].get();return a.current?.[N].hash(k)}},c=O.useRef(new Map),u=O.useRef(null),h=O.useRef(null),d=O.useRef({type:""}),m=()=>({...d.current,current(){return d.current},previous(){return h.current}}),g=()=>({...E,matches(...N){return N.includes(E.ref.current)},hasTag(N){return!!e.states[E.ref.current]?.tags?.includes(N)}}),p=h0(e.refs?.({prop:i,context:l})??{}),v=()=>({state:g(),context:l,event:m(),prop:i,send:V,action:y,guard:C,track:f0,refs:p,computed:x,flush:fc,scope:n,choose:S}),y=N=>{const k=Xt(N)?N(v()):N;if(!k)return;const R=k.map(F=>{const z=e.implementations?.actions?.[F];return z||Dn(`[zag-js] No implementation found for action "${JSON.stringify(F)}"`),z});for(const F of R)F?.(v())},C=N=>Xt(N)?N(v()):e.implementations?.guards?.[N](v()),b=N=>{const k=Xt(N)?N(v()):N;if(!k)return;const R=k.map(z=>{const H=e.implementations?.effects?.[z];return H||Dn(`[zag-js] No implementation found for effect "${JSON.stringify(z)}"`),H}),F=[];for(const z of R){const H=z?.(v());H&&F.push(H)}return()=>F.forEach(z=>z?.())},S=N=>co(N).find(k=>{let R=!k.guard;return uo(k.guard)?R=!!C(k.guard):Xt(k.guard)&&(R=k.guard(v())),R}),x=N=>{zl(e.computed,()=>"[zag-js] No computed object found on machine");const k=e.computed[N];return k({context:l,event:m(),prop:i,refs:p,scope:n,computed:x})},E=To(()=>({defaultValue:e.initialState({prop:i}),onChange(N,k){k&&(c.current.get(k)?.(),c.current.delete(k)),k&&y(e.states[k]?.exit),y(u.current?.actions);const R=b(e.states[N]?.effects);if(R&&c.current.set(N,R),k===xs){y(e.entry);const F=b(e.effects);F&&c.current.set(xs,F)}y(e.states[N]?.entry)}})),I=O.useRef(void 0),P=O.useRef(Wn.NotStarted);uc(()=>{queueMicrotask(()=>{const R=P.current===Wn.Started;P.current=Wn.Started,r(R?"rehydrating...":"initializing...");const F=I.current??E.initial;E.invoke(F,R?E.get():xs)});const N=c.current,k=E.ref.current;return()=>{r("unmounting..."),I.current=k,P.current=Wn.Stopped,N.forEach(R=>R?.()),c.current=new Map,u.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const A=()=>"ref"in E?E.ref.current:E.get(),V=N=>{queueMicrotask(()=>{if(P.current!==Wn.Started)return;h.current=d.current,d.current=N;let k=A();const R=e.states[k].on?.[N.type]??e.on?.[N.type],F=S(R);if(!F)return;u.current=F;const z=F.target??k;r("transition",N.type,F.target||k,`(${F.actions})`);const H=z!==k;H?Zr.flushSync(()=>E.set(z)):F.reenter&&!H?E.invoke(k,k):y(F.actions??[])})};return e.watch?.(v()),{state:g(),send:V,context:l,prop:i,scope:n,refs:p,computed:x,event:m(),getStatus:()=>P.current}}function hc(e){const t=O.useRef(e);return t.current=e,t}function g0(e){const t=hc(e);return function(r){return t.current[r]}}function fc(e){queueMicrotask(()=>{Zr.flushSync(()=>e())})}var p0=c0(e=>e);function m0(e,t={}){const{sync:n=!1}=t,r=v0(e);return O.useCallback((...o)=>n?queueMicrotask(()=>r.current?.(...o)):r.current?.(...o),[n,r])}function v0(e){const t=O.useRef(e);return t.current=e,t}const ks=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=O.useRef(!1),a={...i,present:r,onExitComplete:m0(e.onExitComplete)},l=dc(d0,a),c=u0(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,h=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:h,present:c.present,unmounted:u}},[gc,Ss]=zn({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Po=ve("span"),{withContext:b0}=Vt({key:"text"}),Fe=b0("p");function pc(e,t=[]){const n=O.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return O.useInsertionEffect(()=>{n.current=e}),O.useCallback((...r)=>n.current?.(...r),t)}function en(e={}){const t=pc(e.onOpen),n=pc(e.onClose),[r,o]=O.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=O.useCallback(()=>{s||o(!1),n?.()},[s,n]),l=O.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=O.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var $=(e,t=[])=>({parts:(...n)=>{if(y0(t))return $(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>$(e,[...t,...n]),omit:(...n)=>$(e,t.filter(r=>!n.includes(r))),rename:n=>$(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Hn(e)}"][data-part="${Hn(r)}"]`,`& [data-scope="${Hn(e)}"][data-part="${Hn(r)}"]`].join(", "),attrs:{"data-scope":Hn(e),"data-part":Hn(r)}}}),{})}),Hn=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),y0=e=>e.length===0,mc=$("collapsible").parts("root","trigger","content","indicator");mc.build(),M()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);var x0=Object.defineProperty,C0=(e,t,n)=>t in e?x0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ws=(e,t,n)=>C0(e,t+"",n),k0=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Es=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 n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return $m(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Bm(t,n,r,o);return Ll(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Le(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Ll(Le(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return k0(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},S0=/^#[\da-f]+$/i,w0=/^rgba?\((.*)\)$/,E0=/[^#]/gi,vc=class _i extends Es{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if(S0.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(E0,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(w0);return r?.[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Le(o,0,i<3?255:1))),n.length<3?void 0:new _i(n[0],n[1],n[2],n[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,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-t)/s+2;break;case r:l=(t-n)/s+4;break}l/=6}return new Ts(oe(l*360,2),oe(a*100,2),oe(i*100,2),oe(this.alpha,2))}toHSL(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),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=(n-r)/a+(n<r?6:0);break;case n:l=(r-t)/a+2;break;case r:l=(t-n)/a+4;break}l/=6}return new Is(oe(l*360,2),oe(c*100,2),oe(s*100,2),oe(this.alpha,2))}clone(){return new _i(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,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(n,r).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 _i.colorChannels}};ws(vc,"colorChannels",["red","green","blue"]);var Os=vc,O0=/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+)?)\)/,bc=class Li extends Es{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.lightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(O0)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Li(Vl(r,360),Le(o,0,100),Le(i,0,100),Le(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}, ${oe(this.saturation,2)}%, ${oe(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${oe(this.saturation,2)}%, ${oe(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,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Ts(oe(this.hue,2),oe(t*100,2),oe(r*100,2),oe(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new Os(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),oe(this.alpha,2))}clone(){return new Li(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,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).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 Li.colorChannels}};ws(bc,"colorChannels",["hue","saturation","lightness"]);var Is=bc,I0=/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+)?)\)/,yc=class Fi extends Es{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(I0)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Fi(Vl(r,360),Le(o,0,100),Le(i,0,100),Le(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}, ${oe(this.saturation,2)}%, ${oe(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${oe(this.saturation,2)}%, ${oe(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,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Is(oe(this.hue,2),oe(t*100,2),oe(r*100,2),oe(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Os(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),oe(this.alpha,2))}clone(){return new Fi(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,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).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 Fi.colorChannels}};ws(yc,"colorChannels",["hue","saturation","brightness"]);var Ts=yc,T0="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",P0=e=>{const t=new Map,n=e.split(",");for(let r=0;r<n.length;r++){const[o,i]=n[r].split(":");t.set(o,`#${i}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${i}`)}return t},xc=P0(T0),No=e=>{if(xc.has(e))return No(xc.get(e));const t=Os.parse(e)||Ts.parse(e)||Is.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,No),n}return t};const N0=["top","right","bottom","left"],Mt=Math.min,We=Math.max,Ro=Math.round,Ao=Math.floor,ut=e=>({x:e,y:e}),R0={left:"right",right:"left",bottom:"top",top:"bottom"},A0={start:"end",end:"start"};function Ps(e,t,n){return We(e,Mt(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function Ns(e){return e==="x"?"y":"x"}function Rs(e){return e==="y"?"height":"width"}const V0=new Set(["top","bottom"]);function dt(e){return V0.has(Et(e))?"y":"x"}function As(e){return Ns(dt(e))}function _0(e,t,n){n===void 0&&(n=!1);const r=jn(e),o=As(e),i=Rs(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vo(s)),[s,Vo(s)]}function L0(e){const t=Vo(e);return[Vs(e),t,Vs(t)]}function Vs(e){return e.replace(/start|end/g,t=>A0[t])}const Cc=["left","right"],kc=["right","left"],F0=["top","bottom"],D0=["bottom","top"];function z0(e,t,n){switch(e){case"top":case"bottom":return n?t?kc:Cc:t?Cc:kc;case"left":case"right":return t?F0:D0;default:return[]}}function M0(e,t,n,r){const o=jn(e);let i=z0(Et(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Vs)))),i}function Vo(e){return e.replace(/left|right|bottom|top/g,t=>R0[t])}function $0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sc(e){return typeof e!="number"?$0(e):{top:e,right:e,bottom:e,left:e}}function _o(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function wc(e,t,n){let{reference:r,floating:o}=e;const i=dt(t),s=As(t),a=Rs(s),l=Et(t),c=i==="y",u=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(jn(t)){case"start":m[s]-=d*(n&&c?-1:1);break;case"end":m[s]+=d*(n&&c?-1:1);break}return m}const B0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=wc(c,r,l),d=r,m={},g=0;for(let p=0;p<a.length;p++){const{name:v,fn:y}=a[p],{x:C,y:b,data:S,reset:x}=await y({x:u,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=C??u,h=b??h,m={...m,[v]:{...m[v],...S}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:u,y:h}=wc(c,d,l)),p=-1)}return{x:u,y:h,placement:d,strategy:o,middlewareData:m}};async function Or(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:m=0}=wt(t,e),g=Sc(m),v=a[d?h==="floating"?"reference":"floating":h],y=_o(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),C=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},x=_o(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:b,strategy:l}):C);return{top:(y.top-x.top+g.top)/S.y,bottom:(x.bottom-y.bottom+g.bottom)/S.y,left:(y.left-x.left+g.left)/S.x,right:(x.right-y.right+g.right)/S.x}}const W0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=wt(e,t)||{};if(c==null)return{};const h=Sc(u),d={x:n,y:r},m=As(o),g=Rs(m),p=await s.getDimensions(c),v=m==="y",y=v?"top":"left",C=v?"bottom":"right",b=v?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[m]-d[m]-i.floating[g],x=d[m]-i.reference[m],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[b]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[b]||i.floating[g]);const P=S/2-x/2,A=I/2-p[g]/2-1,V=Mt(h[y],A),N=Mt(h[C],A),k=V,R=I-p[g]-N,F=I/2-p[g]/2+P,z=Ps(k,F,R),H=!l.arrow&&jn(o)!=null&&F!==z&&i.reference[g]/2-(F<k?V:N)-p[g]/2<0,J=H?F<k?F-k:F-R:0;return{[m]:d[m]+J,data:{[m]:z,centerOffset:F-z-J,...H&&{alignmentOffset:J}},reset:H}}}),H0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=wt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Et(o),C=dt(a),b=Et(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=d||(b||!p?[Vo(a)]:L0(a)),E=g!=="none";!d&&E&&x.push(...M0(a,p,g,S));const I=[a,...x],P=await Or(t,v),A=[];let V=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&A.push(P[y]),h){const F=_0(o,s,S);A.push(P[F[0]],P[F[1]])}if(V=[...V,{placement:o,overflows:A}],!A.every(F=>F<=0)){var N,k;const F=(((N=i.flip)==null?void 0:N.index)||0)+1,z=I[F];if(z&&(!(h==="alignment"?C!==dt(z):!1)||V.every(ee=>dt(ee.placement)===C?ee.overflows[0]>0:!0)))return{data:{index:F,overflows:V},reset:{placement:z}};let H=(k=V.filter(J=>J.overflows[0]<=0).sort((J,ee)=>J.overflows[1]-ee.overflows[1])[0])==null?void 0:k.placement;if(!H)switch(m){case"bestFit":{var R;const J=(R=V.filter(ee=>{if(E){const W=dt(ee.placement);return W===C||W==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(W=>W>0).reduce((W,q)=>W+q,0)]).sort((ee,W)=>ee[1]-W[1])[0])==null?void 0:R[0];J&&(H=J);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Ec(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oc(e){return N0.some(t=>e[t]>=0)}const j0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=wt(e,t);switch(r){case"referenceHidden":{const i=await Or(t,{...o,elementContext:"reference"}),s=Ec(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Oc(s)}}}case"escaped":{const i=await Or(t,{...o,altBoundary:!0}),s=Ec(i,n.floating);return{data:{escapedOffsets:s,escaped:Oc(s)}}}default:return{}}}}},Ic=new Set(["left","top"]);async function U0(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Et(n),a=jn(n),l=dt(n)==="y",c=Ic.has(s)?-1:1,u=i&&l?-1:1,h=wt(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*u,y:d*c}:{x:d*c,y:m*u}}const G0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await U0(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},q0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:C}=v;return{x:y,y:C}}},...l}=wt(e,t),c={x:n,y:r},u=await Or(t,l),h=dt(Et(o)),d=Ns(h);let m=c[d],g=c[h];if(i){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",C=m+u[v],b=m-u[y];m=Ps(C,m,b)}if(s){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",C=g+u[v],b=g-u[y];g=Ps(C,g,b)}const p=a.fn({...t,[d]:m,[h]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[d]:i,[h]:s}}}}}},K0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=wt(e,t),u={x:n,y:r},h=dt(o),d=Ns(h);let m=u[d],g=u[h];const p=wt(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=d==="y"?"height":"width",S=i.reference[d]-i.floating[b]+v.mainAxis,x=i.reference[d]+i.reference[b]-v.mainAxis;m<S?m=S:m>x&&(m=x)}if(c){var y,C;const b=d==="y"?"width":"height",S=Ic.has(Et(o)),x=i.reference[h]-i.floating[b]+(S&&((y=s.offset)==null?void 0:y[h])||0)+(S?0:v.crossAxis),E=i.reference[h]+i.reference[b]+(S?0:((C=s.offset)==null?void 0:C[h])||0)-(S?v.crossAxis:0);g<x?g=x:g>E&&(g=E)}return{[d]:m,[h]:g}}}},Y0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=wt(e,t),u=await Or(t,c),h=Et(o),d=jn(o),m=dt(o)==="y",{width:g,height:p}=i.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=d==="end"?"top":"bottom");const C=p-u.top-u.bottom,b=g-u.left-u.right,S=Mt(p-u[v],C),x=Mt(g-u[y],b),E=!t.middlewareData.shift;let I=S,P=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=C),E&&!d){const V=We(u.left,0),N=We(u.right,0),k=We(u.top,0),R=We(u.bottom,0);m?P=g-2*(V!==0||N!==0?V+N:We(u.left,u.right)):I=p-2*(k!==0||R!==0?k+R:We(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:I});const A=await s.getDimensions(a.floating);return g!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function Lo(){return typeof window<"u"}function Un(e){return Tc(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ht(e){var t;return(t=(Tc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tc(e){return Lo()?e instanceof Node||e instanceof He(e).Node:!1}function et(e){return Lo()?e instanceof Element||e instanceof He(e).Element:!1}function ft(e){return Lo()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function Pc(e){return!Lo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}const X0=new Set(["inline","contents"]);function Ir(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!X0.has(o)}const Q0=new Set(["table","td","th"]);function J0(e){return Q0.has(Un(e))}const Z0=[":popover-open",":modal"];function Fo(e){return Z0.some(t=>{try{return e.matches(t)}catch{return!1}})}const eb=["transform","translate","scale","rotate","perspective"],tb=["transform","translate","scale","rotate","perspective","filter"],nb=["paint","layout","strict","content"];function _s(e){const t=Ls(),n=et(e)?tt(e):e;return eb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tb.some(r=>(n.willChange||"").includes(r))||nb.some(r=>(n.contain||"").includes(r))}function rb(e){let t=$t(e);for(;ft(t)&&!Gn(t);){if(_s(t))return t;if(Fo(t))return null;t=$t(t)}return null}function Ls(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ob=new Set(["html","body","#document"]);function Gn(e){return ob.has(Un(e))}function tt(e){return He(e).getComputedStyle(e)}function Do(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $t(e){if(Un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pc(e)&&e.host||ht(e);return Pc(t)?t.host:t}function Nc(e){const t=$t(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&&Ir(t)?t:Nc(t)}function Tr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Nc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=He(o);if(i){const a=Fs(s);return t.concat(s,s.visualViewport||[],Ir(o)?o:[],a&&n?Tr(a):[])}return t.concat(o,Tr(o,[],n))}function Fs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rc(e){const t=tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ft(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ro(n)!==i||Ro(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ds(e){return et(e)?e:e.contextElement}function qn(e){const t=Ds(e);if(!ft(t))return ut(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Rc(t);let s=(i?Ro(n.width):n.width)/r,a=(i?Ro(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ib=ut(0);function Ac(e){const t=He(e);return!Ls()||!t.visualViewport?ib:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==He(e)?!1:t}function tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ds(e);let s=ut(1);t&&(r?et(r)&&(s=qn(r)):s=qn(e));const a=sb(i,n,r)?Ac(i):ut(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(i){const d=He(i),m=r&&et(r)?He(r):r;let g=d,p=Fs(g);for(;p&&r&&m!==g;){const v=qn(p),y=p.getBoundingClientRect(),C=tt(p),b=y.left+(p.clientLeft+parseFloat(C.paddingLeft))*v.x,S=y.top+(p.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,h*=v.y,l+=b,c+=S,g=He(p),p=Fs(g)}}return _o({width:u,height:h,x:l,y:c})}function zo(e,t){const n=Do(e).scrollLeft;return t?t.left+n:tn(ht(e)).left+n}function Vc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ab(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ht(r),a=t?Fo(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ut(1);const u=ut(0),h=ft(r);if((h||!h&&!i)&&((Un(r)!=="body"||Ir(s))&&(l=Do(r)),ft(r))){const m=tn(r);c=qn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const d=s&&!h&&!i?Vc(s,l):ut(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function lb(e){return Array.from(e.getClientRects())}function cb(e){const t=ht(e),n=Do(e),r=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=We(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+zo(e);const a=-n.scrollTop;return tt(r).direction==="rtl"&&(s+=We(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const _c=25;function ub(e,t){const n=He(e),r=ht(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Ls();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=zo(r);if(c<=0){const u=r.ownerDocument,h=u.body,d=getComputedStyle(h),m=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(r.clientWidth-h.clientWidth-m);g<=_c&&(i-=g)}else c<=_c&&(i+=c);return{width:i,height:s,x:a,y:l}}const db=new Set(["absolute","fixed"]);function hb(e,t){const n=tn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ft(e)?qn(e):ut(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Lc(e,t,n){let r;if(t==="viewport")r=ub(e,n);else if(t==="document")r=cb(ht(e));else if(et(t))r=hb(t,n);else{const o=Ac(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _o(r)}function Fc(e,t){const n=$t(e);return n===t||!et(n)||Gn(n)?!1:tt(n).position==="fixed"||Fc(n,t)}function fb(e,t){const n=t.get(e);if(n)return n;let r=Tr(e,[],!1).filter(a=>et(a)&&Un(a)!=="body"),o=null;const i=tt(e).position==="fixed";let s=i?$t(e):e;for(;et(s)&&!Gn(s);){const a=tt(s),l=_s(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&db.has(o.position)||Ir(s)&&!l&&Fc(e,s))?r=r.filter(u=>u!==s):o=a,s=$t(s)}return t.set(e,r),r}function gb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Fo(t)?[]:fb(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const h=Lc(t,u,o);return c.top=We(h.top,c.top),c.right=Mt(h.right,c.right),c.bottom=Mt(h.bottom,c.bottom),c.left=We(h.left,c.left),c},Lc(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pb(e){const{width:t,height:n}=Rc(e);return{width:t,height:n}}function mb(e,t,n){const r=ft(t),o=ht(t),i=n==="fixed",s=tn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ut(0);function c(){l.x=zo(o)}if(r||!r&&!i)if((Un(t)!=="body"||Ir(o))&&(a=Do(t)),r){const m=tn(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?Vc(o,a):ut(0),h=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:h,y:d,width:s.width,height:s.height}}function zs(e){return tt(e).position==="static"}function Dc(e,t){if(!ft(e)||tt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ht(e)===n&&(n=n.ownerDocument.body),n}function zc(e,t){const n=He(e);if(Fo(e))return n;if(!ft(e)){let o=$t(e);for(;o&&!Gn(o);){if(et(o)&&!zs(o))return o;o=$t(o)}return n}let r=Dc(e,t);for(;r&&J0(r)&&zs(r);)r=Dc(r,t);return r&&Gn(r)&&zs(r)&&!_s(r)?n:r||rb(e)||n}const vb=async function(e){const t=this.getOffsetParent||zc,n=this.getDimensions,r=await n(e.floating);return{reference:mb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bb(e){return tt(e).direction==="rtl"}const yb={convertOffsetParentRelativeRectToViewportRelativeRect:ab,getDocumentElement:ht,getClippingRect:gb,getOffsetParent:zc,getElementRects:vb,getClientRects:lb,getDimensions:pb,getScale:qn,isElement:et,isRTL:bb};function Mc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xb(e,t){let n=null,r;const o=ht(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:h,width:d,height:m}=c;if(a||t(),!d||!m)return;const g=Ao(h),p=Ao(o.clientWidth-(u+d)),v=Ao(o.clientHeight-(h+m)),y=Ao(u),b={rootMargin:-g+"px "+-p+"px "+-v+"px "+-y+"px",threshold:We(0,Mt(1,l))||1};let S=!0;function x(E){const I=E[0].intersectionRatio;if(I!==l){if(!S)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Mc(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(x,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return s(!0),i}function Cb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ds(e),u=o||i?[...c?Tr(c):[],...Tr(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const h=c&&a?xb(c,n):null;let d=-1,m=null;s&&(m=new ResizeObserver(y=>{let[C]=y;C&&C.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let g,p=l?tn(e):null;l&&v();function v(){const y=tn(e);p&&!Mc(p,y)&&n(),p=y,g=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const kb=G0,Sb=q0,wb=H0,Eb=Y0,Ob=j0,Ib=W0,Tb=K0,Pb=(e,t,n)=>{const r=new Map,o={platform:yb,...n},i={...o.platform,_c:r};return B0(e,t,{...o,platform:i})};function $c(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function Nb(e){if(!e)return $c();const{x:t,y:n,width:r,height:o}=e;return $c(t,n,r,o)}function Rb(e,t){return{contextElement:Ie(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?Nb(r):n.getBoundingClientRect()}}}var Bc=e=>({variable:e,reference:`var(${e})`}),Wc={transformOrigin:Bc("--transform-origin"),arrowOffset:Bc("--arrow-offset")},Ab=e=>e==="top"||e==="bottom"?"y":"x";function Vb(e,t){return{name:"transformOrigin",fn(n){const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=Ab(l),u=o.arrow?.x||0,h=o.arrow?.y||0,d=t?.clientWidth||0,m=t?.clientHeight||0,g=u+d/2,p=h+m/2,v=Math.abs(o.shift?.y||0),y=s.reference.height/2,C=m/2,b=e.offset?.mainAxis??e.gutter,S=typeof b=="number"?b+C:b??C,x=v>S,E={top:`${g}px calc(100% + ${S}px)`,bottom:`${g}px ${-S}px`,left:`calc(100% + ${S}px) ${p}px`,right:`${-S}px ${p}px`}[l],I=`${g}px ${s.reference.y+y-a}px`,P=!!e.overlap&&c==="y"&&x;return r.floating.style.setProperty(Wc.transformOrigin.variable,P?I:E),{data:{transformOrigin:P?I:E}}}}}var _b={name:"rects",fn({rects:e}){return{data:e}}},Lb=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Wc.arrowOffset.reference})`}),{}}}};function Fb(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function Db(e){return e.split("-")[0]}var zb={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Hc(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ms(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function Mb(e,t,n){const r=e||t.createElement("div");return Ib({element:r,padding:n.arrowPadding})}function $b(e,t){if(!Cm(t.offset??t.gutter))return kb(({placement:n})=>{const r=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=Fb(n),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return po({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function Bb(e){if(!e.flip)return;const t=Ms(e.boundary);return wb({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Wb(e){if(!e.slide&&!e.overlap)return;const t=Ms(e.boundary);return Sb({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Tb()})}function Hb(e){return Eb({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),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",`${r}px`)}})}function jb(e){if(e.hideWhenDetached)return Ob({strategy:"referenceHidden",boundary:Ms(e.boundary)??"clippingAncestors"})}function Ub(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function Gb(e,t,n={}){const r=Rb(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},zb,n),i=t.querySelector("[data-part=arrow]"),s=[$b(i,o),Bb(o),Wb(o),Mb(i,t.ownerDocument,o),Lb(i),Vb({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Hb(o),jb(o),_b],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,h=async()=>{if(!r||!t)return;const p=await Pb(r,t,{placement:a,middleware:s,strategy:l});c?.(p),u?.({placed:!0});const v=he(t),y=Hc(v,p.x),C=Hc(v,p.y);t.style.setProperty("--x",`${y}px`),t.style.setProperty("--y",`${C}px`),o.hideWhenDetached&&(p.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 S=kr(b);t.style.setProperty("--z-index",S.zIndex)}},d=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:h,floatingElement:t}),u?.({placed:!0})):await h()},m=Ub(o.listeners),g=o.listeners?Cb(r,t,d,m):Pm;return d(),()=>{g?.(),u?.({placed:!1})}}function nt(e,t,n={}){const{defer:r,...o}=n,i=r?j:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(Gb(a,l,o))})),()=>{s.forEach(a=>a?.())}}function qb(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&n(o)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function Kb(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var jc="pointerdown.outside",Uc="focus.outside";function Yb(e){for(const t of e)if(Ie(t)&&zt(t))return!0;return!1}var Gc=e=>"clientY"in e;function Xb(e,t){if(!Gc(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function Qb(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function qc(e,t){if(!t||!Gc(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&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+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return Qb(s,a)?r||i:!1}function Jb(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s,followControlledElements:a=!0}=t;if(!e)return;const l=Ne(e),c=he(e),u=qb(c),h=Kb(c);function d(b,S){if(!Ie(S)||!S.isConnected||Dt(e,S)||Xb(e,b)||a&&Ul(e,S))return!1;const x=l.querySelector(`[aria-controls="${e.id}"]`);if(x){const I=ko(x);if(qc(b,I))return!1}const E=ko(e);return qc(b,E)?!1:!n?.(S)}const m=new Set,g=Qt(e?.getRootNode());function p(b){function S(x){const E=s&&!Kl()?j:A=>A(),I=x??b,P=I?.composedPath?.()??[I?.target];E(()=>{const A=g?P[0]:Be(b);if(!(!e||!d(b,A))){if(o||i){const V=fo(o,i);e.addEventListener(jc,V,{once:!0})}Yc(e,jc,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:Ov(I),focusable:Yb(P),target:A}})}})}b.pointerType==="touch"?(m.forEach(x=>x()),m.add(ae(l,"click",S,{once:!0})),m.add(h.addEventListener("click",S,{once:!0})),m.add(u.addEventListener("click",S,{once:!0}))):S()}const v=new Set,y=setTimeout(()=>{v.add(ae(l,"pointerdown",p,!0)),v.add(h.addEventListener("pointerdown",p,!0)),v.add(u.addEventListener("pointerdown",p,!0))},0);function C(b){(s?j:x=>x())(()=>{const x=Be(b);if(!(!e||!d(b,x))){if(r||i){const E=fo(r,i);e.addEventListener(Uc,E,{once:!0})}Yc(e,Uc,{bubbles:!1,cancelable:!0,detail:{originalEvent:b,contextmenu:!1,focusable:zt(x),target:x}})}})}return Kl()||(v.add(ae(l,"focusin",C,!0)),v.add(h.addEventListener("focusin",C,!0)),v.add(u.addEventListener("focusin",C,!0))),()=>{clearTimeout(y),m.forEach(b=>b()),v.forEach(b=>b())}}function Kc(e,t){const{defer:n}=t,r=n?j:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(Jb(i,t))})),()=>{o.forEach(i=>i?.())}}function Yc(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function Zb(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ae(Ne(e),"keydown",n,{capture:!0})}var Xc="layer:request-dismiss",Ke={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),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},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 n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Dt(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Dt(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(r=>Ke.dismiss(r.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 r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];ty(e,Xc,o=>{r.requestDismiss?.(o),o.defaultPrevented||r?.dismiss()}),ey(e,Xc,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function ey(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function ty(e,t,n){e.addEventListener(t,n,{once:!0})}var Qc;function Jc(){Ke.layers.forEach(({node:e})=>{e.style.pointerEvents=Ke.isBelowPointerBlockingLayer(e)?"none":"auto"})}function ny(e){e.style.pointerEvents=""}function ry(e,t){const n=Ne(e),r=[];return Ke.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Qc=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=n0(()=>{const a=o();return Ie(a)?a:null},{timeout:1e3});i.then(a=>r.push(Eo(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{Ke.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Qc,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function oy(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Dn("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:i,requestDismiss:o};Ke.add(c),Jc();function u(p){const v=Be(p.detail.originalEvent);Ke.isBelowPointerBlockingLayer(e)||Ke.isInBranch(v)||(t.onPointerDownOutside?.(p),t.onInteractOutside?.(p),!p.defaultPrevented&&(a&&console.log("onPointerDownOutside:",p.detail.originalEvent),r?.()))}function h(p){const v=Be(p.detail.originalEvent);Ke.isInBranch(v)||(t.onFocusOutside?.(p),t.onInteractOutside?.(p),!p.defaultPrevented&&(a&&console.log("onFocusOutside:",p.detail.originalEvent),r?.()))}function d(p){Ke.isTopMost(e)&&(t.onEscapeKeyDown?.(p),!p.defaultPrevented&&r&&(p.preventDefault(),r()))}function m(p){if(!e)return!1;const v=typeof s=="function"?s():s,y=Array.isArray(v)?v:[v],C=t.persistentElements?.map(b=>b()).filter(Ie);return C&&y.push(...C),y.some(b=>Dt(b,p))||Ke.isInNestedLayer(e,p)}const g=[i?ry(e,t.persistentElements):void 0,Zb(e,d),Kc(e,{exclude:m,onFocusOutside:h,onPointerDownOutside:u,defer:t.defer})];return()=>{Ke.remove(e),Jc(),ny(e),g.forEach(p=>p?.())}}function Kn(e,t){const{defer:n}=t,r=n?j:i=>i(),o=[];return o.push(r(()=>{const i=Xt(e)?e():e;o.push(oy(i,t))})),()=>{o.forEach(i=>i?.())}}var Zc=$("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"]);Zc.build();var iy=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,sy=e=>e.ids?.control??`color-picker:${e.id}:control`,ay=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,ly=e=>e.ids?.content??`color-picker:${e.id}:content`,cy=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,uy=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,dy=e=>e.ids?.area??`color-picker:${e.id}:area`,hy=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,fy=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,gy=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Mo=e=>e.getById(ly(e)),py=e=>e.getById(hy(e)),my=(e,t)=>e.getById(gy(e,t)),vy=e=>e.getById(uy(e)),eu=e=>e.getById(iy(e)),by=e=>e.getById(dy(e)),yy=(e,t,n)=>{const r=by(e);if(!r)return;const{getPercentValue:o}=nc(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},xy=e=>e.getById(sy(e)),$s=e=>e.getById(ay(e)),Cy=e=>e.getById(cy(e)),ky=(e,t)=>e.getById(fy(e,t)),Sy=(e,t,n,r)=>{const o=ky(e,n);if(!o)return;const{getPercentValue:i}=nc(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},wy=e=>[...$n(Mo(e),"input[data-channel]"),...$n(xy(e),"input[data-channel]")];function Ey(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 n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?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 tu=e=>No(e),Oy=/^[0-9a-fA-F]{3,8}$/;function Iy(e){return Oy.test(e)}function Ty(e){return e.startsWith("#")?e:Iy(e)?`#${e}`:e}var{and:Py}=kt();Py("isOpenControlled","closeOnSelect");function nu(e,t,n){const r=wy(e);j(()=>{r.forEach(o=>{const i=o.dataset.channel;Jt(o,Ey(n||t,i))})})}function Ny(e,t){const n=vy(e);n&&j(()=>Jt(n,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 $o="__live-region__";function Ry(e={}){const{level:t="polite",document:n=document,root:r,delay:o=0}=e,i=n.defaultView??window,s=r??n.body;function a(c,u){n.getElementById($o)?.remove(),u=u??o;const d=n.createElement("span");d.id=$o,d.dataset.liveAnnouncer="true";const m=t!=="assertive"?"status":"alert";d.setAttribute("aria-live",t),d.setAttribute("role",m),Object.assign(d.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(d),i.setTimeout(()=>{d.textContent=c},u)}function l(){n.getElementById($o)?.remove()}return{announce:a,destroy:l,toJSON(){return $o}}}const[ru,Ay]=zn({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),ou=e=>lc()(e,["lazyMount","unmountOnExit"]);var iu=$("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");iu.build();var su=e=>e.ids?.root??`accordion:${e.id}`,au=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,Vy=e=>e.getById(su(e)),Bo=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(su(e))}']:not([disabled])`;return $n(Vy(e),n)},_y=e=>yr(Bo(e)),Ly=e=>os(Bo(e)),Fy=(e,t)=>oc(Bo(e),au(e,t)),Dy=(e,t)=>ic(Bo(e),au(e,t)),{and:zy,not:My}=kt();zy("isExpanded","canToggle"),My("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var Pr=(e,t)=>({x:e,y:t});function $y(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:Pr(i,s)}}function By(e){const t=Pr(e.minX,e.minY),n=Pr(e.maxX,e.minY),r=Pr(e.maxX,e.maxY),o=Pr(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function Wy(e,t){const n=$y(e),{top:r,right:o,left:i,bottom:s}=By(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function Hy(e,t){const{x:n,y:r}=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,u=e[s].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var lu=$("avatar").parts("root","image","fallback");lu.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);var Yn=new WeakMap,Wo=new WeakMap,Ho={},Bs=0,cu=e=>e&&(e.host||cu(e.parentNode)),jy=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=cu(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),Uy=new Set(["script","output","status","next-route-announcer"]),Gy=e=>Uy.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),qy=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o,followControlledElements:i=!0}=t,s=jy(n,Array.isArray(e)?e:[e]);Ho[r]||(Ho[r]=new WeakMap);const a=Ho[r],l=[],c=new Set,u=new Set(s),h=m=>{!m||c.has(m)||(c.add(m),h(m.parentNode))};s.forEach(m=>{h(m),i&&Ie(m)&&Gl(m,g=>{h(g)})});const d=m=>{!m||u.has(m)||Array.prototype.forEach.call(m.children,g=>{if(c.has(g))d(g);else try{if(Gy(g))return;const v=g.getAttribute(o)==="true",y=(Yn.get(g)||0)+1,C=(a.get(g)||0)+1;Yn.set(g,y),a.set(g,C),l.push(g),y===1&&v&&Wo.set(g,!0),C===1&&g.setAttribute(r,""),v||g.setAttribute(o,"true")}catch(p){console.error("[zag-js > ariaHidden] cannot operate on ",g,p)}})};return d(n),c.clear(),Bs++,()=>{l.forEach(m=>{const g=Yn.get(m)-1,p=a.get(m)-1;Yn.set(m,g),a.set(m,p),g||(Wo.has(m)||m.removeAttribute(o),Wo.delete(m)),p||m.removeAttribute(r)}),Bs--,Bs||(Yn=new WeakMap,Yn=new WeakMap,Wo=new WeakMap,Ho={})}},Ky=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Yy=(e,t=Ky(e),n="data-aria-hidden",r=!0)=>{if(t)return qy(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden",followControlledElements:r})},Xy=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function uu(e,t={}){const{defer:n=!0}=t,r=n?Xy:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(Yy(s))})),()=>{o.forEach(i=>i?.())}}var Qy=Object.defineProperty,Jy=(e,t,n)=>t in e?Qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t,n)=>Jy(e,typeof t!="symbol"?t+"":t,n),du={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Zy=[],ex=class{constructor(e,t){se(this,"trapStack"),se(this,"config"),se(this,"doc"),se(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),se(this,"portalContainers",new Set),se(this,"listenerCleanups",[]),se(this,"handleFocus",r=>{const o=Be(r),i=this.findContainerIndex(o,r)>=0;if(i||vo(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(Sr(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(h=>h===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<c.length&&(s=c[u+1],a=!1):u-1>=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>Sr(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}),se(this,"handlePointerDown",r=>{const o=Be(r);if(!(this.findContainerIndex(o,r)>=0)){if(Rr(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Rr(this.config.allowOutsideClick,r)||r.preventDefault()}}),se(this,"handleClick",r=>{const o=Be(r);this.findContainerIndex(o,r)>=0||Rr(this.config.clickOutsideDeactivates,r)||Rr(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),se(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;Nr(r)&&r.preventDefault(),this.tryFocus(i)}}),se(this,"handleEscapeKey",r=>{tx(r)&&Rr(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),se(this,"_mutationObserver"),se(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.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 fv(c)?!0:c.id&&!this.state.containers.some(u=>u.contains(c))?gv(c):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),se(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),se(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!zt(r)){const o=Cr(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),se(this,"tryFocus",r=>{if(r!==!1&&r!==Cr(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,nx(r)&&r.select()}}),se(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),du.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=()=>{hu(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s?.()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),se(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),se(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),se(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),se(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),se(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),se(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` 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(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),se(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||Be(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 u=this.state.tabbableGroups.findIndex(({firstTabbableNode:h})=>s===h);if(u<0&&(c?.container===s||zt(s)&&!Zt(s)&&!c?.nextTabbableNode(s,!1))&&(u=l),u>=0){const h=u===0?this.state.tabbableGroups.length-1:u-1,d=this.state.tabbableGroups[h];a=Sr(s)>=0?d.lastTabbableNode:d.lastDomTabbableNode}else Nr(o)||(a=c?.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:h})=>s===h);if(u<0&&(c?.container===s||zt(s)&&!Zt(s)&&!c?.nextTabbableNode(s))&&(u=l),u>=0){const h=u===this.state.tabbableGroups.length-1?0:u+1,d=this.state.tabbableGroups[h];a=Sr(s)>=0?d.firstTabbableNode:d.firstDomTabbableNode}else Nr(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||Zy;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return Nr(r)&&!r.shiftKey},isKeyBackward(r){return Nr(r)&&r.shiftKey},...t};this.doc=n.document||Ne(Array.isArray(e)?e[0]:e),this.config=n,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=>{uv(e).forEach(n=>{this.addPortalContainer(n)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||n?.includes(r)||o.find(i=>i===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?Ul(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=fs(e),n=Zl(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(c=>Zt(c)),s=n.slice().reverse().find(c=>Zt(c)),a=!!t.find(c=>Sr(c)>0);function l(c,u=!0){const h=t.indexOf(c);return h<0?u?n.slice(n.indexOf(c)+1).find(d=>Zt(d)):n.slice(0,n.indexOf(c)).reverse().find(d=>Zt(d)):t[h+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,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 du.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?hu(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ae(this.doc,"focusin",this.handleFocus,!0),ae(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ae(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ae(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ae(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ae(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"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=Cr(this.doc),t?.();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Nr=e=>e.key==="Tab",Rr=(e,...t)=>typeof e=="function"?e(...t):e,tx=e=>!e.isComposing&&e.key==="Escape",hu=e=>setTimeout(e,0),nx=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function rx(e,t={}){let n;const r=j(()=>{const o=typeof e=="function"?e():e;if(o){n=new ex(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Ne(o)});try{n.activate()}catch{}}});return function(){n?.deactivate(),r()}}var Ws="data-scroll-lock";function ox(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function ix(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(Ws))return;const s=n.innerWidth-r.clientWidth;o.setAttribute(Ws,"");const a=()=>Jv(r,"--scrollbar-width",`${s}px`),l=ox(r),c=()=>Eo(o,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:d,scrollY:m,visualViewport:g}=n,p=g?.offsetLeft??0,v=g?.offsetTop??0,y=Eo(o,{position:"fixed",overflow:"hidden",top:`${-(m-Math.floor(v))}px`,left:`${-(d-Math.floor(p))}px`,right:"0",[l]:`${s}px`});return()=>{y?.(),n.scrollTo({left:d,top:m,behavior:"instant"})}},h=[a(),yo()?u():c()];return()=>{h.forEach(d=>d?.()),o.removeAttribute(Ws)}}function sx(e){return!(e.metaKey||!xo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var ax=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lx(e,t,n){const r=n?Be(n):null,o=he(r);return e=e||r instanceof o.HTMLInputElement&&!ax.has(r?.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(cx,n.key))}var Bt=null,Hs=new Set,jo=new Map,nn=!1,js=!1,cx={Tab:!0,Escape:!0};function Uo(e,t){for(let n of Hs)n(e,t)}function Go(e){nn=!0,sx(e)&&(Bt="keyboard",Uo("keyboard",e))}function Ye(e){Bt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(nn=!0,Uo("pointer",e))}function fu(e){Ev(e)&&(nn=!0,Bt="virtual")}function gu(e){const t=Be(e);t===he(t)||t===Ne(t)||(!nn&&!js&&(Bt="virtual",Uo("virtual",e)),nn=!1,js=!1)}function pu(){nn=!1,js=!0}function ux(e){if(typeof window>"u"||jo.get(he(e)))return;const t=he(e),n=Ne(e);let r=t.HTMLElement.prototype.focus;function o(){Bt="virtual",Uo("virtual",null),nn=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}n.addEventListener("keydown",Go,!0),n.addEventListener("keyup",Go,!0),n.addEventListener("click",fu,!0),t.addEventListener("focus",gu,!0),t.addEventListener("blur",pu,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",Ye,!0),n.addEventListener("pointermove",Ye,!0),n.addEventListener("pointerup",Ye,!0)):(n.addEventListener("mousedown",Ye,!0),n.addEventListener("mousemove",Ye,!0),n.addEventListener("mouseup",Ye,!0)),t.addEventListener("beforeunload",()=>{dx(e)},{once:!0}),jo.set(t,{focus:r})}var dx=(e,t)=>{const n=he(e),r=Ne(e),o=jo.get(n);if(o){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}r.removeEventListener("keydown",Go,!0),r.removeEventListener("keyup",Go,!0),r.removeEventListener("click",fu,!0),n.removeEventListener("focus",gu,!0),n.removeEventListener("blur",pu,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",Ye,!0),r.removeEventListener("pointermove",Ye,!0),r.removeEventListener("pointerup",Ye,!0)):(r.removeEventListener("mousedown",Ye,!0),r.removeEventListener("mousemove",Ye,!0),r.removeEventListener("mouseup",Ye,!0)),jo.delete(n)}};function hx(){return Bt}function mu(){return Bt==="keyboard"}function vu(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;ux(o),r?.({isFocusVisible:n||mu(),modality:Bt});const i=(s,a)=>{lx(!!t,s,a)&&r?.({isFocusVisible:mu(),modality:s})};return Hs.add(i),()=>{Hs.delete(i)}}var bu=$("checkbox").parts("root","label","control","indicator");bu.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const fx=bu.extendWith("group"),[aP,yu]=zn({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var xu=$("clipboard").parts("root","control","trigger","indicator","input","label");xu.build(),M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),M()(["copied"]);const gx=Zc.extendWith("view");var px=Object.defineProperty,mx=(e,t,n)=>t in e?px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>mx(e,typeof t!="symbol"?t+"":t,n),qo={itemToValue(e){return typeof e=="string"?e:Yt(e)&&Lt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Yt(e)&&Lt(e,"label")?e.label:qo.itemToValue(e)},isItemDisabled(e){return Yt(e)&&Lt(e,"disabled")?!!e.disabled:!1}},Xn=class Kg{constructor(t){this.options=t,T(this,"items"),T(this,"indexMap",null),T(this,"copy",n=>new Kg({...this.options,items:n??[...this.items]})),T(this,"isEqual",n=>_e(this.items,n.items)),T(this,"setItems",n=>this.copy(n)),T(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),T(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),T(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),T(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),T(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),T(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),T(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??qo.itemToValue(n)),T(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??qo.isItemDisabled(n)),T(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??qo.itemToString(n)),T(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),T(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),T(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),T(this,"has",n=>this.indexOf(n)!==-1),T(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),T(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),T(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),T(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),T(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=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,r),r++}}return this.indexMap.get(n)??-1}),T(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.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)===r)&&!this.getItemDisabled(a)&&vx(this.stringifyItem(a),n))return a}}),T(this,"search",(n,r)=>{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a,u=this.getByText(c,i),h=this.getItemValue(u);function d(){clearTimeout(o.timer),o.timer=-1}function m(g){o.keysSoFar=g,d(),g!==""&&(o.timer=+setTimeout(()=>{m(""),d()},s))}return m(a),h}),T(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),T(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),T(this,"insert",(n,...r)=>this.copy(Ar(this.items,n,...r))),T(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Ar(this.items,o,...r))}),T(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Ar(this.items,o+1,...r))}),T(this,"prepend",(...n)=>this.copy(Ar(this.items,0,...n))),T(this,"append",(...n)=>this.copy(Ar(this.items,this.items.length,...n))),T(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),T(this,"remove",(...n)=>{const r=n.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:!r.includes(i)}))}),T(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Ko(this.items,[o],r))}),T(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Ko(this.items,i,o))}),T(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Ko(this.items,i,o+1))}),T(this,"reorder",(n,r)=>this.copy(Ko(this.items,[n],r))),T(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return o<i?-1:o>i?1:0}),T(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),T(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),T(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),T(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}},vx=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Ar(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Ko(e,t,n){t=[...t].sort((o,i)=>o-i);const r=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 n=Math.max(0,n-t.filter(o=>o<n).length),[...e.slice(0,n),...r,...e.slice(n)]}var bx=class Di extends Set{constructor(t=[]){super(t),T(this,"selectionMode","single"),T(this,"deselectable",!0),T(this,"copy",()=>{const n=new Di([...this]);return this.sync(n)}),T(this,"sync",n=>(n.selectionMode=this.selectionMode,n.deselectable=this.deselectable,n)),T(this,"isEmpty",()=>this.size===0),T(this,"isSelected",n=>this.selectionMode==="none"||n==null?!1:this.has(n)),T(this,"canSelect",(n,r)=>this.selectionMode!=="none"||!n.getItemDisabled(n.find(r))),T(this,"firstSelectedValue",n=>{let r=null;for(let o of this)(!r||n.compareValue(o,r)<0)&&(r=o);return r}),T(this,"lastSelectedValue",n=>{let r=null;for(let o of this)(!r||n.compareValue(o,r)>0)&&(r=o);return r}),T(this,"extendSelection",(n,r,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(n,o);const i=this.copy(),s=Array.from(this).pop();for(let a of n.getValueRange(r,s??o))i.delete(a);for(let a of n.getValueRange(o,r))this.canSelect(n,a)&&i.add(a);return i}),T(this,"toggleSelection",(n,r)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(r))return this.replaceSelection(n,r);const o=this.copy();return o.has(r)?o.delete(r):o.canSelect(n,r)&&o.add(r),o}),T(this,"replaceSelection",(n,r)=>{if(this.selectionMode==="none")return this;if(r==null)return this;if(!this.canSelect(n,r))return this;const o=new Di([r]);return this.sync(o)}),T(this,"setSelection",n=>{if(this.selectionMode==="none")return this;let r=new Di;for(let o of n)if(o!=null&&(r.add(o),this.selectionMode==="single"))break;return this.sync(r)}),T(this,"clearSelection",()=>{const n=this.copy();return n.deselectable&&n.size>0&&n.clear(),n}),T(this,"select",(n,r,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(r)&&this.deselectable?this.toggleSelection(n,r):this.replaceSelection(n,r):this.selectionMode==="multiple"||o?this.toggleSelection(n,r):this.replaceSelection(n,r)),T(this,"deselect",n=>{const r=this.copy();return r.delete(n),r}),T(this,"isEqual",n=>_e(Array.from(this),Array.from(n)))}};function Cu(e,t,n){for(let r=0;r<t.length;r++)e=n.getChildren(e,t.slice(r+1))[t[r]];return e}function yx(e){const t=xx(e),n=[],r=new Set;for(const o of t){const i=o.join();r.has(i)||(r.add(i),n.push(o))}return n}function ku(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.length-t.length}function xx(e){return e.sort(ku)}function Cx(e,t){let n;return je(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function kx(e,t){const n=[];return je(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function Su(e,t){let n;return je(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function Sx(e,t){let n=t.initialResult;return je(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function wx(e,t){return Sx(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function Ex(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((m,g)=>{const p=[...a,g],v=i(m,p);v&&c.push(v)});const u=a.length===0,h=n(s,a),d=c.length>0;return u||h||d?r(s,c,a):null};return i(e,[])||r(e,[],[])}function Ox(e,t){const n=[];let r=0;const o=new Map,i=new Map;return je(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(m=>{i.has(m)||i.set(m,s),o.has(m)||o.set(m,r++)});const c=l.length>0?l.map(m=>o.get(m)):void 0,u=i.get(s),h=u?o.get(u):void 0,d=o.get(s);n.push({...s,_children:c,_parent:h,_index:d})}}),n}function Ix(e,t){return{type:"insert",index:e,nodes:t}}function Tx(e){return{type:"remove",indexes:e}}function Us(){return{type:"replace"}}function wu(e){return[e.slice(0,-1),e[e.length-1]]}function Eu(e,t,n=new Map){const[r,o]=wu(e);for(let s=r.length-1;s>=0;s--){const a=r.slice(0,s).join();switch(n.get(a)?.type){case"remove":continue}n.set(a,Us())}const i=n.get(r.join());switch(i?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),Ix(o,t))}return n}function Ou(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,Us())}for(const[r,o]of n)t.set(r,Tx(o));return t}function Px(e,t){const n=new Map,[r,o]=wu(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,Us())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function Yo(e,t,n){return Nx(e,{...n,getChildren:(r,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return n.create(r,o.filter((u,h)=>!a.indexes.includes(h)),i);case"removeThenInsert":const l=o.filter((u,h)=>!a.removeIndexes.includes(h)),c=a.removeIndexes.reduce((u,h)=>h<u?u-1:u,a.insertIndex);return n.create(r,Iu(l,c,0,...a.insertNodes),i);case"insert":return n.create(r,Iu(o,a.index,0,...a.nodes),i);case"replace":return n.create(r,o,i);default:return r}}})}function Iu(e,t,n,...r){return[...e.slice(0,t),...r,...e.slice(t+n)]}function Nx(e,t){const n={};return je(e,{...t,onLeave:(r,o)=>{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function Rx(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Eu(r,n);return Yo(e,o,t)}function Ax(e,t){if(t.at.length===0)return t.node;const n=Px(t.at,t.node);return Yo(e,n,t)}function Vx(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Ou(t.indexPaths);return Yo(e,n,t)}function _x(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 n=yx(t.indexPaths),r=n.map(i=>Cu(e,i,t)),o=Eu(t.to,r,Ou(n));return Yo(e,o,t)}function je(e,t){const{onEnter:n,onLeave:r,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 u=n?.(l.node,a());if(u==="stop")return;l.state=u==="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 h=l.state;i.push(h),s.push({node:c[h]}),l.state=h+1;continue}if(r?.(l.node,a())==="stop")return}i.pop(),s.pop()}}var Tu=class Yg{constructor(t){this.options=t,T(this,"rootNode"),T(this,"isEqual",n=>_e(this.rootNode,n.rootNode)),T(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??Qn.nodeToChildren(n)??[]),T(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),T(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),T(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??Qn.nodeToChildrenCount(n)),T(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??Qn.nodeToValue(n)),T(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??Qn.isNodeDisabled(n)),T(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),T(this,"stringifyNode",n=>this.options.nodeToString?.(n)??Qn.nodeToString(n)),T(this,"getFirstNode",(n=this.rootNode)=>{let r;return je(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),T(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return je(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,n)){if(r.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),T(this,"at",n=>Cu(this.rootNode,n,{getChildren:this.getNodeChildren})),T(this,"findNode",(n,r=this.rootNode)=>Cx(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),T(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return kx(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),T(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>ku(r.indexPath,o.indexPath)).map(({value:r})=>r)),T(this,"getIndexPath",n=>Su(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),T(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),T(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),T(this,"getDepth",n=>Su(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})?.length??0),T(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),T(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),T(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),T(this,"getNextNode",(n,r={})=>{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(r.skip?.({value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),T(this,"getPreviousNode",(n,r={})=>{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(r.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),T(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const i=this.at(r);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),T(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return je(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!r?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),T(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),T(this,"getParentIndexPath",n=>n.slice(0,-1)),T(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),T(this,"visit",n=>{const{skip:r,...o}=n;je(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return r?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),T(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),T(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i<o.length;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),T(this,"getSiblingNodes",n=>{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),T(this,"getValues",(n=this.rootNode)=>wx(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),T(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),T(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),T(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return je(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(r.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),T(this,"flatten",(n=this.rootNode)=>Ox(n,{getChildren:this.getNodeChildren})),T(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),T(this,"_insert",(n,r,o)=>this.copy(Rx(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),T(this,"copy",n=>new Yg({...this.options,rootNode:n})),T(this,"_replace",(n,r,o)=>this.copy(Ax(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),T(this,"_move",(n,r,o)=>this.copy(_x(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),T(this,"_remove",(n,r)=>this.copy(Vx(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),T(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),T(this,"remove",n=>this._remove(this.rootNode,n)),T(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),T(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),T(this,"move",(n,r)=>this._move(this.rootNode,n,r)),T(this,"filter",n=>{const r=Ex(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),T(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Qn={nodeToValue(e){return typeof e=="string"?e:Yt(e)&&Lt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Yt(e)&&Lt(e,"label")?e.label:Qn.nodeToValue(e)},isNodeDisabled(e){return Yt(e)&&Lt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Yt(e)&&Lt(e,"childrenCount"))return e.childrenCount}},Pu=$("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Pu.build();var Nu=e=>new Xn(e);Nu.empty=()=>new Xn({items:[]});var Lx=e=>e.ids?.control??`combobox:${e.id}:control`,Fx=e=>e.ids?.input??`combobox:${e.id}:input`,Dx=e=>e.ids?.content??`combobox:${e.id}:content`,zx=e=>e.ids?.positioner??`combobox:${e.id}:popper`,Mx=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,$x=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Wt=e=>e.getById(Dx(e)),Jn=e=>e.getById(Fx(e)),Ru=e=>e.getById(zx(e)),Au=e=>e.getById(Lx(e)),Vr=e=>e.getById(Mx(e)),Vu=e=>e.getById($x(e)),_r=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Gv(Wt(e),n)},_u=e=>{const t=Jn(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},Bx=e=>{const t=Vr(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:Wx,createMachine:Hx,choose:jx}=ys(),{and:be,not:Ue}=Wx;Hx({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}){ec(t)},collection:Nu.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:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:_e,hash(o){return o.join(",")},onChange(o){const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(h=>a.getItemValue(h)===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=Ct(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=r(),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:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>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:jx([{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:be("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:be("isCustomValue",Ue("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:be("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","hideOtherElements"],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:be("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:be("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:be("isOpenControlled","isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:be("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:be("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:be("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:be("isOpenControlled","isCustomValue",Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("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","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"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:be("isOpenControlled","isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:be("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:be("isOpenControlled","isCustomValue",Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("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:be("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 n=e("openOnChange");return xm(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Kn(()=>Wt(n),{type:"listbox",defer:!0,exclude:()=>[Jn(n),Vr(n),Vu(n)],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})}})},hideOtherElements({scope:e}){return uu([Jn(e),Wt(e),Vr(e),Vu(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Au(n)||Vr(n),o=()=>Ru(n);return e.set("currentPlacement",t("positioning").placement),nt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=Jn(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),h=e.get("highlightedValue");if(u||!h)return;const d=Wt(n),m=t("scrollToIndexFn");if(m){const v=t("collection").indexOf(h);m({index:v,immediate:c,getElement:()=>_r(n,h)});return}const g=_r(n,h),p=j(()=>{Er(g,{rootEl:d,block:"nearest"})});i.push(p)},a=j(()=>s(!0));i.push(a);const l=wr(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){nt(()=>Au(n),()=>Ru(n),{...t("positioning"),...r.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:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?Fn(t.get("value"),o):[o];n("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=Ct(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){ps(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=_r(n,r),i=Wt(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>_r(n,r)});return}Er(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=o("multiple")?Fn(t.get("value"),n.value):[n.value];o("onSelect")?.({value:i,itemValue:n.value}),t.set("value",i);const s=Ct(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=Kt(t.get("value"),n.value);t.set("value",i);const s=Ct(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){j(()=>{_u(e)})},setFinalFocus({scope:e}){j(()=>{Vr(e)?.dataset.focusable==null?_u(e):Bx(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Jn(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&qm(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=Ct(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=Ct(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=Ct(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>_r(t,r)})}else{const r=Wt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const n=Lu(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){const n=Lu(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Wt(n)?queueMicrotask:j)(()=>{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:n}){(Wt(n)?queueMicrotask:j)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){j(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){j(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){j(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=Jn(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));j(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=Ct(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Lu(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 Ux=Pu.extendWith("empty"),[Fu,Ht]=zn({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),Du=O.forwardRef((e,t)=>{const n=Ht(),r=Ay(),o=ks({...r,present:n.open}),i=qe(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:f.jsx(St.div,{...i,ref:Oo(o.ref,t)})});Du.displayName="DialogBackdrop";const zu=O.forwardRef((e,t)=>{const n=Ht(),r=qe(n.getCloseTriggerProps(),e);return f.jsx(St.button,{...r,ref:t})});zu.displayName="DialogCloseTrigger";const Mu=O.forwardRef((e,t)=>{const n=Ht(),r=Ss(),o=qe(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:f.jsx(St.div,{...o,ref:Oo(r.ref,t)})});Mu.displayName="DialogContent";const $u=O.forwardRef((e,t)=>{const n=Ht(),r=qe(n.getDescriptionProps(),e);return f.jsx(St.div,{...r,ref:t})});$u.displayName="DialogDescription";const Bu=O.forwardRef((e,t)=>{const n=Ht(),r=qe(n.getPositionerProps(),e);return Ss().unmounted?null:f.jsx(St.div,{...r,ref:t})});Bu.displayName="DialogPositioner";var Gs=$("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),rn=Gs.build(),Wu=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,Hu=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,qs=e=>e.ids?.content??`dialog:${e.id}:content`,ju=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Ks=e=>e.ids?.title??`dialog:${e.id}:title`,Ys=e=>e.ids?.description??`dialog:${e.id}:description`,Uu=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Xo=e=>e.getById(qs(e)),Gx=e=>e.getById(Wu(e)),qx=e=>e.getById(Hu(e)),Kx=e=>e.getById(ju(e)),Yx=e=>e.getById(Ks(e)),Xx=e=>e.getById(Ys(e)),Qx=e=>e.getById(Uu(e));function Jx(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...rn.trigger.attrs,dir:i("dir"),id:ju(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":qs(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...rn.backdrop.attrs,dir:i("dir"),hidden:!l,id:Hu(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...rn.positioner.attrs,dir:i("dir"),id:Wu(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...rn.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:qs(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Ks(s),"aria-describedby":c.description?Ys(s):void 0})},getTitleProps(){return t.element({...rn.title.attrs,dir:i("dir"),id:Ks(s)})},getDescriptionProps(){return t.element({...rn.description.attrs,dir:i("dir"),id:Ys(s)})},getCloseTriggerProps(){return t.button({...rn.closeTrigger.attrs,dir:i("dir"),id:Uu(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var Zx={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>Qx(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...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:n}){e([()=>n("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:n}){return Kn(()=>Xo(e),{type:"dialog",defer:!0,pointerBlocking:n("modal"),exclude:[Kx(e)],onInteractOutside(o){n("onInteractOutside")?.(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){n("onEscapeKeyDown")?.(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return ix(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?rx(()=>Xo(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>t("finalFocusEl")?.()??r}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?uu(()=>[Xo(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){j(()=>{e.set("rendered",{title:!!Yx(t),description:!!Xx(t)})})},syncZIndex({scope:e}){j(()=>{const t=Xo(e);if(!t)return;const n=kr(t);[Gx(e),qx(e)].forEach(o=>{o?.style.setProperty("--z-index",n.zIndex),o?.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};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 e1=e=>{const t=O.useId(),{getRootNode:n}=Ml(),{dir:r}=l0(),o={id:t,getRootNode:n,dir:r,...e},i=dc(Zx,o);return Jx(i,p0)},t1=e=>{const[t,{children:n,...r}]=cc(e),[o]=ou(t),i=e1(r),s=ks(qe({present:i.open},t));return f.jsx(Fu,{value:i,children:f.jsx(ru,{value:o,children:f.jsx(gc,{value:s,children:n})})})},n1=e=>{const[t,{value:n,children:r}]=cc(e),[o]=ou(t),i=ks(qe({present:n.open},t));return f.jsx(Fu,{value:n,children:f.jsx(ru,{value:o,children:f.jsx(gc,{value:i,children:r})})})},Gu=O.forwardRef((e,t)=>{const n=Ht(),r=qe(n.getTitleProps(),e);return f.jsx(St.h2,{...r,ref:t})});Gu.displayName="DialogTitle";const qu=O.forwardRef((e,t)=>{const n=Ht(),r=Ss(),o=qe({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return f.jsx(St.button,{...o,ref:t})});qu.displayName="DialogTrigger";var Ku=$("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Ku.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 Yu=O.forwardRef((e,t)=>{const n=yu(),r=qe(n?.getInputProps(),e);return f.jsx(St.input,{...r,ref:t})});Yu.displayName="FieldInput";const Xu=$("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Xu.build();function r1(e){if(!e)return;const t=kr(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 o1(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 i1(e){if(!e)return;const t=Ne(e),n=he(e),r=o1(t),o=r1(e);o&&(r.style.cssText+=o);function i(){n.requestAnimationFrame(()=>{r.innerHTML=e.value;const s=n.getComputedStyle(r);e?.style.setProperty("width",s.width)})}return i(),e?.addEventListener("input",i),e?.addEventListener("change",i),()=>{t.body.removeChild(r),e?.removeEventListener("input",i),e?.removeEventListener("change",i)}}var s1=e=>{if(!e)return;const t=kr(e),n=he(e),r=Ne(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 n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),r.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Qu=O.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=O.useRef(null),i=yu(),s=qe(i?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return O.useEffect(()=>{if(n)return s1(o.current)},[n]),f.jsx(St.textarea,{...s,ref:Oo(t,o)})});Qu.displayName="FieldTextarea";const Ju=$("fieldset").parts("root","errorText","helperText","legend");Ju.build();var Zu=$("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Zu.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"]);var ed=$("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");ed.build();var a1=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,l1=e=>e.ids?.content??`hover-card:${e.id}:content`,c1=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Xs=e=>e.getById(a1(e)),u1=e=>e.getById(l1(e)),td=e=>e.getById(c1(e)),{not:Qo,and:nd}=kt();nd("isOpenControlled",Qo("isPointer")),Qo("isPointer"),nd("isOpenControlled",Qo("isPointer")),Qo("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var rd=$("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");rd.build();var od=e=>new Tu(e);od.empty=()=>new Tu({rootNode:{children:[]}});var d1=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,gt=(e,t)=>{t!=null&&e.getById(d1(e,t))?.focus()},h1=(e,t)=>`tree:${e.id}:rename-input:${t}`,id=(e,t)=>e.getById(h1(e,t));function f1(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return _t(o?Kt(n,...r):qt(n,...r))}function Jo(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",p=>_t(qt(p,...t)));return}const i=n.get("loadingStatus"),[s,a]=Ol(t,p=>i[p]==="loaded");if(s.length>0&&n.set("expandedValue",p=>_t(qt(p,...s))),a.length===0)return;const l=r("collection"),[c,u]=Ol(a,p=>{const v=l.findNode(p);return l.getNodeChildren(v).length>0});if(c.length>0&&n.set("expandedValue",p=>_t(qt(p,...c))),u.length===0)return;n.set("loadingStatus",p=>({...p,...u.reduce((v,y)=>({...v,[y]:"loading"}),{})}));const h=u.map(p=>{const v=l.getIndexPath(p),y=l.getValuePath(v),C=l.findNode(p);return{id:p,indexPath:v,valuePath:y,node:C}}),d=o.get("pendingAborts"),m=r("loadChildren");zl(m,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const g=h.map(({id:p,indexPath:v,valuePath:y,node:C})=>{const b=d.get(p);b&&(b.abort(),d.delete(p));const S=new AbortController;return d.set(p,S),m({valuePath:y,indexPath:v,node:C,signal:S.signal})});Promise.allSettled(g).then(p=>{const v=[],y=[],C=n.get("loadingStatus");let b=r("collection");p.forEach((S,x)=>{const{id:E,indexPath:I,node:P,valuePath:A}=h[x];S.status==="fulfilled"?(C[E]="loaded",v.push(E),b=b.replace(I,{...P,children:S.value})):(d.delete(E),Reflect.deleteProperty(C,E),y.push({node:P,error:S.reason,indexPath:I,valuePath:A}))}),n.set("loadingStatus",C),v.length&&(n.set("expandedValue",S=>_t(qt(S,...v))),r("onLoadChildrenComplete")?.({collection:b})),y.length&&r("onLoadChildrenError")?.({nodes:y})})}function jt(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:pt}=kt();pt("isMultipleSelection","moveFocus"),pt("isShiftKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),pt("isBranchFocused","isBranchExpanded"),pt("isShiftKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),pt("isCtrlKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),pt("isCtrlKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),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"]),M()(["node","indexPath"]);var sd=$("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");sd.build();var ad=e=>new Xn(e);ad.empty=()=>new Xn({items:[]});var g1=e=>e.ids?.content??`select:${e.id}:content`,p1=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,ld=e=>e.getById(g1(e)),cd=(e,t)=>e.getById(p1(e,t)),{guards:m1,createMachine:v1}=ys(),{or:b1}=m1;v1({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:ad.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:_e,onChange(n){const r=e("collection").findMany(n);return e("onValueChange")?.({value:n,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(n){e("onHighlightChange")?.({highlightedValue:n,highlightedItem:e("collection").find(n),highlightedIndex:e("collection").indexOf(n)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const n=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(n)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Bn.defaultOptions},focusVisible:!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 n=new bx(e.get("value"));return n.selectionMode=t("selectionMode"),n.deselectable=!!t("deselectable"),n},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:n,action:r}){n([()=>e.get("value").toString()],()=>{r(["syncSelectedItems"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),n([()=>t("collection").toString()],()=>{r(["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"]},"CONTENT.FOCUS":[{guard:b1("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused"]},"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})=>vu({root:e.getRootNode?.(),onChange(n){t.set("focusVisible",n.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:n}){const r=i=>{const s=e.get("highlightedValue");if(s==null||hx()!=="keyboard")return;const l=ld(n),c=t("scrollToIndexFn");if(c){const h=t("collection").indexOf(s);c?.({index:h,immediate:i,getElement(){return cd(n,s)}});return}const u=cd(n,s);Er(u,{rootEl:l,block:"nearest"})};return j(()=>r(!0)),wr(()=>ld(n),{defer:!0,attributes:["data-activedescendant"],callback(){r(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:n,computed:r}){const o=n.value??e.get("highlightedValue"),i=t("collection");if(o==null||!i.has(o))return;const s=r("selection");if(n.shiftKey&&r("multiple")&&n.anchorValue){const a=s.extendSelection(i,n.anchorValue,o);Lr(s,a,t("onSelect")),e.set("value",Array.from(a))}else{const a=s.select(i,o,n.metaKey);Lr(s,a,t("onSelect")),e.set("value",Array.from(a))}},selectWithKeyboard({context:e,prop:t,event:n,computed:r}){const o=r("selection"),i=t("collection");if(n.shiftKey&&r("multiple")&&n.anchorValue){const s=o.extendSelection(i,n.anchorValue,n.value);Lr(o,s,t("onSelect")),e.set("value",Array.from(s));return}if(t("selectOnHighlight")){const s=o.replaceSelection(i,n.value);Lr(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:n,refs:r}){const o=t("collection").search(n.key,{state:r.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:n,computed:r}){const o=t("collection"),i=r("selection"),s=i.select(o,n.value);Lr(i,s,t("onSelect")),e.set("value",Array.from(s))},clearItem({context:e,event:t,computed:n}){const o=n("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 n=t("collection"),r=e.get("selectedItems"),i=e.get("value").map(s=>r.find(l=>n.getItemValue(l)===s)||n.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const n=t("collection"),r=e.get("highlightedValue"),o=r?n.find(r):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t}){const n=t("collection"),r=e.get("highlightedValue");r!=null&&!n.has(r)&&e.set("highlightedValue",null)},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const r=t("collection").firstValue;r!=null&&e.set("highlightedValue",r)},clearFocused({context:e}){e.set("focused",!1)}}}});var y1=(e,t)=>{const n=new Set(e);for(const r of t)n.delete(r);return n};function Lr(e,t,n){const r=y1(t,e);for(const o of r)n?.({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 x1=sd.extendWith("empty");var ud=$("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");ud.build();var dd=e=>e.ids?.trigger??`menu:${e.id}:trigger`,C1=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,hd=e=>e.ids?.content??`menu:${e.id}:content`,k1=e=>e.ids?.positioner??`menu:${e.id}:popper`,Qs=(e,t)=>`${e.id}/${t}`,on=e=>e?.dataset.value??null,Ut=e=>e.getById(hd(e)),fd=e=>e.getById(k1(e)),Zo=e=>e.getById(dd(e)),S1=(e,t)=>t?e.getById(Qs(e,t)):null,Js=e=>e.getById(C1(e)),Fr=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(hd(e))}]:not([data-disabled])`;return $n(Ut(e),n)},w1=e=>yr(Fr(e)),E1=e=>os(Fr(e)),Zs=(e,t)=>t?e.id===t||e.dataset.value===t:!1,O1=(e,t)=>{const n=Fr(e),r=n.findIndex(o=>Zs(o,t.value));return mm(n,r,{loop:t.loop??t.loopFocus})},I1=(e,t)=>{const n=Fr(e),r=n.findIndex(o=>Zs(o,t.value));return bm(n,r,{loop:t.loop??t.loopFocus})},T1=(e,t)=>{const n=Fr(e),r=n.find(o=>Zs(o,t.value));return Bn(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},P1=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),N1="menu:select";function R1(e,t){if(!e)return;const n=he(e),r=new n.CustomEvent(N1,{detail:{value:t}});e.dispatchEvent(r)}var{not:Xe,and:Zn,or:A1}=kt();Xe("isSubmenu"),A1("isOpenAutoFocusEvent","isArrowDownEvent"),Zn(Xe("isTriggerItem"),"isOpenControlled"),Xe("isTriggerItem"),Zn("isSubmenu","isOpenControlled"),Xe("isPointerSuspended"),Zn(Xe("isPointerSuspended"),Xe("isTriggerItem")),Zn(Xe("isTriggerItemHighlighted"),Xe("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Zn(Xe("isTriggerItemHighlighted"),Xe("isHighlightedItemEditable"),"closeOnSelect"),Zn(Xe("isTriggerItemHighlighted"),Xe("isHighlightedItemEditable"));function gd(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function V1(e,t){return e?Hy(e,t):!1}function _1(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return Qs(n,t);for(const o in e){const i=e[o],s=dd(i.scope);if(s===t)return s}return Qs(n,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"]);let ea=new Map,ta=!1;try{ta=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ei=!1;try{ei=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const pd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class L1{format(t){let n="";if(!ta&&this.options.signDisplay!=null?n=D1(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ei){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=pd[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ta&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ei&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=F1(t,n),this.options=n}}function F1(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ei){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=pd[s])===null||r===void 0)&&r[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(ea.has(o))return ea.get(o);let i=new Intl.NumberFormat(e,t);return ea.set(o,i),i}function D1(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),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(n)}}const z1=new RegExp("^.*\\(.*\\).*$"),M1=["latn","arab","hanidec","deva","beng","fullwide"];class md{parse(t){return na(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return na(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return na(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const vd=new Map;function na(e,t,n){let r=bd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of M1)if(o!==r.options.numberingSystem){let i=bd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function bd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=vd.get(n);return r||(r=new $1(e,t),vd.set(n,r)),r}class $1{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=er(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))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 md(this.locale,s).parse(new L1(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&z1.test(t)&&(r=-1*r),r}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=er(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=er(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=er(t," ",this.symbols.group),t=er(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>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=er(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=W1(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r: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 yd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),B1=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function W1(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),h=B1.map(V=>l.formatToParts(V));var d;let m=(d=(o=c.find(V=>V.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&d!==void 0?d:"-",g=(i=u.find(V=>V.type==="plusSign"))===null||i===void 0?void 0:i.value;!g&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(g="+");let v=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(V=>V.type==="decimal"))===null||s===void 0?void 0:s.value,y=(a=c.find(V=>V.type==="group"))===null||a===void 0?void 0:a.value,C=c.filter(V=>!yd.has(V.type)).map(V=>xd(V.value)),b=h.flatMap(V=>V.filter(N=>!yd.has(N.type)).map(N=>xd(N.value))),S=[...new Set([...C,...b])].sort((V,N)=>N.length-V.length),x=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),I=new Map(E.map((V,N)=>[V,N])),P=new RegExp(`[${E.join("")}]`,"g");return{minusSign:m,plusSign:g,decimal:v,group:y,literals:x,numeral:P,index:V=>String(I.get(V))}}function er(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function xd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Cd=$("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Cd.build();var H1=e=>e.ids?.input??`number-input:${e.id}:input`,j1=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,U1=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,kd=e=>`number-input:${e.id}:cursor`,ti=e=>e.getById(H1(e)),G1=e=>e.getById(j1(e)),q1=e=>e.getById(U1(e)),Sd=e=>e.getDoc().getElementById(kd(e)),K1=(e,t)=>{let n=null;return t==="increment"&&(n=G1(e)),t==="decrement"&&(n=q1(e)),n},Y1=(e,t)=>{if(!Yl())return J1(e,t),()=>{Sd(e)?.remove()}},X1=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},Q1=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=as(o.movementX,i.devicePixelRatio),a=as(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,h=as(7.5,i.devicePixelRatio);return c.x=Lm(c.x+h,u)-h,{hint:l,point:c}},J1=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=kd(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:Ym,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
1
+ (function(h,O){typeof exports=="object"&&typeof module<"u"?module.exports=O(require("react/jsx-runtime"),require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-router-dom","react-dom"],O):(h=typeof globalThis<"u"?globalThis:h||self,h.AirflowPlugin=O(h.ReactJSXRuntime,h.React,h.ReactRouterDOM,h.ReactDOM))})(this,(function(h,O,et,no){"use strict";function hp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=hp(O);function nl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var fp=/^((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)-.*))$/,gp=nl(function(e){return fp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function pp(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 mp(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 vp=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=pp(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Pe="-ms-",ro="-moz-",Y="-webkit-",rl="comm",Wi="rule",Hi="decl",bp="@import",ol="@keyframes",yp="@layer",xp=Math.abs,oo=String.fromCharCode,kp=Object.assign;function Cp(e,t){return we(e,0)^45?(((t<<2^we(e,0))<<2^we(e,1))<<2^we(e,2))<<2^we(e,3):0}function il(e){return e.trim()}function Sp(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,n){return e.replace(t,n)}function Ui(e,t){return e.indexOf(t)}function we(e,t){return e.charCodeAt(t)|0}function hr(e,t,n){return e.slice(t,n)}function st(e){return e.length}function ji(e){return e.length}function io(e,t){return t.push(e),e}function wp(e,t){return e.map(t).join("")}var so=1,An=1,sl=0,_e=0,de=0,Vn="";function ao(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:so,column:An,length:s,return:""}}function fr(e,t){return kp(ao("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ep(){return de}function Op(){return de=_e>0?we(Vn,--_e):0,An--,de===10&&(An=1,so--),de}function We(){return de=_e<sl?we(Vn,_e++):0,An++,de===10&&(An=1,so++),de}function at(){return we(Vn,_e)}function lo(){return _e}function gr(e,t){return hr(Vn,e,t)}function pr(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 al(e){return so=An=1,sl=st(Vn=e),_e=0,[]}function ll(e){return Vn="",e}function co(e){return il(gr(_e-1,Gi(e===91?e+2:e===40?e+1:e)))}function Ip(e){for(;(de=at())&&de<33;)We();return pr(e)>2||pr(de)>3?"":" "}function Tp(e,t){for(;--t&&We()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return gr(e,lo()+(t<6&&at()==32&&We()==32))}function Gi(e){for(;We();)switch(de){case e:return _e;case 34:case 39:e!==34&&e!==39&&Gi(de);break;case 40:e===41&&Gi(e);break;case 92:We();break}return _e}function Pp(e,t){for(;We()&&e+de!==57;)if(e+de===84&&at()===47)break;return"/*"+gr(t,_e-1)+"*"+oo(e===47?e:We())}function Np(e){for(;!pr(at());)We();return gr(e,_e)}function Rp(e){return ll(uo("",null,null,null,[""],e=al(e),0,[0],e))}function uo(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,g=0,m=1,v=1,x=1,k=0,y="",S=o,b=i,E=r,I=y;v;)switch(g=k,k=We()){case 40:if(g!=108&&we(I,d-1)==58){Ui(I+=X(co(k),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=co(k);break;case 9:case 10:case 13:case 32:I+=Ip(g);break;case 92:I+=Tp(lo()-1,7);continue;case 47:switch(at()){case 42:case 47:io(Ap(Pp(We(),lo()),t,n),l);break;default:I+="/"}break;case 123*m:a[c++]=st(I)*x;case 125*m:case 59:case 0:switch(k){case 0:case 125:v=0;case 59+u:x==-1&&(I=X(I,/\f/g,"")),p>0&&st(I)-d&&io(p>32?ul(I+";",r,n,d-1):ul(X(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(io(E=cl(I,t,n,c,u,o,a,y,S=[],b=[],d),i),k===123)if(u===0)uo(I,t,E,E,S,i,d,a,b);else switch(f===99&&we(I,3)===110?100:f){case 100:case 108:case 109:case 115:uo(e,E,E,r&&io(cl(e,E,E,0,0,o,a,y,o,S=[],d),b),o,b,d,a,r?S:b);break;default:uo(I,E,E,E,[""],b,0,a,b)}}c=u=p=0,m=x=1,y=I="",d=s;break;case 58:d=1+st(I),p=g;default:if(m<1){if(k==123)--m;else if(k==125&&m++==0&&Op()==125)continue}switch(I+=oo(k),k*m){case 38:x=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(st(I)-1)*x,x=1;break;case 64:at()===45&&(I+=co(We())),f=at(),u=d=st(y=I+=Np(lo())),k++;break;case 45:g===45&&st(I)==2&&(m=0)}}return i}function cl(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],p=ji(f),g=0,m=0,v=0;g<r;++g)for(var x=0,k=hr(e,d+1,d=xp(m=s[g])),y=e;x<p;++x)(y=il(m>0?f[x]+" "+k:X(k,/&\f/g,f[x])))&&(l[v++]=y);return ao(e,t,n,o===0?Wi:a,l,c,u)}function Ap(e,t,n){return ao(e,t,n,rl,oo(Ep()),hr(e,2,-2),0)}function ul(e,t,n,r){return ao(e,t,n,Hi,hr(e,0,r),hr(e,r+1,-1),r)}function _n(e,t){for(var n="",r=ji(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Vp(e,t,n,r){switch(e.type){case yp:if(e.children.length)break;case bp:case Hi:return e.return=e.return||e.value;case rl:return"";case ol:return e.return=e.value+"{"+_n(e.children,r)+"}";case Wi:e.value=e.props.join(",")}return st(n=_n(e.children,r))?e.return=e.value+"{"+n+"}":""}function _p(e){var t=ji(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Fp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Lp=function(t,n,r){for(var o=0,i=0;o=i,i=at(),o===38&&i===12&&(n[r]=1),!pr(i);)We();return gr(t,_e)},Dp=function(t,n){var r=-1,o=44;do switch(pr(o)){case 0:o===38&&at()===12&&(n[r]=1),t[r]+=Lp(_e-1,n,r);break;case 2:t[r]+=co(o);break;case 4:if(o===44){t[++r]=at()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=oo(o)}while(o=We());return t},zp=function(t,n){return ll(Dp(al(t),n))},dl=new WeakMap,Mp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!dl.get(r))&&!o){dl.set(t,!0);for(var i=[],s=zp(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},$p=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function hl(e,t){switch(Cp(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+ro+e+Pe+e+e;case 6828:case 4268:return Y+e+Pe+e+e;case 6165:return Y+e+Pe+"flex-"+e+e;case 5187:return Y+e+X(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return Y+e+Pe+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return Y+e+Pe+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+Pe+X(e,"shrink","negative")+e;case 5292:return Y+e+Pe+X(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+X(e,"-grow","")+Y+e+Pe+X(e,"grow","positive")+e;case 4554:return Y+X(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,Y+"$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(st(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+ro+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ui(e,"stretch")?hl(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,st(e)-3-(~Ui(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(we(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return Y+e+Pe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Pe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Pe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Pe+e+e}return e}var Bp=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Hi:t.return=hl(t.value,t.length);break;case ol:return _n([fr(t,{value:X(t.value,"@","@"+Y)})],o);case Wi:if(t.length)return wp(t.props,function(i){switch(Sp(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _n([fr(t,{props:[X(i,/:(read-\w+)/,":"+ro+"$1")]})],o);case"::placeholder":return _n([fr(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),fr(t,{props:[X(i,/:(plac\w+)/,":"+ro+"$1")]}),fr(t,{props:[X(i,/:(plac\w+)/,Pe+"input-$1")]})],o)}return""})}},Wp=[Bp],Hp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Wp,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),x=1;x<v.length;x++)i[v[x]]=!0;a.push(m)});var l,c=[Mp,$p];{var u,d=[Vp,Fp(function(m){u.insert(m)})],f=_p(c.concat(o,d)),p=function(v){return _n(Rp(v),f)};l=function(v,x,k,y){u=k,p(v?v+"{"+x.styles+"}":x.styles),y&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new vp({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(a),g},qi={exports:{}},J={};var fl;function Up(){if(fl)return J;fl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function y(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case t:switch(b=b.type,b){case l:case c:case r:case i:case o:case d:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case g:case p:case s:return b;default:return E}}case n:return E}}}function S(b){return y(b)===c}return J.AsyncMode=l,J.ConcurrentMode=c,J.ContextConsumer=a,J.ContextProvider=s,J.Element=t,J.ForwardRef=u,J.Fragment=r,J.Lazy=g,J.Memo=p,J.Portal=n,J.Profiler=i,J.StrictMode=o,J.Suspense=d,J.isAsyncMode=function(b){return S(b)||y(b)===l},J.isConcurrentMode=S,J.isContextConsumer=function(b){return y(b)===a},J.isContextProvider=function(b){return y(b)===s},J.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},J.isForwardRef=function(b){return y(b)===u},J.isFragment=function(b){return y(b)===r},J.isLazy=function(b){return y(b)===g},J.isMemo=function(b){return y(b)===p},J.isPortal=function(b){return y(b)===n},J.isProfiler=function(b){return y(b)===i},J.isStrictMode=function(b){return y(b)===o},J.isSuspense=function(b){return y(b)===d},J.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===i||b===o||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===p||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===v||b.$$typeof===x||b.$$typeof===k||b.$$typeof===m)},J.typeOf=y,J}var gl;function jp(){return gl||(gl=1,qi.exports=Up()),qi.exports}var Ki,pl;function Gp(){if(pl)return Ki;pl=1;var e=jp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$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]=r,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(g,m,v){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&p(g,x,v)}var k=l(m);c&&(k=k.concat(c(m)));for(var y=s(g),S=s(m),b=0;b<k.length;++b){var E=k[b];if(!n[E]&&!(v&&v[E])&&!(S&&S[E])&&!(y&&y[E])){var I=u(m,E);try{a(g,E,I)}catch{}}}}return g}return Ki=p,Ki}Gp();var qp=!0;function ml(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Yi=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||qp===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Xi=function(t,n,r){Yi(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Kp(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Yp={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},Xp=/[A-Z]|^ms/g,Qp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vl=function(t){return t.charCodeAt(1)===45},bl=function(t){return t!=null&&typeof t!="boolean"},Qi=nl(function(e){return vl(e)?e:e.replace(Xp,"-$&").toLowerCase()}),yl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Qp,function(r,o,i){return lt={name:o,styles:i,next:lt},o})}return Yp[t]!==1&&!vl(t)&&typeof n=="number"&&n!==0?n+"px":n};function mr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return lt={name:o.name,styles:o.styles,next:lt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)lt={name:s.name,styles:s.styles,next:lt},s=s.next;var a=i.styles+";";return a}return Jp(e,t,n)}case"function":{if(e!==void 0){var l=lt,c=n(e);return lt=l,mr(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Jp(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=mr(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":bl(a)&&(r+=Qi(i)+":"+yl(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++)bl(s[l])&&(r+=Qi(i)+":"+yl(i,s[l])+";");else{var c=mr(e,t,s);switch(i){case"animation":case"animationName":{r+=Qi(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var xl=/label:\s*([^\s;{]+)\s*(;|$)/g,lt;function Ji(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";lt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=mr(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=mr(n,t,e[a]),r){var l=i;o+=l[a]}xl.lastIndex=0;for(var c="",u;(u=xl.exec(o))!==null;)c+="-"+u[1];var d=Kp(o)+c;return{name:d,styles:o,next:lt}}var Zp=function(t){return t()},kl=D.useInsertionEffect?D.useInsertionEffect:!1,Cl=kl||Zp,Sl=kl||D.useLayoutEffect,wl=D.createContext(typeof HTMLElement<"u"?Hp({key:"css"}):null);wl.Provider;var Zi=function(t){return O.forwardRef(function(n,r){var o=O.useContext(wl);return t(n,o,r)})},es=D.createContext({}),ts={}.hasOwnProperty,ns="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",em=function(t,n){var r={};for(var o in n)ts.call(n,o)&&(r[o]=n[o]);return r[ns]=t,r},tm=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Yi(n,r,o),Cl(function(){return Xi(n,r,o)}),null},nm=Zi(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[ns],i=[r],s="";typeof e.className=="string"?s=ml(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Ji(i,void 0,D.useContext(es));s+=t.key+"-"+a.name;var l={};for(var c in e)ts.call(e,c)&&c!=="css"&&c!==ns&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),D.createElement(D.Fragment,null,D.createElement(tm,{cache:t,serialized:a,isStringTag:typeof o=="string"}),D.createElement(o,l))}),rm=nm,El=function(t,n){var r=arguments;if(n==null||!ts.call(n,"css"))return D.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=rm,i[1]=em(t,n);for(var s=2;s<o;s++)i[s]=r[s];return D.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(El||(El={}));var Ol=Zi(function(e,t){var n=e.styles,r=Ji([n],void 0,D.useContext(es)),o=D.useRef();return Sl(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+" "+r.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]),Sl(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&Xi(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function om(...e){return function(...n){e.forEach(r=>r?.(...n))}}const im=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),sm=/^on[A-Z]/;function vr(...e){let t={};for(let n of e){for(let r in t){if(sm.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=om(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=im(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}const am=parseInt(D.version.split(".")[0],10)>=19;function rs(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 lm(...e){const t=e.filter(n=>n!=null);if(am){const n=new Map;return r=>(t.forEach(o=>{const i=rs(o,r);i&&n.set(o,i)}),()=>{t.forEach(o=>{const i=n.get(o);i&&typeof i=="function"?i():rs(o,null)}),n.clear()})}else return n=>{t.forEach(r=>{rs(r,n)})}}function br(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const Ke=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function cm(e){return e.default||e}const Fe=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),ct=e=>typeof e=="string",os=e=>typeof e=="function";function um(e){const t=D.version;return!ct(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const is=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function dm(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Fn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=O.createContext(s);a.displayName=t;function l(){const c=O.useContext(a);if(!c&&n){const u=new Error(i??dm(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[hm,ho]=Fn({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function fm(e){const{value:t,children:n}=e;return h.jsxs(hm,{value:t,children:[!t._config.disableLayers&&h.jsx(Ol,{styles:t.layers.atRule}),h.jsx(Ol,{styles:t._global}),n]})}const gm=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},Ln=(e,t)=>{const n=os(t)?t:r=>t.includes(r);return gm(e,n)},pm=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function mm(e){return typeof e=="string"&&pm.has(e)}function vm(e,t,n){const{css:r,isValidProperty:o}=ho(),{children:i,...s}=e,a=O.useMemo(()=>{const[f,p]=Ln(s,k=>n(k,t.variantKeys)),[g,m]=Ln(p,t.variantKeys),[v,x]=Ln(m,o);return{forwardedProps:f,variantProps:g,styleProps:v,elementProps:x}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=O.useMemo(()=>{const f={...a.variantProps},p=t.variantKeys.includes("colorPalette"),g=t.variantKeys.includes("orientation");return p||(f.colorPalette=s.colorPalette),g||(f.orientation=s.orientation),t(f)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:O.useMemo(()=>r(u,...bm(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const bm=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),ym=cm(gp),xm=e=>e!=="theme",km=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Cm=typeof document<"u";const Il=({cache:e,serialized:t,isStringTag:n})=>{Yi(e,t,n);const r=Cl(()=>Xi(e,t,n));if(!Cm&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=Ke(o,i.name),i=i.next;return h.jsx("style",{"data-emotion":Ke(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},Tl={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"]},Sm=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ss=((e,t={},n={})=>{if(Sm(Tl,e)){n.forwardProps||(n.forwardProps=[]);const c=Tl[e];n.forwardProps=is([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=Zi((c,u,d)=>{const{cva:f,isValidProperty:p}=ho(),g=t.__cva__?t:f(t),m=wm(e.__emotion_cva,g),v=z=>(U,Z)=>z.includes(U)?!0:!Z?.includes(U)&&!p(U);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=v(n.forwardProps));const x=(z,U)=>{const Z=typeof e=="string"&&e.charCodeAt(0)>96?ym:xm,te=!U?.includes(z)&&!p(z);return Z(z)&&te},k=km(e,n,r)||x,y=D.useMemo(()=>Object.assign({},n.defaultProps,br(c)),[c]),{props:S,styles:b}=vm(y,m,k);let E="",I=[b],P=S;if(S.theme==null){P={};for(let z in S)P[z]=S[z];P.theme=D.useContext(es)}typeof S.className=="string"?E=ml(u.registered,I,S.className):S.className!=null&&(E=Ke(E,S.className));const A=Ji(a.concat(I),u.registered,P);A.styles&&(E=Ke(E,`${u.key}-${A.name}`)),s!==void 0&&(E=Ke(E,s));const V=!k("as");let N=V&&S.as||o,C={};for(let z in S)if(!(V&&z==="as")){if(mm(z)){const U=z.replace("html","").toLowerCase();C[U]=S[z];continue}k(z)&&(C[z]=S[z])}let R=E.trim();R?C.className=R:Reflect.deleteProperty(C,"className"),C.ref=d;const L=n.forwardAsChild||n.forwardProps?.includes("asChild");if(S.asChild&&!L){const z=D.isValidElement(S.children)?D.Children.only(S.children):D.Children.toArray(S.children).find(D.isValidElement);if(!z)throw new Error("[chakra-ui > factory] No valid child found");N=z.type,C.children=null,Reflect.deleteProperty(C,"asChild"),C=vr(C,z.props),C.ref=lm(d,um(z))}return C.as&&L?(C.as=void 0,h.jsxs(D.Fragment,{children:[h.jsx(Il,{cache:u,serialized:A,isStringTag:typeof N=="string"}),h.jsx(N,{asChild:!0,...C,children:h.jsx(S.as,{children:C.children})})]})):h.jsxs(D.Fragment,{children:[h.jsx(Il,{cache:u,serialized:A,isStringTag:typeof N=="string"}),h.jsx(N,{...C})]})});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=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),as=new Map,be=new Proxy(ss,{apply(e,t,n){return ss(...n)},get(e,t){return as.has(t)||as.set(t,ss(t)),as.get(t)}}),wm=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),yr=be("div");yr.displayName="Box";const Em=Object.freeze({}),Om=Object.freeze({});function Im(e){const{key:t,recipe:n}=e,r=ho();return O.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const Tm=e=>e.charAt(0).toUpperCase()+e.slice(1);function _t(e){const{key:t,recipe:n}=e,r=Tm(t||n.className||"Component"),[o,i]=Fn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,f=Im({key:t,recipe:d.recipe||n}),[p,g]=O.useMemo(()=>f.splitVariantProps(d),[f,d]);return{styles:u?Em:f(p),className:f.className,props:g}}const a=(c,u)=>{const d=be(c,{},u),f=O.forwardRef((p,g)=>{const m=i(),v=O.useMemo(()=>vr(m,p),[p,m]),{styles:x,className:k,props:y}=s(v);return h.jsx(d,{...y,ref:g,css:[x,v.css],className:Ke(k,v.className)})});return f.displayName=c.displayName||c.name,f};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function fo(e){return e==null?[]:Array.isArray(e)?e:[e]}var xr=e=>e[0],ls=e=>e[e.length-1],Pm=(e,t)=>e.indexOf(t)!==-1,Yt=(e,...t)=>e.concat(t),Xt=(e,...t)=>e.filter(n=>!t.includes(n)),Pl=(e,t)=>e.filter((n,r)=>r!==t),Ft=e=>Array.from(new Set(e)),cs=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},Dn=(e,t)=>Pm(e,t)?Xt(e,t):Yt(e,t);function Nl(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Nm(e,t,n={}){return e[Nl(e,t,n)]}function Rm(e,t,n={}){const{step:r=1,loop:o=!0}=n;return Nl(e,t,{step:-r,loop:o})}function Am(e,t,n={}){return e[Rm(e,t,n)]}function Rl(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var Al=e=>e?.constructor.name==="Array",Vm=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Le(e[n],t[n]))return!1;return!0},Le=(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(Al(e)&&Al(t))return Vm(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;o<r;o++)if(!Reflect.has(e,n[o]))return!1;for(let o=0;o<r;o++){const i=n[o];if(!Le(e[i],t[i]))return!1}return!0},kr=e=>Array.isArray(e),_m=e=>e===!0||e===!1,Vl=e=>e!=null&&typeof e=="object",Qt=e=>Vl(e)&&!kr(e),go=e=>typeof e=="string",Lt=e=>typeof e=="function",Fm=e=>e==null,Dt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Lm=e=>Object.prototype.toString.call(e),_l=Function.prototype.toString,Dm=_l.call(Object),zm=e=>{if(!Vl(e)||Lm(e)!="[object Object]"||Bm(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Dt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_l.call(n)==Dm},Mm=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,$m=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Bm=e=>Mm(e)||$m(e),po=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Wm=e=>e(),Hm=()=>{},mo=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},Fl=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Ct(e,t,...n){if(e in t){const o=t[e];return Lt(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Ct),r}var Ll=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,Ll),t?.()}},{floor:Dl,abs:zl,round:vo,min:Um,max:jm,pow:Gm,sign:qm}=Math,us=e=>Number.isNaN(e),zt=e=>us(e)?0:e,Ml=(e,t)=>(e%t+t)%t,Km=(e,t)=>(e%t+t)%t,Ym=(e,t)=>zt(e)>=t,Xm=(e,t)=>zt(e)<=t,Qm=(e,t,n)=>{const r=zt(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},Jm=(e,t,n)=>vo((zt(e)-t)/n)*n+t,De=(e,t,n)=>Um(jm(zt(e),t),n),Zm=(e,t,n)=>(zt(e)-t)/(n-t),ev=(e,t,n,r)=>De(Jm(e*(n-t)+t,t,r),t,n),$l=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=Gm(10,i);n=vo(n*s)/s}return n},ds=(e,t)=>typeof t=="number"?Dl(e*t+.5)/t:vo(e),Bl=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=zl(s)*2>=r?e+qm(s)*(r-zl(s)):e-s;if(a=$l(a,r),!us(o)&&a<o)a=o;else if(!us(i)&&a>i){const l=Dl((i-o)/r),c=o+l*r;a=l<=0||c<o?i:c}return $l(a,r)},ie=(e,t=0,n=10)=>{const r=Math.pow(n,t);return vo(e*r)/r},Wl=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Hl=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(Wl(e),Wl(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},tv=(e,t)=>Hl(zt(e),"+",t),nv=(e,t)=>Hl(zt(e),"-",t);function bo(e){if(!zm(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=bo(o))}return n}function rv(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,i())},update:u=>{let d=!1;for(const f in u){const p=u[f];p!==void 0&&!t(n[f],p)&&(n[f]=p,d=!0)}d&&i()},snapshot:()=>({...n})}}function Jt(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Ul(e,t){if(e==null)throw new Error(t())}function ov(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=O.createContext(s);a.displayName=t;function l(){const c=O.useContext(a);if(!c&&n){const u=new Error(i??ov(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[kP,jl]=zn({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var iv=Object.defineProperty,sv=(e,t,n)=>t in e?iv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hs=(e,t,n)=>sv(e,typeof t!="symbol"?t+"":t,n);function av(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function lv(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var Gl=e=>Math.max(0,Math.min(1,e)),cv=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),ql=()=>{},yo=e=>typeof e=="object"&&e!==null,uv=2147483647,dv=1,hv=9,fv=11,ye=e=>yo(e)&&e.nodeType===dv&&typeof e.nodeName=="string",xo=e=>yo(e)&&e.nodeType===hv,gv=e=>yo(e)&&e===e.window,Kl=e=>ye(e)?e.localName||"":"#document";function pv(e){return["html","body","#document"].includes(Kl(e))}var mv=e=>yo(e)&&e.nodeType!==void 0,Zt=e=>mv(e)&&e.nodeType===fv&&"host"in e,vv=e=>ye(e)&&e.localName==="input",bv=e=>!!e?.matches("a[href]"),yv=e=>ye(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function xv(e){if(!e)return!1;const t=e.getRootNode();return Cr(t)===e}var kv=/(textarea|select)/;function Yl(e){if(e==null||!ye(e))return!1;try{return vv(e)&&e.selectionStart!=null||kv.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Mt(e,t){if(!e||!t||!ye(e)||!ye(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Zt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Re(e){return xo(e)?e:gv(e)?e.document:e?.ownerDocument??document}function Cv(e){return Re(e).documentElement}function pe(e){return Zt(e)?pe(e.host):xo(e)?e.defaultView??window:ye(e)?e.ownerDocument?.defaultView??window:window}function Cr(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function Sv(e){if(Kl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zt(e)&&e.host||Cv(e);return Zt(t)?t.host:t}function fs(e){let t;try{if(t=e.getRootNode({composed:!0}),xo(t)||Zt(t))return t}catch{}return e.ownerDocument??document}var gs=new WeakMap;function Mn(e){return gs.has(e)||gs.set(e,pe(e).getComputedStyle(e)),gs.get(e)}var ps=new Set(["menu","listbox","dialog","grid","tree","region"]),wv=e=>ps.has(e),Xl=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Ql(e,t){const n=new Set,r=fs(e),o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=Xl(a);for(const c of l){if(!c||n.has(c))continue;n.add(c);const u=r.getElementById(c);if(u){const d=u.getAttribute("role"),f=u.getAttribute("aria-modal")==="true";if(d&&wv(d)&&!f&&(u===t||u.contains(t)||o(u)))return!0}}}return!1};return o(e)}function Jl(e,t){const n=fs(e),r=new Set,o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=Xl(a);for(const c of l){if(!c||r.has(c))continue;r.add(c);const u=n.getElementById(c);if(u){const d=u.getAttribute("role"),f=u.getAttribute("aria-modal")==="true";d&&ps.has(d)&&!f&&(t(u),o(u))}}}};o(e)}function Ev(e){const t=new Set;return Jl(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function Ov(e){const t=e.getAttribute("role");return!!(t&&ps.has(t))}function Iv(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function Tv(e){return Iv(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function Pv(e){if(!e.id)return!1;const t=fs(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&Ov(e))}var ko=()=>typeof document<"u";function Nv(){return navigator.userAgentData?.platform??navigator.platform}function Rv(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ms=e=>ko()&&e.test(Nv()),Zl=e=>ko()&&e.test(Rv()),Av=e=>ko()&&e.test(navigator.vendor),ec=()=>ko()&&!!navigator.maxTouchPoints,Vv=()=>ms(/^iPhone/i),_v=()=>ms(/^iPad/i)||So()&&navigator.maxTouchPoints>1,Co=()=>Vv()||_v(),Fv=()=>So()||Co(),So=()=>ms(/^Mac/i),tc=()=>Fv()&&Av(/apple/i),Lv=()=>Zl(/Firefox/i),Dv=()=>Zl(/Android/i);function zv(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function He(e){return zv(e)?.[0]??e.target}function Mv(e){return Hv(e).isComposing||e.keyCode===229}function $v(e){return e.pointerType===""&&e.isTrusted?!0:Dv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Bv=e=>e.button===2||So()&&e.ctrlKey&&e.button===0,Wv=e=>"touches"in e&&e.touches.length>0;function Hv(e){return e.nativeEvent??e}function nc(e,t="client"){const n=Wv(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var ae=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function Uv(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=pe(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function jv(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function en(e,t,n="value"){if(!e)return;const r=jv(e);r&&Uv(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function rc(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=pe(e);e instanceof o.HTMLInputElement&&(en(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Gv(e){return qv(e)?e.form:e.closest("form")}function qv(e){return e.matches("textarea, input, select, button")}function Kv(e,t){if(!e)return;const n=Gv(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function Yv(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=pe(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function wo(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[Kv(e,r),Yv(e,n)];return()=>o.forEach(i=>i?.())}var oc=e=>ye(e)&&e.tagName==="IFRAME",Xv=/^(audio|video|details)$/;function ic(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var Qv=e=>!Number.isNaN(ic(e)),Jv=e=>ic(e)<0;function Zv(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const n=t(e);return(n===!0?e.shadowRoot:n)||null}function sc(e,t,n){const r=[...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=Zv(l,t);if(c){const u=Array.from(c.querySelectorAll(Eo)).filter(n),d=s.get(l);if(d!==void 0){const f=d+1;r.splice(f,0,...u),u.forEach((p,g)=>{s.set(p,f+g)});for(let p=f+u.length;p<r.length;p++)s.set(r[p],p)}else{const f=r.length;r.push(...u),u.forEach((p,g)=>{s.set(p,f+g)})}o.push(...u)}}return r}var Eo="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",ac=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Eo));(n==!0||n=="if-empty"&&o.length===0)&&ye(e)&&St(e)&&o.unshift(e);const s=[];for(const a of o)if(St(a)){if(oc(a)&&a.contentDocument){const l=a.contentDocument.body;s.push(...ac(l,{getShadowRoot:r}));continue}s.push(a)}return r?sc(s,r,St):s};function St(e){return!ye(e)||e.closest("[inert]")?!1:e.matches(Eo)&&yv(e)}function vs(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Eo));n&&tn(e)&&o.unshift(e);const i=[];for(const s of o)if(tn(s)){if(oc(s)&&s.contentDocument){const a=s.contentDocument.body;i.push(...vs(a,{getShadowRoot:r}));continue}i.push(s)}if(r){const s=sc(i,r,tn);return!s.length&&n?o:s}return!i.length&&n?o:i}function tn(e){return ye(e)&&e.tabIndex>0?!0:St(e)&&!Jv(e)}function Sr(e){return e.tabIndex<0&&(Xv.test(e.localName)||Yl(e))&&!Qv(e)?0:e.tabIndex}function bs(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=vs(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}var lc=class lp{constructor(){hs(this,"id",null),hs(this,"fn_cleanup"),hs(this,"cleanup",()=>{this.cancel()})}static create(){return new lp}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 H(e){const t=lc.create();return t.request(e),t.cleanup}function ys(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function e0(e,t,n){const r=H(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function t0(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function wr(e,t){const{defer:n}=t,r=n?H:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(t0(i,t))})),()=>{o.forEach(i=>i?.())}}function cc(e){const t=()=>{const n=pe(e);e.dispatchEvent(new n.MouseEvent("click"))};Lv()?e0(e,"keyup",t):queueMicrotask(t)}function Oo(e){const t=Sv(e);return pv(t)?Re(t).body:ye(t)&&xs(t)?t:Oo(t)}function uc(e,t=[]){const n=Oo(e),r=n===e.ownerDocument.body,o=pe(n);return r?t.concat(o,o.visualViewport||[],xs(n)?n:[]):t.concat(n,uc(n,[]))}var n0=/auto|scroll|overlay|hidden|clip/,r0=new Set(["inline","contents"]);function xs(e){const t=pe(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return n0.test(n+o+r)&&!r0.has(i)}function o0(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Er(e,t){const{rootEl:n,...r}=t||{};!e||!n||!xs(n)||!o0(n)||e.scrollIntoView(r)}function dc(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:Gl(s.x/o),y:Gl(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:f}=c,p=typeof f=="object"?f.x:f,g=typeof f=="object"?f.y:f;return d==="horizontal"?u==="rtl"||p?1-a.x:a.x:g?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function i0(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[ae(e,"pointerlockchange",i,!1),ae(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var $n="default",ks="",Io=new WeakMap;function s0(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return Co()?($n==="default"&&(ks=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),$n="disabled"):t&&(Io.set(t,t.style.userSelect),t.style.userSelect="none"),()=>a0({target:t,doc:r})}function a0(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(Co()){if($n!=="disabled")return;$n="restoring",setTimeout(()=>{ys(()=>{$n==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=ks||""),ks="",$n="default")})},300)}else if(t&&Io.has(t)){const i=Io.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Io.delete(t)}}function hc(e={}){const{defer:t,target:n,...r}=e,o=t?H:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(s0({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function l0(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=a=>{const l=nc(a),c=Math.sqrt(l.x**2+l.y**2),u=a.pointerType==="touch"?10:5;if(!(c<u)){if(a.pointerType==="mouse"&&a.button===0){i(a);return}n({point:l,event:a})}},i=a=>{const l=nc(a);r({point:l,event:a})},s=[ae(e,"pointermove",o,!1),ae(e,"pointerup",i,!1),ae(e,"pointercancel",i,!1),ae(e,"contextmenu",i,!1),hc({doc:e})];return()=>{s.forEach(a=>a())}}function Bn(e,t){return Array.from(e?.querySelectorAll(t)??[])}function c0(e,t){return e?.querySelector(t)??null}var Cs=e=>e.id;function u0(e,t,n=Cs){return e.find(r=>n(r)===t)}function To(e,t,n=Cs){const r=u0(e,t,n);return r?e.indexOf(r):-1}function fc(e,t,n=!0){let r=To(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function gc(e,t,n=!0){let r=To(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var d0=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),h0=e=>d0(e.dataset?.valuetext??e.textContent??""),f0=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function g0(e,t,n,r=Cs){const o=n?To(e,n,r):-1;let i=n?cv(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>f0(h0(a),t))}function Po(e,t){if(!e)return ql;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function p0(e,t,n){if(!e)return ql;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function m0(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a;let u=e.slice();const d=g0(u,c,r,s);function f(){clearTimeout(n.timer),n.timer=-1}function p(g){n.keysSoFar=g,f(),g!==""&&(n.timer=+setTimeout(()=>{p(""),f()},i))}return p(a),d}var Wn=Object.assign(m0,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:v0});function v0(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function b0(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function y0(e,t){const{timeout:n,rootNode:r}=t,o=pe(r),i=Re(r),s=new o.AbortController;return b0(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var x0=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),k0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,pc=e=>{const t={};let n;for(;n=k0.exec(e);)t[n[1]]=n[2];return t},C0=(e,t)=>{if(go(e)){if(go(t))return`${e};${t}`;e=pc(e)}else go(t)&&(t=pc(t));return Object.assign({},e??{},t??{})};function Ye(...e){let t={};for(let n of e){if(!n)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof n[o]=="function"){t[o]=mo(n[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=x0(t[o],n[o]);continue}if(o==="style"){t[o]=C0(t[o],n[o]);continue}t[o]=n[o]!==void 0?n[o]:t[o]}for(let o in n)t[o]===void 0&&(t[o]=n[o]);const r=Object.getOwnPropertySymbols(n);for(let o of r)t[o]=n[o]}return t}function mc(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!Le(r[c],l)))&&(r=s,o=t(s,i)),o}}function wt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function CP(e){return e}function No(){return{guards:wt(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var Hn=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Hn||{}),Ss="__init__";function S0(e){const t=()=>e.getRootNode?.()??document,n=()=>Re(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>Cr(t()),isActiveElement:xv,getById:s=>t().getElementById(s)}}function Ro(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function w0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ws=e=>{const t=O.memo(O.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return O.createElement(e,{...s,ref:r},i);if(!O.isValidElement(i))return null;const a=O.Children.only(i),l=w0(a);return O.cloneElement(a,{...Ye(s,a.props),ref:r?Ro(r,l):l})}));return t.displayName=e.displayName||e.name,t},Et=(()=>{const e=new Map;return new Proxy(ws,{apply(t,n,r){return ws(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,ws(r)),e.get(r)}})})(),[wP,E0]=zn({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),vc=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),bc=e=>vc()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function O0(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var M=()=>e=>Array.from(new Set(e));function I0(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var T0={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({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)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Mn(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});H(()=>{const s=Ao(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{H(()=>{e.set("prevAnimationName",Ao(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{const o=t.get("node");if(!o)return;const i=l=>{(l.composedPath?.()?.[0]??l.target)===o&&e.set("prevAnimationName",Ao(t.get("styles")))},s=l=>{const c=Ao(t.get("styles"));He(l)===o&&c===e.get("unmountAnimationName")&&!r("present")&&n({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",i),o.addEventListener("animationcancel",s),o.addEventListener("animationend",s);const a=Po(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",s),o.removeEventListener("animationend",s),ys(()=>a())}}}}};function Ao(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var yc=typeof globalThis.document<"u"?O.useLayoutEffect:O.useEffect;function Vo(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=O.useState(t),[o,i]=O.useState(r),s=e().value!==void 0,a=O.useRef(o);a.current=s?e().value:o;const l=O.useRef(a.current);yc(()=>{l.current=a.current},[o,e().value]);const c=d=>{const f=l.current,p=Lt(d)?d(f):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:f}),s||i(p),n(p,f)||e().onChange?.(p,f)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(d){(e().sync?no.flushSync:Wm)(()=>c(d))},invoke(d,f){e().onChange?.(d,f)},hash(d){return e().hash?.(d)??String(d)}}}Vo.cleanup=e=>{O.useEffect(()=>e,[])},Vo.ref=e=>{const t=O.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function P0(e){const t=O.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var N0=(e,t)=>{const n=O.useRef(!1),r=O.useRef(!1);O.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),O.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function xc(e,t={}){const n=O.useMemo(()=>{const{id:N,ids:C,getRootNode:R}=t;return S0({id:N,ids:C,getRootNode:R})},[t]),r=(...N)=>{e.debug&&console.log(...N)},o=e.props?.({props:bo(t),scope:n})??t,i=R0(o),s=e.context?.({prop:i,bindable:Vo,scope:n,flush:Cc,getContext(){return l},getComputed(){return b},getRefs(){return m},getEvent(){return p()}}),a=kc(s),l={get(N){return a.current?.[N].ref.current},set(N,C){a.current?.[N].set(C)},initial(N){return a.current?.[N].initial},hash(N){const C=a.current?.[N].get();return a.current?.[N].hash(C)}},c=O.useRef(new Map),u=O.useRef(null),d=O.useRef(null),f=O.useRef({type:""}),p=()=>({...f.current,current(){return f.current},previous(){return d.current}}),g=()=>({...E,matches(...N){return N.includes(E.ref.current)},hasTag(N){return!!e.states[E.ref.current]?.tags?.includes(N)}}),m=P0(e.refs?.({prop:i,context:l})??{}),v=()=>({state:g(),context:l,event:p(),prop:i,send:V,action:x,guard:k,track:N0,refs:m,computed:b,flush:Cc,scope:n,choose:S}),x=N=>{const C=Lt(N)?N(v()):N;if(!C)return;const R=C.map(L=>{const z=e.implementations?.actions?.[L];return z||Jt(`[zag-js] No implementation found for action "${JSON.stringify(L)}"`),z});for(const L of R)L?.(v())},k=N=>Lt(N)?N(v()):e.implementations?.guards?.[N](v()),y=N=>{const C=Lt(N)?N(v()):N;if(!C)return;const R=C.map(z=>{const U=e.implementations?.effects?.[z];return U||Jt(`[zag-js] No implementation found for effect "${JSON.stringify(z)}"`),U}),L=[];for(const z of R){const U=z?.(v());U&&L.push(U)}return()=>L.forEach(z=>z?.())},S=N=>fo(N).find(C=>{let R=!C.guard;return go(C.guard)?R=!!k(C.guard):Lt(C.guard)&&(R=C.guard(v())),R}),b=N=>{Ul(e.computed,()=>"[zag-js] No computed object found on machine");const C=e.computed[N];return C({context:l,event:p(),prop:i,refs:m,scope:n,computed:b})},E=Vo(()=>({defaultValue:e.initialState({prop:i}),onChange(N,C){C&&(c.current.get(C)?.(),c.current.delete(C)),C&&x(e.states[C]?.exit),x(u.current?.actions);const R=y(e.states[N]?.effects);if(R&&c.current.set(N,R),C===Ss){x(e.entry);const L=y(e.effects);L&&c.current.set(Ss,L)}x(e.states[N]?.entry)}})),I=O.useRef(void 0),P=O.useRef(Hn.NotStarted);yc(()=>{queueMicrotask(()=>{const R=P.current===Hn.Started;P.current=Hn.Started,r(R?"rehydrating...":"initializing...");const L=I.current??E.initial;E.invoke(L,R?E.get():Ss)});const N=c.current,C=E.ref.current;return()=>{r("unmounting..."),I.current=C,P.current=Hn.Stopped,N.forEach(R=>R?.()),c.current=new Map,u.current=null,queueMicrotask(()=>{x(e.exit)})}},[]);const A=()=>"ref"in E?E.ref.current:E.get(),V=N=>{queueMicrotask(()=>{if(P.current!==Hn.Started)return;d.current=f.current,f.current=N;let C=A();const R=e.states[C].on?.[N.type]??e.on?.[N.type],L=S(R);if(!L)return;u.current=L;const z=L.target??C;r("transition",N.type,L.target||C,`(${L.actions})`);const U=z!==C;U?no.flushSync(()=>E.set(z)):L.reenter&&!U?E.invoke(C,C):x(L.actions??[])})};return e.watch?.(v()),{state:g(),send:V,context:l,prop:i,scope:n,refs:m,computed:b,event:p(),getStatus:()=>P.current}}function kc(e){const t=O.useRef(e);return t.current=e,t}function R0(e){const t=kc(e);return function(r){return t.current[r]}}function Cc(e){queueMicrotask(()=>{no.flushSync(()=>e())})}var A0=O0(e=>e);function V0(e,t={}){const{sync:n=!1}=t,r=_0(e);return O.useCallback((...o)=>n?queueMicrotask(()=>r.current?.(...o)):r.current?.(...o),[n,r])}function _0(e){const t=O.useRef(e);return t.current=e,t}const Es=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=O.useRef(!1),a={...i,present:r,onExitComplete:V0(e.onExitComplete)},l=xc(T0,a),c=I0(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[Sc,Os]=zn({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Or=be("span");Or.displayName="Span";const{withContext:F0}=_t({key:"text"}),Ae=F0("p");Ae.displayName="Text";function wc(e,t=[]){const n=O.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return O.useInsertionEffect(()=>{n.current=e}),O.useCallback((...r)=>n.current?.(...r),t)}function nn(e={}){const t=wc(e.onOpen),n=wc(e.onClose),[r,o]=O.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=O.useCallback(()=>{s||o(!1),n?.()},[s,n]),l=O.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=O.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var $=(e,t=[])=>({parts:(...n)=>{if(L0(t))return $(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>$(e,[...t,...n]),omit:(...n)=>$(e,t.filter(r=>!n.includes(r))),rename:n=>$(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Un(e)}"][data-part="${Un(r)}"]`,`& [data-scope="${Un(e)}"][data-part="${Un(r)}"]`].join(", "),attrs:{"data-scope":Un(e),"data-part":Un(r)}}}),{})}),Un=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),L0=e=>e.length===0,Ec=$("collapsible").parts("root","trigger","content","indicator");Ec.build(),M()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);var D0=Object.defineProperty,z0=(e,t,n)=>t in e?D0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Is=(e,t,n)=>z0(e,t+"",n),M0=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Ts=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 n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return Zm(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=ev(t,n,r,o);return Bl(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=De(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Bl(De(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return M0(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},$0=/^#[\da-f]+$/i,B0=/^rgba?\((.*)\)$/,W0=/[^#]/gi,Oc=class zi extends Ts{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if($0.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(W0,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(B0);return r?.[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>De(o,0,i<3?255:1))),n.length<3?void 0:new zi(n[0],n[1],n[2],n[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,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-t)/s+2;break;case r:l=(t-n)/s+4;break}l/=6}return new Rs(ie(l*360,2),ie(a*100,2),ie(i*100,2),ie(this.alpha,2))}toHSL(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),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=(n-r)/a+(n<r?6:0);break;case n:l=(r-t)/a+2;break;case r:l=(t-n)/a+4;break}l/=6}return new Ns(ie(l*360,2),ie(c*100,2),ie(s*100,2),ie(this.alpha,2))}clone(){return new zi(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,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(n,r).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 zi.colorChannels}};Is(Oc,"colorChannels",["red","green","blue"]);var Ps=Oc,H0=/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+)?)\)/,Ic=class Mi extends Ts{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.lightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(H0)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Mi(Ml(r,360),De(o,0,100),De(i,0,100),De(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,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Rs(ie(this.hue,2),ie(t*100,2),ie(r*100,2),ie(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new Ps(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ie(this.alpha,2))}clone(){return new Mi(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,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).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 Mi.colorChannels}};Is(Ic,"colorChannels",["hue","saturation","lightness"]);var Ns=Ic,U0=/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+)?)\)/,Tc=class $i extends Ts{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(U0)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new $i(Ml(r,360),De(o,0,100),De(i,0,100),De(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,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Ns(ie(this.hue,2),ie(t*100,2),ie(r*100,2),ie(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Ps(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ie(this.alpha,2))}clone(){return new $i(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,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).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 $i.colorChannels}};Is(Tc,"colorChannels",["hue","saturation","brightness"]);var Rs=Tc,j0="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",G0=e=>{const t=new Map,n=e.split(",");for(let r=0;r<n.length;r++){const[o,i]=n[r].split(":");t.set(o,`#${i}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${i}`)}return t},Pc=G0(j0),_o=e=>{if(Pc.has(e))return _o(Pc.get(e));const t=Ps.parse(e)||Rs.parse(e)||Ns.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,_o),n}return t};const q0=["top","right","bottom","left"],$t=Math.min,Ue=Math.max,Fo=Math.round,Lo=Math.floor,ut=e=>({x:e,y:e}),K0={left:"right",right:"left",bottom:"top",top:"bottom"},Y0={start:"end",end:"start"};function As(e,t,n){return Ue(e,$t(t,n))}function Ot(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function Vs(e){return e==="x"?"y":"x"}function _s(e){return e==="y"?"height":"width"}const X0=new Set(["top","bottom"]);function dt(e){return X0.has(It(e))?"y":"x"}function Fs(e){return Vs(dt(e))}function Q0(e,t,n){n===void 0&&(n=!1);const r=jn(e),o=Fs(e),i=_s(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Do(s)),[s,Do(s)]}function J0(e){const t=Do(e);return[Ls(e),t,Ls(t)]}function Ls(e){return e.replace(/start|end/g,t=>Y0[t])}const Nc=["left","right"],Rc=["right","left"],Z0=["top","bottom"],eb=["bottom","top"];function tb(e,t,n){switch(e){case"top":case"bottom":return n?t?Rc:Nc:t?Nc:Rc;case"left":case"right":return t?Z0:eb;default:return[]}}function nb(e,t,n,r){const o=jn(e);let i=tb(It(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ls)))),i}function Do(e){return e.replace(/left|right|bottom|top/g,t=>K0[t])}function rb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ac(e){return typeof e!="number"?rb(e):{top:e,right:e,bottom:e,left:e}}function zo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vc(e,t,n){let{reference:r,floating:o}=e;const i=dt(t),s=Fs(t),a=_s(s),l=It(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(jn(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1);break}return p}const ob=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Vc(c,r,l),f=r,p={},g=0;for(let m=0;m<a.length;m++){const{name:v,fn:x}=a[m],{x:k,y,data:S,reset:b}=await x({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=k??u,d=y??d,p={...p,[v]:{...p[v],...S}},b&&g<=50&&(g++,typeof b=="object"&&(b.placement&&(f=b.placement),b.rects&&(c=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:u,y:d}=Vc(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}};async function Ir(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ot(t,e),g=Ac(p),v=a[f?d==="floating"?"reference":"floating":d],x=zo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),k=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},b=zo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:y,strategy:l}):k);return{top:(x.top-b.top+g.top)/S.y,bottom:(b.bottom-x.bottom+g.bottom)/S.y,left:(x.left-b.left+g.left)/S.x,right:(b.right-x.right+g.right)/S.x}}const ib=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Ot(e,t)||{};if(c==null)return{};const d=Ac(u),f={x:n,y:r},p=Fs(o),g=_s(p),m=await s.getDimensions(c),v=p==="y",x=v?"top":"left",k=v?"bottom":"right",y=v?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[p]-f[p]-i.floating[g],b=f[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[y]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[y]||i.floating[g]);const P=S/2-b/2,A=I/2-m[g]/2-1,V=$t(d[x],A),N=$t(d[k],A),C=V,R=I-m[g]-N,L=I/2-m[g]/2+P,z=As(C,L,R),U=!l.arrow&&jn(o)!=null&&L!==z&&i.reference[g]/2-(L<C?V:N)-m[g]/2<0,Z=U?L<C?L-C:L-R:0;return{[p]:f[p]+Z,data:{[p]:z,centerOffset:L-z-Z,...U&&{alignmentOffset:Z}},reset:U}}}),sb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...v}=Ot(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=It(o),k=dt(a),y=It(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),b=f||(y||!m?[Do(a)]:J0(a)),E=g!=="none";!f&&E&&b.push(...nb(a,m,g,S));const I=[a,...b],P=await Ir(t,v),A=[];let V=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&A.push(P[x]),d){const L=Q0(o,s,S);A.push(P[L[0]],P[L[1]])}if(V=[...V,{placement:o,overflows:A}],!A.every(L=>L<=0)){var N,C;const L=(((N=i.flip)==null?void 0:N.index)||0)+1,z=I[L];if(z&&(!(d==="alignment"?k!==dt(z):!1)||V.every(te=>dt(te.placement)===k?te.overflows[0]>0:!0)))return{data:{index:L,overflows:V},reset:{placement:z}};let U=(C=V.filter(Z=>Z.overflows[0]<=0).sort((Z,te)=>Z.overflows[1]-te.overflows[1])[0])==null?void 0:C.placement;if(!U)switch(p){case"bestFit":{var R;const Z=(R=V.filter(te=>{if(E){const W=dt(te.placement);return W===k||W==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(W=>W>0).reduce((W,q)=>W+q,0)]).sort((te,W)=>te[1]-W[1])[0])==null?void 0:R[0];Z&&(U=Z);break}case"initialPlacement":U=a;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function _c(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fc(e){return q0.some(t=>e[t]>=0)}const ab=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ot(e,t);switch(r){case"referenceHidden":{const i=await Ir(t,{...o,elementContext:"reference"}),s=_c(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Fc(s)}}}case"escaped":{const i=await Ir(t,{...o,altBoundary:!0}),s=_c(i,n.floating);return{data:{escapedOffsets:s,escaped:Fc(s)}}}default:return{}}}}},Lc=new Set(["left","top"]);async function lb(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=It(n),a=jn(n),l=dt(n)==="y",c=Lc.has(s)?-1:1,u=i&&l?-1:1,d=Ot(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const cb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await lb(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},ub=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x,y:k}=v;return{x,y:k}}},...l}=Ot(e,t),c={x:n,y:r},u=await Ir(t,l),d=dt(It(o)),f=Vs(d);let p=c[f],g=c[d];if(i){const v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",k=p+u[v],y=p-u[x];p=As(k,p,y)}if(s){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",k=g+u[v],y=g-u[x];g=As(k,g,y)}const m=a.fn({...t,[f]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:s}}}}}},db=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ot(e,t),u={x:n,y:r},d=dt(o),f=Vs(d);let p=u[f],g=u[d];const m=Ot(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=f==="y"?"height":"width",S=i.reference[f]-i.floating[y]+v.mainAxis,b=i.reference[f]+i.reference[y]-v.mainAxis;p<S?p=S:p>b&&(p=b)}if(c){var x,k;const y=f==="y"?"width":"height",S=Lc.has(It(o)),b=i.reference[d]-i.floating[y]+(S&&((x=s.offset)==null?void 0:x[d])||0)+(S?0:v.crossAxis),E=i.reference[d]+i.reference[y]+(S?0:((k=s.offset)==null?void 0:k[d])||0)-(S?v.crossAxis:0);g<b?g=b:g>E&&(g=E)}return{[f]:p,[d]:g}}}},hb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ot(e,t),u=await Ir(t,c),d=It(o),f=jn(o),p=dt(o)==="y",{width:g,height:m}=i.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,v=f==="end"?"top":"bottom");const k=m-u.top-u.bottom,y=g-u.left-u.right,S=$t(m-u[v],k),b=$t(g-u[x],y),E=!t.middlewareData.shift;let I=S,P=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=k),E&&!f){const V=Ue(u.left,0),N=Ue(u.right,0),C=Ue(u.top,0),R=Ue(u.bottom,0);p?P=g-2*(V!==0||N!==0?V+N:Ue(u.left,u.right)):I=m-2*(C!==0||R!==0?C+R:Ue(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:I});const A=await s.getDimensions(a.floating);return g!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function Mo(){return typeof window<"u"}function Gn(e){return Dc(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ht(e){var t;return(t=(Dc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dc(e){return Mo()?e instanceof Node||e instanceof je(e).Node:!1}function tt(e){return Mo()?e instanceof Element||e instanceof je(e).Element:!1}function ft(e){return Mo()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function zc(e){return!Mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}const fb=new Set(["inline","contents"]);function Tr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fb.has(o)}const gb=new Set(["table","td","th"]);function pb(e){return gb.has(Gn(e))}const mb=[":popover-open",":modal"];function $o(e){return mb.some(t=>{try{return e.matches(t)}catch{return!1}})}const vb=["transform","translate","scale","rotate","perspective"],bb=["transform","translate","scale","rotate","perspective","filter"],yb=["paint","layout","strict","content"];function Ds(e){const t=zs(),n=tt(e)?nt(e):e;return vb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bb.some(r=>(n.willChange||"").includes(r))||yb.some(r=>(n.contain||"").includes(r))}function xb(e){let t=Bt(e);for(;ft(t)&&!qn(t);){if(Ds(t))return t;if($o(t))return null;t=Bt(t)}return null}function zs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kb=new Set(["html","body","#document"]);function qn(e){return kb.has(Gn(e))}function nt(e){return je(e).getComputedStyle(e)}function Bo(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bt(e){if(Gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zc(e)&&e.host||ht(e);return zc(t)?t.host:t}function Mc(e){const t=Bt(e);return qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&&Tr(t)?t:Mc(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=je(o);if(i){const a=Ms(s);return t.concat(s,s.visualViewport||[],Tr(o)?o:[],a&&n?Pr(a):[])}return t.concat(o,Pr(o,[],n))}function Ms(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $c(e){const t=nt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ft(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Fo(n)!==i||Fo(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function $s(e){return tt(e)?e:e.contextElement}function Kn(e){const t=$s(e);if(!ft(t))return ut(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$c(t);let s=(i?Fo(n.width):n.width)/r,a=(i?Fo(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Cb=ut(0);function Bc(e){const t=je(e);return!zs()||!t.visualViewport?Cb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function rn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=$s(e);let s=ut(1);t&&(r?tt(r)&&(s=Kn(r)):s=Kn(e));const a=Sb(i,n,r)?Bc(i):ut(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const f=je(i),p=r&&tt(r)?je(r):r;let g=f,m=Ms(g);for(;m&&r&&p!==g;){const v=Kn(m),x=m.getBoundingClientRect(),k=nt(m),y=x.left+(m.clientLeft+parseFloat(k.paddingLeft))*v.x,S=x.top+(m.clientTop+parseFloat(k.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=y,c+=S,g=je(m),m=Ms(g)}}return zo({width:u,height:d,x:l,y:c})}function Wo(e,t){const n=Bo(e).scrollLeft;return t?t.left+n:rn(ht(e)).left+n}function Wc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Wo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function wb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ht(r),a=t?$o(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ut(1);const u=ut(0),d=ft(r);if((d||!d&&!i)&&((Gn(r)!=="body"||Tr(s))&&(l=Bo(r)),ft(r))){const p=rn(r);c=Kn(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=s&&!d&&!i?Wc(s,l):ut(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Eb(e){return Array.from(e.getClientRects())}function Ob(e){const t=ht(e),n=Bo(e),r=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Wo(e);const a=-n.scrollTop;return nt(r).direction==="rtl"&&(s+=Ue(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Hc=25;function Ib(e,t){const n=je(e),r=ht(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=zs();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Wo(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-p);g<=Hc&&(i-=g)}else c<=Hc&&(i+=c);return{width:i,height:s,x:a,y:l}}const Tb=new Set(["absolute","fixed"]);function Pb(e,t){const n=rn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ft(e)?Kn(e):ut(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Uc(e,t,n){let r;if(t==="viewport")r=Ib(e,n);else if(t==="document")r=Ob(ht(e));else if(tt(t))r=Pb(t,n);else{const o=Bc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zo(r)}function jc(e,t){const n=Bt(e);return n===t||!tt(n)||qn(n)?!1:nt(n).position==="fixed"||jc(n,t)}function Nb(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(a=>tt(a)&&Gn(a)!=="body"),o=null;const i=nt(e).position==="fixed";let s=i?Bt(e):e;for(;tt(s)&&!qn(s);){const a=nt(s),l=Ds(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Tb.has(o.position)||Tr(s)&&!l&&jc(e,s))?r=r.filter(u=>u!==s):o=a,s=Bt(s)}return t.set(e,r),r}function Rb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?$o(t)?[]:Nb(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=Uc(t,u,o);return c.top=Ue(d.top,c.top),c.right=$t(d.right,c.right),c.bottom=$t(d.bottom,c.bottom),c.left=Ue(d.left,c.left),c},Uc(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ab(e){const{width:t,height:n}=$c(e);return{width:t,height:n}}function Vb(e,t,n){const r=ft(t),o=ht(t),i=n==="fixed",s=rn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ut(0);function c(){l.x=Wo(o)}if(r||!r&&!i)if((Gn(t)!=="body"||Tr(o))&&(a=Bo(t)),r){const p=rn(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?Wc(o,a):ut(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function Bs(e){return nt(e).position==="static"}function Gc(e,t){if(!ft(e)||nt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ht(e)===n&&(n=n.ownerDocument.body),n}function qc(e,t){const n=je(e);if($o(e))return n;if(!ft(e)){let o=Bt(e);for(;o&&!qn(o);){if(tt(o)&&!Bs(o))return o;o=Bt(o)}return n}let r=Gc(e,t);for(;r&&pb(r)&&Bs(r);)r=Gc(r,t);return r&&qn(r)&&Bs(r)&&!Ds(r)?n:r||xb(e)||n}const _b=async function(e){const t=this.getOffsetParent||qc,n=this.getDimensions,r=await n(e.floating);return{reference:Vb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fb(e){return nt(e).direction==="rtl"}const Lb={convertOffsetParentRelativeRectToViewportRelativeRect:wb,getDocumentElement:ht,getClippingRect:Rb,getOffsetParent:qc,getElementRects:_b,getClientRects:Eb,getDimensions:Ab,getScale:Kn,isElement:tt,isRTL:Fb};function Kc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Db(e,t){let n=null,r;const o=ht(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const g=Lo(d),m=Lo(o.clientWidth-(u+f)),v=Lo(o.clientHeight-(d+p)),x=Lo(u),y={rootMargin:-g+"px "+-m+"px "+-v+"px "+-x+"px",threshold:Ue(0,$t(1,l))||1};let S=!0;function b(E){const I=E[0].intersectionRatio;if(I!==l){if(!S)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Kc(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(e)}return s(!0),i}function zb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=$s(e),u=o||i?[...c?Pr(c):[],...Pr(t)]:[];u.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=c&&a?Db(c,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(x=>{let[k]=x;k&&k.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let g,m=l?rn(e):null;l&&v();function v(){const x=rn(e);m&&!Kc(m,x)&&n(),m=x,g=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(k=>{o&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),d?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const Mb=cb,$b=ub,Bb=sb,Wb=hb,Hb=ab,Ub=ib,jb=db,Gb=(e,t,n)=>{const r=new Map,o={platform:Lb,...n},i={...o.platform,_c:r};return ob(e,t,{...o,platform:i})};function Yc(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function qb(e){if(!e)return Yc();const{x:t,y:n,width:r,height:o}=e;return Yc(t,n,r,o)}function Kb(e,t){return{contextElement:ye(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?qb(r):n.getBoundingClientRect()}}}var Xc=e=>({variable:e,reference:`var(${e})`}),Qc={transformOrigin:Xc("--transform-origin"),arrowOffset:Xc("--arrow-offset")},Yb=e=>e==="top"||e==="bottom"?"y":"x";function Xb(e,t){return{name:"transformOrigin",fn(n){const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=Yb(l),u=o.arrow?.x||0,d=o.arrow?.y||0,f=t?.clientWidth||0,p=t?.clientHeight||0,g=u+f/2,m=d+p/2,v=Math.abs(o.shift?.y||0),x=s.reference.height/2,k=p/2,y=e.offset?.mainAxis??e.gutter,S=typeof y=="number"?y+k:y??k,b=v>S,E={top:`${g}px calc(100% + ${S}px)`,bottom:`${g}px ${-S}px`,left:`calc(100% + ${S}px) ${m}px`,right:`${-S}px ${m}px`}[l],I=`${g}px ${s.reference.y+x-a}px`,P=!!e.overlap&&c==="y"&&b;return r.floating.style.setProperty(Qc.transformOrigin.variable,P?I:E),{data:{transformOrigin:P?I:E}}}}}var Qb={name:"rects",fn({rects:e}){return{data:e}}},Jb=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Qc.arrowOffset.reference})`}),{}}}};function Zb(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function ey(e){return e.split("-")[0]}var ty={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Jc(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ws(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function ny(e,t,n){const r=e||t.createElement("div");return Ub({element:r,padding:n.arrowPadding})}function ry(e,t){if(!Fm(t.offset??t.gutter))return Mb(({placement:n})=>{const r=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=Zb(n),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return bo({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function oy(e){if(!e.flip)return;const t=Ws(e.boundary);return Bb({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function iy(e){if(!e.slide&&!e.overlap)return;const t=Ws(e.boundary);return $b({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:jb()})}function sy(e){return Wb({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),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",`${r}px`)}})}function ay(e){if(e.hideWhenDetached)return Hb({strategy:"referenceHidden",boundary:Ws(e.boundary)??"clippingAncestors"})}function ly(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function cy(e,t,n={}){const r=Kb(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},ty,n),i=t.querySelector("[data-part=arrow]"),s=[ry(i,o),oy(o),iy(o),ny(i,t.ownerDocument,o),Jb(i),Xb({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),sy(o),ay(o),Qb],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,d=async()=>{if(!r||!t)return;const m=await Gb(r,t,{placement:a,middleware:s,strategy:l});c?.(m),u?.({placed:!0});const v=pe(t),x=Jc(v,m.x),k=Jc(v,m.y);t.style.setProperty("--x",`${x}px`),t.style.setProperty("--y",`${k}px`),o.hideWhenDetached&&(m.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const y=t.firstElementChild;if(y){const S=Mn(y);t.style.setProperty("--z-index",S.zIndex)}},f=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u?.({placed:!0})):await d()},p=ly(o.listeners),g=o.listeners?zb(r,t,f,p):Hm;return f(),()=>{g?.(),u?.({placed:!1})}}function rt(e,t,n={}){const{defer:r,...o}=n,i=r?H:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(cy(a,l,o))})),()=>{s.forEach(a=>a?.())}}function uy(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&n(o)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function dy(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var Zc="pointerdown.outside",eu="focus.outside";function hy(e){for(const t of e)if(ye(t)&&St(t))return!0;return!1}var tu=e=>"clientY"in e;function fy(e,t){if(!tu(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function gy(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function nu(e,t){if(!t||!tu(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&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+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return gy(s,a)?r||i:!1}function py(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s,followControlledElements:a=!0}=t;if(!e)return;const l=Re(e),c=pe(e),u=uy(c),d=dy(c);function f(y,S){if(!ye(S)||!S.isConnected||Mt(e,S)||fy(e,y)||a&&Ql(e,S))return!1;const b=l.querySelector(`[aria-controls="${e.id}"]`);if(b){const I=Oo(b);if(nu(y,I))return!1}const E=Oo(e);return nu(y,E)?!1:!n?.(S)}const p=new Set,g=Zt(e?.getRootNode());function m(y){function S(b){const E=s&&!ec()?H:A=>A(),I=b??y,P=I?.composedPath?.()??[I?.target];E(()=>{const A=g?P[0]:He(y);if(!(!e||!f(y,A))){if(o||i){const V=mo(o,i);e.addEventListener(Zc,V,{once:!0})}ou(e,Zc,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:Bv(I),focusable:hy(P),target:A}})}})}y.pointerType==="touch"?(p.forEach(b=>b()),p.add(ae(l,"click",S,{once:!0})),p.add(d.addEventListener("click",S,{once:!0})),p.add(u.addEventListener("click",S,{once:!0}))):S()}const v=new Set,x=setTimeout(()=>{v.add(ae(l,"pointerdown",m,!0)),v.add(d.addEventListener("pointerdown",m,!0)),v.add(u.addEventListener("pointerdown",m,!0))},0);function k(y){(s?H:b=>b())(()=>{const b=y?.composedPath?.()??[y?.target],E=g?b[0]:He(y);if(!(!e||!f(y,E))){if(r||i){const I=mo(r,i);e.addEventListener(eu,I,{once:!0})}ou(e,eu,{bubbles:!1,cancelable:!0,detail:{originalEvent:y,contextmenu:!1,focusable:St(E),target:E}})}})}return ec()||(v.add(ae(l,"focusin",k,!0)),v.add(d.addEventListener("focusin",k,!0)),v.add(u.addEventListener("focusin",k,!0))),()=>{clearTimeout(x),p.forEach(y=>y()),v.forEach(y=>y())}}function ru(e,t){const{defer:n}=t,r=n?H:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(py(i,t))})),()=>{o.forEach(i=>i?.())}}function ou(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function my(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ae(Re(e),"keydown",n,{capture:!0})}var iu="layer:request-dismiss",ze={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),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},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 n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Mt(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Mt(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(r=>ze.dismiss(r.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 r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];by(e,iu,o=>{r.requestDismiss?.(o),o.defaultPrevented||r?.dismiss()}),vy(e,iu,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function vy(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function by(e,t,n){e.addEventListener(t,n,{once:!0})}var su;function au(){ze.layers.forEach(({node:e})=>{e.style.pointerEvents=ze.isBelowPointerBlockingLayer(e)?"none":"auto"})}function yy(e){e.style.pointerEvents=""}function xy(e,t){const n=Re(e),r=[];return ze.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(su=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=y0(()=>{const a=o();return ye(a)?a:null},{timeout:1e3});i.then(a=>r.push(Po(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{ze.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=su,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function ky(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Jt("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:i,requestDismiss:o};ze.add(c),au();function u(m){const v=He(m.detail.originalEvent);ze.isBelowPointerBlockingLayer(e)||ze.isInBranch(v)||(t.onPointerDownOutside?.(m),t.onInteractOutside?.(m),!m.defaultPrevented&&(a&&console.log("onPointerDownOutside:",m.detail.originalEvent),r?.()))}function d(m){const v=He(m.detail.originalEvent);ze.isInBranch(v)||(t.onFocusOutside?.(m),t.onInteractOutside?.(m),!m.defaultPrevented&&(a&&console.log("onFocusOutside:",m.detail.originalEvent),r?.()))}function f(m){ze.isTopMost(e)&&(t.onEscapeKeyDown?.(m),!m.defaultPrevented&&r&&(m.preventDefault(),r()))}function p(m){if(!e)return!1;const v=typeof s=="function"?s():s,x=Array.isArray(v)?v:[v],k=t.persistentElements?.map(y=>y()).filter(ye);return k&&x.push(...k),x.some(y=>Mt(y,m))||ze.isInNestedLayer(e,m)}const g=[i?xy(e,t.persistentElements):void 0,my(e,f),ru(e,{exclude:p,onFocusOutside:d,onPointerDownOutside:u,defer:t.defer})];return()=>{ze.remove(e),au(),yy(e),g.forEach(m=>m?.())}}function Yn(e,t){const{defer:n}=t,r=n?H:i=>i(),o=[];return o.push(r(()=>{const i=Lt(e)?e():e;o.push(ky(i,t))})),()=>{o.forEach(i=>i?.())}}function Cy(e,t={}){const{defer:n}=t,r=n?H:i=>i(),o=[];return o.push(r(()=>{const i=Lt(e)?e():e;if(!i){Jt("[@zag-js/dismissable] branch node is `null` or `undefined`");return}ze.addBranch(i),o.push(()=>{ze.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}var lu=$("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"]);lu.build();var Sy=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,wy=e=>e.ids?.control??`color-picker:${e.id}:control`,Ey=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,Oy=e=>e.ids?.content??`color-picker:${e.id}:content`,Iy=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,Ty=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,Py=e=>e.ids?.area??`color-picker:${e.id}:area`,Ny=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,Ry=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,Ay=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Ho=e=>e.getById(Oy(e)),Vy=e=>e.getById(Ny(e)),_y=(e,t)=>e.getById(Ay(e,t)),Fy=e=>e.getById(Ty(e)),cu=e=>e.getById(Sy(e)),Ly=e=>e.getById(Py(e)),Dy=(e,t,n)=>{const r=Ly(e);if(!r)return;const{getPercentValue:o}=dc(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},zy=e=>e.getById(wy(e)),Hs=e=>e.getById(Ey(e)),My=e=>e.getById(Iy(e)),$y=(e,t)=>e.getById(Ry(e,t)),By=(e,t,n,r)=>{const o=$y(e,n);if(!o)return;const{getPercentValue:i}=dc(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},Wy=e=>[...Bn(Ho(e),"input[data-channel]"),...Bn(zy(e),"input[data-channel]")];function Hy(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 n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?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 uu=e=>_o(e),Uy=/^[0-9a-fA-F]{3,8}$/;function jy(e){return Uy.test(e)}function Gy(e){return e.startsWith("#")?e:jy(e)?`#${e}`:e}var{and:qy}=wt();qy("isOpenControlled","closeOnSelect");function du(e,t,n){const r=Wy(e);H(()=>{r.forEach(o=>{const i=o.dataset.channel;en(o,Hy(n||t,i))})})}function Ky(e,t){const n=Fy(e);n&&H(()=>en(n,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 Uo="__live-region__";function Yy(e={}){const{level:t="polite",document:n=document,root:r,delay:o=0}=e,i=n.defaultView??window,s=r??n.body;function a(c,u){n.getElementById(Uo)?.remove(),u=u??o;const f=n.createElement("span");f.id=Uo,f.dataset.liveAnnouncer="true";const p=t!=="assertive"?"status":"alert";f.setAttribute("aria-live",t),f.setAttribute("role",p),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},u)}function l(){n.getElementById(Uo)?.remove()}return{announce:a,destroy:l,toJSON(){return Uo}}}const[hu,Xy]=zn({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),fu=e=>vc()(e,["lazyMount","unmountOnExit"]);var gu=$("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");gu.build();var pu=e=>e.ids?.root??`accordion:${e.id}`,mu=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,Qy=e=>e.getById(pu(e)),jo=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(pu(e))}']:not([disabled])`;return Bn(Qy(e),n)},Jy=e=>xr(jo(e)),Zy=e=>ls(jo(e)),ex=(e,t)=>fc(jo(e),mu(e,t)),tx=(e,t)=>gc(jo(e),mu(e,t)),{and:nx,not:rx}=wt();nx("isExpanded","canToggle"),rx("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var Nr=(e,t)=>({x:e,y:t});function ox(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:Nr(i,s)}}function ix(e){const t=Nr(e.minX,e.minY),n=Nr(e.maxX,e.minY),r=Nr(e.maxX,e.maxY),o=Nr(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function sx(e,t){const n=ox(e),{top:r,right:o,left:i,bottom:s}=ix(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function ax(e,t){const{x:n,y:r}=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,u=e[s].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var vu=$("avatar").parts("root","image","fallback");vu.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);var Xn=new WeakMap,Go=new WeakMap,qo={},Us=0,bu=e=>e&&(e.host||bu(e.parentNode)),lx=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=bu(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),cx=new Set(["script","output","status","next-route-announcer"]),ux=e=>cx.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),dx=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o,followControlledElements:i=!0}=t,s=lx(n,Array.isArray(e)?e:[e]);qo[r]||(qo[r]=new WeakMap);const a=qo[r],l=[],c=new Set,u=new Set(s),d=p=>{!p||c.has(p)||(c.add(p),d(p.parentNode))};s.forEach(p=>{d(p),i&&ye(p)&&Jl(p,g=>{d(g)})});const f=p=>{!p||u.has(p)||Array.prototype.forEach.call(p.children,g=>{if(c.has(g))f(g);else try{if(ux(g))return;const v=g.getAttribute(o)==="true",x=(Xn.get(g)||0)+1,k=(a.get(g)||0)+1;Xn.set(g,x),a.set(g,k),l.push(g),x===1&&v&&Go.set(g,!0),k===1&&g.setAttribute(r,""),v||g.setAttribute(o,"true")}catch(m){console.error("[zag-js > ariaHidden] cannot operate on ",g,m)}})};return f(n),c.clear(),Us++,()=>{l.forEach(p=>{const g=Xn.get(p)-1,m=a.get(p)-1;Xn.set(p,g),a.set(p,m),g||(Go.has(p)||p.removeAttribute(o),Go.delete(p)),m||p.removeAttribute(r)}),Us--,Us||(Xn=new WeakMap,Xn=new WeakMap,Go=new WeakMap,qo={})}},hx=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,fx=(e,t=hx(e),n="data-aria-hidden",r=!0)=>{if(t)return dx(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden",followControlledElements:r})},gx=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function yu(e,t={}){const{defer:n=!0}=t,r=n?gx:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(fx(s))})),()=>{o.forEach(i=>i?.())}}var px=Object.defineProperty,mx=(e,t,n)=>t in e?px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t,n)=>mx(e,typeof t!="symbol"?t+"":t,n),xu={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},vx=[],bx=class{constructor(e,t){le(this,"trapStack"),le(this,"config"),le(this,"doc"),le(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),le(this,"portalContainers",new Set),le(this,"listenerCleanups",[]),le(this,"handleFocus",r=>{const o=He(r),i=this.findContainerIndex(o,r)>=0;if(i||xo(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(Sr(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<c.length&&(s=c[u+1],a=!1):u-1>=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>Sr(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}),le(this,"handlePointerDown",r=>{const o=He(r);if(!(this.findContainerIndex(o,r)>=0)){if(Ar(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Ar(this.config.allowOutsideClick,r)||r.preventDefault()}}),le(this,"handleClick",r=>{const o=He(r);this.findContainerIndex(o,r)>=0||Ar(this.config.clickOutsideDeactivates,r)||Ar(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),le(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;Rr(r)&&r.preventDefault(),this.tryFocus(i)}}),le(this,"handleEscapeKey",r=>{yx(r)&&Ar(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),le(this,"_mutationObserver"),le(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.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 Tv(c)?!0:c.id&&!this.state.containers.some(u=>u.contains(c))?Pv(c):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),le(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),le(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!St(r)){const o=Cr(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),le(this,"tryFocus",r=>{if(r!==!1&&r!==Cr(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,xx(r)&&r.select()}}),le(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),xu.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=()=>{ku(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s?.()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),le(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),le(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),le(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),le(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),le(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),le(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` 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(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),le(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||He(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 u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||St(s)&&!tn(s)&&!c?.nextTabbableNode(s,!1))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,f=this.state.tabbableGroups[d];a=Sr(s)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else Rr(o)||(a=c?.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||St(s)&&!tn(s)&&!c?.nextTabbableNode(s))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,f=this.state.tabbableGroups[d];a=Sr(s)>=0?f.firstTabbableNode:f.firstDomTabbableNode}else Rr(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||vx;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return Rr(r)&&!r.shiftKey},isKeyBackward(r){return Rr(r)&&r.shiftKey},...t};this.doc=n.document||Re(Array.isArray(e)?e[0]:e),this.config=n,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=>{Ev(e).forEach(n=>{this.addPortalContainer(n)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||n?.includes(r)||o.find(i=>i===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?Ql(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=vs(e,{getShadowRoot:this.config.getShadowRoot}),n=ac(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],o=t[t.length-1],i=r,s=o;let a=!1;for(let c=0;c<t.length;c++)if(Sr(t[c])>0){a=!0;break}function l(c,u=!0){const d=t.indexOf(c);if(d>=0)return t[d+(u?1:-1)];const f=n.indexOf(c);if(!(f<0)){if(u){for(let p=f+1;p<n.length;p++)if(tn(n[p]))return n[p]}else for(let p=f-1;p>=0;p--)if(tn(n[p]))return n[p]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,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 xu.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?ku(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ae(this.doc,"focusin",this.handleFocus,!0),ae(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ae(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ae(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ae(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ae(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"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=Cr(this.doc),t?.();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Rr=e=>e.key==="Tab",Ar=(e,...t)=>typeof e=="function"?e(...t):e,yx=e=>!e.isComposing&&e.key==="Escape",ku=e=>setTimeout(e,0),xx=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function kx(e,t={}){let n;const r=H(()=>{const o=typeof e=="function"?e():e;if(o){n=new bx(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Re(o)});try{n.activate()}catch{}}});return function(){n?.deactivate(),r()}}var js="data-scroll-lock";function Cx(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Cu(e){const n=Mn(e)?.scrollbarGutter;return n==="stable"||n?.startsWith("stable ")===!0}function Sx(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(js))return;const s=Cu(r)||Cu(o),a=n.innerWidth-r.clientWidth;o.setAttribute(js,"");const l=()=>p0(r,"--scrollbar-width",`${a}px`),c=Cx(r),u=()=>{const p={overflow:"hidden"};return!s&&a>0&&(p[c]=`${a}px`),Po(o,p)},d=()=>{const{scrollX:p,scrollY:g,visualViewport:m}=n,v=m?.offsetLeft??0,x=m?.offsetTop??0,k={position:"fixed",overflow:"hidden",top:`${-(g-Math.floor(x))}px`,left:`${-(p-Math.floor(v))}px`,right:"0"};!s&&a>0&&(k[c]=`${a}px`);const y=Po(o,k);return()=>{y?.(),n.scrollTo({left:p,top:g,behavior:"instant"})}},f=[l(),Co()?d():u()];return()=>{f.forEach(p=>p?.()),o.removeAttribute(js)}}var Su=$("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger");Su.build(),M()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","onDragStatusChange","onAutoplayStatusChange"]),M()(["index","readOnly"]),M()(["index","snapAlign"]);function wx(e){return!(e.metaKey||!So()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var Ex=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ox(e,t,n){const r=n?He(n):null,o=pe(r);return e=e||r instanceof o.HTMLInputElement&&!Ex.has(r?.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(Ix,n.key))}var Wt=null,Gs=new Set,Ko=new Map,on=!1,qs=!1,Ix={Tab:!0,Escape:!0};function Yo(e,t){for(let n of Gs)n(e,t)}function Xo(e){on=!0,wx(e)&&(Wt="keyboard",Yo("keyboard",e))}function Xe(e){Wt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(on=!0,Yo("pointer",e))}function wu(e){$v(e)&&(on=!0,Wt="virtual")}function Eu(e){const t=He(e);t===pe(t)||t===Re(t)||(!on&&!qs&&(Wt="virtual",Yo("virtual",e)),on=!1,qs=!1)}function Ou(){on=!1,qs=!0}function Tx(e){if(typeof window>"u"||Ko.get(pe(e)))return;const t=pe(e),n=Re(e);let r=t.HTMLElement.prototype.focus;function o(){Wt="virtual",Yo("virtual",null),on=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}n.addEventListener("keydown",Xo,!0),n.addEventListener("keyup",Xo,!0),n.addEventListener("click",wu,!0),t.addEventListener("focus",Eu,!0),t.addEventListener("blur",Ou,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",Xe,!0),n.addEventListener("pointermove",Xe,!0),n.addEventListener("pointerup",Xe,!0)):(n.addEventListener("mousedown",Xe,!0),n.addEventListener("mousemove",Xe,!0),n.addEventListener("mouseup",Xe,!0)),t.addEventListener("beforeunload",()=>{Px(e)},{once:!0}),Ko.set(t,{focus:r})}var Px=(e,t)=>{const n=pe(e),r=Re(e),o=Ko.get(n);if(o){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}r.removeEventListener("keydown",Xo,!0),r.removeEventListener("keyup",Xo,!0),r.removeEventListener("click",wu,!0),n.removeEventListener("focus",Eu,!0),n.removeEventListener("blur",Ou,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",Xe,!0),r.removeEventListener("pointermove",Xe,!0),r.removeEventListener("pointerup",Xe,!0)):(r.removeEventListener("mousedown",Xe,!0),r.removeEventListener("mousemove",Xe,!0),r.removeEventListener("mouseup",Xe,!0)),Ko.delete(n)}};function Nx(){return Wt}function Iu(){return Wt==="keyboard"}function Tu(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;Tx(o),r?.({isFocusVisible:n||Iu(),modality:Wt});const i=(s,a)=>{Ox(!!t,s,a)&&r?.({isFocusVisible:Iu(),modality:s})};return Gs.add(i),()=>{Gs.delete(i)}}var Pu=$("checkbox").parts("root","label","control","indicator");Pu.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Rx=Pu.extendWith("group"),[EP,Nu]=zn({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Ru=$("clipboard").parts("root","control","trigger","indicator","input","label");Ru.build(),M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),M()(["copied"]);const Ax=lu.extendWith("view");var Vx=Object.defineProperty,_x=(e,t,n)=>t in e?Vx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>_x(e,typeof t!="symbol"?t+"":t,n),Qo={itemToValue(e){return typeof e=="string"?e:Qt(e)&&Dt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Qt(e)&&Dt(e,"label")?e.label:Qo.itemToValue(e)},isItemDisabled(e){return Qt(e)&&Dt(e,"disabled")?!!e.disabled:!1}},Qn=class cp{constructor(t){this.options=t,T(this,"items"),T(this,"indexMap",null),T(this,"copy",n=>new cp({...this.options,items:n??[...this.items]})),T(this,"isEqual",n=>Le(this.items,n.items)),T(this,"setItems",n=>this.copy(n)),T(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),T(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),T(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),T(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),T(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),T(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),T(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??Qo.itemToValue(n)),T(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??Qo.isItemDisabled(n)),T(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??Qo.itemToString(n)),T(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),T(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),T(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),T(this,"has",n=>this.indexOf(n)!==-1),T(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),T(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),T(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),T(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),T(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=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,r),r++}}return this.indexMap.get(n)??-1}),T(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.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)===r)&&!this.getItemDisabled(a)&&Fx(this.stringifyItem(a),n))return a}}),T(this,"search",(n,r)=>{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function f(){clearTimeout(o.timer),o.timer=-1}function p(g){o.keysSoFar=g,f(),g!==""&&(o.timer=+setTimeout(()=>{p(""),f()},s))}return p(a),d}),T(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),T(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),T(this,"insert",(n,...r)=>this.copy(Vr(this.items,n,...r))),T(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Vr(this.items,o,...r))}),T(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Vr(this.items,o+1,...r))}),T(this,"prepend",(...n)=>this.copy(Vr(this.items,0,...n))),T(this,"append",(...n)=>this.copy(Vr(this.items,this.items.length,...n))),T(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),T(this,"remove",(...n)=>{const r=n.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:!r.includes(i)}))}),T(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Jo(this.items,[o],r))}),T(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Jo(this.items,i,o))}),T(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Jo(this.items,i,o+1))}),T(this,"reorder",(n,r)=>this.copy(Jo(this.items,[n],r))),T(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return o<i?-1:o>i?1:0}),T(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),T(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),T(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),T(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}},Fx=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Vr(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Jo(e,t,n){t=[...t].sort((o,i)=>o-i);const r=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 n=Math.max(0,n-t.filter(o=>o<n).length),[...e.slice(0,n),...r,...e.slice(n)]}var Lx=class Bi extends Set{constructor(t=[]){super(t),T(this,"selectionMode","single"),T(this,"deselectable",!0),T(this,"copy",()=>{const n=new Bi([...this]);return this.sync(n)}),T(this,"sync",n=>(n.selectionMode=this.selectionMode,n.deselectable=this.deselectable,n)),T(this,"isEmpty",()=>this.size===0),T(this,"isSelected",n=>this.selectionMode==="none"||n==null?!1:this.has(n)),T(this,"canSelect",(n,r)=>this.selectionMode!=="none"||!n.getItemDisabled(n.find(r))),T(this,"firstSelectedValue",n=>{let r=null;for(let o of this)(!r||n.compareValue(o,r)<0)&&(r=o);return r}),T(this,"lastSelectedValue",n=>{let r=null;for(let o of this)(!r||n.compareValue(o,r)>0)&&(r=o);return r}),T(this,"extendSelection",(n,r,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(n,o);const i=this.copy(),s=Array.from(this).pop();for(let a of n.getValueRange(r,s??o))i.delete(a);for(let a of n.getValueRange(o,r))this.canSelect(n,a)&&i.add(a);return i}),T(this,"toggleSelection",(n,r)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(r))return this.replaceSelection(n,r);const o=this.copy();return o.has(r)?o.delete(r):o.canSelect(n,r)&&o.add(r),o}),T(this,"replaceSelection",(n,r)=>{if(this.selectionMode==="none")return this;if(r==null)return this;if(!this.canSelect(n,r))return this;const o=new Bi([r]);return this.sync(o)}),T(this,"setSelection",n=>{if(this.selectionMode==="none")return this;let r=new Bi;for(let o of n)if(o!=null&&(r.add(o),this.selectionMode==="single"))break;return this.sync(r)}),T(this,"clearSelection",()=>{const n=this.copy();return n.deselectable&&n.size>0&&n.clear(),n}),T(this,"select",(n,r,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(r)&&this.deselectable?this.toggleSelection(n,r):this.replaceSelection(n,r):this.selectionMode==="multiple"||o?this.toggleSelection(n,r):this.replaceSelection(n,r)),T(this,"deselect",n=>{const r=this.copy();return r.delete(n),r}),T(this,"isEqual",n=>Le(Array.from(this),Array.from(n)))}};function Au(e,t,n){for(let r=0;r<t.length;r++)e=n.getChildren(e,t.slice(r+1))[t[r]];return e}function Dx(e){const t=zx(e),n=[],r=new Set;for(const o of t){const i=o.join();r.has(i)||(r.add(i),n.push(o))}return n}function Vu(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.length-t.length}function zx(e){return e.sort(Vu)}function Mx(e,t){let n;return Ge(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function $x(e,t){const n=[];return Ge(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function _u(e,t){let n;return Ge(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function Bx(e,t){let n=t.initialResult;return Ge(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function Wx(e,t){return Bx(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function Hx(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((p,g)=>{const m=[...a,g],v=i(p,m);v&&c.push(v)});const u=a.length===0,d=n(s,a),f=c.length>0;return u||d||f?r(s,c,a):null};return i(e,[])||r(e,[],[])}function Ux(e,t){const n=[];let r=0;const o=new Map,i=new Map;return Ge(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(p=>{i.has(p)||i.set(p,s),o.has(p)||o.set(p,r++)});const c=l.length>0?l.map(p=>o.get(p)):void 0,u=i.get(s),d=u?o.get(u):void 0,f=o.get(s);n.push({...s,_children:c,_parent:d,_index:f})}}),n}function jx(e,t){return{type:"insert",index:e,nodes:t}}function Gx(e){return{type:"remove",indexes:e}}function Ks(){return{type:"replace"}}function Fu(e){return[e.slice(0,-1),e[e.length-1]]}function Lu(e,t,n=new Map){const[r,o]=Fu(e);for(let s=r.length-1;s>=0;s--){const a=r.slice(0,s).join();switch(n.get(a)?.type){case"remove":continue}n.set(a,Ks())}const i=n.get(r.join());switch(i?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),jx(o,t))}return n}function Du(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,Ks())}for(const[r,o]of n)t.set(r,Gx(o));return t}function qx(e,t){const n=new Map,[r,o]=Fu(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,Ks())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function Zo(e,t,n){return Kx(e,{...n,getChildren:(r,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return n.create(r,o.filter((u,d)=>!a.indexes.includes(d)),i);case"removeThenInsert":const l=o.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d<u?u-1:u,a.insertIndex);return n.create(r,zu(l,c,0,...a.insertNodes),i);case"insert":return n.create(r,zu(o,a.index,0,...a.nodes),i);case"replace":return n.create(r,o,i);default:return r}}})}function zu(e,t,n,...r){return[...e.slice(0,t),...r,...e.slice(t+n)]}function Kx(e,t){const n={};return Ge(e,{...t,onLeave:(r,o)=>{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function Yx(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Lu(r,n);return Zo(e,o,t)}function Xx(e,t){if(t.at.length===0)return t.node;const n=qx(t.at,t.node);return Zo(e,n,t)}function Qx(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Du(t.indexPaths);return Zo(e,n,t)}function Jx(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 n=Dx(t.indexPaths),r=n.map(i=>Au(e,i,t)),o=Lu(t.to,r,Du(n));return Zo(e,o,t)}function Ge(e,t){const{onEnter:n,onLeave:r,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 u=n?.(l.node,a());if(u==="stop")return;l.state=u==="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 d=l.state;i.push(d),s.push({node:c[d]}),l.state=d+1;continue}if(r?.(l.node,a())==="stop")return}i.pop(),s.pop()}}var Mu=class up{constructor(t){this.options=t,T(this,"rootNode"),T(this,"isEqual",n=>Le(this.rootNode,n.rootNode)),T(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??Jn.nodeToChildren(n)??[]),T(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),T(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),T(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??Jn.nodeToChildrenCount(n)),T(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??Jn.nodeToValue(n)),T(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??Jn.isNodeDisabled(n)),T(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),T(this,"stringifyNode",n=>this.options.nodeToString?.(n)??Jn.nodeToString(n)),T(this,"getFirstNode",(n=this.rootNode)=>{let r;return Ge(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),T(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return Ge(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,n)){if(r.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),T(this,"at",n=>Au(this.rootNode,n,{getChildren:this.getNodeChildren})),T(this,"findNode",(n,r=this.rootNode)=>Mx(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),T(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return $x(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),T(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>Vu(r.indexPath,o.indexPath)).map(({value:r})=>r)),T(this,"getIndexPath",n=>_u(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),T(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),T(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),T(this,"getDepth",n=>_u(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})?.length??0),T(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),T(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),T(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),T(this,"getNextNode",(n,r={})=>{let o=!1,i;return Ge(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(r.skip?.({value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),T(this,"getPreviousNode",(n,r={})=>{let o,i=!1;return Ge(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(r.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),T(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const i=this.at(r);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),T(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return Ge(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!r?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),T(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),T(this,"getParentIndexPath",n=>n.slice(0,-1)),T(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),T(this,"visit",n=>{const{skip:r,...o}=n;Ge(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return r?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),T(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),T(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i<o.length;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),T(this,"getSiblingNodes",n=>{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),T(this,"getValues",(n=this.rootNode)=>Wx(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),T(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),T(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),T(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return Ge(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(r.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),T(this,"flatten",(n=this.rootNode)=>Ux(n,{getChildren:this.getNodeChildren})),T(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),T(this,"_insert",(n,r,o)=>this.copy(Yx(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),T(this,"copy",n=>new up({...this.options,rootNode:n})),T(this,"_replace",(n,r,o)=>this.copy(Xx(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),T(this,"_move",(n,r,o)=>this.copy(Jx(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),T(this,"_remove",(n,r)=>this.copy(Qx(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),T(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),T(this,"remove",n=>this._remove(this.rootNode,n)),T(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),T(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),T(this,"move",(n,r)=>this._move(this.rootNode,n,r)),T(this,"filter",n=>{const r=Hx(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),T(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Jn={nodeToValue(e){return typeof e=="string"?e:Qt(e)&&Dt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Qt(e)&&Dt(e,"label")?e.label:Jn.nodeToValue(e)},isNodeDisabled(e){return Qt(e)&&Dt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Qt(e)&&Dt(e,"childrenCount"))return e.childrenCount}},$u=$("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");$u.build();var Bu=e=>new Qn(e);Bu.empty=()=>new Qn({items:[]});var Zx=e=>e.ids?.control??`combobox:${e.id}:control`,e1=e=>e.ids?.input??`combobox:${e.id}:input`,t1=e=>e.ids?.content??`combobox:${e.id}:content`,n1=e=>e.ids?.positioner??`combobox:${e.id}:popper`,r1=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,o1=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Ht=e=>e.getById(t1(e)),Zn=e=>e.getById(e1(e)),Wu=e=>e.getById(n1(e)),Hu=e=>e.getById(Zx(e)),_r=e=>e.getById(r1(e)),Uu=e=>e.getById(o1(e)),Fr=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return c0(Ht(e),n)},ju=e=>{const t=Zn(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},i1=e=>{const t=_r(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:s1,createMachine:a1,choose:l1}=No(),{and:xe,not:qe}=s1;a1({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}){cc(t)},collection:Bu.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:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Le,hash(o){return o.join(",")},onChange(o){const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(d=>a.getItemValue(d)===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=Ct(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=r(),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:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>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:l1([{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:xe("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:xe("isCustomValue",qe("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:xe("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","hideOtherElements"],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:xe("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:xe("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:xe("isOpenControlled","isCustomValue",qe("hasHighlightedItem"),qe("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",qe("hasHighlightedItem"),qe("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xe("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:xe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:xe("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:xe("isOpenControlled","isCustomValue",qe("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",qe("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","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"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:xe("isOpenControlled","isCustomValue",qe("hasHighlightedItem"),qe("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",qe("hasHighlightedItem"),qe("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xe("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:xe("isOpenControlled","isCustomValue",qe("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",qe("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:xe("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 n=e("openOnChange");return _m(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Yn(()=>Ht(n),{type:"listbox",defer:!0,exclude:()=>[Zn(n),_r(n),Uu(n)],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})}})},hideOtherElements({scope:e}){return yu([Zn(e),Ht(e),_r(e),Uu(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Hu(n)||_r(n),o=()=>Wu(n);return e.set("currentPlacement",t("positioning").placement),rt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=Zn(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const f=Ht(n),p=t("scrollToIndexFn");if(p){const v=t("collection").indexOf(d);p({index:v,immediate:c,getElement:()=>Fr(n,d)});return}const g=Fr(n,d),m=H(()=>{Er(g,{rootEl:f,block:"nearest"})});i.push(m)},a=H(()=>s(!0));i.push(a);const l=wr(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){rt(()=>Hu(n),()=>Wu(n),{...t("positioning"),...r.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:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?Dn(t.get("value"),o):[o];n("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=Ct(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){ys(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=Fr(n,r),i=Ht(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>Fr(n,r)});return}Er(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=o("multiple")?Dn(t.get("value"),n.value):[n.value];o("onSelect")?.({value:i,itemValue:n.value}),t.set("value",i);const s=Ct(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=Xt(t.get("value"),n.value);t.set("value",i);const s=Ct(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){H(()=>{ju(e)})},setFinalFocus({scope:e}){H(()=>{_r(e)?.dataset.focusable==null?ju(e):i1(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Zn(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&lv(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=Ct(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=Ct(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=Ct(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>Fr(t,r)})}else{const r=Ht(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const n=Gu(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){const n=Gu(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Ht(n)?queueMicrotask:H)(()=>{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:n}){(Ht(n)?queueMicrotask:H)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){H(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){H(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){H(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=Zn(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));H(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=Ct(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Gu(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 c1=$u.extendWith("empty"),[qu,Ut]=zn({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),Ku=O.forwardRef((e,t)=>{const n=Ut(),r=Xy(),o=Es({...r,present:n.open}),i=Ye(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:h.jsx(Et.div,{...i,ref:Ro(o.ref,t)})});Ku.displayName="DialogBackdrop";const Yu=O.forwardRef((e,t)=>{const n=Ut(),r=Ye(n.getCloseTriggerProps(),e);return h.jsx(Et.button,{...r,ref:t})});Yu.displayName="DialogCloseTrigger";const Xu=O.forwardRef((e,t)=>{const n=Ut(),r=Os(),o=Ye(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:h.jsx(Et.div,{...o,ref:Ro(r.ref,t)})});Xu.displayName="DialogContent";const Qu=O.forwardRef((e,t)=>{const n=Ut(),r=Ye(n.getDescriptionProps(),e);return h.jsx(Et.div,{...r,ref:t})});Qu.displayName="DialogDescription";const Ju=O.forwardRef((e,t)=>{const n=Ut(),r=Ye(n.getPositionerProps(),e);return Os().unmounted?null:h.jsx(Et.div,{...r,ref:t})});Ju.displayName="DialogPositioner";var Ys=$("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),sn=Ys.build(),Zu=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,ed=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Xs=e=>e.ids?.content??`dialog:${e.id}:content`,td=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Qs=e=>e.ids?.title??`dialog:${e.id}:title`,Js=e=>e.ids?.description??`dialog:${e.id}:description`,nd=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,ei=e=>e.getById(Xs(e)),u1=e=>e.getById(Zu(e)),d1=e=>e.getById(ed(e)),h1=e=>e.getById(td(e)),f1=e=>e.getById(Qs(e)),g1=e=>e.getById(Js(e)),p1=e=>e.getById(nd(e));function m1(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...sn.trigger.attrs,dir:i("dir"),id:td(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":Xs(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...sn.backdrop.attrs,dir:i("dir"),hidden:!l,id:ed(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...sn.positioner.attrs,dir:i("dir"),id:Zu(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...sn.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:Xs(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Qs(s),"aria-describedby":c.description?Js(s):void 0})},getTitleProps(){return t.element({...sn.title.attrs,dir:i("dir"),id:Qs(s)})},getDescriptionProps(){return t.element({...sn.description.attrs,dir:i("dir"),id:Js(s)})},getCloseTriggerProps(){return t.button({...sn.closeTrigger.attrs,dir:i("dir"),id:nd(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var v1={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>p1(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...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:n}){e([()=>n("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:n}){return Yn(()=>ei(e),{type:"dialog",defer:!0,pointerBlocking:n("modal"),exclude:[h1(e)],onInteractOutside(o){n("onInteractOutside")?.(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){n("onEscapeKeyDown")?.(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Sx(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?kx(()=>ei(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>t("finalFocusEl")?.()??r,getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?yu(()=>[ei(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){H(()=>{e.set("rendered",{title:!!f1(t),description:!!g1(t)})})},syncZIndex({scope:e}){H(()=>{const t=ei(e);if(!t)return;const n=Mn(t);[u1(e),d1(e)].forEach(o=>{o?.style.setProperty("--z-index",n.zIndex),o?.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};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 b1=e=>{const t=O.useId(),{getRootNode:n}=jl(),{dir:r}=E0(),o={id:t,getRootNode:n,dir:r,...e},i=xc(v1,o);return m1(i,A0)},y1=e=>{const[t,{children:n,...r}]=bc(e),[o]=fu(t),i=b1(r),s=Es(Ye({present:i.open},t));return h.jsx(qu,{value:i,children:h.jsx(hu,{value:o,children:h.jsx(Sc,{value:s,children:n})})})},x1=e=>{const[t,{value:n,children:r}]=bc(e),[o]=fu(t),i=Es(Ye({present:n.open},t));return h.jsx(qu,{value:n,children:h.jsx(hu,{value:o,children:h.jsx(Sc,{value:i,children:r})})})},rd=O.forwardRef((e,t)=>{const n=Ut(),r=Ye(n.getTitleProps(),e);return h.jsx(Et.h2,{...r,ref:t})});rd.displayName="DialogTitle";const od=O.forwardRef((e,t)=>{const n=Ut(),r=Os(),o=Ye({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return h.jsx(Et.button,{...o,ref:t})});od.displayName="DialogTrigger";var id=$("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");id.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 sd=O.forwardRef((e,t)=>{const n=Nu(),r=Ye(n?.getInputProps(),e);return h.jsx(Et.input,{...r,ref:t})});sd.displayName="FieldInput";const ad=$("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");ad.build();function k1(e){if(!e)return;const t=Mn(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 C1(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 S1(e){if(!e)return;const t=Re(e),n=pe(e),r=C1(t),o=k1(e);o&&(r.style.cssText+=o);function i(){n.requestAnimationFrame(()=>{r.innerHTML=e.value;const s=n.getComputedStyle(r);e?.style.setProperty("width",s.width)})}return i(),e?.addEventListener("input",i),e?.addEventListener("change",i),()=>{t.body.removeChild(r),e?.removeEventListener("input",i),e?.removeEventListener("change",i)}}var w1=e=>{if(!e)return;const t=Mn(e),n=pe(e),r=Re(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 n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),r.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const ld=O.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=O.useRef(null),i=Nu(),s=Ye(i?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return O.useEffect(()=>{if(n)return w1(o.current)},[n]),h.jsx(Et.textarea,{...s,ref:Ro(t,o)})});ld.displayName="FieldTextarea";const cd=$("fieldset").parts("root","errorText","helperText","legend");cd.build();var ud=$("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");ud.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"]);var dd=$("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");dd.build();var E1=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,O1=e=>e.ids?.content??`hover-card:${e.id}:content`,I1=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Zs=e=>e.getById(E1(e)),T1=e=>e.getById(O1(e)),hd=e=>e.getById(I1(e)),{not:ti,and:fd}=wt();fd("isOpenControlled",ti("isPointer")),ti("isPointer"),fd("isOpenControlled",ti("isPointer")),ti("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var gd=$("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");gd.build();var pd=e=>new Mu(e);pd.empty=()=>new Mu({rootNode:{children:[]}});var P1=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,gt=(e,t)=>{t!=null&&e.getById(P1(e,t))?.focus()},N1=(e,t)=>`tree:${e.id}:rename-input:${t}`,md=(e,t)=>e.getById(N1(e,t));function R1(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return Ft(o?Xt(n,...r):Yt(n,...r))}function ni(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",m=>Ft(Yt(m,...t)));return}const i=n.get("loadingStatus"),[s,a]=Rl(t,m=>i[m]==="loaded");if(s.length>0&&n.set("expandedValue",m=>Ft(Yt(m,...s))),a.length===0)return;const l=r("collection"),[c,u]=Rl(a,m=>{const v=l.findNode(m);return l.getNodeChildren(v).length>0});if(c.length>0&&n.set("expandedValue",m=>Ft(Yt(m,...c))),u.length===0)return;n.set("loadingStatus",m=>({...m,...u.reduce((v,x)=>({...v,[x]:"loading"}),{})}));const d=u.map(m=>{const v=l.getIndexPath(m),x=l.getValuePath(v),k=l.findNode(m);return{id:m,indexPath:v,valuePath:x,node:k}}),f=o.get("pendingAborts"),p=r("loadChildren");Ul(p,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const g=d.map(({id:m,indexPath:v,valuePath:x,node:k})=>{const y=f.get(m);y&&(y.abort(),f.delete(m));const S=new AbortController;return f.set(m,S),p({valuePath:x,indexPath:v,node:k,signal:S.signal})});Promise.allSettled(g).then(m=>{const v=[],x=[],k=n.get("loadingStatus");let y=r("collection");m.forEach((S,b)=>{const{id:E,indexPath:I,node:P,valuePath:A}=d[b];S.status==="fulfilled"?(k[E]="loaded",v.push(E),y=y.replace(I,{...P,children:S.value})):(f.delete(E),Reflect.deleteProperty(k,E),x.push({node:P,error:S.reason,indexPath:I,valuePath:A}))}),n.set("loadingStatus",k),v.length&&(n.set("expandedValue",S=>Ft(Yt(S,...v))),r("onLoadChildrenComplete")?.({collection:y})),x.length&&r("onLoadChildrenError")?.({nodes:x})})}function jt(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:pt}=wt();pt("isMultipleSelection","moveFocus"),pt("isShiftKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),pt("isBranchFocused","isBranchExpanded"),pt("isShiftKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),pt("isCtrlKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),pt("isCtrlKey","isMultipleSelection"),pt("isShiftKey","isMultipleSelection"),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"]),M()(["node","indexPath"]);var vd=$("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");vd.build();var bd=e=>new Qn(e);bd.empty=()=>new Qn({items:[]});var A1=e=>e.ids?.content??`select:${e.id}:content`,V1=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,yd=e=>e.getById(A1(e)),xd=(e,t)=>e.getById(V1(e,t)),{guards:_1,createMachine:F1}=No(),{or:L1}=_1;F1({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:bd.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Le,onChange(n){const r=e("collection").findMany(n);return e("onValueChange")?.({value:n,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(n){e("onHighlightChange")?.({highlightedValue:n,highlightedItem:e("collection").find(n),highlightedIndex:e("collection").indexOf(n)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const n=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(n)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Wn.defaultOptions},focusVisible:!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 n=new Lx(e.get("value"));return n.selectionMode=t("selectionMode"),n.deselectable=!!t("deselectable"),n},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:n,action:r}){n([()=>e.get("value").toString()],()=>{r(["syncSelectedItems"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),n([()=>t("collection").toString()],()=>{r(["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"]},"CONTENT.FOCUS":[{guard:L1("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused"]},"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})=>Tu({root:e.getRootNode?.(),onChange(n){t.set("focusVisible",n.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:n}){const r=i=>{const s=e.get("highlightedValue");if(s==null||Nx()!=="keyboard")return;const l=yd(n),c=t("scrollToIndexFn");if(c){const d=t("collection").indexOf(s);c?.({index:d,immediate:i,getElement(){return xd(n,s)}});return}const u=xd(n,s);Er(u,{rootEl:l,block:"nearest"})};return H(()=>r(!0)),wr(()=>yd(n),{defer:!0,attributes:["data-activedescendant"],callback(){r(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:n,computed:r}){const o=n.value??e.get("highlightedValue"),i=t("collection");if(o==null||!i.has(o))return;const s=r("selection");if(n.shiftKey&&r("multiple")&&n.anchorValue){const a=s.extendSelection(i,n.anchorValue,o);Lr(s,a,t("onSelect")),e.set("value",Array.from(a))}else{const a=s.select(i,o,n.metaKey);Lr(s,a,t("onSelect")),e.set("value",Array.from(a))}},selectWithKeyboard({context:e,prop:t,event:n,computed:r}){const o=r("selection"),i=t("collection");if(n.shiftKey&&r("multiple")&&n.anchorValue){const s=o.extendSelection(i,n.anchorValue,n.value);Lr(o,s,t("onSelect")),e.set("value",Array.from(s));return}if(t("selectOnHighlight")){const s=o.replaceSelection(i,n.value);Lr(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:n,refs:r}){const o=t("collection").search(n.key,{state:r.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:n,computed:r}){const o=t("collection"),i=r("selection"),s=i.select(o,n.value);Lr(i,s,t("onSelect")),e.set("value",Array.from(s))},clearItem({context:e,event:t,computed:n}){const o=n("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 n=t("collection"),r=e.get("selectedItems"),i=e.get("value").map(s=>r.find(l=>n.getItemValue(l)===s)||n.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const n=t("collection"),r=e.get("highlightedValue"),o=r?n.find(r):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t}){const n=t("collection"),r=e.get("highlightedValue");r!=null&&!n.has(r)&&e.set("highlightedValue",null)},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const r=t("collection").firstValue;r!=null&&e.set("highlightedValue",r)},clearFocused({context:e}){e.set("focused",!1)}}}});var D1=(e,t)=>{const n=new Set(e);for(const r of t)n.delete(r);return n};function Lr(e,t,n){const r=D1(t,e);for(const o of r)n?.({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 z1=vd.extendWith("empty");var kd=$("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");kd.build();var Cd=e=>e.ids?.trigger??`menu:${e.id}:trigger`,M1=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Sd=e=>e.ids?.content??`menu:${e.id}:content`,$1=e=>e.ids?.positioner??`menu:${e.id}:popper`,ea=(e,t)=>`${e.id}/${t}`,an=e=>e?.dataset.value??null,Gt=e=>e.getById(Sd(e)),wd=e=>e.getById($1(e)),ri=e=>e.getById(Cd(e)),B1=(e,t)=>t?e.getById(ea(e,t)):null,ta=e=>e.getById(M1(e)),Dr=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Sd(e))}]:not([data-disabled])`;return Bn(Gt(e),n)},W1=e=>xr(Dr(e)),H1=e=>ls(Dr(e)),na=(e,t)=>t?e.id===t||e.dataset.value===t:!1,U1=(e,t)=>{const n=Dr(e),r=n.findIndex(o=>na(o,t.value));return Nm(n,r,{loop:t.loop??t.loopFocus})},j1=(e,t)=>{const n=Dr(e),r=n.findIndex(o=>na(o,t.value));return Am(n,r,{loop:t.loop??t.loopFocus})},G1=(e,t)=>{const n=Dr(e),r=n.find(o=>na(o,t.value));return Wn(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},q1=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),K1="menu:select";function Y1(e,t){if(!e)return;const n=pe(e),r=new n.CustomEvent(K1,{detail:{value:t}});e.dispatchEvent(r)}var{not:Qe,and:er,or:X1}=wt();Qe("isSubmenu"),X1("isOpenAutoFocusEvent","isArrowDownEvent"),er(Qe("isTriggerItem"),"isOpenControlled"),Qe("isTriggerItem"),er("isSubmenu","isOpenControlled"),Qe("isPointerSuspended"),er(Qe("isPointerSuspended"),Qe("isTriggerItem")),er(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),er(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"),"closeOnSelect"),er(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"));function Ed(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function Q1(e,t){return e?ax(e,t):!1}function J1(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return ea(n,t);for(const o in e){const i=e[o],s=Cd(i.scope);if(s===t)return s}return ea(n,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"]);let ra=new Map,oa=!1;try{oa=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let oi=!1;try{oi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Od={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Z1{format(t){let n="";if(!oa&&this.options.signDisplay!=null?n=tk(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!oi){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=Od[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.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}),!oi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=ek(t,n),this.options=n}}function ek(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!oi){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Od[s])===null||r===void 0)&&r[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(ra.has(o))return ra.get(o);let i=new Intl.NumberFormat(e,t);return ra.set(o,i),i}function tk(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),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(n)}}const nk=new RegExp("^.*\\(.*\\).*$"),rk=["latn","arab","hanidec","deva","beng","fullwide"];class Id{parse(t){return ia(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ia(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ia(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Td=new Map;function ia(e,t,n){let r=Pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of rk)if(o!==r.options.numberingSystem){let i=Pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Td.get(n);return r||(r=new ok(e,t),Td.set(n,r)),r}class ok{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=tr(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))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 Id(this.locale,s).parse(new Z1(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&nk.test(t)&&(r=-1*r),r}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=tr(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=tr(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=tr(t," ",this.symbols.group),t=tr(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>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=tr(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=sk(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r: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 Nd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ik=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function sk(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=ik.map(V=>l.formatToParts(V));var f;let p=(f=(o=c.find(V=>V.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&f!==void 0?f:"-",g=(i=u.find(V=>V.type==="plusSign"))===null||i===void 0?void 0:i.value;!g&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(g="+");let v=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(V=>V.type==="decimal"))===null||s===void 0?void 0:s.value,x=(a=c.find(V=>V.type==="group"))===null||a===void 0?void 0:a.value,k=c.filter(V=>!Nd.has(V.type)).map(V=>Rd(V.value)),y=d.flatMap(V=>V.filter(N=>!Nd.has(N.type)).map(N=>Rd(N.value))),S=[...new Set([...k,...y])].sort((V,N)=>N.length-V.length),b=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),I=new Map(E.map((V,N)=>[V,N])),P=new RegExp(`[${E.join("")}]`,"g");return{minusSign:p,plusSign:g,decimal:v,group:x,literals:b,numeral:P,index:V=>String(I.get(V))}}function tr(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Rd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ad=$("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Ad.build();var ak=e=>e.ids?.input??`number-input:${e.id}:input`,lk=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,ck=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,Vd=e=>`number-input:${e.id}:cursor`,ii=e=>e.getById(ak(e)),uk=e=>e.getById(lk(e)),dk=e=>e.getById(ck(e)),_d=e=>e.getDoc().getElementById(Vd(e)),hk=(e,t)=>{let n=null;return t==="increment"&&(n=uk(e)),t==="decrement"&&(n=dk(e)),n},fk=(e,t)=>{if(!tc())return mk(e,t),()=>{_d(e)?.remove()}},gk=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},pk=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=ds(o.movementX,i.devicePixelRatio),a=ds(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,d=ds(7.5,i.devicePixelRatio);return c.x=Km(c.x+d,u)-d,{hint:l,point:c}},mk=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=Vd(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:uv,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
9
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);">
10
3
  <g transform="translate(2 3)">
11
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>
12
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>
13
6
  </g>
14
- </svg>`,n.body.appendChild(r)};function Z1(e,t,n){if(!(!e||!n.isActiveElement(e))){if(!t){const r=e.value.length;e.setSelectionRange(r,r);return}try{const r=e.value,{start:o,end:i,value:s}=t;if(r===s){e.setSelectionRange(o,i);return}const a=wd(s,r,o),l=o===i?a:wd(s,r,i),c=Math.max(0,Math.min(a,r.length)),u=Math.max(c,Math.min(l,r.length));e.setSelectionRange(c,u)}catch{const r=e.value.length;e.setSelectionRange(r,r)}}}function wd(e,t,n){const r=e.slice(0,n),o=e.slice(n);let i=0;const s=Math.min(r.length,t.length);for(let c=0;c<s&&r[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 u=o.length-1-c,h=t.length-1-c;if(o[u]===t[h])a=c+1;else break}if(i>=r.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=n/e.length;return Math.round(c*t.length)}return t.length}var eC=(e,t={})=>new Intl.NumberFormat(e,t),tC=(e,t={})=>new md(e,t),ra=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},sn=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},nC=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:rC,guards:oC,createMachine:iC}=ys(),{not:Ed,and:Od}=oC;iC({props({props:e}){const t=nC(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:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const o=n(),i=ra(r,{computed:o,prop:e});e("onValueChange")?.({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>ra(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>sn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Dm(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Fm(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!zm(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:ac(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>eC(e,t)),parser:ac(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>tC(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.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:Od("clampValueOnBlur",Ed("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Ed("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:rC([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Od("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 n=ti(t);return Co(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return Y1(t,n)},preventTextSelection({scope:e}){return X1(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=K1(t,r);return wr(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ti(e);if(!r||!e.isActiveElement(r)||!n("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 ae(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Yl())return Wv(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=Q1(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return fo(ae(o,"mousemove",i,!1),ae(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ti(e);e.isActiveElement(n)||j(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=Wm(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Le(o,n("min"),n("max"))),e.set("value",sn(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=Hm(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Le(o,n("min"),n("max"))),e.set("value",sn(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Le(n("valueAsNumber"),t("min"),t("max"));e.set("value",sn(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=ra(t.value,{computed:r,prop:n});n("allowOverflow")||(o=Le(o,n("min"),n("max"))),e.set("value",sn(o,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=sn(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=sn(t("min"),{computed:n,prop:t});e.set("value",r)},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:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=ti(r),s=t.selection;j(()=>{Jt(i,o),Z1(i,s,r)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Sd(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),M()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Id=$("pinInput").parts("root","label","input","control");Id.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"]);var Td=$("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Td.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const an=e=>{const{children:t,disabled:n}=e,[r,o]=O.useState(e.container?.current),i=O.useSyncExternalStore(aC,()=>!1,()=>!0),{getRootNode:s}=Ml();if(O.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||n)return f.jsx(f.Fragment,{children:t});const a=r??sC(s);return f.jsx(f.Fragment,{children:O.Children.map(t,l=>Zr.createPortal(l,a))})},sC=e=>{const t=e?.(),n=t.getRootNode();return Qt(n)?n:Ne(t).body},aC=()=>()=>{};var oa=$("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");oa.build(),M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Pd=$("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Pd.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var ia=$("radio-group").parts("root","label","item","itemText","itemControl","indicator");ia.build(),M()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),M()(["value","disabled","invalid"]);var Nd=$("rating-group").parts("root","label","item","control");Nd.build(),M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),M()(["index"]);var Rd=$("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Rd.build(),M()(["dir","getRootNode","ids","id"]);const Ad=ia.rename("segment-group");Ad.build();var Vd=$("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Vd.build();var _d=e=>new Xn(e);_d.empty=()=>new Xn({items:[]});var lC=e=>e.ids?.content??`select:${e.id}:content`,cC=e=>e.ids?.trigger??`select:${e.id}:trigger`,uC=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,dC=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,hC=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,fC=e=>e.ids?.positioner??`select:${e.id}:positioner`,sa=e=>e.getById(hC(e)),Dr=e=>e.getById(lC(e)),ni=e=>e.getById(cC(e)),gC=e=>e.getById(uC(e)),Ld=e=>e.getById(fC(e)),aa=(e,t)=>t==null?null:e.getById(dC(e,t)),{and:zr,not:ln,or:pC}=kt();pC("isTriggerArrowDownEvent","isTriggerEnterEvent"),zr(ln("multiple"),"hasSelectedItems"),ln("multiple"),zr(ln("multiple"),"hasSelectedItems"),ln("multiple"),ln("multiple"),ln("multiple"),ln("multiple"),zr("closeOnSelect","isOpenControlled"),zr("hasHighlightedItem","loop","isLastItemHighlighted"),zr("hasHighlightedItem","loop","isFirstItemHighlighted");function Fd(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 Dd=$("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Dd.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"]);var zd=$("switch").parts("root","label","control","thumb");zd.build(),M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Md=$("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");Md.build();var mC=e=>e.ids?.root??`tags-input:${e.id}`,vC=e=>e.ids?.input??`tags-input:${e.id}:input`,bC=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,la=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,yC=(e,t)=>e.ids?.itemInput?.(t)??`${la(e,t)}:input`,xC=e=>`${e}:input`,$d=(e,t)=>e.getById(xC(t)),CC=e=>$n(Bd(e),"[data-part=item]"),kC=(e,t)=>e.getById(yC(e,t)),Bd=e=>e.getById(mC(e)),Mr=e=>e.getById(vC(e)),Wd=e=>e.getById(bC(e)),cn=e=>$n(Bd(e),"[data-part=item-preview]:not([data-disabled])"),SC=e=>cn(e)[0],wC=e=>cn(e)[cn(e).length-1],EC=(e,t)=>ic(cn(e),t,!1),OC=(e,t)=>oc(cn(e),t,!1),IC=(e,t)=>cn(e)[t],$r=(e,t)=>wo(cn(e),t),TC=(e,t)=>{const n=Wd(e);n&&Ql(n,{value:t})},{and:Br,not:un,or:PC}=kt();Br(PC(un("isAtMax"),"allowOverflow"),un("isInputValueEmpty")),un("hasHighlightedTag"),Br("hasTags","isCaretAtStart"),Br("hasTags","isCaretAtStart"),Br("hasTags","isCaretAtStart",un("isLastTagHighlighted")),un("isCaretAtStart"),Br("isTagEditable","hasHighlightedTag"),un("isCaretAtStart"),un("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 NC=$("toast").parts("group","root","title","description","actionTrigger","closeTrigger");NC.build();var RC=(e,t)=>({...t,...po(e)});function AC(e={}){const t=RC(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=k=>(n.push(k),()=>{const R=n.indexOf(k);n.splice(R,1)}),a=k=>(n.forEach(R=>R(k)),k),l=k=>{if(r.length>=t.max){i.push(k);return}a(k),r.unshift(k)},c=()=>{for(;i.length>0&&r.length<t.max;){const k=i.shift();k&&(a(k),r.unshift(k))}},u=k=>{const R=k.id??`toast:${Nm()}`,F=r.find(z=>z.id===R);return o.has(R)&&o.delete(R),F?r=r.map(z=>z.id===R?a({...z,...k,id:R}):z):l({id:R,duration:t.duration,removeDelay:t.removeDelay,type:"info",...k,stacked:!t.overlap,gap:t.gap}),R},h=k=>(o.add(k),k?(n.forEach(R=>R({id:k,dismiss:!0})),r=r.filter(R=>R.id!==k),c()):(r.forEach(R=>{n.forEach(F=>F({id:R.id,dismiss:!0}))}),r=[],i=[]),k);return{attrs:t,subscribe:s,create:u,update:(k,R)=>u({id:k,...R}),remove:h,dismiss:k=>{k!=null?r=r.map(R=>R.id===k?a({...R,message:"DISMISS"}):R):r=r.map(R=>a({...R,message:"DISMISS"}))},error:k=>u({...k,type:"error"}),success:k=>u({...k,type:"success"}),info:k=>u({...k,type:"info"}),warning:k=>u({...k,type:"warning"}),loading:k=>u({...k,type:"loading"}),getVisibleToasts:()=>r.filter(k=>!o.has(k.id)),getCount:()=>r.length,promise:(k,R,F={})=>{if(!R||!R.loading){Dn("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...F,...R.loading,promise:k,type:"loading"});let H=!0,J;const ee=ho(k).then(async q=>{if(J=["resolve",q],VC(q)&&!q.ok){H=!1;const Z=ho(R.error,`HTTP Error! status: ${q.status}`);u({...F,...Z,id:z,type:"error"})}else if(R.success!==void 0){H=!1;const Z=ho(R.success,q);u({...F,...Z,id:z,type:"success"})}}).catch(async q=>{if(J=["reject",q],R.error!==void 0){H=!1;const Z=ho(R.error,q);u({...F,...Z,id:z,type:"error"})}}).finally(()=>{H&&h(z),R.finally?.()});return{id:z,unwrap:()=>new Promise((q,Z)=>ee.then(()=>J[0]==="reject"?Z(J[1]):q(J[1])).catch(Z))}},pause:k=>{k!=null?r=r.map(R=>R.id===k?a({...R,message:"PAUSE"}):R):r=r.map(R=>a({...R,message:"PAUSE"}))},resume:k=>{k!=null?r=r.map(R=>R.id===k?a({...R,message:"RESUME"}):R):r=r.map(R=>a({...R,message:"RESUME"}))},isVisible:k=>!o.has(k)&&!!r.find(R=>R.id===k),isDismissed:k=>o.has(k),expand:()=>{r=r.map(k=>a({...k,stacked:!0}))},collapse:()=>{r=r.map(k=>a({...k,stacked:!1}))}}}var VC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const _C=e=>AC(e);var Hd=$("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Hd.build();var LC=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,FC=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,ca=e=>e.getById(LC(e)),jd=e=>e.getById(FC(e)),dn=jm({id:null}),{and:DC,not:Ud}=kt();DC("noVisibleTooltip",Ud("hasPointerMoveOpened")),Ud("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function Gd(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const zC=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=t.raw(`opacity.${r}`)?.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},te=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function ua(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>ua(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=ua(e[n]);return t}function da(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Ve(e[n])&&Ve(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Ve(t[n]))da(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)Ve(e[n][r])&&Ve(t[n][r])?da(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function tr(e,...t){for(const n of t)da(e,n);return e}const ha=e=>e!=null;function mt(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Ve(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const h=o?.(c,u)??c,d=[...a,h];if(r?.(s,d))return t(s,a);const m=i(u,d);ha(m)&&(l[h]=m)}return l}return t(s,a)}return i(e)}function qd(e,t){return Array.isArray(e)?e.map(n=>ha(n)?t(n):n):Ve(e)?mt(e,n=>t(n)):ha(e)?t(e):e}const ri=["value","type","description"],MC=e=>e&&typeof e=="object"&&!Array.isArray(e),Kd=(...e)=>{const t=tr({},...e.map(ua));return t.theme?.tokens&&mt(t.theme.tokens,n=>{const i=Object.keys(n).filter(a=>!ri.includes(a)).length>0,s=ri.some(a=>n[a]!=null);return i&&s&&(n.DEFAULT||(n.DEFAULT={}),ri.forEach(a=>{var l;n[a]!=null&&((l=n.DEFAULT)[a]||(l[a]=n[a]),delete n[a])})),n},{stop(n){return MC(n)&&Object.keys(n).some(r=>ri.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},$C=e=>e,fe=e=>e,B=e=>e,BC=e=>e,WC=e=>e,nr=e=>e,HC=e=>e,jC=e=>e,UC=e=>e;function Yd(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ue=Yd(),fa=Yd(),ga=e=>e,GC=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function qC(e){return`${e}`.replace(GC,t=>`\\${t}`)}const KC=/[A-Z]/g;function YC(e){return e.replace(KC,t=>`-${t.toLowerCase()}`)}function Xd(e,t={}){const{fallback:n="",prefix:r=""}=t,o=YC(["-",r,qC(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const XC=e=>/^var\(--.+\)$/.test(e),ye=(e,t)=>t!=null?`${e}(${t})`:t,hn=e=>{if(XC(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Qd=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[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":r,[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":r,[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":r,[e]:{outline:"none"}}}[t]??{}}}),QC=te("borderColor"),Ot=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),JC=$C({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"}),rr=Xd("bg-currentcolor"),Jd=e=>e===rr.ref||e==="currentBg",ne=e=>({...e("colors"),currentBg:rr}),ZC=ga({conditions:JC,utilities:{background:{values:ne,shorthand:["bg"],transform(e,t){if(Jd(t.raw))return{background:rr.ref};const n=te("background")(e,t);return{...n,[rr.var]:n?.background}}},backgroundColor:{values:ne,shorthand:["bgColor"],transform(e,t){if(Jd(t.raw))return{backgroundColor:rr.ref};const n=te("backgroundColor")(e,t);return{...n,[rr.var]:n?.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:ne,transform:te("--gradient-from")},gradientTo:{values:ne,transform:te("--gradient-to")},gradientVia:{values:ne,transform(e,t){return{...te("--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:ne,transform:te("borderColor")},borderTopColor:{values:ne,transform:te("borderTopColor")},borderBlockStartColor:{values:ne,transform:te("borderBlockStartColor")},borderBottomColor:{values:ne,transform:te("borderBottomColor")},borderBlockEndColor:{values:ne,transform:te("borderBlockEndColor")},borderLeftColor:{values:ne,transform:te("borderLeftColor")},borderInlineStartColor:{values:ne,shorthand:["borderStartColor"],transform:te("borderInlineStartColor")},borderRightColor:{values:ne,transform:te("borderRightColor")},borderInlineEndColor:{values:ne,shorthand:["borderEndColor"],transform:te("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:ne,transform:te("color")},fill:{values:ne,transform:te("fill")},stroke:{values:ne,transform:te("stroke")},accentColor:{values:ne,transform:te("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:ne,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":QC(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ne,transform:te("--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",hn(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",hn(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:ne,transform:te("outlineColor")},focusRing:Qd("&:is(:focus, [data-focus])"),focusVisibleRing:Qd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ne,transform:te("--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:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.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:ne,transform:te("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:ne,transform:te("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ne,transform:te("--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:ne,transform:te("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":hn(e)})},skewY:{transform:e=>({"--skew-y":hn(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:hn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":hn(e)}}},rotateY:{transform(e){return{"--rotate-y":hn(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 Ot("all");case"position":return Ot("left, right, top, bottom, inset-inline, inset-block");case"colors":return Ot("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Ot("opacity");case"shadow":return Ot("box-shadow");case"transform":return Ot("transform");case"size":return Ot("width, height");case"backgrounds":return Ot("background, background-color, background-image, background-position");case"common":return Ot("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 ek[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ne,transform:te("caretColor")},cursor:{values:"cursor"}}}),ek={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 tk="",nk=tk.split(","),rk="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",ok=rk.split(",").concat(nk),ik=new Map(ok.map(e=>[e,!0]));function sk(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var ak=/&|@/,lk=sk(e=>ik.has(e)||e.startsWith("--")||ak.test(e));function rt(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}function Zd(e,t){const n={};return mt(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var pa,eh;function ck(){if(eh)return pa;eh=1,pa=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",n=[],r=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(d,m,g,p){typeof p>"u"&&(p=o()),a(d,"",0,[],void 0,0,p);var v;try{r.length===0?v=JSON.stringify(d,m,g):v=JSON.stringify(d,h(m),g)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var y=n.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return v}function s(d,m,g,p){var v=Object.getOwnPropertyDescriptor(p,g);v.get!==void 0?v.configurable?(Object.defineProperty(p,g,{value:d}),n.push([p,g,m,v])):r.push([m,g,d]):(p[g]=d,n.push([p,g,m]))}function a(d,m,g,p,v,y,C){y+=1;var b;if(typeof d=="object"&&d!==null){for(b=0;b<p.length;b++)if(p[b]===d){s(t,d,m,v);return}if(typeof C.depthLimit<"u"&&y>C.depthLimit){s(e,d,m,v);return}if(typeof C.edgesLimit<"u"&&g+1>C.edgesLimit){s(e,d,m,v);return}if(p.push(d),Array.isArray(d))for(b=0;b<d.length;b++)a(d[b],b,b,p,d,y,C);else{var S=Object.keys(d);for(b=0;b<S.length;b++){var x=S[b];a(d[x],x,b,p,d,y,C)}}p.pop()}}function l(d,m){return d<m?-1:d>m?1:0}function c(d,m,g,p){typeof p>"u"&&(p=o());var v=u(d,"",0,[],void 0,0,p)||d,y;try{r.length===0?y=JSON.stringify(v,m,g):y=JSON.stringify(v,h(m),g)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var C=n.pop();C.length===4?Object.defineProperty(C[0],C[1],C[3]):C[0][C[1]]=C[2]}}return y}function u(d,m,g,p,v,y,C){y+=1;var b;if(typeof d=="object"&&d!==null){for(b=0;b<p.length;b++)if(p[b]===d){s(t,d,m,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof C.depthLimit<"u"&&y>C.depthLimit){s(e,d,m,v);return}if(typeof C.edgesLimit<"u"&&g+1>C.edgesLimit){s(e,d,m,v);return}if(p.push(d),Array.isArray(d))for(b=0;b<d.length;b++)u(d[b],b,b,p,d,y,C);else{var S={},x=Object.keys(d).sort(l);for(b=0;b<x.length;b++){var E=x[b];u(d[E],E,b,p,d,y,C),S[E]=d[E]}if(typeof v<"u")n.push([v,m,d]),v[m]=S;else return S}p.pop()}}function h(d){return d=typeof d<"u"?d:function(m,g){return g},function(m,g){if(r.length>0)for(var p=0;p<r.length;p++){var v=r[p];if(v[1]===m&&v[0]===g){g=v[2],r.splice(p,1);break}}return d.call(this,m,g)}}return pa}var uk=ck();const dk=Pp(uk),ot=e=>{const t=Object.create(null);function n(...r){const o=r.map(i=>dk(i)).join("|");return t[o]===void 0&&(t[o]=e(...r)),t[o]}return n},th=16,oi="px",ma="em",Wr="rem";function nh(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${oi}|${ma}|${Wr}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function rh(e=""){if(typeof e=="number")return`${e}px`;const t=nh(e);if(!t||t===oi)return e;if(t===ma||t===Wr)return`${parseFloat(e)*th}${oi}`}function oh(e=""){const t=nh(e);if(!t||t===Wr)return e;if(t===ma)return`${parseFloat(e)}${Wr}`;if(t===oi)return`${parseFloat(e)/th}${Wr}`}const hk=e=>e.charAt(0).toUpperCase()+e.slice(1);function fk(e){const t=gk(e),n=Object.fromEntries(t);function r(d){return n[d]}function o(d){return or(r(d))}function i(){const d=Object.keys(n),m=pk(d),g=d.flatMap(p=>{const v=r(p),y=[`${p}Down`,or({max:ii(v.min)})],C=[p,or({min:v.min})],b=[`${p}Only`,o(p)];return[C,b,y]}).filter(([,p])=>p!=="").concat(m.map(([p,v])=>{const y=r(p),C=r(v);return[`${p}To${hk(v)}`,or({min:y.min,max:ii(C.min)})]}));return Object.fromEntries(g)}function s(){const d=i();return Object.fromEntries(Object.entries(d))}const a=s(),l=d=>a[d];function c(){return ts(["base",...Object.keys(n)])}function u(d){return or({min:r(d).min})}function h(d){return or({max:ii(r(d).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:h}}function ii(e){const t=parseFloat(rh(e)??"")-.04;return oh(`${t}px`)}function gk(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10)<parseInt(r,10)?-1:1).map(([n,r],o,i)=>{let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=ii(s)),[n,{name:n,min:oh(r),max:s}]})}function pk(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,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 mk=/^@|&|&$/,vk=e=>{const{breakpoints:t,conditions:n={}}=e,r=rt(n,(u,h)=>[`_${u}`,h]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||mk.test(u)||u.startsWith("_")}function a(u){return u.filter(h=>h!=="base").sort((h,d)=>{const m=s(h),g=s(d);return m&&!g?1:!m&&g?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},ih=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
7
+ </svg>`,n.body.appendChild(r)};function vk(e,t,n){if(!(!e||!n.isActiveElement(e))){if(!t){const r=e.value.length;e.setSelectionRange(r,r);return}try{const r=e.value,{start:o,end:i,value:s}=t;if(r===s){e.setSelectionRange(o,i);return}const a=Fd(s,r,o),l=o===i?a:Fd(s,r,i),c=Math.max(0,Math.min(a,r.length)),u=Math.max(c,Math.min(l,r.length));e.setSelectionRange(c,u)}catch{const r=e.value.length;e.setSelectionRange(r,r)}}}function Fd(e,t,n){const r=e.slice(0,n),o=e.slice(n);let i=0;const s=Math.min(r.length,t.length);for(let c=0;c<s&&r[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 u=o.length-1-c,d=t.length-1-c;if(o[u]===t[d])a=c+1;else break}if(i>=r.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=n/e.length;return Math.round(c*t.length)}return t.length}var bk=(e,t={})=>new Intl.NumberFormat(e,t),yk=(e,t={})=>new Id(e,t),sa=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},ln=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},xk=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:kk,guards:Ck,createMachine:Sk}=No(),{not:Ld,and:Dd}=Ck;Sk({props({props:e}){const t=xk(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:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const o=n(),i=sa(r,{computed:o,prop:e});e("onValueChange")?.({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>sa(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>ln(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Xm(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Ym(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Qm(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:mc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>bk(e,t)),parser:mc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>yk(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.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:Dd("clampValueOnBlur",Ld("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Ld("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:kk([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Dd("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 n=ii(t);return wo(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return fk(t,n)},preventTextSelection({scope:e}){return gk(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=hk(t,r);return wr(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ii(e);if(!r||!e.isActiveElement(r)||!n("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 ae(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!tc())return i0(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=pk(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return mo(ae(o,"mousemove",i,!1),ae(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ii(e);e.isActiveElement(n)||H(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=tv(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=De(o,n("min"),n("max"))),e.set("value",ln(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=nv(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=De(o,n("min"),n("max"))),e.set("value",ln(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=De(n("valueAsNumber"),t("min"),t("max"));e.set("value",ln(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=sa(t.value,{computed:r,prop:n});n("allowOverflow")||(o=De(o,n("min"),n("max"))),e.set("value",ln(o,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=ln(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=ln(t("min"),{computed:n,prop:t});e.set("value",r)},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:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=ii(r),s=t.selection;H(()=>{en(i,o),vk(i,s,r)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=_d(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),M()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var zd=$("pinInput").parts("root","label","input","control");zd.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"]);var Md=$("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Md.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const cn=e=>{const{children:t,disabled:n}=e,[r,o]=O.useState(e.container?.current),i=O.useSyncExternalStore(Ek,()=>!1,()=>!0),{getRootNode:s}=jl();if(O.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||n)return h.jsx(h.Fragment,{children:t});const a=r??wk(s);return h.jsx(h.Fragment,{children:O.Children.map(t,l=>no.createPortal(l,a))})},wk=e=>{const t=e?.(),n=t.getRootNode();return Zt(n)?n:Re(t).body},Ek=()=>()=>{};var aa=$("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");aa.build(),M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var $d=$("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");$d.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var la=$("radio-group").parts("root","label","item","itemText","itemControl","indicator");la.build(),M()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),M()(["value","disabled","invalid"]);var Bd=$("rating-group").parts("root","label","item","control");Bd.build(),M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),M()(["index"]);var Wd=$("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Wd.build(),M()(["dir","getRootNode","ids","id"]);const Hd=la.rename("segment-group");Hd.build();var Ud=$("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Ud.build();var jd=e=>new Qn(e);jd.empty=()=>new Qn({items:[]});var Ok=e=>e.ids?.content??`select:${e.id}:content`,Ik=e=>e.ids?.trigger??`select:${e.id}:trigger`,Tk=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,Pk=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Nk=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,Rk=e=>e.ids?.positioner??`select:${e.id}:positioner`,ca=e=>e.getById(Nk(e)),zr=e=>e.getById(Ok(e)),si=e=>e.getById(Ik(e)),Ak=e=>e.getById(Tk(e)),Gd=e=>e.getById(Rk(e)),ua=(e,t)=>t==null?null:e.getById(Pk(e,t)),{and:Mr,not:un,or:Vk}=wt();Vk("isTriggerArrowDownEvent","isTriggerEnterEvent"),Mr(un("multiple"),"hasSelectedItems"),un("multiple"),Mr(un("multiple"),"hasSelectedItems"),un("multiple"),un("multiple"),un("multiple"),un("multiple"),Mr("closeOnSelect","isOpenControlled"),Mr("hasHighlightedItem","loop","isLastItemHighlighted"),Mr("hasHighlightedItem","loop","isFirstItemHighlighted");function qd(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 Kd=$("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Kd.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"]);var Yd=$("switch").parts("root","label","control","thumb");Yd.build(),M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Xd=$("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");Xd.build();var _k=e=>e.ids?.root??`tags-input:${e.id}`,Fk=e=>e.ids?.input??`tags-input:${e.id}:input`,Lk=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}`,Dk=(e,t)=>e.ids?.itemInput?.(t)??`${da(e,t)}:input`,zk=e=>`${e}:input`,Qd=(e,t)=>e.getById(zk(t)),Mk=e=>Bn(Jd(e),"[data-part=item]"),$k=(e,t)=>e.getById(Dk(e,t)),Jd=e=>e.getById(_k(e)),$r=e=>e.getById(Fk(e)),Zd=e=>e.getById(Lk(e)),dn=e=>Bn(Jd(e),"[data-part=item-preview]:not([data-disabled])"),Bk=e=>dn(e)[0],Wk=e=>dn(e)[dn(e).length-1],Hk=(e,t)=>gc(dn(e),t,!1),Uk=(e,t)=>fc(dn(e),t,!1),jk=(e,t)=>dn(e)[t],Br=(e,t)=>To(dn(e),t),Gk=(e,t)=>{const n=Zd(e);n&&rc(n,{value:t})},{and:Wr,not:hn,or:qk}=wt();Wr(qk(hn("isAtMax"),"allowOverflow"),hn("isInputValueEmpty")),hn("hasHighlightedTag"),Wr("hasTags","isCaretAtStart"),Wr("hasTags","isCaretAtStart"),Wr("hasTags","isCaretAtStart",hn("isLastTagHighlighted")),hn("isCaretAtStart"),Wr("isTagEditable","hasHighlightedTag"),hn("isCaretAtStart"),hn("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 Kk=$("toast").parts("group","root","title","description","actionTrigger","closeTrigger");Kk.build();var eh=(e,t)=>e.getById(`toast-group:${t}`),{guards:Yk,createMachine:Xk}=No(),{and:Qk}=Yk;Xk({props({props:e}){return{dir:"ltr",id:Fl(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:lc.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(n=>n.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:n}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{n(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:Qk("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(n=>{if(n.dismiss){e.set("toasts",r=>r.filter(o=>o.id!==n.id));return}e.set("toasts",r=>{const o=r.findIndex(i=>i.id===n.id);return o!==-1?[...r.slice(0,o),{...r[o],...n},...r.slice(o+1)]:[n,...r]})})},trackHotKeyPress({prop:e,send:t}){return ae(document,"keydown",r=>{const{hotkey:o}=e("store").attrs;o.every(s=>r[s]||r.code===s)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:n}){const{pauseOnPageIdle:r}=e("store").attrs;if(!r)return;const o=n.getDoc();return ae(o,"visibilitychange",()=>{const i=o.visibilityState==="hidden";t({type:i?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){const o=t.get("toasts"),i=n("placement"),s=o.length>0;if(!s){e.get("dismissableCleanup")?.();return}if(s&&e.get("dismissableCleanup"))return;const l=Cy(()=>eh(r,i),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{eh(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",n=>n.filter(r=>r.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()}}}});var Jk=(e,t)=>({...t,...bo(e)});function Zk(e={}){const t=Jk(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=C=>(n.push(C),()=>{const R=n.indexOf(C);n.splice(R,1)}),a=C=>(n.forEach(R=>R(C)),C),l=C=>{if(r.length>=t.max){i.push(C);return}a(C),r.unshift(C)},c=()=>{for(;i.length>0&&r.length<t.max;){const C=i.shift();C&&(a(C),r.unshift(C))}},u=C=>{const R=C.id??`toast:${Fl()}`,L=r.find(z=>z.id===R);return o.has(R)&&o.delete(R),L?r=r.map(z=>z.id===R?a({...z,...C,id:R}):z):l({id:R,duration:t.duration,removeDelay:t.removeDelay,type:"info",...C,stacked:!t.overlap,gap:t.gap}),R},d=C=>(o.add(C),C?(n.forEach(R=>R({id:C,dismiss:!0})),r=r.filter(R=>R.id!==C),c()):(r.forEach(R=>{n.forEach(L=>L({id:R.id,dismiss:!0}))}),r=[],i=[]),C);return{attrs:t,subscribe:s,create:u,update:(C,R)=>u({id:C,...R}),remove:d,dismiss:C=>{C!=null?r=r.map(R=>R.id===C?a({...R,message:"DISMISS"}):R):r=r.map(R=>a({...R,message:"DISMISS"}))},error:C=>u({...C,type:"error"}),success:C=>u({...C,type:"success"}),info:C=>u({...C,type:"info"}),warning:C=>u({...C,type:"warning"}),loading:C=>u({...C,type:"loading"}),getVisibleToasts:()=>r.filter(C=>!o.has(C.id)),getCount:()=>r.length,promise:(C,R,L={})=>{if(!R||!R.loading){Jt("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...L,...R.loading,promise:C,type:"loading"});let U=!0,Z;const te=po(C).then(async q=>{if(Z=["resolve",q],eC(q)&&!q.ok){U=!1;const Q=po(R.error,`HTTP Error! status: ${q.status}`);u({...L,...Q,id:z,type:"error"})}else if(R.success!==void 0){U=!1;const Q=po(R.success,q);u({...L,...Q,id:z,type:"success"})}}).catch(async q=>{if(Z=["reject",q],R.error!==void 0){U=!1;const Q=po(R.error,q);u({...L,...Q,id:z,type:"error"})}}).finally(()=>{U&&d(z),R.finally?.()});return{id:z,unwrap:()=>new Promise((q,Q)=>te.then(()=>Z[0]==="reject"?Q(Z[1]):q(Z[1])).catch(Q))}},pause:C=>{C!=null?r=r.map(R=>R.id===C?a({...R,message:"PAUSE"}):R):r=r.map(R=>a({...R,message:"PAUSE"}))},resume:C=>{C!=null?r=r.map(R=>R.id===C?a({...R,message:"RESUME"}):R):r=r.map(R=>a({...R,message:"RESUME"}))},isVisible:C=>!o.has(C)&&!!r.find(R=>R.id===C),isDismissed:C=>o.has(C),expand:()=>{r=r.map(C=>a({...C,stacked:!0}))},collapse:()=>{r=r.map(C=>a({...C,stacked:!1}))}}}var eC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const tC=e=>Zk(e);var th=$("tooltip").parts("trigger","arrow","arrowTip","positioner","content");th.build();var nC=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,rC=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,ha=e=>e.getById(nC(e)),nh=e=>e.getById(rC(e)),fn=rv({id:null}),{and:oC,not:rh}=wt();oC("noVisibleTooltip",rh("hasPointerMoveOpened")),rh("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function oh(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const iC=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=t.raw(`opacity.${r}`)?.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},ne=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function fa(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>fa(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=fa(e[n]);return t}function ga(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Fe(e[n])&&Fe(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Fe(t[n]))ga(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)Fe(e[n][r])&&Fe(t[n][r])?ga(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function nr(e,...t){for(const n of t)ga(e,n);return e}const pa=e=>e!=null;function mt(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Fe(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c,u)??c,f=[...a,d];if(r?.(s,f))return t(s,a);const p=i(u,f);pa(p)&&(l[d]=p)}return l}return t(s,a)}return i(e)}function ih(e,t){return Array.isArray(e)?e.map(n=>pa(n)?t(n):n):Fe(e)?mt(e,n=>t(n)):pa(e)?t(e):e}const ai=["value","type","description"],sC=e=>e&&typeof e=="object"&&!Array.isArray(e),sh=(...e)=>{const t=nr({},...e.map(fa));return t.theme?.tokens&&mt(t.theme.tokens,n=>{const i=Object.keys(n).filter(a=>!ai.includes(a)).length>0,s=ai.some(a=>n[a]!=null);return i&&s&&(n.DEFAULT||(n.DEFAULT={}),ai.forEach(a=>{var l;n[a]!=null&&((l=n.DEFAULT)[a]||(l[a]=n[a]),delete n[a])})),n},{stop(n){return sC(n)&&Object.keys(n).some(r=>ai.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},aC=e=>e,me=e=>e,B=e=>e,lC=e=>e,cC=e=>e,rr=e=>e,uC=e=>e,dC=e=>e,hC=e=>e;function ah(){const e=t=>t;return new Proxy(e,{get(){return e}})}const he=ah(),ma=ah(),va=e=>e,fC=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function gC(e){return`${e}`.replace(fC,t=>`\\${t}`)}const pC=/[A-Z]/g;function mC(e){return e.replace(pC,t=>`-${t.toLowerCase()}`)}function lh(e,t={}){const{fallback:n="",prefix:r=""}=t,o=mC(["-",r,gC(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const vC=e=>/^var\(--.+\)$/.test(e),ke=(e,t)=>t!=null?`${e}(${t})`:t,gn=e=>{if(vC(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},ch=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[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":r,[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":r,[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":r,[e]:{outline:"none"}}}[t]??{}}}),bC=ne("borderColor"),Tt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),yC=aC({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"}),or=lh("bg-currentcolor"),uh=e=>e===or.ref||e==="currentBg",re=e=>({...e("colors"),currentBg:or}),xC=va({conditions:yC,utilities:{background:{values:re,shorthand:["bg"],transform(e,t){if(uh(t.raw))return{background:or.ref};const n=ne("background")(e,t);return{...n,[or.var]:n?.background}}},backgroundColor:{values:re,shorthand:["bgColor"],transform(e,t){if(uh(t.raw))return{backgroundColor:or.ref};const n=ne("backgroundColor")(e,t);return{...n,[or.var]:n?.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:re,transform:ne("--gradient-from")},gradientTo:{values:re,transform:ne("--gradient-to")},gradientVia:{values:re,transform(e,t){return{...ne("--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:re,transform:ne("borderColor")},borderTopColor:{values:re,transform:ne("borderTopColor")},borderBlockStartColor:{values:re,transform:ne("borderBlockStartColor")},borderBottomColor:{values:re,transform:ne("borderBottomColor")},borderBlockEndColor:{values:re,transform:ne("borderBlockEndColor")},borderLeftColor:{values:re,transform:ne("borderLeftColor")},borderInlineStartColor:{values:re,shorthand:["borderStartColor"],transform:ne("borderInlineStartColor")},borderRightColor:{values:re,transform:ne("borderRightColor")},borderInlineEndColor:{values:re,shorthand:["borderEndColor"],transform:ne("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:re,transform:ne("color")},fill:{values:re,transform:ne("fill")},stroke:{values:re,transform:ne("stroke")},accentColor:{values:re,transform:ne("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:re,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":bC(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:re,transform:ne("--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":ke("blur",e)})},brightness:{transform:e=>({"--brightness":ke("brightness",e)})},contrast:{transform:e=>({"--contrast":ke("contrast",e)})},grayscale:{transform:e=>({"--grayscale":ke("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":ke("hue-rotate",gn(e))})},invert:{transform:e=>({"--invert":ke("invert",e)})},saturate:{transform:e=>({"--saturate":ke("saturate",e)})},sepia:{transform:e=>({"--sepia":ke("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":ke("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":ke("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":ke("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":ke("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":ke("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":ke("hue-rotate",gn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":ke("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":ke("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":ke("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":ke("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:re,transform:ne("outlineColor")},focusRing:ch("&:is(:focus, [data-focus])"),focusVisibleRing:ch("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:re,transform:ne("--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:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.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:re,transform:ne("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:re,transform:ne("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:re,transform:ne("--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:re,transform:ne("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":gn(e)})},skewY:{transform:e=>({"--skew-y":gn(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:gn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":gn(e)}}},rotateY:{transform(e){return{"--rotate-y":gn(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 Tt("all");case"position":return Tt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Tt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Tt("opacity");case"shadow":return Tt("box-shadow");case"transform":return Tt("transform");case"size":return Tt("width, height");case"backgrounds":return Tt("background, background-color, background-image, background-position");case"common":return Tt("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 kC[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:re,transform:ne("caretColor")},cursor:{values:"cursor"}}}),kC={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 CC="",SC=CC.split(","),wC="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",EC=wC.split(",").concat(SC),OC=new Map(EC.map(e=>[e,!0]));function IC(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var TC=/&|@/,PC=IC(e=>OC.has(e)||e.startsWith("--")||TC.test(e));function ot(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}function dh(e,t){const n={};return mt(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var NC=Object.defineProperty,RC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hh=(e,t,n)=>RC(e,typeof t!="symbol"?t+"":t,n);function li(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(li).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(r=>`${r}:${li(e[r])}`).join(",")}}`:String(e)}class AC{constructor(t=500){hh(this,"cache",new Map),hh(this,"maxSize"),this.maxSize=t}get(t){const n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}}const Me=e=>{const t=new AC;function n(...r){const o=r.length===1?li(r[0]):r.map(li).join("|");let i=t.get(o);return i===void 0&&(i=e.apply(this,r),t.set(o,i)),i}return n},fh=16,ci="px",ba="em",Hr="rem";function gh(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${ci}|${ba}|${Hr}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function ph(e=""){if(typeof e=="number")return`${e}px`;const t=gh(e);if(!t||t===ci)return e;if(t===ba||t===Hr)return`${parseFloat(e)*fh}${ci}`}function mh(e=""){const t=gh(e);if(!t||t===Hr)return e;if(t===ba)return`${parseFloat(e)}${Hr}`;if(t===ci)return`${parseFloat(e)/fh}${Hr}`}const VC=e=>e.charAt(0).toUpperCase()+e.slice(1);function _C(e){const t=FC(e),n=Object.fromEntries(t);function r(f){return n[f]}function o(f){return ir(r(f))}function i(){const f=Object.keys(n),p=LC(f),g=f.flatMap(m=>{const v=r(m),x=[`${m}Down`,ir({max:ui(v.min)})],k=[m,ir({min:v.min})],y=[`${m}Only`,o(m)];return[k,y,x]}).filter(([,m])=>m!=="").concat(p.map(([m,v])=>{const x=r(m),k=r(v);return[`${m}To${VC(v)}`,ir({min:x.min,max:ui(k.min)})]}));return Object.fromEntries(g)}function s(){const f=i();return Object.fromEntries(Object.entries(f))}const a=s(),l=f=>a[f];function c(){return is(["base",...Object.keys(n)])}function u(f){return ir({min:r(f).min})}function d(f){return ir({max:ui(r(f).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function ui(e){const t=parseFloat(ph(e)??"")-.04;return mh(`${t}px`)}function FC(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10)<parseInt(r,10)?-1:1).map(([n,r],o,i)=>{let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=ui(s)),[n,{name:n,min:mh(r),max:s}]})}function LC(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,i]),o++,i=e[o]}),t}function ir({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const DC=/^@|&|&$/,zC=e=>{const{breakpoints:t,conditions:n={}}=e,r=ot(n,(u,d)=>[`_${u}`,d]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||DC.test(u)||u.startsWith("_")}const a=Me(u=>u.filter(d=>d!=="base").sort((d,f)=>{const p=s(d),g=s(f);return p&&!g?1:!p&&g?-1:0}));function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},se=Object.freeze(Object.create(null)),MC=Object.freeze([]);function di(){return Object.create(null)}const vh=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
15
8
  )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
16
- )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),bk=ih("width"),yk=ih("height"),sh=e=>({isMin:hh(e.minMax,e.maxMin,e.min),isMax:hh(e.maxMin,e.minMax,e.max)}),{isMin:va,isMax:ah}=sh(bk),{isMin:ba,isMax:lh}=sh(yk),ch=/print/i,uh=/^print$/i,xk=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Ck=/(\d)/,Hr=Number.MAX_VALUE,kk={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function dh(e){const t=xk.exec(e)||(va(e)||ba(e)?Ck.exec(e):null);if(!t)return Hr;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(kk[r]||1)}function hh(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function Sk(e,t){const n=ch.test(e),r=uh.test(e),o=ch.test(t),i=uh.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const wk=ot((e,t)=>{const n=Sk(e,t);if(n!==null)return n;const r=va(e)||ba(e),o=ah(e)||lh(e),i=va(t)||ba(t),s=ah(t)||lh(t);if(r&&s)return-1;if(o&&i)return 1;const a=dh(e),l=dh(t);return a===Hr&&l===Hr?e.localeCompare(t):a===Hr?1:l===Hr?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function fh(e){return e.sort(([t],[n])=>wk(t,n))}function gh(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):Ve(a)?r[s]=gh(a):r[s]=a;const o=fh(t),i=fh(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const ph=/\s*!(important)?/i,Ek=e=>ct(e)?ph.test(e):!1,Ok=e=>ct(e)?e.replace(ph,"").trim():e;function mh(e){const{transform:t,conditions:n,normalize:r}=e,o=Pk(e);return ot(function(...s){const a=o(...s),l=r(a),c=Object.create(null);return mt(l,(u,h)=>{const d=Ek(u);if(u==null)return;const[m,...g]=n.sort(h).map(n.resolve);d&&(u=Ok(u));let p=t(m,u)??Object.create(null);p=mt(p,v=>ct(v)&&d?`${v} !important`:v,{getKey:v=>n.expandAtRule(v)}),Ik(c,g.flat(),p)}),gh(c)})}function Ik(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=Object.create(null)),r=r[o]);tr(r,n)}function Tk(...e){return e.filter(t=>Ve(t)&&Object.keys(vr(t)).length>0)}function Pk(e){function t(n){const r=Tk(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return ot(function(...r){return tr({},...t(r))})}const vh=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function Nk(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const l=vh(a),{base:c,defaultVariants:u,compoundVariants:h}=l,d=rt(l.variants,(b,S)=>[b,rt(S,(x,E)=>[x,r(E)])]),m=mh({conditions:n,normalize:r,transform(b,S){return d[b]?.[S]}}),g=(b={})=>{const S=r({...u,...vr(b)});let x={...c};tr(x,m(S));const E=s(h,S);return o.wrap("recipes",t(x,E))},p=Object.keys(d),v=b=>{const S=Gd(b,["recipe"]),[x,E]=Ln(S,p);return p.includes("colorPalette")||(x.colorPalette=b.colorPalette||u.colorPalette),p.includes("orientation")&&(E.orientation=b.orientation),[x,E]},y=rt(d,(b,S)=>[b,Object.keys(S)]);return Object.assign(b=>t(g(b)),{className:a.className,__cva__:!0,variantMap:y,variantKeys:p,raw:g,config:a,splitVariantProps:v,merge(b){return i(Rk(e)(this,b))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([d,m])=>d==="css"?!0:(Array.isArray(m)?m:[m]).some(p=>l[d]===p))&&(c=t(c,u.css))}),c}return i}function Rk(e){const{css:t}=e;return function(r,o){const i=vh(o.config),s=ts(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(d=>[d,t(r.config.variants[d],i.variants[d])])),c=tr(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:Ge(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const Ak={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},bh={reset:0,base:1,tokens:2,recipes:3};function Vk(e){const t=e.layers??Ak,r=Object.values(t).sort((o,i)=>bh[o]-bh[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function _k(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return mt(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function Lk(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Ve(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);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={[n||"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(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function Fk(e){const{conditions:t,isValidProperty:n}=e;return function(o){return mt(o,i=>i,{getKey:(i,s)=>Ve(s)&&!t.has(i)&&!n(i)?Dk(i).map(a=>"&"+a).join(", "):i})}}function Dk(e){const t=[];let n=0,r="",o=!1;for(let i=0;i<e.length;i++){const s=e[i];if(s==="\\"&&!o){o=!0,r+=s;continue}if(o){o=!1,r+=s;continue}s==="("?n++:s===")"&&n--,s===","&&n===0?(t.push(r.trim()),r=""):r+=s}return r&&t.push(r.trim()),t}const zk=(e={})=>{const t=o=>({base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?Mk(e.compoundVariants,o):[]}),r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(r)},Mk=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function $k(e){const{cva:t}=e;return function(r={}){const o=Object.entries(zk(r)).map(([h,d])=>[h,t(d)]);function i(h){const d=o.map(([m,g])=>[m,g(h)]);return Object.fromEntries(d)}const s=r.variants??{},a=Object.keys(s);function l(h){const d=Gd(h,["recipe"]),[m,g]=Ln(d,a);return a.includes("colorPalette")||(m.colorPalette=h.colorPalette||r.defaultVariants?.colorPalette),a.includes("orientation")&&(g.orientation=h.orientation),[m,g]}const c=rt(s,(h,d)=>[h,Object.keys(d)]);let u={};return r.className&&(u=Object.fromEntries(r.slots.map(h=>[h,`${r.className}__${h}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const Bk=()=>e=>Array.from(new Set(e)),Wk=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Hk=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},yh=e=>(e+"").replace(Wk,Hk),xh=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r<e.length;){const l=e[r];if(l==="{"){const u=e.indexOf("}",r);if(u===-1)break;const h=e.slice(r+1,u),d=t(h);n+=d??h,r=u+1;continue}if(o==="token"&&l===","){e[r]===""&&r++,o="fallback",a.push(o);const u=t(i);u?.endsWith(")")&&(n+=u.slice(0,-1)),i="",s="";continue}if(o==="fallback"&&s+l===", var("){const d=jk(e.slice(r+1))+r+1,m=e.slice(r+1,d);if(d===-1)break;n+=", var("+m+")",r=d+1,o=a.pop()??o,s="";continue}if(o==="token"||o==="fallback"){if(r++,l===")"){o=a.pop()??o??"char",s+=l;const u=i&&(t(i)??yh(i));if(s){if(s=s.slice(1).trim(),!s.startsWith("token(")&&s.endsWith(")")&&(s=s.slice(0,-1)),s.includes("token(")){const d=xh(s,t);d&&(s=d.slice(0,-1))}else if(s){const d=t(s);d&&(s=d)}}const h=n.at(-1);s?h?.trim()?n+=u.slice(0,-1)+(", "+s+")"):n+=s:n+=u||")",i="",s="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(s+=l);continue}const c=e.indexOf("token(",r);if(c!==-1){const u=c+6;n+=e.slice(r,c),r=u,o="token",a.push(o);continue}n+=l,r++}return n},jk=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if(r==="(")n.push(r);else if(r===")"&&(n.pop(),n.length===0))return t;t++}return t};function Ch(e){const t={};return e.forEach((n,r)=>{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const kh=/({([^}]*)})/g,Uk=/[{}]/g,Gk=/\w+\.\w+/,Sh=e=>{if(!ct(e))return[];const t=e.match(kh);return t?t.map(n=>n.replace(Uk,"")).map(n=>n.trim()):[]},qk=e=>kh.test(e);function wh(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((n,r)=>{const o=t[r];if(o.extensions.conditions)return n;const i=wh(o);return n.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}const Kk=/calc/g;function Eh(e){return Ve(e)&&e.reference?e.reference:String(e)}const si=(e,...t)=>t.map(Eh).join(` ${e} `).replace(Kk,""),Oh=(...e)=>`calc(${si("+",...e)})`,Ih=(...e)=>`calc(${si("-",...e)})`,ya=(...e)=>`calc(${si("*",...e)})`,Th=(...e)=>`calc(${si("/",...e)})`,Ph=e=>{const t=Eh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ya(t,-1)},ir=Object.assign(e=>({add:(...t)=>ir(Oh(e,...t)),subtract:(...t)=>ir(Ih(e,...t)),multiply:(...t)=>ir(ya(e,...t)),divide:(...t)=>ir(Th(e,...t)),negate:()=>ir(Ph(e)),toString:()=>e.toString()}),{add:Oh,subtract:Ih,multiply:ya,divide:Th,negate:Ph}),Yk={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(ct(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=ir.negate(c.ref);const h=u.path[u.path.length-1];h!=null&&(u.path[u.path.length-1]=`-${h}`),u.path&&(u.name=o(u.path)),i(u)})}},Xk=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Qk=[Yk,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=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(r(c),c)}),l.roots.forEach(c=>{const u=r(c),h=s.get(u)||[];if(h.push(a),s.set(u,h),a.extensions.default&&c.length===1){const d=l.keys[0]?.filter(Boolean);if(!d.length)return;const m=c.concat(d);i.set(r(m),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>Xk.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:rh(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],Jk=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=Sh(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const h=u.slice(0,c+1);return a.push(h),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],Nh=e=>Ve(e)&&Object.prototype.hasOwnProperty.call(e,"value");function Zk(e){return e?{breakpoints:qd(e,t=>({value:t})),sizes:rt(e,(t,n)=>[`breakpoint-${t}`,{value:n}])}:{breakpoints:{},sizes:{}}}function eS(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=L=>L.join("."),s=(L,_)=>Xd(L.join("-"),{prefix:_}),a=[],l=new Map,c=new Map,u=new Map,h=new Map,d=new Map,m=new Map,g=new Map,p=new Map,v=[];function y(L,_){a.push(L),l.set(L.name,L),_&&p.forEach(K=>{K.enforce===_&&q(K,L)})}const C=Zk(o),b=vr({...n,breakpoints:C.breakpoints,sizes:{...n.sizes,...C.sizes}});function S(){mt(b,(L,_)=>{const K=_.includes("DEFAULT");_=Rh(_);const ie=_[0],me=i(_),Ee=ct(L)?{value:L}:L,At={value:Ee.value,originalValue:Ee.value,name:me,path:_,extensions:{condition:"base",originalPath:_,category:ie,prop:i(_.slice(1))}};K&&(At.extensions.default=!0),y(At)},{stop:Nh}),mt(r,(L,_)=>{const K=_.includes("DEFAULT");_=Ah(Rh(_));const ie=_[0],me=i(_),Ee=ct(L.value)?{value:{base:L.value}}:L,At={value:Ee.value.base||"",originalValue:Ee.value.base||"",name:me,path:_,extensions:{originalPath:_,category:ie,conditions:Ee.value,condition:"base",prop:i(_.slice(1))}};K&&(At.extensions.default=!0),y(At)},{stop:Nh})}function x(L){return l.get(L)}function E(L){const{condition:_}=L.extensions;_&&(c.has(_)||c.set(_,new Set),c.get(_).add(L))}function I(L){const{category:_,prop:K}=L.extensions;_&&(g.has(_)||g.set(_,new Map),g.get(_).set(K,L))}function P(L){const{condition:_,negative:K,virtual:ie,cssVar:me}=L.extensions;K||ie||!_||!me||(u.has(_)||u.set(_,new Map),u.get(_).set(me.var,L.value))}function A(L){const{category:_,prop:K,cssVar:ie,negative:me}=L.extensions;if(!_)return;m.has(_)||m.set(_,new Map);const Ee=me?L.extensions.conditions?L.originalValue:L.value:ie.ref;m.get(_).set(K,Ee),d.set([_,K].join("."),Ee)}function V(L){const{colorPalette:_,virtual:K,default:ie}=L.extensions;!_||K||_.roots.forEach(me=>{const Ee=i(me);h.has(Ee)||h.set(Ee,new Map);const At=nS([...L.path],[...me]),Vi=i(At),Ya=x(Vi);if(!Ya||!Ya.extensions.cssVar)return;const{var:XT}=Ya.extensions.cssVar;if(h.get(Ee).set(XT,L.extensions.cssVar.ref),ie&&me.length===1){const QT=i(["colors","colorPalette"]),Ug=x(QT);if(!Ug)return;const JT=i(L.path),Gg=x(JT);if(!Gg)return;const qg=_.keys[0]?.filter(Boolean);if(!qg.length)return;const Xa=i(me.concat(qg));h.has(Xa)||h.set(Xa,new Map),h.get(Xa).set(Ug.extensions.cssVar.var,Gg.extensions.cssVar.ref)}})}let N={};function k(){a.forEach(L=>{E(L),I(L),P(L),A(L),V(L)}),N=Ch(m)}const R=(L,_)=>{if(!L||typeof L!="string")return{invalid:!0,value:L};const[K,ie]=L.split("/");if(!K||!ie)return{invalid:!0,value:K};const me=_(K),Ee=x(`opacity.${ie}`)?.value;if(!Ee&&isNaN(Number(ie)))return{invalid:!0,value:K};const At=Ee?Number(Ee)*100+"%":`${ie}%`,Vi=me??K;return{invalid:!1,color:Vi,value:`color-mix(in srgb, ${Vi} ${At}, transparent)`}},F=ot((L,_)=>d.get(L)??_),z=ot(L=>N[L]||null),H=ot(L=>xh(L,_=>{if(!_)return;if(_.includes("/")){const ie=R(_,me=>F(me));if(ie.invalid)throw new Error("Invalid color mix at "+_+": "+ie.value);return ie.value}const K=F(_);return K||(Gk.test(_)?yh(_):_)})),J={prefix:t,allTokens:a,tokenMap:l,registerToken:y,getByName:x,formatTokenName:i,formatCssVar:s,flatMap:d,cssVarMap:u,categoryMap:g,colorPaletteMap:h,getVar:F,getCategoryValues:z,expandReferenceInValue:H};function ee(...L){L.forEach(_=>{p.set(_.name,_)})}function W(...L){v.push(...L)}function q(L,_){if(_.extensions.references||es(L.match)&&!L.match(_))return;const ie=(me=>L.transform(me,J))(_);switch(!0){case L.type==="extensions":Object.assign(_.extensions,ie);break;case L.type==="value":_.value=ie;break;default:_[L.type]=ie;break}}function Z(L){v.forEach(_=>{_.enforce===L&&_.transform(J)})}function pe(L){p.forEach(_=>{_.enforce===L&&a.forEach(K=>{q(_,K)})})}function Je(){a.forEach(L=>{const _=tS(L);!_||_.length===0||_.forEach(K=>{y(K)})})}function xt(L){return Sh(L).map(K=>x(K)).filter(Boolean)}function Rt(){a.forEach(L=>{if(!qk(L.value))return;const _=xt(L.value);L.extensions.references=_.reduce((K,ie)=>(K[ie.name]=ie,K),{})})}function Ka(){a.forEach(L=>{wh(L)})}function YT(){Z("pre"),pe("pre"),Je(),Rt(),Ka(),Z("post"),pe("post"),k()}return S(),ee(...Jk),W(...Qk),YT(),J}function Rh(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Ah(e){return e.filter(t=>t!=="base")}function tS(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return mt(t,(r,o)=>{const i=Ah(o);if(!i.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=i.join(":"),n.push(s)}),n}function nS(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}Bk()(["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 gP(e){return e}function rS(e){return rt(e,(t,n)=>[t,n])}function oS(e){const t=rS(e.config),n=e.tokens,r=new Map,o=new Map;function i(P,A){t[P]=A,s(P,A)}const s=(P,A)=>{const V=p(A);V&&(o.set(P,V),h(P,A))},a=()=>{for(const[P,A]of Object.entries(t))A&&s(P,A)},l=()=>{for(const[P,A]of Object.entries(t)){const{shorthand:V}=A??{};if(!V)continue;(Array.isArray(V)?V:[V]).forEach(k=>r.set(k,P))}},c=()=>{const P=Ch(n.colorPaletteMap);i("colorPalette",{values:Object.keys(P),transform:ot(A=>P[A])})},u=new Map,h=(P,A)=>{if(!A)return;const V=p(A,k=>`type:Tokens["${k}"]`);if(typeof V=="object"&&V.type){u.set(P,new Set([`type:${V.type}`]));return}if(V){const k=new Set(Object.keys(V));u.set(P,k)}const N=u.get(P)??new Set;A.property&&u.set(P,N.add(`CssProperties["${A.property}"]`))},d=()=>{for(const[P,A]of Object.entries(t))A&&h(P,A)},m=(P,A)=>{const V=u.get(P)??new Set;u.set(P,new Set([...V,...A]))},g=()=>{const P=new Map;for(const[A,V]of u.entries()){if(V.size===0){P.set(A,["string"]);continue}const N=Array.from(V).map(k=>k.startsWith("CssProperties")?k:k.startsWith("type:")?k.replace("type:",""):JSON.stringify(k));P.set(A,N)}return P},p=(P,A)=>{const{values:V}=P,N=k=>{const R=A?.(k);return R?{[R]:R}:void 0};return ct(V)?N?.(V)??n.getCategoryValues(V)??{}:Array.isArray(V)?V.reduce((k,R)=>(k[R]=R,k),{}):es(V)?V(A?N:n.getCategoryValues):V},v=ot((P,A)=>({[P]:P.startsWith("--")?n.getVar(A,A):A})),y=Object.assign(n.getVar,{raw:P=>n.getByName(P)}),C=ot((P,A)=>{const V=x(P);ct(A)&&!A.includes("_EMO_")&&(A=n.expandReferenceInValue(A));const N=t[V];if(!N)return v(V,A);const k=o.get(V)?.[A];if(!N.transform)return v(P,k??A);const R=F=>zC(F,y);return N.transform(k??A,{raw:A,token:y,utils:{colorMix:R}})});function b(){l(),c(),a(),d()}b();const S=r.size>0,x=ot(P=>r.get(P)??P);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:S,transform:C,shorthands:r,resolveShorthand:x,register:i,getTypes:g,addPropertyType:m}}const De={};function Vh(...e){const t=Kd(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=Vk(t),c=eS({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=fk(n.breakpoints??De),h=vk({conditions:t.conditions??De,breakpoints:u}),d=oS({config:r,tokens:c});function m(){const{textStyles:W,layerStyles:q,animationStyles:Z}=n,pe=vr({textStyle:W,layerStyle:q,animationStyle:Z});for(const[Je,xt]of Object.entries(pe)){const Rt=Zd(xt??De,_h);d.register(Je,{values:Object.keys(Rt),transform(Ka){return b(Rt[Ka])}})}}m(),d.addPropertyType("animationName",Object.keys(n.keyframes??De));const g=new Set(["css",...d.keys(),...h.keys()]),p=ot(W=>g.has(W)||lk(W)),v=W=>Array.isArray(W)?W.reduce((q,Z,pe)=>{const Je=h.breakpoints[pe];return Z!=null&&(q[Je]=Z),q},{}):W,y=_k({utility:d,normalize:v}),C=Fk({conditions:h,isValidProperty:p}),b=mh({transform:d.transform,conditions:h,normalize:y}),S=Nk({css:b,conditions:h,normalize:y,layers:l}),x=$k({cva:S});function E(){const W={};for(const[q,Z]of c.cssVarMap.entries()){const pe=Object.fromEntries(Z);if(Object.keys(pe).length===0)continue;const Je=q==="base"?i:h.resolve(q),xt=Je.startsWith("@"),Rt=b(C({[Je]:xt?{[i]:pe}:pe}));tr(W,Rt)}return l.wrap("tokens",W)}function I(){const W=rt(n.keyframes??De,(Z,pe)=>[`@keyframes ${Z}`,pe]),q=Object.assign({},W,b(C(o)));return l.wrap("base",q)}function P(W){return Ln(W,p)}function A(){const W=Lk({preflight:a});return l.wrap("reset",W)}const V=iS(c),N=(W,q)=>V.get(W)?.value||q;N.var=(W,q)=>V.get(W)?.variable||q;function k(W,q){return n.recipes?.[W]??q}function R(W,q){return n.slotRecipes?.[W]??q}function F(W){return Object.hasOwnProperty.call(n.recipes??De,W)}function z(W){return Object.hasOwnProperty.call(n.slotRecipes??De,W)}function H(W){return F(W)||z(W)}const J=[A(),I(),E()],ee={layerStyles:xa(n.layerStyles??De),textStyles:xa(n.textStyles??De),animationStyles:xa(n.animationStyles??De),tokens:Lh(c,Object.keys(n.tokens??De),(W,q)=>!W.extensions.conditions&&!q.includes("colorPalette")),semanticTokens:Lh(c,Object.keys(n.semanticTokens??De),W=>!!W.extensions.conditions),keyframes:Fh(n.keyframes??De),breakpoints:Fh(n.breakpoints??De)};return{$$chakra:!0,_config:t,_global:J,breakpoints:u,tokens:c,conditions:h,utility:d,token:N,properties:g,layers:l,isValidProperty:p,splitCssProps:P,normalizeValue:v,getTokenCss:E,getGlobalCss:I,getPreflightCss:A,css:b,cva:S,sva:x,getRecipe:k,getSlotRecipe:R,hasRecipe:H,isRecipe:F,isSlotRecipe:z,query:ee}}function iS(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const _h=e=>Ve(e)&&"value"in e,xa=e=>({list(){return Object.keys(Zd(e,_h))},search(t){return this.list().filter(n=>n.includes(t))}}),Lh=(e,t,n)=>({categoryKeys:t,list(r){return Array.from(e.categoryMap.get(r)?.entries()??[]).reduce((o,[i,s])=>(n(s,i)&&o.push(i),o),[])},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),Fh=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),sS={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ca="var(--chakra-empty,/*!*/ /*!*/)",aS=WC({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ca,"--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}`,Ca])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ca])),"--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"}}),lS=UC({"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:{}}}),cS=jC({"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"}}}),ka=fe({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),uS=fe({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Se=fe({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:dS,defaultVariants:hS}=ka,fS=fe({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:dS,defaultVariants:hS}),Dh=fe({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"}}),gS=fe({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"}}}}),pS=fe({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"}}),mS=fe({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"}}),de=fe({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"}}),vS=fe({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:de.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"}}),bS=fe({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"}}),yS=fe({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"}}),xS=fe({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:{}}}}),we=fe({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"}}),CS=fe({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"}}),kS=fe({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}}),SS=fe({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"}}}),wS=fe({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"}}),ES=fe({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"}}),OS={badge:ka,button:uS,code:fS,container:gS,heading:pS,input:de,inputAddon:vS,kbd:bS,link:yS,mark:xS,separator:CS,skeleton:kS,skipNavLink:SS,spinner:wS,textarea:ES,icon:mS,checkmark:Se,radiomark:we,colorSwatch:Dh},IS=fa.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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}}}),TS=fa.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),PS=fa.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}"}}}),NS=iu.extendWith("itemBody"),RS=$("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),AS=$("alert").parts("title","description","root","indicator","content"),VS=$("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),_S=$("blockquote").parts("root","icon","content","caption"),LS=$("card").parts("root","header","body","footer","title","description"),FS=$("checkbox-card",["root","control","label","description","addon","indicator","content"]),DS=$("data-list").parts("root","item","itemLabel","itemValue"),zS=Gs.extendWith("header","body","footer","backdrop"),MS=Gs.extendWith("header","body","footer","backdrop"),$S=Ku.extendWith("textarea"),BS=$("empty-state",["root","content","indicator","title","description"]),WS=Xu.extendWith("requiredIndicator"),HS=Ju.extendWith("content"),jS=Zu.extendWith("itemContent","dropzoneContent","fileText"),US=$("list").parts("root","item","indicator"),GS=ud.extendWith("itemCommand"),qS=$("select").parts("root","field","indicator"),KS=Td.extendWith("header","body","footer"),zh=ia.extendWith("itemAddon","itemIndicator"),YS=zh.extendWith("itemContent","itemDescription"),XS=Nd.extendWith("itemIndicator"),QS=Vd.extendWith("indicatorGroup"),JS=Ux.extendWith("indicatorGroup","empty"),ZS=Dd.extendWith("markerIndicator"),ew=$("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),tw=$("status").parts("root","indicator"),nw=$("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),rw=zd.extendWith("indicator"),ow=$("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),iw=$("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),sw=$("tabs").parts("root","trigger","list","content","contentGroup","indicator"),aw=$("tag").parts("root","label","closeTrigger","startElement","endElement"),lw=$("timeline").parts("root","item","content","separator","indicator","connector","title","description"),cw=gx.extendWith("channelText"),uw=$("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);xu.extendWith("valueText");const dw=x1,hw=B({className:"chakra-accordion",slots:NS.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"}}),fw=B({className:"chakra-action-bar",slots:RS.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"}}}),gw=B({slots:AS.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),pw=B({slots:lu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),mw=B({className:"chakra-blockquote",slots:_S.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"}}),vw=B({className:"chakra-breadcrumb",slots:VS.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"}}),bw=B({className:"chakra-card",slots:LS.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"}}),yw=B({slots:fx.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Se.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Se.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Se.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Se.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Se.variants?.size?.lg}},variant:{outline:{control:Se.variants?.variant?.outline},solid:{control:Se.variants?.variant?.solid},subtle:{control:Se.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),xw=B({slots:FS.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:Se.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:Se.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Se.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Se.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:Se.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Se.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:Se.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Se.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"}}),Cw=B({slots:uw.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","--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"}}),kw=B({slots:mc.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"}}}}}),Sw=B({className:"colorPicker",slots:cw.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:{...Dh.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:{...de.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:de.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:de.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:de.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:de.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:de.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:de.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:de.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:de.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:de.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),ww=B({className:"chakra-combobox",slots:JS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--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"},control:{pos:"relative"},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"}}),Ew=B({slots:DS.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"}}),Ow=B({slots:zS.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"}}),Iw=B({slots:MS.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"}}),Mh=nr({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),Tw=B({slots:$S.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Mh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Mh,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"}}),Pw=B({slots:BS.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"}}),Nw=B({className:"chakra-field",slots:WS.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"}}),Rw=B({className:"fieldset",slots:HS.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"}}),Aw=B({className:"chakra-file-upload",slots:jS.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:{}}),Vw=B({className:"chakra-hover-card",slots:ed.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),_w=B({className:"chakra-list",slots:US.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"}}),Lw=B({className:"chakra-listbox",slots:dw.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"}}),Fw=B({className:"chakra-menu",slots:GS.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"}}),ai=B({className:"chakra-select",slots:QS.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"}}),Dw=B({className:"chakra-native-select",slots:qS.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:ai.variants?.variant.outline.trigger},subtle:{field:ai.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:ai.defaultVariants}),$h=nr({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"}}),zw=B({className:"chakra-number-input",slots:Cd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...de.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:{...$h,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...$h,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:de.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:de.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:de.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:de.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:rt(de.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Bh,defaultVariants:Mw}=de,$w=B({className:"chakra-pin-input",slots:Id.keys(),base:{input:{...de.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:rt(Bh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:rt(Bh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Mw}),Bw=B({className:"chakra-popover",slots:KS.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),Ww=B({slots:oa.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"}}),Hw=B({className:"chakra-progress-circle",slots:oa.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"}}),jw=B({slots:Pd.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"}}),Uw=B({className:"chakra-radio-card",slots:YS.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:we.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:we.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:we.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:we.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:we.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:we.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:we.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:we.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"}}),Gw=B({className:"chakra-radio-group",slots:zh.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:we.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:we.variants?.variant?.outline},subtle:{itemControl:we.variants?.variant?.subtle},solid:{itemControl:we.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:we.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:we.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:we.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:we.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),qw=B({className:"chakra-rating-group",slots:XS.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"}}),Kw=B({className:"chakra-scroll-area",slots:Rd.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"}}),Yw=B({className:"chakra-segment-group",slots:Ad.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_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:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{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"}}),Xw=B({className:"chakra-slider",slots:ZS.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"}}),Qw=B({className:"chakra-stat",slots:ew.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"}}),Jw=B({className:"chakra-status",slots:tw.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"}}),Zw=B({className:"chakra-steps",slots:nw.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"}}),eE=B({slots:rw.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"}}),tE=B({className:"chakra-table",slots:ow.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"}}),nE=B({slots:sw.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),li=ka.variants?.variant,rE=B({slots:aw.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:li?.subtle},solid:{root:li?.solid},outline:{root:li?.outline},surface:{root:li?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),oE=B({slots:Md.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"}},itemText:{lineClamp:"1"},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)"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",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"}}),iE=B({slots:lw.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}}),sE=B({slots:iw.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"}}}}),aE=B({slots:Hd.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Wh=nr({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"}}),Hh=nr({flex:"1"}),jh=nr({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),Uh=nr({_selected:{layerStyle:"fill.solid"}}),lE=B({slots:rd.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:Wh,item:Wh,itemText:Hh,branchText:Hh,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:jh,item:jh},solid:{branchControl:Uh,item:Uh}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),cE={accordion:hw,actionBar:fw,alert:gw,avatar:pw,blockquote:mw,breadcrumb:vw,card:bw,checkbox:yw,checkboxCard:xw,codeBlock:Cw,collapsible:kw,dataList:Ew,dialog:Ow,drawer:Iw,editable:Tw,emptyState:Pw,field:Nw,fieldset:Rw,fileUpload:Aw,hoverCard:Vw,list:_w,listbox:Lw,menu:Fw,nativeSelect:Dw,numberInput:zw,pinInput:$w,popover:Bw,progress:Ww,progressCircle:Hw,radioCard:Uw,radioGroup:Gw,ratingGroup:qw,scrollArea:Kw,segmentGroup:Yw,select:ai,combobox:ww,slider:Xw,stat:Qw,steps:Zw,switch:eE,table:tE,tabs:nE,tag:rE,tagsInput:oE,toast:sE,tooltip:aE,status:Jw,timeline:iE,colorPicker:Sw,qrCode:jw,treeView:lE},uE=HC({"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"}}}),dE=ue.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"}}),hE=ue.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"}}),fE=ue.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),gE=ue.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),pE=ue.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"}}}),mE=ue.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"}}),vE=ue.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),bE=ue.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)"}}),yE=ue.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"}}),xE=ue.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"}}),Gh='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',CE=ue.fonts({heading:{value:`Inter, ${Gh}`},body:{value:`Inter, ${Gh}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),kE=BC({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"}}}),SE=ue.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),wE=ue.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),EE=ue.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"}}),qh=ue.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"}}),OE=ue.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"}}),IE=ue.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"}}),TE=ue.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%"}}),PE=ue.sizes({...OE,...qh,...TE,...IE}),NE=ue.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}}),RE=ga({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:aS,theme:{breakpoints:sS,keyframes:kE,tokens:{aspectRatios:hE,animations:dE,blurs:fE,borders:gE,colors:pE,durations:vE,easings:bE,fonts:CE,fontSizes:yE,fontWeights:xE,letterSpacings:SE,lineHeights:wE,radii:EE,spacing:qh,sizes:PE,zIndex:NE,cursor:mE},semanticTokens:{colors:IS,shadows:PS,radii:TS},recipes:OS,slotRecipes:cE,textStyles:uE,layerStyles:lS,animationStyles:cS}}),Kh=Kd(ZC,RE);Vh(Kh);function AE(e){const{key:t,recipe:n}=e,r=lo();return O.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const VE=e=>e.charAt(0).toUpperCase()+e.slice(1),ci=e=>{const{key:t,recipe:n}=e,r=VE(t||n.className||"Component"),[o,i]=_n({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=_n({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=_n({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(g){const{unstyled:p,...v}=g,y=AE({key:t,recipe:v.recipe||n}),[C,b]=O.useMemo(()=>y.splitVariantProps(v),[v,y]);return{styles:O.useMemo(()=>p?hm:y(C),[p,C,y]),classNames:y.classNameMap,props:b}}function h(g,p={}){const{defaultProps:v}=p,y=C=>{const b=c(),S=O.useMemo(()=>mr(v,b,C),[b,C]),{styles:x,classNames:E,props:I}=u(S);return f.jsx(o,{value:x,children:f.jsx(s,{value:E,children:f.jsx(g,{...I})})})};return y.displayName=g.displayName||g.name,y}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(g,p,v)=>{const{defaultProps:y,...C}=v??{},b=ve(g,{},C),S=O.forwardRef((x,E)=>{const I=c(),P=O.useMemo(()=>mr(y??{},I,x),[I,x]),{styles:A,props:V,classNames:N}=u(P),k=N[p],R=f.jsx(o,{value:A,children:f.jsx(s,{value:N,children:f.jsx(b,{ref:E,...V,css:[A[p],P.css],className:Ge(P.className,k)})})});return v?.wrapElement?.(R,P)??R});return S.displayName=g.displayName||g.name,S},withContext:(g,p,v)=>{const y=ve(g,{},v),C=O.forwardRef((b,S)=>{const{unstyled:x,...E}=b,I=i(),A=a()?.[p];return f.jsx(y,{...E,css:[!x&&p?I[p]:void 0,b.css],ref:S,className:Ge(b.className,A)})});return C.displayName=g.displayName||g.name,C},withRootProvider:h,useStyles:i,useClassNames:a}},Yh=ve("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"}});Yh.displayName="AbsoluteCenter";const _E=e=>f.jsx(ve.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:f.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"})}),Xh=e=>f.jsx(ve.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:f.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"})}),Qh=e=>f.jsx(ve.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:f.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 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),LE=e=>f.jsx(ve.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:f.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"})}),[FE,DE]=_n({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:zE,withContext:Sa,useStyles:ME}=ci({key:"alert"}),$E=zE("div","root",{forwardAsChild:!0,wrapElement(e,t){return f.jsx(FE,{value:{status:t.status||"info"},children:e})}}),Jh=Sa("div","title"),BE=Sa("div","description"),WE=Sa("div","content"),HE={info:Qh,warning:Xh,success:_E,error:Xh,neutral:Qh},jE=O.forwardRef(function(t,n){const r=DE(),o=ME(),i=typeof r.status=="string"?HE[r.status]:O.Fragment,{children:s=f.jsx(i,{}),...a}=t;return f.jsx(ve.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),UE=e=>e?"":void 0,{withContext:GE}=Vt({key:"badge"}),Zh=GE("span"),{withContext:qE}=Vt({key:"spinner"}),KE=qE("span"),YE=D.forwardRef(function(t,n){const{spinner:r=f.jsx(KE,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?f.jsxs(Po,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?f.jsxs(Po,{ref:n,display:"contents",...l,children:[f.jsx(Yh,{display:"inline-flex",children:r}),f.jsx(Po,{visibility:"hidden",display:"contents",children:i})]}):f.jsx(Po,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:XE,usePropsContext:QE}=Vt({key:"button"}),Te=O.forwardRef(function(t,n){const r=QE(),o=O.useMemo(()=>mr(r,t),[r,t]),i=XE(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...h}=i.props;return f.jsx(ve.button,{type:"button",ref:n,...h,"data-loading":UE(s),disabled:s||h.disabled,className:Ge(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?f.jsx(YE,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),It=O.forwardRef(function(t,n){return f.jsx(Te,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),fn=D.forwardRef(function(t,n){return f.jsx(It,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??f.jsx(LE,{})})}),ef=ve("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});ef.displayName="Center";const{withContext:JE}=Vt({key:"code"}),ZE=JE("code");function e2(e){const{gap:t,direction:n}=e,r={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{"&":qd(n,o=>r[o])}}function t2(e){return O.Children.toArray(e).filter(t=>O.isValidElement(t))}const tf=O.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...h}=t,d=O.useMemo(()=>e2({gap:s,direction:r}),[s,r]),m=O.useMemo(()=>O.isValidElement(c)?t2(l).map((g,p,v)=>{const y=typeof g.key<"u"?g.key:p,C=c,b=O.cloneElement(C,{css:[d,C.props.css]});return f.jsxs(O.Fragment,{children:[g,p===v.length-1?null:b]},y)}):l,[l,c,d]);return f.jsx(ve.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:Ge("chakra-stack",u),...h,children:m})}),{withRootProvider:nf,withContext:vt}=ci({key:"dialog"});nf(n1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const gn=nf(t1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});vt(qu,"trigger",{forwardAsChild:!0});const pn=vt(Bu,"positioner",{forwardAsChild:!0}),mn=vt(Mu,"content",{forwardAsChild:!0});vt($u,"description",{forwardAsChild:!0});const vn=vt(Gu,"title",{forwardAsChild:!0}),bn=vt(zu,"closeTrigger",{forwardAsChild:!0}),yn=O.forwardRef(function(t,n){const r=Ht();return f.jsx(ve.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),xn=vt(Du,"backdrop",{forwardAsChild:!0}),Cn=vt("div","body"),kn=vt("div","footer"),Sn=vt("div","header");function n2(e){const{each:t,fallback:n,children:r}=e;return t?.length===0?n||null:t?.map(r)}const ui=O.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...h}=t;return f.jsx(ve.div,{ref:n,...h,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),{withContext:r2}=Vt({key:"input"}),o2=r2(Yu),{withContext:i2}=Vt({key:"link"}),s2=i2("a"),{withProvider:a2,withContext:rf}=ci({key:"list"}),of=a2("ul","root",{defaultProps:{role:"list"}}),sf=rf("li","item");rf("span","indicator");const l2=O.forwardRef(function(t,n){return f.jsx(tf,{align:"center",...t,direction:"row",ref:n})}),di=O.forwardRef(function(t,n){return f.jsx(tf,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:c2,ClassNamesProvider:u2,useRecipeResult:d2,withContext:Tt}=ci({key:"table"}),af=O.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=d2(n),a=O.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return f.jsx(u2,{value:s,children:f.jsx(c2,{value:o,children:f.jsx(ve.table,{ref:r,...i,css:[a,n.css],className:Ge(s?.root,n.className)})})})}),hi=Tt("tr","row");ve("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const lf=Tt("thead","header");Tt("tfoot","footer");const xe=Tt("th","columnHeader"),Ce=Tt("td","cell");Tt("caption","caption",{defaultProps:{captionSide:"bottom"}});const cf=Tt("tbody","body");Tt("colgroup"),Tt("col");const{withContext:h2}=Vt({key:"textarea"}),uf=h2(Qu);var sr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},f2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},g2=class{#e=f2;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},wn=new g2;function p2(e){setTimeout(e,0)}var En=typeof window>"u"||"Deno"in globalThis;function Re(){}function m2(e,t){return typeof e=="function"?e(t):e}function wa(e){return typeof e=="number"&&e>=0&&e!==1/0}function df(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gt(e,t){return typeof e=="function"?e(t):e}function Qe(e,t){return typeof e=="function"?e(t):e}function hf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ea(s,t.options))return!1}else if(!jr(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function ff(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(On(t.options.mutationKey)!==On(i))return!1}else if(!jr(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ea(e,t){return(t?.queryKeyHashFn||On)(e)}function On(e){return JSON.stringify(e,(t,n)=>Oa(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function jr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>jr(e[n],t[n])):!1}var v2=Object.prototype.hasOwnProperty;function gf(e,t){if(e===t)return e;const n=pf(e)&&pf(t);if(!n&&!(Oa(e)&&Oa(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c<s;c++){const u=n?c:i[c],h=e[u],d=t[u];if(h===d){a[u]=h,(n?c<o:v2.call(e,u))&&l++;continue}if(h===null||d===null||typeof h!="object"||typeof d!="object"){a[u]=d;continue}const m=gf(h,d);a[u]=m,m===h&&l++}return o===s&&l===o?e:a}function fi(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function pf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oa(e){if(!mf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!mf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function mf(e){return Object.prototype.toString.call(e)==="[object Object]"}function b2(e){return new Promise(t=>{wn.setTimeout(t,e)})}function Ia(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gf(e,t):t}function y2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function x2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ta=Symbol();function vf(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ta?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bf(e,t){return typeof e=="function"?e(...t):!!e}var C2=class extends sr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!En&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Pa=new C2;function Na(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var k2=p2;function S2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=k2;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ge=S2(),w2=class extends sr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!En&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},gi=new w2;function E2(e){return Math.min(1e3*2**e,3e4)}function yf(e){return(e??"online")==="online"?gi.isOnline():!0}var Ra=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function xf(e){let t=!1,n=0,r;const o=Na(),i=()=>o.status!=="pending",s=p=>{if(!i()){const v=new Ra(p);d(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Pa.isFocused()&&(e.networkMode==="always"||gi.isOnline())&&e.canRun(),u=()=>yf(e.networkMode)&&e.canRun(),h=p=>{i()||(r?.(),o.resolve(p))},d=p=>{i()||(r?.(),o.reject(p))},m=()=>new Promise(p=>{r=v=>{(i()||c())&&p(v)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),g=()=>{if(i())return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(h).catch(y=>{if(i())return;const C=e.retry??(En?0:3),b=e.retryDelay??E2,S=typeof b=="function"?b(n,y):b,x=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,y);if(t||!x){d(y);return}n++,e.onFail?.(n,y),b2(S).then(()=>c()?void 0:m()).then(()=>{t?d(y):g()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?g():m().then(g),o)}}var Cf=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wa(this.gcTime)&&(this.#e=wn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(En?1/0:300*1e3))}clearGcTimeout(){this.#e&&(wn.clearTimeout(this.#e),this.#e=void 0)}},O2=class extends Cf{#e;#t;#n;#o;#r;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Sf(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Sf(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Ia(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Re).catch(Re):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Qe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ta||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Gt(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!df(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const a=vf(this.options,t),c=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=xf({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof Ra&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof Ra){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...kf(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ge.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function kf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Sf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var I2=class extends sr{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=Na(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),wf(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Aa(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Aa(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#C(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qe(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#t.setOptions(this.options),t._defaulted&&!fi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Ef(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||Qe(this.options.enabled,this.#t)!==Qe(t.enabled,this.#t)||Gt(this.options.staleTime,this.#t)!==Gt(t.staleTime,this.#t))&&this.#m();const o=this.#v();r&&(this.#t!==n||Qe(this.options.enabled,this.#t)!==Qe(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return P2(this,n)&&(this.#o=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#k();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Re)),t}#m(){this.#x();const e=Gt(this.options.staleTime,this.#t);if(En||this.#o.isStale||!wa(e))return;const n=df(this.#o.dataUpdatedAt,e)+1;this.#c=wn.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#C(),this.#l=e,!(En||Qe(this.options.enabled,this.#t)===!1||!wa(this.#l)||this.#l===0)&&(this.#u=wn.setInterval(()=>{(this.options.refetchIntervalInBackground||Pa.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(wn.clearTimeout(this.#c),this.#c=void 0)}#C(){this.#u&&(wn.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,i=this.#r,s=this.#s,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},h=!1,d;if(t._optimisticResults){const P=this.hasListeners(),A=!P&&wf(e,t),V=P&&Ef(e,n,t,r);(A||V)&&(u={...u,...kf(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:p}=u;d=u.data;let v=!1;if(t.placeholderData!==void 0&&d===void 0&&p==="pending"){let P;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(P=o.data,v=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,P!==void 0&&(p="success",d=Ia(o?.data,P,t),h=!0)}if(t.select&&d!==void 0&&!v)if(o&&d===i?.data&&t.select===this.#p)d=this.#h;else try{this.#p=t.select,d=t.select(d),d=Ia(o?.data,d,t),this.#h=d,this.#i=null}catch(P){this.#i=P}this.#i&&(m=this.#i,d=this.#h,g=Date.now(),p="error");const y=u.fetchStatus==="fetching",C=p==="pending",b=p==="error",S=C&&y,x=d!==void 0,I={status:p,fetchStatus:u.fetchStatus,isPending:C,isSuccess:p==="success",isError:b,isInitialLoading:S,isLoading:S,data:d,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!C,isLoadingError:b&&!x,isPaused:u.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:b&&x,isStale:Va(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Qe(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=N=>{I.status==="error"?N.reject(I.error):I.data!==void 0&&N.resolve(I.data)},A=()=>{const N=this.#a=I.promise=Na();P(N)},V=this.#a;switch(V.status){case"pending":e.queryHash===n.queryHash&&P(V);break;case"fulfilled":(I.status==="error"||I.data!==V.value)&&A();break;case"rejected":(I.status!=="error"||I.error!==V.reason)&&A();break}}return I}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#f=this.#t),fi(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const a=s;return this.#o[a]!==e[a]&&i.has(a)})};this.#S({listeners:n()})}#k(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(e){ge.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function T2(e,t){return Qe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wf(e,t){return T2(e,t)||e.state.data!==void 0&&Aa(e,t,t.refetchOnMount)}function Aa(e,t,n){if(Qe(t.enabled,e)!==!1&&Gt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Va(e,t)}return!1}function Ef(e,t,n,r){return(e!==t||Qe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Va(e,n)}function Va(e,t){return Qe(t.enabled,e)!==!1&&e.isStaleByTime(Gt(t.staleTime,e))}function P2(e,t){return!fi(e.getCurrentResult(),t)}function Of(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const h=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=vf(t.options,t.fetchOptions),m=async(g,p,v)=>{if(u)return Promise.reject();if(p==null&&g.pages.length)return Promise.resolve(g);const C=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:p,direction:v?"backward":"forward",meta:t.options.meta};return h(E),E})(),b=await d(C),{maxPages:S}=t.options,x=v?x2:y2;return{pages:x(g.pages,b,S),pageParams:x(g.pageParams,p,S)}};if(o&&i.length){const g=o==="backward",p=g?N2:If,v={pages:i,pageParams:s},y=p(r,v);a=await m(v,y,g)}else{const g=e??i.length;do{const p=l===0?s[0]??r.initialPageParam:If(r,a);if(l>0&&p==null)break;a=await m(a,p),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function If(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function N2(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var R2=class extends Cf{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Tf(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=xf({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#r({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ge.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Tf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var A2=class extends sr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new R2({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=pi(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=pi(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pi(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=pi(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ge.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ff(t,n))}findAll(e={}){return this.getAll().filter(t=>ff(e,t))}notify(e){ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ge.batch(()=>Promise.all(e.map(t=>t.continue().catch(Re))))}};function pi(e){return e.options.scope?.id}var V2=class extends sr{#e;#t=void 0;#n;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),fi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&On(t.mutationKey)!==On(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(e,t){return this.#o=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#r(){const e=this.#n?.state??Tf();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){ge.batch(()=>{if(this.#o&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#o.onSuccess?.(e.data,t,n,r),this.#o.onSettled?.(e.data,null,t,n,r)):e?.type==="error"&&(this.#o.onError?.(e.error,t,n,r),this.#o.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(t=>{t(this.#t)})})}},_2=class extends sr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Ea(r,t);let i=this.get(o);return i||(i=new O2({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ge.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>hf(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>hf(e,n)):t}notify(e){ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ge.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ge.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},L2=class{#e;#t;#n;#o;#r;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new _2,this.#t=e.mutationCache||new A2,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Pa.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=gi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,s=m2(t,i);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ge.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ge.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ge.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Re).catch(Re)}invalidateQueries(e,t={}){return ge.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ge.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Re)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Re)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Gt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Re).catch(Re)}fetchInfiniteQuery(e){return e.behavior=Of(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Re).catch(Re)}ensureInfiniteQueryData(e){return e.behavior=Of(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(On(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{jr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(On(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{jr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ea(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ta&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Pf=D.createContext(void 0),Nf=e=>{const t=D.useContext(Pf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},F2=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Pf.Provider,{value:e,children:t})),Rf=D.createContext(!1),D2=()=>D.useContext(Rf);Rf.Provider;function z2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var M2=D.createContext(z2()),$2=()=>D.useContext(M2),B2=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},W2=e=>{D.useEffect(()=>{e.clearReset()},[e])},H2=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||bf(n,[e.error,r])),j2=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},U2=(e,t)=>e.isLoading&&e.isFetching&&!t,G2=(e,t)=>e?.suspense&&t.isPending,Af=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function q2(e,t,n){const r=D2(),o=$2(),i=Nf(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",j2(s),B2(s,o),W2(o);const a=!i.getQueryCache().get(s.queryHash),[l]=D.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(h=>{const d=u?l.subscribe(ge.batchCalls(h)):Re;return l.updateResult(),d},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(s)},[s,l]),G2(s,c))throw Af(s,l,o);if(H2({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!En&&U2(c,r)&&(a?Af(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(Re).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function Vf(e,t){return q2(e,I2)}function In(e,t){const n=Nf(),[r]=D.useState(()=>new V2(n,e));D.useEffect(()=>{r.setOptions(e)},[r,e]);const o=D.useSyncExternalStore(D.useCallback(s=>r.subscribe(ge.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=D.useCallback((s,a)=>{r.mutate(s,a).catch(Re)},[r]);if(o.error&&bf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function _f(e,t){return function(){return e.apply(t,arguments)}}const{toString:K2}=Object.prototype,{getPrototypeOf:_a}=Object,{iterator:mi,toStringTag:Lf}=Symbol,vi=(e=>t=>{const n=K2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>vi(t)===e),bi=e=>t=>typeof t===e,{isArray:ar}=Array,lr=bi("undefined");function Ur(e){return e!==null&&!lr(e)&&e.constructor!==null&&!lr(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ff=it("ArrayBuffer");function Y2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ff(e.buffer),t}const X2=bi("string"),ze=bi("function"),Df=bi("number"),Gr=e=>e!==null&&typeof e=="object",Q2=e=>e===!0||e===!1,yi=e=>{if(vi(e)!=="object")return!1;const t=_a(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Lf in e)&&!(mi in e)},J2=e=>{if(!Gr(e)||Ur(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Z2=it("Date"),eO=it("File"),tO=it("Blob"),nO=it("FileList"),rO=e=>Gr(e)&&ze(e.pipe),oO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((t=vi(e))==="formdata"||t==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},iO=it("URLSearchParams"),[sO,aO,lO,cO]=["ReadableStream","Request","Response","Headers"].map(it),uO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ar(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ur(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function zf(e,t){if(Ur(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Tn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Mf=e=>!lr(e)&&e!==Tn;function La(){const{caseless:e,skipUndefined:t}=Mf(this)&&this||{},n={},r=(o,i)=>{const s=e&&zf(n,i)||i;yi(n[s])&&yi(o)?n[s]=La(n[s],o):yi(o)?n[s]=La({},o):ar(o)?n[s]=o.slice():(!t||!lr(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&qr(arguments[o],r);return n}const dO=(e,t,n,{allOwnKeys:r}={})=>(qr(t,(o,i)=>{n&&ze(o)?e[i]=_f(o,n):e[i]=o},{allOwnKeys:r}),e),hO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gO=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&_a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mO=e=>{if(!e)return null;if(ar(e))return e;let t=e.length;if(!Df(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_a(Uint8Array)),bO=(e,t)=>{const r=(e&&e[mi]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},yO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xO=it("HTMLFormElement"),CO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),$f=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kO=it("RegExp"),Bf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};qr(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},SO=e=>{Bf(e,(t,n)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ze(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wO=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ar(e)?r(e):r(String(e).split(t)),n},EO=()=>{},OO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function IO(e){return!!(e&&ze(e.append)&&e[Lf]==="FormData"&&e[mi])}const TO=e=>{const t=new Array(10),n=(r,o)=>{if(Gr(r)){if(t.indexOf(r)>=0)return;if(Ur(r))return r;if(!("toJSON"in r)){t[o]=r;const i=ar(r)?[]:{};return qr(r,(s,a)=>{const l=n(s,o+1);!lr(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},PO=it("AsyncFunction"),NO=e=>e&&(Gr(e)||ze(e))&&ze(e.then)&&ze(e.catch),Wf=((e,t)=>e?setImmediate:t?((n,r)=>(Tn.addEventListener("message",({source:o,data:i})=>{o===Tn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Tn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ze(Tn.postMessage)),RO=typeof queueMicrotask<"u"?queueMicrotask.bind(Tn):typeof process<"u"&&process.nextTick||Wf,w={isArray:ar,isArrayBuffer:Ff,isBuffer:Ur,isFormData:oO,isArrayBufferView:Y2,isString:X2,isNumber:Df,isBoolean:Q2,isObject:Gr,isPlainObject:yi,isEmptyObject:J2,isReadableStream:sO,isRequest:aO,isResponse:lO,isHeaders:cO,isUndefined:lr,isDate:Z2,isFile:eO,isBlob:tO,isRegExp:kO,isFunction:ze,isStream:rO,isURLSearchParams:iO,isTypedArray:vO,isFileList:nO,forEach:qr,merge:La,extend:dO,trim:uO,stripBOM:hO,inherits:fO,toFlatObject:gO,kindOf:vi,kindOfTest:it,endsWith:pO,toArray:mO,forEachEntry:bO,matchAll:yO,isHTMLForm:xO,hasOwnProperty:$f,hasOwnProp:$f,reduceDescriptors:Bf,freezeMethods:SO,toObjectSet:wO,toCamelCase:CO,noop:EO,toFiniteNumber:OO,findKey:zf,global:Tn,isContextDefined:Mf,isSpecCompliantForm:IO,toJSONObject:TO,isAsyncFn:PO,isThenable:NO,setImmediate:Wf,asap:RO,isIterable:e=>e!=null&&ze(e[mi])};function U(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Hf=U.prototype,jf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jf[e]={value:e}}),Object.defineProperties(U,jf),Object.defineProperty(Hf,"isAxiosError",{value:!0}),U.from=(e,t,n,r,o,i)=>{const s=Object.create(Hf);w.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return U.call(s,a,l,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const AO=null;function Fa(e){return w.isPlainObject(e)||w.isArray(e)}function Uf(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Gf(e,t,n){return e?e.concat(t).map(function(o,i){return o=Uf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function VO(e){return w.isArray(e)&&!e.some(Fa)}const _O=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function xi(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!w.isUndefined(v[p])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(w.isDate(g))return g.toISOString();if(w.isBoolean(g))return g.toString();if(!l&&w.isBlob(g))throw new U("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(g)||w.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,v){let y=g;if(g&&!v&&typeof g=="object"){if(w.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(w.isArray(g)&&VO(g)||(w.isFileList(g)||w.endsWith(p,"[]"))&&(y=w.toArray(g)))return p=Uf(p),y.forEach(function(b,S){!(w.isUndefined(b)||b===null)&&t.append(s===!0?Gf([p],S,i):s===null?p:p+"[]",c(b))}),!1}return Fa(g)?!0:(t.append(Gf(v,p,i),c(g)),!1)}const h=[],d=Object.assign(_O,{defaultVisitor:u,convertValue:c,isVisitable:Fa});function m(g,p){if(!w.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),w.forEach(g,function(y,C){(!(w.isUndefined(y)||y===null)&&o.call(t,y,w.isString(C)?C.trim():C,p,d))===!0&&m(y,p?p.concat(C):[C])}),h.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return m(e),t}function qf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Da(e,t){this._pairs=[],e&&xi(e,this,t)}const Kf=Da.prototype;Kf.append=function(t,n){this._pairs.push([t,n])},Kf.toString=function(t){const n=t?function(r){return t.call(this,r,qf)}:qf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function LO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Yf(e,t,n){if(!t)return e;const r=n&&n.encode||LO;w.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new Da(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Qf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FO={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Da,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},za=typeof window<"u"&&typeof document<"u",Ma=typeof navigator=="object"&&navigator||void 0,DO=za&&(!Ma||["ReactNative","NativeScript","NS"].indexOf(Ma.product)<0),zO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MO=za&&window.location.href||"http://localhost",Pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:za,hasStandardBrowserEnv:DO,hasStandardBrowserWebWorkerEnv:zO,navigator:Ma,origin:MO},Symbol.toStringTag,{value:"Module"})),...FO};function $O(e,t){return xi(e,new Pe.classes.URLSearchParams,{visitor:function(n,r,o,i){return Pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function BO(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function WO(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Jf(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&w.isArray(o)?o.length:s,l?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=WO(o[s])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,o)=>{t(BO(r),o,n,0)}),n}return null}function HO(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kr={transitional:Qf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Jf(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $O(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return xi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),HO(t)):t}],transformResponse:[function(t){const n=this.transitional||Kr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pe.classes.FormData,Blob:Pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const jO=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),UO=e=>{const t={};let n,r,o;return e&&e.split(`
17
- `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&jO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Zf=Symbol("internals");function Yr(e){return e&&String(e).trim().toLowerCase()}function Ci(e){return e===!1||e==null?e:w.isArray(e)?e.map(Ci):String(e)}function GO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $a(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function KO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function YO(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Me=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Yr(l);if(!u)throw new Error("header name must be a non-empty string");const h=w.findKey(o,u);(!h||o[h]===void 0||c===!0||c===void 0&&o[h]!==!1)&&(o[h||l]=Ci(a))}const s=(a,l)=>w.forEach(a,(c,u)=>i(c,u,l));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!qO(t))s(UO(t),n);else if(w.isObject(t)&&w.isIterable(t)){let a={},l,c;for(const u of t){if(!w.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?w.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Yr(t),t){const r=w.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return GO(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Yr(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||$a(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Yr(s),s){const a=w.findKey(r,s);a&&(!n||$a(r,r[a],a,n))&&(delete r[a],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||$a(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return w.forEach(this,(o,i)=>{const s=w.findKey(r,i);if(s){n[s]=Ci(o),delete n[i];return}const a=t?KO(i):String(i).trim();a!==i&&delete n[i],n[a]=Ci(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
18
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Zf]=this[Zf]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Yr(s);r[a]||(YO(o,s),r[a]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(Me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),w.freezeMethods(Me);function Ba(e,t){const n=this||Kr,r=t||n,o=Me.from(r.headers);let i=r.data;return w.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eg(e){return!!(e&&e.__CANCEL__)}function cr(e,t,n){U.call(this,e??"canceled",U.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(cr,U,{__CANCEL__:!0});function tg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function XO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let h=i,d=0;for(;h!==o;)d+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const m=u&&c-u;return m?Math.round(d*1e3/m):void 0}}function JO(e,t){let n=0,r=1e3/t,o,i;const s=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),h=u-n;h>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-h)))},()=>o&&s(o)]}const ki=(e,t,n=3)=>{let r=0;const o=QO(50,250);return JO(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const h={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},ng=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rg=e=>(...t)=>w.asap(()=>e(...t)),ZO=Pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pe.origin),Pe.navigator&&/(msie|trident)/i.test(Pe.navigator.userAgent)):()=>!0,eI=Pe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function og(e,t,n){let r=!tI(t);return e&&(r||n==!1)?nI(e,t):t}const ig=e=>e instanceof Me?{...e}:e;function Pn(e,t){t=t||{};const n={};function r(c,u,h,d){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:d},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(c,u,h,d){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c,h,d)}else return r(c,u,h,d)}function i(c,u){if(!w.isUndefined(u))return r(void 0,u)}function s(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,h){if(h in t)return r(c,u);if(h in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,h)=>o(ig(c),ig(u),h,!0)};return w.forEach(Object.keys({...e,...t}),function(u){const h=l[u]||o,d=h(e[u],t[u],u);w.isUndefined(d)&&h!==a||(n[u]=d)}),n}const sg=e=>{const t=Pn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Me.from(s),t.url=Yf(og(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),w.isFormData(n)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(w.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,h])=>{c.includes(u.toLowerCase())&&s.set(u,h)})}}if(Pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(t)),r||r!==!1&&ZO(t.url))){const l=o&&i&&eI.read(i);l&&s.set(o,l)}return t},rI=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=sg(e);let i=o.data;const s=Me.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,h,d,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;const b=Me.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};tg(function(I){n(I),p()},function(I){r(I),p()},x),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new U("Request aborted",U.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const x=S&&S.message?S.message:"Network Error",E=new U(x,U.ERR_NETWORK,e,v);E.event=S||null,r(E),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||Qf;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new U(S,x.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&w.forEach(s.toJSON(),function(S,x){v.setRequestHeader(x,S)}),w.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([d,g]=ki(c,!0),v.addEventListener("progress",d)),l&&v.upload&&([h,m]=ki(l),v.upload.addEventListener("progress",h),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=b=>{v&&(r(!b||b.type?new cr(null,e,v):b),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=XO(o.url);if(C&&Pe.protocols.indexOf(C)===-1){r(new U("Unsupported protocol "+C+":",U.ERR_BAD_REQUEST,e));return}v.send(i||null)})},oI=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof U?u:new cr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new U(`timeout ${t} of ms exceeded`,U.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>w.asap(a),l}},iI=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},sI=async function*(e,t){for await(const n of aI(e))yield*iI(n,t)},aI=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ag=(e,t,n,r)=>{const o=sI(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let h=u.byteLength;if(n){let d=i+=h;n(d)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},lg=64*1024,{isFunction:Si}=w,lI=(({Request:e,Response:t})=>({Request:e,Response:t}))(w.global),{ReadableStream:cg,TextEncoder:ug}=w.global,dg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cI=e=>{e=w.merge.call({skipUndefined:!0},lI,e);const{fetch:t,Request:n,Response:r}=e,o=t?Si(t):typeof fetch=="function",i=Si(n),s=Si(r);if(!o)return!1;const a=o&&Si(cg),l=o&&(typeof ug=="function"?(g=>p=>g.encode(p))(new ug):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=i&&a&&dg(()=>{let g=!1;const p=new n(Pe.origin,{body:new cg,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!p}),u=s&&a&&dg(()=>w.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(p,v)=>{let y=p&&p[g];if(y)return y.call(p);throw new U(`Response type '${g}' is not supported`,U.ERR_NOT_SUPPORT,v)})});const d=async g=>{if(g==null)return 0;if(w.isBlob(g))return g.size;if(w.isSpecCompliantForm(g))return(await new n(Pe.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(w.isArrayBufferView(g)||w.isArrayBuffer(g))return g.byteLength;if(w.isURLSearchParams(g)&&(g=g+""),w.isString(g))return(await l(g)).byteLength},m=async(g,p)=>{const v=w.toFiniteNumber(g.getContentLength());return v??d(p)};return async g=>{let{url:p,method:v,data:y,signal:C,cancelToken:b,timeout:S,onDownloadProgress:x,onUploadProgress:E,responseType:I,headers:P,withCredentials:A="same-origin",fetchOptions:V}=sg(g),N=t||fetch;I=I?(I+"").toLowerCase():"text";let k=oI([C,b&&b.toAbortSignal()],S),R=null;const F=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let z;try{if(E&&c&&v!=="get"&&v!=="head"&&(z=await m(P,y))!==0){let Z=new n(p,{method:"POST",body:y,duplex:"half"}),pe;if(w.isFormData(y)&&(pe=Z.headers.get("content-type"))&&P.setContentType(pe),Z.body){const[Je,xt]=ng(z,ki(rg(E)));y=ag(Z.body,lg,Je,xt)}}w.isString(A)||(A=A?"include":"omit");const H=i&&"credentials"in n.prototype,J={...V,signal:k,method:v.toUpperCase(),headers:P.normalize().toJSON(),body:y,duplex:"half",credentials:H?A:void 0};R=i&&new n(p,J);let ee=await(i?N(R,V):N(p,J));const W=u&&(I==="stream"||I==="response");if(u&&(x||W&&F)){const Z={};["status","statusText","headers"].forEach(Rt=>{Z[Rt]=ee[Rt]});const pe=w.toFiniteNumber(ee.headers.get("content-length")),[Je,xt]=x&&ng(pe,ki(rg(x),!0))||[];ee=new r(ag(ee.body,lg,Je,()=>{xt&&xt(),F&&F()}),Z)}I=I||"text";let q=await h[w.findKey(h,I)||"text"](ee,g);return!W&&F&&F(),await new Promise((Z,pe)=>{tg(Z,pe,{data:q,headers:Me.from(ee.headers),status:ee.status,statusText:ee.statusText,config:g,request:R})})}catch(H){throw F&&F(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,g,R),{cause:H.cause||H}):U.from(H,H&&H.code,g,R)}}},uI=new Map,hg=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,l,c,u=uI;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:cI(t)),u=c;return c};hg();const Wa={http:AO,xhr:rI,fetch:{get:hg}};w.forEach(Wa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fg=e=>`- ${e}`,dI=e=>w.isFunction(e)||e===null||e===!1,gg={getAdapter:(e,t)=>{e=w.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let a;if(o=r,!dI(r)&&(o=Wa[(a=String(r)).toLowerCase()],o===void 0))throw new U(`Unknown adapter '${a}'`);if(o&&(w.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
19
- `+s.map(fg).join(`
20
- `):" "+fg(s[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Wa};function Ha(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cr(null,e)}function pg(e){return Ha(e),e.headers=Me.from(e.headers),e.data=Ba.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gg.getAdapter(e.adapter||Kr.adapter,e)(e).then(function(r){return Ha(e),r.data=Ba.call(e,e.transformResponse,r),r.headers=Me.from(r.headers),r},function(r){return eg(r)||(Ha(e),r&&r.response&&(r.response.data=Ba.call(e,e.transformResponse,r.response),r.response.headers=Me.from(r.response.headers))),Promise.reject(r)})}const mg="1.12.2",wi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vg={};wi.transitional=function(t,n,r){function o(i,s){return"[Axios v"+mg+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new U(o(s," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!vg[s]&&(vg[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},wi.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hI(e,t,n){if(typeof e!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new U("option "+i+" must be "+l,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+i,U.ERR_BAD_OPTION)}}const Ei={assertOptions:hI,validators:wi},bt=Ei.validators;let Nn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Xf,response:new Xf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
21
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ei.assertOptions(r,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:Ei.assertOptions(o,{encode:bt.function,serialize:bt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ei.assertOptions(n,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Me.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,h=0,d;if(!l){const g=[pg.bind(this),void 0];for(g.unshift(...a),g.push(...c),d=g.length,u=Promise.resolve(n);h<d;)u=u.then(g[h++],g[h++]);return u}d=a.length;let m=n;for(;h<d;){const g=a[h++],p=a[h++];try{m=g(m)}catch(v){p.call(this,v);break}}try{u=pg.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,d=c.length;h<d;)u=u.then(c[h++],c[h++]);return u}getUri(t){t=Pn(this.defaults,t);const n=og(t.baseURL,t.url,t.allowAbsoluteUrls);return Yf(n,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){Nn.prototype[t]=function(n,r){return this.request(Pn(r||{},{method:t,url:n,data:(r||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Pn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Nn.prototype[t]=n(),Nn.prototype[t+"Form"]=n(!0)});let fI=class Xg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new cr(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Xg(function(o){t=o}),cancel:t}}};function gI(e){return function(n){return e.apply(null,n)}}function pI(e){return w.isObject(e)&&e.isAxiosError===!0}const ja={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ja).forEach(([e,t])=>{ja[t]=e});function bg(e){const t=new Nn(e),n=_f(Nn.prototype.request,t);return w.extend(n,Nn.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return bg(Pn(e,o))},n}const le=bg(Kr);le.Axios=Nn,le.CanceledError=cr,le.CancelToken=fI,le.isCancel=eg,le.VERSION=mg,le.toFormData=xi,le.AxiosError=U,le.Cancel=le.CanceledError,le.all=function(t){return Promise.all(t)},le.spread=gI,le.isAxiosError=pI,le.mergeConfig=Pn,le.AxiosHeaders=Me,le.formToJSON=e=>Jf(w.isHTMLForm(e)?new FormData(e):e),le.getAdapter=gg.getAdapter,le.HttpStatusCode=ja,le.default=le;const{Axios:EP,AxiosError:OP,CanceledError:IP,isCancel:TP,CancelToken:PP,VERSION:NP,all:RP,Cancel:AP,isAxiosError:VP,spread:_P,toFormData:LP,AxiosHeaders:FP,HttpStatusCode:DP,formToJSON:zP,getAdapter:MP,mergeConfig:$P}=le;class yg{_fns;constructor(){this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const yt={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new yg,response:new yg}};var mI=(e,t,n,r,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(m){(Array.isArray(e)?e:[e]).forEach(g=>{let p=g==="class",v=p&&i?o.map(y=>i[y]||y):o;p?(l.classList.remove(...v),l.classList.add(i&&i[m]?i[m]:m)):l.setAttribute(g,m)}),h(m)}function h(m){a&&c.includes(m)&&(l.style.colorScheme=m)}function d(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let m=localStorage.getItem(t)||n,g=s&&m==="system"?d():m;u(g)}catch{}},xg=["light","dark"],Cg="(prefers-color-scheme: dark)",vI=typeof window>"u",kg=D.createContext(void 0),bI=e=>D.useContext(kg)?D.createElement(D.Fragment,null,e.children):D.createElement(xI,{...e}),yI=["light","dark"],xI=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=yI,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:h})=>{let[d,m]=D.useState(()=>kI(o,s)),[g,p]=D.useState(()=>d==="system"?Ua():d),v=l?Object.values(l):i,y=D.useCallback(x=>{let E=x;if(!E)return;x==="system"&&n&&(E=Ua());let I=l?l[E]:E,P=t?SI(u):null,A=document.documentElement,V=N=>{N==="class"?(A.classList.remove(...v),I&&A.classList.add(I)):N.startsWith("data-")&&(I?A.setAttribute(N,I):A.removeAttribute(N))};if(Array.isArray(a)?a.forEach(V):V(a),r){let N=xg.includes(s)?s:null,k=xg.includes(E)?E:N;A.style.colorScheme=k}P?.()},[u]),C=D.useCallback(x=>{let E=typeof x=="function"?x(d):x;m(E);try{localStorage.setItem(o,E)}catch{}},[d]),b=D.useCallback(x=>{let E=Ua(x);p(E),d==="system"&&n&&!e&&y("system")},[d,e]);D.useEffect(()=>{let x=window.matchMedia(Cg);return x.addListener(b),b(x),()=>x.removeListener(b)},[b]),D.useEffect(()=>{let x=E=>{E.key===o&&(E.newValue?m(E.newValue):C(s))};return window.addEventListener("storage",x),()=>window.removeEventListener("storage",x)},[C]),D.useEffect(()=>{y(e??d)},[e,d]);let S=D.useMemo(()=>({theme:d,setTheme:C,forcedTheme:e,resolvedTheme:d==="system"?g:d,themes:n?[...i,"system"]:i,systemTheme:n?g:void 0}),[d,C,e,g,n,i]);return D.createElement(kg.Provider,{value:S},D.createElement(CI,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:h}),c)},CI=D.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,i,e,a,s,r,o]).slice(1,-1);return D.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${mI.toString()})(${u})`}})}),kI=(e,t)=>{if(vI)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},SI=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Ua=e=>(e||(e=window.matchMedia(Cg)),e.matches?"dark":"light");const wI=e=>f.jsx(bI,{attribute:"class",disableTransitionOnChange:!0,...e}),EI="UiServiceWorker",OI=e=>[EI],II="UiServiceJobs",TI=e=>[II];class Sg extends Error{url;status;statusText;body;request;constructor(t,n,r){super(r),this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=t}}class PI extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class NI{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new PI("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Oi=e=>typeof e=="string",Ga=e=>Oi(e)&&e!=="",wg=e=>e instanceof Blob,RI=e=>e instanceof FormData,Eg=e=>e>=200&&e<300,AI=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},VI=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},_I=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?n(String(t.path[s])):i),o=e.BASE+r;return t.query?o+VI(t.query):o},LI=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{Oi(o)||wg(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},Ii=async(e,t)=>t,FI=async(e,t)=>{const[n,r,o,i]=await Promise.all([Ii(t,e.TOKEN),Ii(t,e.USERNAME),Ii(t,e.PASSWORD),Ii(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(Ga(n)&&(s.Authorization=`Bearer ${n}`),Ga(r)&&Ga(o)){const a=AI(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:wg(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Oi(t.body)?s["Content-Type"]="text/plain":RI(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},DI=e=>{if(e.body)return e.body},zI=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const h=u;if(h.response)return h.response;throw u}},MI=(e,t)=>{if(t){const n=e.headers[t];if(Oi(n))return n}},$I=e=>{if(e.status!==204)return e.data},BI=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new Sg(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new Sg(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},Pt=(e,t,n=le)=>new NI(async(r,o,i)=>{try{const s=_I(e,t),a=LI(t),l=DI(t),c=await FI(e,t);if(!i.isCancelled){let u=await zI(e,t,s,l,a,c,i,n);for(const p of e.interceptors.response._fns)u=await p(u);const h=$I(u),d=MI(u,t.responseHeader);let m=h;t.responseTransformer&&Eg(u.status)&&(m=await t.responseTransformer(h));const g={url:s,ok:Eg(u.status),status:u.status,statusText:u.statusText,body:d??m};BI(t,g),r(g.body)}}catch(s){o(s)}});class Nt{static worker(){return Pt(yt,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return Pt(yt,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return Pt(yt,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static updateWorkerMaintenance(t){return Pt(yt,{method:"PATCH",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return Pt(yt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return Pt(yt,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return Pt(yt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return Pt(yt,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return Pt(yt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const WI=(e,t)=>Vf({queryKey:OI(),queryFn:()=>Nt.worker(),...t}),HI=(e,t)=>Vf({queryKey:TI(),queryFn:()=>Nt.jobs(),...t}),jI=e=>In({mutationFn:({requestBody:t,workerName:n})=>Nt.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),UI=e=>In({mutationFn:({workerName:t})=>Nt.requestWorkerShutdown({workerName:t}),...e}),GI=e=>In({mutationFn:({queueName:t,workerName:n})=>Nt.addWorkerQueue({queueName:t,workerName:n}),...e}),qI=e=>In({mutationFn:({requestBody:t,workerName:n})=>Nt.updateWorkerMaintenance({requestBody:t,workerName:n}),...e}),KI=e=>In({mutationFn:({workerName:t})=>Nt.exitWorkerMaintenance({workerName:t}),...e}),YI=e=>In({mutationFn:({workerName:t})=>Nt.deleteWorker({workerName:t}),...e}),XI=e=>In({mutationFn:({queueName:t,workerName:n})=>Nt.removeWorkerQueue({queueName:t,workerName:n}),...e});function Ti(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const Xr=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qa.apply(null,arguments)}const Qr=60,Jr=Qr*60,ur=Jr*24,Pi=ur*7,Og=ur*30,Ig=ur*365,QI=()=>Date.now();function Ni({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Pi,title:s,now:a=QI,...l}){const[c,u]=O.useState(a());O.useEffect(()=>{if(!r)return;const I=(()=>{const P=Ti(e).valueOf();if(!P)return console.warn("[react-timeago] Invalid Date provided"),0;const A=Math.round(Math.abs(c-P)/1e3),V=A<Qr?1e3:A<Jr?1e3*Qr:A<ur?1e3*Jr:1e3*Pi,N=Math.min(Math.max(V,o*1e3),i*1e3);return N?setTimeout(()=>{u(a())},N):0})();return()=>{I&&clearTimeout(I)}},[e,r,i,o,a,c]),O.useEffect(()=>{u(a())},[e]);const h=n,d=Ti(e).valueOf();if(!d)return null;const m=Math.round(Math.abs(c-d)/1e3),g=d<c?"ago":"from now",[p,v]=m<Qr?[Math.round(m),"second"]:m<Jr?[Math.round(m/Qr),"minute"]:m<ur?[Math.round(m/Jr),"hour"]:m<Pi?[Math.round(m/ur),"day"]:m<Og?[Math.round(m/Pi),"week"]:m<Ig?[Math.round(m/Og),"month"]:[Math.round(m/Ig),"year"],y=typeof s>"u"?typeof e=="string"?e:Ti(e).toISOString().substring(0,16).replace("T"," "):s,C=h==="time"?{...l,dateTime:Ti(e).toISOString()}:l,b=(E=E,I=I,P=P,A=d,V=Xr,N=N)=>Xr(E,I,P),S=t||Xr;let x;try{x=S(p,v,g,d,b,a),x||(x=Xr(p,v,g,d,b,a))}catch(E){console.error("[react-timeago] Formatter threw an error:",E),x=Xr(p,v,g)}return D.createElement(h,qa({},C,{title:y}),x)}var Tg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pg=O.createContext&&O.createContext(Tg),JI=["attr","size","title"];function ZI(e,t){if(e==null)return{};var n=eT(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(this,arguments)}function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(n),!0).forEach(function(r){tT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tT(e,t,n){return t=nT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nT(e){var t=rT(e,"string");return typeof t=="symbol"?t:t+""}function rT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rg(e){return e&&e.map((t,n)=>O.createElement(t.tag,Ai({key:n},t.attr),Rg(t.child)))}function re(e){return t=>O.createElement(oT,Ri({attr:Ai({},e.attr)},t),Rg(e.child))}function oT(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=ZI(e,JI),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),O.createElement("svg",Ri({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Ai(Ai({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&O.createElement("title",null,i),e.children)};return Pg!==void 0?O.createElement(Pg.Consumer,null,n=>t(n)):t(Tg)}function iT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function sT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function Ag(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function aT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function lT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function Vg(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function _g(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function cT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function uT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const dT=O.forwardRef((e,t)=>f.jsx(It,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??f.jsx(uT,{})})),hT=O.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return f.jsxs($E,{ref:t,...c,alignItems:"center",children:[a??f.jsx(jE,{children:i}),n?f.jsxs(WE,{children:[f.jsx(Jh,{children:l}),f.jsx(BE,{children:n})]}):f.jsx(Jh,{flex:"1",children:l}),o,r?f.jsx(dT,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*!
22
- * Licensed to the Apache Software Foundation (ASF) under one
23
- * or more contributor license agreements. See the NOTICE file
24
- * distributed with this work for additional information
25
- * regarding copyright ownership. The ASF licenses this file
26
- * to you under the Apache License, Version 2.0 (the
27
- * "License"); you may not use this file except in compliance
28
- * with the License. You may obtain a copy of the License at
29
- *
30
- * http://www.apache.org/licenses/LICENSE-2.0
31
- *
32
- * Unless required by applicable law or agreed to in writing,
33
- * software distributed under the License is distributed on an
34
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
35
- * KIND, either express or implied. See the License for the
36
- * specific language governing permissions and limitations
37
- * under the License.
38
- */const fT=_C({pauseOnPageIdle:!0,placement:"bottom-end"});/*!
39
- * Licensed to the Apache Software Foundation (ASF) under one
40
- * or more contributor license agreements. See the NOTICE file
41
- * distributed with this work for additional information
42
- * regarding copyright ownership. The ASF licenses this file
43
- * to you under the Apache License, Version 2.0 (the
44
- * "License"); you may not use this file except in compliance
45
- * with the License. You may obtain a copy of the License at
46
- *
47
- * http://www.apache.org/licenses/LICENSE-2.0
48
- *
49
- * Unless required by applicable law or agreed to in writing,
50
- * software distributed under the License is distributed on an
51
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
52
- * KIND, either express or implied. See the License for the
53
- * specific language governing permissions and limitations
54
- * under the License.
55
- */const gT=({block:e="start",inline:t="nearest"})=>{const[n,r]=O.useState(()=>window.location.hash);return O.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),O.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},Lg=({error:e})=>{const t=e;if(!t)return;const n=t.body?.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(o=>`${o.loc.join(".")} ${o.msg}`):r=Object.keys(n).map(o=>`${o}: ${n[o]}`)),f.jsx(hT,{status:"error",children:f.jsxs(l2,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:f.jsx(Fe,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function Fg(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function pT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function mT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function vT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function bT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function yT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function xT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Dg(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function CT(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function kT(e){return re({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const ST=({state:e,...t})=>{switch(e){case"deferred":return f.jsx(Dg,{...t});case"failed":return f.jsx(CT,{...t});case"queued":return f.jsx(kT,{...t});case"removed":return f.jsx(xT,{...t});case"restarting":return f.jsx(bT,{...t});case"running":return f.jsx(Fg,{...t});case"scheduled":return f.jsx(mT,{...t});case"skipped":return f.jsx(yT,{...t});case"success":return f.jsx(sT,{...t});case"up_for_reschedule":return f.jsx(iT,{...t});case"up_for_retry":return f.jsx(cT,{...t});case"upstream_failed":return f.jsx(aT,{...t});default:return f.jsx(Ag,{...t})}},wT=D.forwardRef(({children:e,state:t,...n},r)=>f.jsxs(Zh,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:f.jsx(ST,{state:t}),e]}));/*!
56
- * Licensed to the Apache Software Foundation (ASF) under one
57
- * or more contributor license agreements. See the NOTICE file
58
- * distributed with this work for additional information
59
- * regarding copyright ownership. The ASF licenses this file
60
- * to you under the Apache License, Version 2.0 (the
61
- * "License"); you may not use this file except in compliance
62
- * with the License. You may obtain a copy of the License at
63
- *
64
- * http://www.apache.org/licenses/LICENSE-2.0
65
- *
66
- * Unless required by applicable law or agreed to in writing,
67
- * software distributed under the License is distributed on an
68
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
69
- * KIND, either express or implied. See the License for the
70
- * specific language governing permissions and limitations
71
- * under the License.
72
- */const zg=5e3;/*!
73
- * Licensed to the Apache Software Foundation (ASF) under one
74
- * or more contributor license agreements. See the NOTICE file
75
- * distributed with this work for additional information
76
- * regarding copyright ownership. The ASF licenses this file
77
- * to you under the Apache License, Version 2.0 (the
78
- * "License"); you may not use this file except in compliance
79
- * with the License. You may obtain a copy of the License at
80
- *
81
- * http://www.apache.org/licenses/LICENSE-2.0
82
- *
83
- * Unless required by applicable law or agreed to in writing,
84
- * software distributed under the License is distributed on an
85
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
86
- * KIND, either express or implied. See the License for the
87
- * specific language governing permissions and limitations
88
- * under the License.
89
- */const ET=e=>{const[t,n]=O.useState(0);return O.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(o=>{for(const i of o)n(i.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*!
90
- * Licensed to the Apache Software Foundation (ASF) under one
91
- * or more contributor license agreements. See the NOTICE file
92
- * distributed with this work for additional information
93
- * regarding copyright ownership. The ASF licenses this file
94
- * to you under the Apache License, Version 2.0 (the
95
- * "License"); you may not use this file except in compliance
96
- * with the License. You may obtain a copy of the License at
97
- *
98
- * http://www.apache.org/licenses/LICENSE-2.0
99
- *
100
- * Unless required by applicable law or agreed to in writing,
101
- * software distributed under the License is distributed on an
102
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
103
- * KIND, either express or implied. See the License for the
104
- * specific language governing permissions and limitations
105
- * under the License.
106
- */const Mg="token",OT=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if(n?.trim()==="_token"&&r!==void 0)return localStorage.setItem(Mg,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},IT=e=>{const t=localStorage.getItem(Mg)??OT();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},TT=()=>{const{data:e,error:t}=HI(void 0,{enabled:!0,refetchInterval:zg});return e?.jobs&&e.jobs.length>0?f.jsx(br,{p:2,children:f.jsxs(af,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[f.jsx(lf,{children:f.jsxs(hi,{children:[f.jsx(xe,{children:"Dag ID"}),f.jsx(xe,{children:"Run ID"}),f.jsx(xe,{children:"Task ID"}),f.jsx(xe,{children:"Map Index"}),f.jsx(xe,{children:"Try Number"}),f.jsx(xe,{children:"State"}),f.jsx(xe,{children:"Queue"}),f.jsx(xe,{children:"Queued DTTM"}),f.jsx(xe,{children:"Edge Worker"}),f.jsx(xe,{children:"Last Update"})]})}),f.jsx(cf,{children:e.jobs.map(n=>f.jsxs(hi,{children:[f.jsx(Ce,{children:f.jsx(Ze.Link,{to:`/dags/${n.dag_id}`,children:n.dag_id})}),f.jsx(Ce,{children:f.jsx(Ze.Link,{to:`/dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),f.jsx(Ce,{children:n.map_index>=0?f.jsx(Ze.Link,{to:`/dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):f.jsx(Ze.Link,{to:`/dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),f.jsx(Ce,{children:n.map_index>=0?n.map_index:"-"}),f.jsx(Ce,{children:n.try_number}),f.jsx(Ce,{children:f.jsx(wT,{state:n.state,children:n.state})}),f.jsx(Ce,{children:n.queue}),f.jsx(Ce,{children:n.queued_dttm?f.jsx(Ni,{date:n.queued_dttm,live:!1}):void 0}),f.jsx(Ce,{children:f.jsx(Ze.Link,{to:`../worker#${n.edge_worker}`,children:n.edge_worker})}),f.jsx(Ce,{children:n.last_update?f.jsx(Ni,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):e?f.jsx(Fe,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?f.jsx(Fe,{as:"div",pl:4,pt:1,children:f.jsx(Lg,{error:t})}):f.jsx(Fe,{as:"div",pl:4,pt:1,children:"Loading..."})},PT=({onQueueUpdate:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=en(),[i,s]=O.useState(""),a=GI({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),n(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:f.jsx(_g,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Add Queue to ",t]})}),f.jsx(Cn,{children:f.jsxs(di,{gap:4,align:"stretch",children:[f.jsx(Fe,{children:"Enter the name of the queue to add to this worker:"}),f.jsx(o2,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"Cancel"})}),f.jsxs(Te,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[f.jsx(_g,{}),"Add Queue"]})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})},NT=({onEditComment:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=en(),[i,s]=O.useState(""),a=qI({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),n()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:r,colorPalette:"warning",children:f.jsx(vT,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Edit maintenance comments for worker ",t]})}),f.jsx(Cn,{children:f.jsx(uf,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"Cancel"})}),f.jsx(Te,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})};function $g(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function RT(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const AT=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=en(),[i,s]=O.useState(""),a=jI({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,colorPalette:"warning",children:f.jsx($g,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Set maintenance for worker ",t]})}),f.jsx(Cn,{children:f.jsx(uf,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"Cancel"})}),f.jsx(Te,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})};function VT(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const _T=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=en(),i=KI({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",colorPalette:"warning",children:f.jsx(VT,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Exit maintenance for worker ",t]})}),f.jsx(Cn,{children:f.jsxs(Fe,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"No"})}),f.jsx(Te,{onClick:s,children:"Yes"})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})},LT=({onQueueUpdate:e,worker:t})=>{const{onClose:n,onOpen:r,open:o}=en(),[i,s]=O.useState(""),a=XI({onError:u=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${u}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),n(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:f.jsx(Vg,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Remove Queue from ",t.worker_name]})}),f.jsx(Cn,{children:f.jsxs(di,{gap:4,align:"stretch",children:[f.jsx(Fe,{children:"Select a queue to remove from this worker:"}),f.jsx(di,{gap:2,align:"stretch",children:f.jsx(n2,{each:c,children:u=>f.jsx(Te,{variant:i===u?"solid":"outline",colorPalette:i===u?"blue":"gray",onClick:()=>s(u),justifyContent:"flex-start",children:u},u)})})]})}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"Cancel"})}),f.jsxs(Te,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[f.jsx(Vg,{}),"Remove Queue"]})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})};function Bg(e){return re({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const Wg=({onDelete:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=en(),i=YI({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:f.jsx(Bg,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Delete worker ",t]})}),f.jsxs(Cn,{children:[f.jsxs(Fe,{children:["Are you sure you want to delete worker ",t,"?"]}),f.jsx(Fe,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"Cancel"})}),f.jsxs(Te,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[f.jsx(Bg,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})};function Hg(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const jg=({onShutdown:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=en(),i=UI({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return f.jsxs(f.Fragment,{children:[f.jsx(It,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:f.jsx(Hg,{})}),f.jsx(gn,{onOpenChange:n,open:o,size:"md",children:f.jsxs(an,{children:[f.jsx(xn,{}),f.jsx(pn,{children:f.jsxs(mn,{children:[f.jsx(Sn,{children:f.jsxs(vn,{children:["Shutdown worker ",t]})}),f.jsxs(Cn,{children:[f.jsxs(Fe,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),f.jsx(Fe,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),f.jsxs(kn,{children:[f.jsx(yn,{asChild:!0,children:f.jsx(Te,{variant:"outline",children:"Cancel"})}),f.jsxs(Te,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[f.jsx(Hg,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),f.jsx(bn,{asChild:!0,children:f.jsx(fn,{size:"sm"})})]})})]})})]})},FT=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{fT.create(i),e()};return r==="idle"||r==="running"?f.jsxs(ui,{justifyContent:"end",gap:2,children:[f.jsx(PT,{onQueueUpdate:o,workerName:n}),f.jsx(LT,{onQueueUpdate:o,worker:t}),f.jsx(AT,{onEnterMaintenance:o,workerName:n}),f.jsx(jg,{onShutdown:o,workerName:n})]}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?f.jsxs(di,{gap:2,align:"stretch",children:[f.jsx(br,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),f.jsxs(ui,{justifyContent:"end",gap:2,children:[f.jsx(NT,{onEditComment:o,workerName:n}),f.jsx(_T,{onExitMaintenance:o,workerName:n}),r==="offline maintenance"?f.jsx(Wg,{onDelete:o,workerName:n}):f.jsx(jg,{onShutdown:o,workerName:n})]})]}):r==="offline"||r==="unknown"?f.jsx(ui,{justifyContent:"end",children:f.jsx(Wg,{onDelete:o,workerName:n})}):null};function DT(e){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function zT(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function MT(e){return re({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const $T=({state:e,...t})=>{switch(e){case"starting":return f.jsx(Dg,{...t});case"running":return f.jsx(Fg,{...t});case"idle":return f.jsx(DT,{...t});case"shutdown request":case"terminating":return f.jsx(pT,{...t});case"offline":return f.jsx(zT,{...t});case"unknown":return f.jsx(MT,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return f.jsx(RT,{...t});case"maintenance mode":case"offline maintenance":return f.jsx($g,{...t});default:return f.jsx(Ag,{...t})}},BT=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},WT=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},HT=D.forwardRef(({children:e,state:t,...n},r)=>f.jsxs(Zh,{borderRadius:"full",colorPalette:BT(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:WT(t),variant:"solid",...n,children:[t===void 0?void 0:f.jsx($T,{state:t}),e]})),jT=()=>{const{data:e,error:t,refetch:n}=WI(void 0,{enabled:!0,refetchInterval:zg});return e?.workers&&e.workers.length>0?f.jsxs(br,{p:2,children:[f.jsxs(af,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[f.jsx(lf,{children:f.jsxs(hi,{children:[f.jsx(xe,{children:"Worker Name"}),f.jsx(xe,{children:"State"}),f.jsx(xe,{children:"Queues"}),f.jsx(xe,{children:"First Online"}),f.jsx(xe,{children:"Last Heartbeat"}),f.jsx(xe,{children:"Active Jobs"}),f.jsx(xe,{children:"System Information"}),f.jsx(xe,{children:"Operations"})]})}),f.jsx(cf,{children:e.workers.map(r=>f.jsxs(hi,{id:r.worker_name,children:[f.jsx(Ce,{children:r.worker_name}),f.jsx(Ce,{children:f.jsx(HT,{state:r.state,children:r.state})}),f.jsx(Ce,{children:r.queues?f.jsx(of,{children:r.queues.map(o=>f.jsx(sf,{children:o},o))}):"(all queues)"}),f.jsx(Ce,{children:r.first_online?f.jsx(Ni,{date:r.first_online,live:!1}):void 0}),f.jsx(Ce,{children:r.last_heartbeat?f.jsx(Ni,{date:r.last_heartbeat,live:!1}):void 0}),f.jsx(Ce,{children:r.jobs_active}),f.jsx(Ce,{children:r.sysinfo?f.jsx(of,{children:Object.entries(r.sysinfo).map(([o,i])=>f.jsxs(sf,{children:[o,": ",i]},o))}):"N/A"}),f.jsx(Ce,{children:f.jsx(FT,{worker:r,onOperations:n})})]},r.worker_name))})]}),f.jsx(gT,{})]}):e?f.jsxs(Fe,{as:"div",pl:4,pt:1,children:["No known workers. Start one via ",f.jsx(ZE,{children:"airflow edge worker [...]"}),". See"," ",f.jsxs(s2,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",f.jsx(lT,{})]})," ","how to deploy a new worker."]}):t?f.jsx(Fe,{as:"div",pl:4,pt:1,children:f.jsx(Lg,{error:t})}):f.jsx(Fe,{as:"div",pl:4,pt:1,children:"Loading..."})},UT=({tabs:e})=>{const t=O.useRef(null),n=ET(t);return f.jsx(ui,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>f.jsx(Ze.NavLink,{end:!0,title:o,to:i,children:({isActive:s})=>f.jsx(ef,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},GT=()=>{const e=[{label:"Edge Worker",value:"worker"},{label:"Edge Jobs",value:"jobs"}];return f.jsxs(br,{p:2,children:[f.jsx(UT,{tabs:e}),f.jsxs(Ze.Routes,{children:[f.jsx(Ze.Route,{index:!0,element:f.jsx(Ze.Navigate,{to:"worker",replace:!0})}),f.jsx(Ze.Route,{path:"worker",element:f.jsx(jT,{})}),f.jsx(Ze.Route,{path:"jobs",element:f.jsx(TT,{})})]})]})};/*!
107
- * Licensed to the Apache Software Foundation (ASF) under one
108
- * or more contributor license agreements. See the NOTICE file
109
- * distributed with this work for additional information
110
- * regarding copyright ownership. The ASF licenses this file
111
- * to you under the Apache License, Version 2.0 (the
112
- * "License"); you may not use this file except in compliance
113
- * with the License. You may obtain a copy of the License at
114
- *
115
- * http://www.apache.org/licenses/LICENSE-2.0
116
- *
117
- * Unless required by applicable law or agreed to in writing,
118
- * software distributed under the License is distributed on an
119
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
120
- * KIND, either express or implied. See the License for the
121
- * specific language governing permissions and limitations
122
- * under the License.
123
- */const G=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),qT=ga({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:G("brand"),danger:G("red"),info:G("blue"),warning:G("amber"),error:G("red"),active:G("blue"),success:G("green"),failed:G("red"),queued:G("stone"),skipped:G("pink"),up_for_reschedule:G("sky"),up_for_retry:G("yellow"),upstream_failed:G("orange"),running:G("cyan"),restarting:G("violet"),deferred:G("purple"),scheduled:G("zinc"),none:G("gray"),removed:G("slate"),red:G("red"),orange:G("orange"),amber:G("amber"),yellow:G("yellow"),lime:G("lime"),green:G("green"),emerald:G("emerald"),teal:G("teal"),cyan:G("cyan"),sky:G("sky"),blue:G("blue"),indigo:G("indigo"),violet:G("violet"),purple:G("purple"),fuchsia:G("fuchsia"),pink:G("pink"),rose:G("rose"),slate:G("slate"),gray:G("gray"),zinc:G("zinc"),neutral:G("neutral"),stone:G("stone")}}}}),KT=Vh(Kh,qT);return()=>{const e=document.querySelector("head > base")?.getAttribute("href")??"",t=new URL(e,globalThis.location.origin);yt.BASE=t.pathname.replace(/\/$/,""),le.interceptors.request.use(IT);const n=new L2({defaultOptions:{queries:{staleTime:1/0}}});return f.jsx(Zp,{value:KT,children:f.jsx(F2,{client:n,children:f.jsx(wI,{children:f.jsx(GT,{})})})})}}));
9
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),$C=vh("width"),BC=vh("height"),bh=e=>({isMin:wh(e.minMax,e.maxMin,e.min),isMax:wh(e.maxMin,e.minMax,e.max)}),{isMin:ya,isMax:yh}=bh($C),{isMin:xa,isMax:xh}=bh(BC),kh=/print/i,Ch=/^print$/i,WC=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,HC=/(\d)/,Ur=Number.MAX_VALUE,UC={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Sh(e){const t=WC.exec(e)||(ya(e)||xa(e)?HC.exec(e):null);if(!t)return Ur;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(UC[r]||1)}function wh(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function jC(e,t){const n=kh.test(e),r=Ch.test(e),o=kh.test(t),i=Ch.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const GC=Me((e,t)=>{const n=jC(e,t);if(n!==null)return n;const r=ya(e)||xa(e),o=yh(e)||xh(e),i=ya(t)||xa(t),s=yh(t)||xh(t);if(r&&s)return-1;if(o&&i)return 1;const a=Sh(e),l=Sh(t);return a===Ur&&l===Ur?e.localeCompare(t):a===Ur?1:l===Ur?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function Eh(e){return e.sort(([t],[n])=>GC(t,n))}function Oh(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):Fe(a)?r[s]=Oh(a):r[s]=a;const o=Eh(t),i=Eh(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const Ih=/\s*!(important)?/i,qC=Me(e=>ct(e)?Ih.test(e):!1),KC=Me(e=>ct(e)?e.replace(Ih,"").trim():e);function Th(e){const{transform:t,conditions:n,normalize:r}=e,o=QC(e);return Me(function(...s){const a=o(...s),l=r(a),c=di();return mt(l,(u,d)=>{const f=qC(u);if(u==null)return;const[p,...g]=n.sort(d).map(n.resolve);f&&(u=KC(u));let m=t(p,u)??se;m=mt(m,v=>ct(v)&&f?`${v} !important`:v,{getKey:v=>n.expandAtRule(v)}),YC(c,g.flat(),m)}),Oh(c)})}function YC(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=di()),r=r[o]);nr(r,n)}function XC(...e){return e.filter(t=>{if(!Fe(t))return!1;const n=br(t);return Object.keys(n).length>0})}function QC(e){function t(n){const r=XC(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return Me(function(...r){return nr({},...t(r))})}const Ph=e=>({base:se,variants:se,defaultVariants:se,compoundVariants:[],...e});function JC(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const l=Ph(a),{base:c,defaultVariants:u,compoundVariants:d}=l,f=ot(l.variants,(y,S)=>[y,ot(S,(b,E)=>[b,r(E)])]),p=Th({conditions:n,normalize:r,transform(y,S){return f[y]?.[S]}}),g=(y={})=>{const S=r({...u,...br(y)});let b={...c};nr(b,p(S));const E=s(d,S);return o.wrap("recipes",t(b,E))},m=Object.keys(f),v=y=>{const S=oh(y,["recipe"]),[b,E]=Ln(S,m),I=m.includes("colorPalette"),P=m.includes("orientation");return I||(b.colorPalette=y.colorPalette||u.colorPalette),P&&(E.orientation=y.orientation),[b,E]},x=ot(f,(y,S)=>[y,Object.keys(S)]);return Object.assign(y=>t(g(y)),{className:a.className,__cva__:!0,variantMap:x,variantKeys:m,raw:g,config:a,splitVariantProps:v,merge(y){return i(ZC(e)(this,y))}})}function s(a,l){let c=se;return a.forEach(u=>{Object.entries(u).every(([f,p])=>f==="css"?!0:(Array.isArray(p)?p:[p]).some(m=>l[f]===m))&&(c=t(c,u.css))}),c}return i}function ZC(e){const{css:t}=e;return function(r,o){const i=Ph(o.config),s=is(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(f=>[f,t(r.config.variants[f],i.variants[f])])),c=nr(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:Ke(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const eS={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Nh={reset:0,base:1,tokens:2,recipes:3};function tS(e){const t=e.layers??eS,r=Object.values(t).sort((o,i)=>Nh[o]-Nh[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function nS(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return mt(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function rS(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Fe(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);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={[n||"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(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function oS(e){const{conditions:t,isValidProperty:n}=e;return function(o){return mt(o,i=>i,{getKey:(i,s)=>Fe(s)&&!t.has(i)&&!n(i)?sS(i).map(a=>{const l=a.startsWith("&")?a.slice(1):a;return iS(l)?`${l} &`:`&${l}`}).join(", "):i})}}function iS(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function sS(e){const t=[];let n=0,r="",o=!1;for(let i=0;i<e.length;i++){const s=e[i];if(s==="\\"&&!o){o=!0,r+=s;continue}if(o){o=!1,r+=s;continue}s==="("?n++:s===")"&&n--,s===","&&n===0?(t.push(r.trim()),r=""):r+=s}return r&&t.push(r.trim()),t}const aS=(e=se)=>{const t=o=>({base:e.base?.[o]??se,variants:di(),defaultVariants:e.defaultVariants??se,compoundVariants:e.compoundVariants?lS(e.compoundVariants,o):MC}),r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??se});return Object.fromEntries(r)},lS=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function cS(e){const{cva:t}=e;return function(r=se){const o=Object.entries(aS(r)).map(([d,f])=>[d,t(f)]);function i(d){const f=o.map(([p,g])=>[p,g(d)]);return Object.fromEntries(f)}const s=r.variants??se,a=Object.keys(s);function l(d){const f=oh(d,["recipe"]),[p,g]=Ln(f,a),m=a.includes("colorPalette"),v=a.includes("orientation");return m||(p.colorPalette=d.colorPalette||r.defaultVariants?.colorPalette),v&&(g.orientation=d.orientation),[p,g]}const c=ot(s,(d,f)=>[d,Object.keys(f)]);let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const uS=()=>e=>Array.from(new Set(e)),dS=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,hS=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Rh=e=>(e+"").replace(dS,hS),Ah=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r<e.length;){const l=e[r];if(l==="{"){const u=e.indexOf("}",r);if(u===-1)break;const d=e.slice(r+1,u),f=t(d);n+=f??d,r=u+1;continue}if(o==="token"&&l===","){e[r]===""&&r++,o="fallback",a.push(o);const u=t(i);u?.endsWith(")")&&(n+=u.slice(0,-1)),i="",s="";continue}if(o==="fallback"&&s+l===", var("){const f=fS(e.slice(r+1))+r+1,p=e.slice(r+1,f);if(f===-1)break;n+=", var("+p+")",r=f+1,o=a.pop()??o,s="";continue}if(o==="token"||o==="fallback"){if(r++,l===")"){o=a.pop()??o??"char",s+=l;const u=i&&(t(i)??Rh(i));if(s){if(s=s.slice(1).trim(),!s.startsWith("token(")&&s.endsWith(")")&&(s=s.slice(0,-1)),s.includes("token(")){const f=Ah(s,t);f&&(s=f.slice(0,-1))}else if(s){const f=t(s);f&&(s=f)}}const d=n.at(-1);s?d?.trim()?n+=u.slice(0,-1)+(", "+s+")"):n+=s:n+=u||")",i="",s="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(s+=l);continue}const c=e.indexOf("token(",r);if(c!==-1){const u=c+6;n+=e.slice(r,c),r=u,o="token",a.push(o);continue}n+=l,r++}return n},fS=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if(r==="(")n.push(r);else if(r===")"&&(n.pop(),n.length===0))return t;t++}return t};function Vh(e){const t={};return e.forEach((n,r)=>{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const _h=/({([^}]*)})/g,gS=/[{}]/g,pS=/\w+\.\w+/,Fh=e=>{if(!ct(e))return[];const t=e.match(_h);return t?t.map(n=>n.replace(gS,"").trim()):[]},mS=e=>_h.test(e);function Lh(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let n=e.value;const r=Object.keys(t);for(let o=0;o<r.length;o++){const i=r[o],s=t[i];if(s.extensions.conditions)continue;const a=Lh(s);n=n.replace(`{${i}}`,a)}return e.value=n,delete e.extensions.references,e.value}const vS=/calc/g;function Dh(e){return Fe(e)&&e.reference?e.reference:String(e)}const hi=(e,...t)=>t.map(Dh).join(` ${e} `).replace(vS,""),zh=(...e)=>`calc(${hi("+",...e)})`,Mh=(...e)=>`calc(${hi("-",...e)})`,ka=(...e)=>`calc(${hi("*",...e)})`,$h=(...e)=>`calc(${hi("/",...e)})`,Bh=e=>{const t=Dh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ka(t,-1)},sr=Object.assign(e=>({add:(...t)=>sr(zh(e,...t)),subtract:(...t)=>sr(Mh(e,...t)),multiply:(...t)=>sr(ka(e,...t)),divide:(...t)=>sr($h(e,...t)),negate:()=>sr(Bh(e)),toString:()=>e.toString()}),{add:zh,subtract:Mh,multiply:ka,divide:$h,negate:Bh}),bS={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(ct(a.value)&&a.value==="0rem")return;const u=[...a.path],d=u[u.length-1];d!=null&&(u[u.length-1]=`-${d}`);const f={...a,value:sr.negate(c.ref),name:o(u),path:u,extensions:{...a.extensions,negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}};i(f)})}},yS=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),xS=[bS,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=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(r(c),c)}),l.roots.forEach(c=>{const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const f=l.keys[0]?.filter(Boolean);if(!f.length)return;const p=c.concat(f);i.set(r(p),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>yS.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:ph(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],kS=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=Fh(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],Wh=e=>Fe(e)&&Object.prototype.hasOwnProperty.call(e,"value");function CS(e){return e?{breakpoints:ih(e,t=>({value:t})),sizes:ot(e,(t,n)=>[`breakpoint-${t}`,{value:n}])}:{breakpoints:{},sizes:{}}}function SS(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=F=>F.join("."),s=(F,_)=>lh(F.join("-"),{prefix:_}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,f=new Map,p=new Map,g=new Map,m=new Map,v=[];function x(F,_){a.push(F),l.set(F.name,F),_&&m.forEach(K=>{K.enforce===_&&q(K,F)})}const k=CS(o),y=br({...n,breakpoints:k.breakpoints,sizes:{...n.sizes,...k.sizes}});function S(){mt(y,(F,_)=>{const K=_.includes("DEFAULT");_=Hh(_);const ee=_[0],ce=i(_),Te=ct(F)?{value:F}:F,Vt={value:Te.value,originalValue:Te.value,name:ce,path:_,extensions:{condition:"base",originalPath:_,category:ee,prop:i(_.slice(1))}};K&&(Vt.extensions.default=!0),x(Vt)},{stop:Wh}),mt(r,(F,_)=>{const K=_.includes("DEFAULT");_=Uh(Hh(_));const ee=_[0],ce=i(_),Te=ct(F.value)?{value:{base:F.value}}:F,Vt={value:Te.value.base||"",originalValue:Te.value.base||"",name:ce,path:_,extensions:{originalPath:_,category:ee,conditions:Te.value,condition:"base",prop:i(_.slice(1))}};K&&(Vt.extensions.default=!0),x(Vt)},{stop:Wh})}function b(F){return l.get(F)}function E(F){const{condition:_}=F.extensions;_&&(c.has(_)||c.set(_,new Set),c.get(_).add(F))}function I(F){const{category:_,prop:K}=F.extensions;_&&(g.has(_)||g.set(_,new Map),g.get(_).set(K,F))}function P(F){const{condition:_,negative:K,virtual:ee,cssVar:ce}=F.extensions;K||ee||!_||!ce||(u.has(_)||u.set(_,new Map),u.get(_).set(ce.var,F.value))}function A(F){const{category:_,prop:K,cssVar:ee,negative:ce}=F.extensions;if(!_)return;p.has(_)||p.set(_,new Map);const Te=ce?F.extensions.conditions?F.originalValue:F.value:ee.ref;p.get(_).set(K,Te),f.set([_,K].join("."),Te)}function V(F){const{colorPalette:_,virtual:K,default:ee}=F.extensions;!_||K||_.roots.forEach(ce=>{const Te=i(ce);d.has(Te)||d.set(Te,new Map);const Vt=ES([...F.path],[...ce]),Di=i(Vt),el=b(Di);if(!el||!el.extensions.cssVar)return;const{var:gP}=el.extensions.cssVar;if(d.get(Te).set(gP,F.extensions.cssVar.ref),ee&&ce.length===1){const pP=i(["colors","colorPalette"]),ip=b(pP);if(!ip)return;const mP=i(F.path),sp=b(mP);if(!sp)return;const ap=_.keys[0]?.filter(Boolean);if(!ap.length)return;const tl=i(ce.concat(ap));d.has(tl)||d.set(tl,new Map),d.get(tl).set(ip.extensions.cssVar.var,sp.extensions.cssVar.ref)}})}let N={};function C(){a.forEach(F=>{E(F),I(F),P(F),A(F),V(F)}),N=Vh(p)}const R=(F,_)=>{if(!F||typeof F!="string")return{invalid:!0,value:F};const[K,ee]=F.split("/");if(!K||!ee)return{invalid:!0,value:K};const ce=_(K),Te=b(`opacity.${ee}`)?.value;if(!Te&&isNaN(Number(ee)))return{invalid:!0,value:K};const Vt=Te?Number(Te)*100+"%":`${ee}%`,Di=ce??K;return{invalid:!1,color:Di,value:`color-mix(in srgb, ${Di} ${Vt}, transparent)`}},L=Me((F,_)=>f.get(F)??_),z=Me(F=>N[F]||null),U=Me(F=>Ah(F,_=>{if(!_)return;if(_.includes("/")){const ee=R(_,ce=>L(ce));if(ee.invalid)throw new Error("Invalid color mix at "+_+": "+ee.value);return ee.value}const K=L(_);return K||(pS.test(_)?Rh(_):_)})),Z={prefix:t,allTokens:a,tokenMap:l,registerToken:x,getByName:b,formatTokenName:i,formatCssVar:s,flatMap:f,cssVarMap:u,categoryMap:g,colorPaletteMap:d,getVar:L,getCategoryValues:z,expandReferenceInValue:U};function te(...F){F.forEach(_=>{m.set(_.name,_)})}function W(...F){v.push(...F)}function q(F,_){if(_.extensions.references||os(F.match)&&!F.match(_))return;const ee=(ce=>F.transform(ce,Z))(_);switch(!0){case F.type==="extensions":Object.assign(_.extensions,ee);break;case F.type==="value":_.value=ee;break;default:_[F.type]=ee;break}}function Q(F){v.forEach(_=>{_.enforce===F&&_.transform(Z)})}function ge(F){m.forEach(_=>{_.enforce===F&&a.forEach(K=>{q(_,K)})})}function Ze(){a.forEach(F=>{const _=wS(F);!_||_.length===0||_.forEach(K=>{x(K)})})}function kt(F){const _=Fh(F),K=[];for(let ee=0;ee<_.length;ee++){const ce=b(_[ee]);ce&&K.push(ce)}return K}function At(){a.forEach(F=>{if(!mS(F.value))return;const _=kt(F.value);F.extensions.references=_.reduce((K,ee)=>(K[ee.name]=ee,K),{})})}function Za(){a.forEach(F=>{Lh(F)})}function fP(){Q("pre"),ge("pre"),Ze(),At(),Za(),Q("post"),ge("post"),C()}return S(),te(...kS),W(...xS),fP(),Z}function Hh(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Uh(e){return e.filter(t=>t!=="base")}function wS(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return mt(t,(r,o)=>{const i=Uh(o);if(!i.length)return;const s={...e,value:r,extensions:{...e.extensions,condition:i.join(":")}};n.push(s)}),n}function ES(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}uS()(["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 AP(e){return e}function OS(e){return ot(e,(t,n)=>[t,n])}function IS(e){const t=OS(e.config),n=e.tokens,r=new Map,o=new Map;function i(P,A){t[P]=A,s(P,A)}const s=(P,A)=>{const V=m(A);V&&(o.set(P,V),d(P,A))},a=()=>{for(const[P,A]of Object.entries(t))A&&s(P,A)},l=()=>{for(const[P,A]of Object.entries(t)){const{shorthand:V}=A??{};if(!V)continue;(Array.isArray(V)?V:[V]).forEach(C=>r.set(C,P))}},c=()=>{const P=Vh(n.colorPaletteMap);i("colorPalette",{values:Object.keys(P),transform:Me(A=>P[A])})},u=new Map,d=(P,A)=>{if(!A)return;const V=m(A,C=>`type:Tokens["${C}"]`);if(typeof V=="object"&&V.type){u.set(P,new Set([`type:${V.type}`]));return}if(V){const C=new Set(Object.keys(V));u.set(P,C)}const N=u.get(P)??new Set;A.property&&u.set(P,N.add(`CssProperties["${A.property}"]`))},f=()=>{for(const[P,A]of Object.entries(t))A&&d(P,A)},p=(P,A)=>{const V=u.get(P)??new Set;u.set(P,new Set([...V,...A]))},g=()=>{const P=new Map;for(const[A,V]of u.entries()){if(V.size===0){P.set(A,["string"]);continue}const N=Array.from(V).map(C=>C.startsWith("CssProperties")?C:C.startsWith("type:")?C.replace("type:",""):JSON.stringify(C));P.set(A,N)}return P},m=(P,A)=>{const{values:V}=P,N=C=>{const R=A?.(C);return R?{[R]:R}:void 0};if(ct(V))return N?.(V)??n.getCategoryValues(V)??se;if(Array.isArray(V)){const C={};for(let R=0;R<V.length;R++)C[V[R]]=V[R];return C}return os(V)?V(A?N:n.getCategoryValues):V},v=Me((P,A)=>({[P]:P.startsWith("--")?n.getVar(A,A):A})),x=Object.assign(n.getVar,{raw:P=>n.getByName(P)}),k=Me((P,A)=>{const V=b(P);ct(A)&&!A.includes("_EMO_")&&(A=n.expandReferenceInValue(A));const N=t[V];if(!N)return v(V,A);const C=o.get(V)?.[A];if(!N.transform)return v(P,C??A);const R=L=>iC(L,x);return N.transform(C??A,{raw:A,token:x,utils:{colorMix:R}})});function y(){l(),c(),a(),f()}y();const S=r.size>0,b=Me(P=>r.get(P)??P);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:S,transform:k,shorthands:r,resolveShorthand:b,register:i,getTypes:g,addPropertyType:p}}function jh(...e){const t=sh(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=tS(t),c=SS({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=_C(n.breakpoints??se),d=zC({conditions:t.conditions??se,breakpoints:u}),f=IS({config:r,tokens:c});function p(){const{textStyles:W,layerStyles:q,animationStyles:Q}=n,ge=br({textStyle:W,layerStyle:q,animationStyle:Q});for(const[Ze,kt]of Object.entries(ge)){const At=dh(kt??se,Gh);f.register(Ze,{values:Object.keys(At),transform(Za){return y(At[Za])}})}}p(),f.addPropertyType("animationName",Object.keys(n.keyframes??se));const g=new Set(["css",...f.keys(),...d.keys()]),m=Me(W=>g.has(W)||PC(W)),v=W=>{if(Array.isArray(W)){const q=di();for(let Q=0;Q<W.length;Q++){const ge=W[Q];if(ge!=null){const Ze=d.breakpoints[Q];q[Ze]=ge}}return q}return W},x=nS({utility:f,normalize:v}),k=oS({conditions:d,isValidProperty:m}),y=Th({transform:f.transform,conditions:d,normalize:x}),S=JC({css:y,conditions:d,normalize:x,layers:l}),b=cS({cva:S});function E(){const W={};for(const[q,Q]of c.cssVarMap.entries()){const ge=Object.fromEntries(Q);if(Object.keys(ge).length===0)continue;const Ze=q==="base"?i:d.resolve(q),kt=Ze.startsWith("@"),At=y(k({[Ze]:kt?{[i]:ge}:ge}));nr(W,At)}return l.wrap("tokens",W)}function I(){const W=ot(n.keyframes??se,(Q,ge)=>[`@keyframes ${Q}`,ge]),q=Object.assign({},W,y(k(o)));return l.wrap("base",q)}function P(W){return Ln(W,m)}function A(){const W=rS({preflight:a});return l.wrap("reset",W)}const V=TS(c),N=(W,q)=>V.get(W)?.value||q;N.var=(W,q)=>V.get(W)?.variable||q;function C(W,q){return n.recipes?.[W]??q}function R(W,q){return n.slotRecipes?.[W]??q}function L(W){return Object.hasOwnProperty.call(n.recipes??se,W)}function z(W){return Object.hasOwnProperty.call(n.slotRecipes??se,W)}function U(W){return L(W)||z(W)}const Z=[A(),I(),E()],te={layerStyles:Ca(n.layerStyles??se),textStyles:Ca(n.textStyles??se),animationStyles:Ca(n.animationStyles??se),tokens:qh(c,Object.keys(n.tokens??se),(W,q)=>!W.extensions.conditions&&!q.includes("colorPalette")),semanticTokens:qh(c,Object.keys(n.semanticTokens??se),W=>!!W.extensions.conditions),keyframes:Kh(n.keyframes??se),breakpoints:Kh(n.breakpoints??se)};return{$$chakra:!0,_config:t,_global:Z,breakpoints:u,tokens:c,conditions:d,utility:f,token:N,properties:g,layers:l,isValidProperty:m,splitCssProps:P,normalizeValue:v,getTokenCss:E,getGlobalCss:I,getPreflightCss:A,css:y,cva:S,sva:b,getRecipe:C,getSlotRecipe:R,hasRecipe:U,isRecipe:L,isSlotRecipe:z,query:te}}function TS(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const Gh=e=>Fe(e)&&"value"in e,Ca=e=>({list(){return Object.keys(dh(e,Gh))},search(t){return this.list().filter(n=>n.includes(t))}}),qh=(e,t,n)=>({categoryKeys:t,list(r){const o=e.categoryMap.get(r),i=o?[...o.entries()]:[],s=[];for(let a=0;a<i.length;a++){const[l,c]=i[a];n(c,l)&&s.push(l)}return s},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),Kh=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),PS={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Sa="var(--chakra-empty,/*!*/ /*!*/)",NS=cC({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Sa,"--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}`,Sa])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Sa])),"--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"}}),RS=hC({"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:{}}}),AS=dC({"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"}}}),wa=me({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),VS=me({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Ee=me({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:_S,defaultVariants:FS}=wa,LS=me({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:_S,defaultVariants:FS}),Yh=me({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"}}),DS=me({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"}}}}),zS=me({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"}}),MS=me({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"}}),fe=me({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"}}),$S=me({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:fe.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"}}),BS=me({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"}}),WS=me({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"}}),HS=me({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:{}}}}),Oe=me({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"}}),US=me({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"}}),jS=me({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}}),GS=me({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"}}}),qS=me({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"}}),KS=me({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"}}),YS={badge:wa,button:VS,code:LS,container:DS,heading:zS,input:fe,inputAddon:$S,kbd:BS,link:WS,mark:HS,separator:US,skeleton:jS,skipNavLink:GS,spinner:qS,textarea:KS,icon:MS,checkmark:Ee,radiomark:Oe,colorSwatch:Yh},XS=ma.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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}},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}"}}}}),QS=ma.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),JS=ma.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}"}}}),ZS=gu.extendWith("itemBody"),ew=$("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),tw=$("alert").parts("title","description","root","indicator","content"),nw=$("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),rw=$("blockquote").parts("root","icon","content","caption"),ow=$("card").parts("root","header","body","footer","title","description"),iw=$("checkbox-card",["root","control","label","description","addon","indicator","content"]),sw=$("data-list").parts("root","item","itemLabel","itemValue"),aw=Ys.extendWith("header","body","footer","backdrop"),lw=Ys.extendWith("header","body","footer","backdrop"),cw=id.extendWith("textarea"),uw=$("empty-state",["root","content","indicator","title","description"]),dw=ad.extendWith("requiredIndicator"),hw=cd.extendWith("content"),fw=ud.extendWith("itemContent","dropzoneContent","fileText"),gw=$("list").parts("root","item","indicator"),pw=kd.extendWith("itemCommand"),mw=$("select").parts("root","field","indicator"),vw=Md.extendWith("header","body","footer"),Xh=la.extendWith("itemAddon","itemIndicator"),bw=Xh.extendWith("itemContent","itemDescription"),yw=Bd.extendWith("itemIndicator"),xw=Ud.extendWith("indicatorGroup"),kw=c1.extendWith("indicatorGroup","empty"),Cw=Kd.extendWith("markerIndicator"),Sw=$("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),ww=$("status").parts("root","indicator"),Ew=$("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Ow=Yd.extendWith("indicator"),Iw=$("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Tw=$("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),Pw=$("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Nw=$("tag").parts("root","label","closeTrigger","startElement","endElement"),Rw=$("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Aw=Ax.extendWith("channelText"),Vw=$("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Ru.extendWith("valueText");const _w=z1,Fw=B({className:"chakra-accordion",slots:ZS.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"}}),Lw=B({className:"chakra-action-bar",slots:ew.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"}}}),Dw=B({slots:tw.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),zw=B({slots:vu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),Mw=B({className:"chakra-blockquote",slots:rw.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"}}),$w=B({className:"chakra-breadcrumb",slots:nw.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"}}),Bw=B({className:"chakra-card",slots:ow.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"}}),Ww=B({className:"carousel",slots:Su.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:{}}),Hw=B({slots:Rx.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Ee.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Ee.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Ee.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Ee.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Ee.variants?.size?.lg}},variant:{outline:{control:Ee.variants?.variant?.outline},solid:{control:Ee.variants?.variant?.solid},subtle:{control:Ee.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),Uw=B({slots:iw.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:Ee.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:Ee.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Ee.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Ee.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:Ee.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Ee.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:Ee.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Ee.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"}}),jw=B({slots:Vw.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"}}),Gw=B({slots:Ec.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"}}}}}),qw=B({className:"colorPicker",slots:Aw.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:{...Yh.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:{...fe.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:fe.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:fe.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:fe.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:fe.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:fe.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:fe.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:fe.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:fe.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:fe.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Kw=B({className:"chakra-combobox",slots:kw.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"}}),Yw=B({slots:sw.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"}}),Xw=B({slots:aw.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"}}),Qw=B({slots:lw.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"}}),Qh=rr({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),Jw=B({slots:cw.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Qh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Qh,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"}}),Zw=B({slots:uw.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"}}),eE=B({className:"chakra-field",slots:dw.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"}}),tE=B({className:"fieldset",slots:hw.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"}}),nE=B({className:"chakra-file-upload",slots:fw.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:{}}),rE=B({className:"chakra-hover-card",slots:dd.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),oE=B({className:"chakra-list",slots:gw.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"}}),iE=B({className:"chakra-listbox",slots:_w.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"}}),sE=B({className:"chakra-menu",slots:pw.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"}}),fi=B({className:"chakra-select",slots:xw.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"}}),aE=B({className:"chakra-native-select",slots:mw.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:fi.variants?.variant.outline.trigger},subtle:{field:fi.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:fi.defaultVariants}),Jh=rr({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"}}),lE=B({className:"chakra-number-input",slots:Ad.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...fe.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:{...Jh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Jh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:fe.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:fe.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:fe.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:fe.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:ot(fe.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Zh,defaultVariants:cE}=fe,uE=B({className:"chakra-pin-input",slots:zd.keys(),base:{input:{...fe.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:ot(Zh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:ot(Zh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:cE}),dE=B({className:"chakra-popover",slots:vw.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),hE=B({slots:aa.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"}}),fE=B({className:"chakra-progress-circle",slots:aa.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"}}),gE=B({slots:$d.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"}}),pE=B({className:"chakra-radio-card",slots:bw.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:Oe.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:Oe.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Oe.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Oe.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Oe.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Oe.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Oe.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Oe.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"}}),mE=B({className:"chakra-radio-group",slots:Xh.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Oe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Oe.variants?.variant?.outline},subtle:{itemControl:Oe.variants?.variant?.subtle},solid:{itemControl:Oe.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Oe.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Oe.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Oe.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Oe.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),vE=B({className:"chakra-rating-group",slots:yw.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"}}),bE=B({className:"chakra-scroll-area",slots:Wd.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"}}),yE=B({className:"chakra-segment-group",slots:Hd.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"}}),xE=B({className:"chakra-slider",slots:Cw.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"}}),kE=B({className:"chakra-stat",slots:Sw.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"}}),CE=B({className:"chakra-status",slots:ww.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"}}),SE=B({className:"chakra-steps",slots:Ew.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"}}),wE=B({slots:Ow.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"}}),EE=B({className:"chakra-table",slots:Iw.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"}}),OE=B({slots:Pw.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"}}),gi=wa.variants?.variant,IE=B({slots:Nw.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:gi?.subtle},solid:{root:gi?.solid},outline:{root:gi?.outline},surface:{root:gi?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),TE=B({slots:Xd.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"}},itemText:{lineClamp:"1"},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)"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",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"}}),PE=B({slots:Rw.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}}),NE=B({slots:Tw.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"}}}}),RE=B({slots:th.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),ef=rr({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"}}),tf=rr({flex:"1"}),nf=rr({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),rf=rr({_selected:{layerStyle:"fill.solid"}}),AE=B({slots:gd.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:ef,item:ef,itemText:tf,branchText:tf,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:nf,item:nf},solid:{branchControl:rf,item:rf}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),VE={accordion:Fw,actionBar:Lw,alert:Dw,avatar:zw,blockquote:Mw,breadcrumb:$w,card:Bw,carousel:Ww,checkbox:Hw,checkboxCard:Uw,codeBlock:jw,collapsible:Gw,dataList:Yw,dialog:Xw,drawer:Qw,editable:Jw,emptyState:Zw,field:eE,fieldset:tE,fileUpload:nE,hoverCard:rE,list:oE,listbox:iE,menu:sE,nativeSelect:aE,numberInput:lE,pinInput:uE,popover:dE,progress:hE,progressCircle:fE,radioCard:pE,radioGroup:mE,ratingGroup:vE,scrollArea:bE,segmentGroup:yE,select:fi,combobox:Kw,slider:xE,stat:kE,steps:SE,switch:wE,table:EE,tabs:OE,tag:IE,tagsInput:TE,toast:NE,tooltip:RE,status:CE,timeline:PE,colorPicker:qw,qrCode:gE,treeView:AE},_E=uC({"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"}}}),FE=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"}}),LE=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"}}),DE=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"}}),zE=he.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),ME=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"}}}),$E=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"}}),BE=he.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),WE=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)"}}),HE=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"}}),UE=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"}}),of='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',jE=he.fonts({heading:{value:`Inter, ${of}`},body:{value:`Inter, ${of}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),GE=lC({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"}}}),qE=he.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),KE=he.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),YE=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"}}),sf=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"}}),XE=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"}}),QE=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"}}),JE=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%"}}),ZE=he.sizes({...XE,...sf,...JE,...QE}),e2=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}}),t2=va({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:NS,theme:{breakpoints:PS,keyframes:GE,tokens:{aspectRatios:LE,animations:FE,blurs:DE,borders:zE,colors:ME,durations:BE,easings:WE,fonts:jE,fontSizes:HE,fontWeights:UE,letterSpacings:qE,lineHeights:KE,radii:YE,spacing:sf,sizes:ZE,zIndex:e2,cursor:$E},semanticTokens:{colors:XS,shadows:JS,radii:QS},recipes:YS,slotRecipes:VE,textStyles:_E,layerStyles:RS,animationStyles:AS}}),af=sh(xC,t2);jh(af);function n2(e){const{key:t,recipe:n}=e,r=ho();return O.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const r2=e=>e.charAt(0).toUpperCase()+e.slice(1),pi=e=>{const{key:t,recipe:n}=e,r=r2(t||n.className||"Component"),[o,i]=Fn({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=Fn({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=Fn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(g){const{unstyled:m,...v}=g,x=n2({key:t,recipe:v.recipe||n}),[k,y]=O.useMemo(()=>x.splitVariantProps(v),[v,x]);return{styles:O.useMemo(()=>m?Om:x(k),[m,k,x]),classNames:x.classNameMap,props:y}}function d(g,m={}){const{defaultProps:v}=m,x=k=>{const y=c(),S=O.useMemo(()=>vr(v,y,k),[y,k]),{styles:b,classNames:E,props:I}=u(S);return h.jsx(o,{value:b,children:h.jsx(s,{value:E,children:h.jsx(g,{...I})})})};return x.displayName=g.displayName||g.name,x}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(g,m,v)=>{const{defaultProps:x,...k}=v??{},y=be(g,{},k),S=O.forwardRef((b,E)=>{const I=c(),P=O.useMemo(()=>vr(x??{},I,b),[I,b]),{styles:A,props:V,classNames:N}=u(P),C=N[m],R=h.jsx(o,{value:A,children:h.jsx(s,{value:N,children:h.jsx(y,{ref:E,...V,css:[A[m],P.css],className:Ke(P.className,C)})})});return v?.wrapElement?.(R,P)??R});return S.displayName=g.displayName||g.name,S},withContext:(g,m,v)=>{const x=be(g,{},v),k=O.forwardRef((y,S)=>{const{unstyled:b,...E}=y,I=i(),A=a()?.[m];return h.jsx(x,{...E,css:[!b&&m?I[m]:void 0,y.css],ref:S,className:Ke(y.className,A)})});return k.displayName=g.displayName||g.name,k},withRootProvider:d,useStyles:i,useClassNames:a}},lf=be("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"}});lf.displayName="AbsoluteCenter";const o2=e=>h.jsx(be.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:h.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"})}),cf=e=>h.jsx(be.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:h.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"})}),uf=e=>h.jsx(be.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:h.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 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),i2=e=>h.jsx(be.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.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"})}),[s2,a2]=Fn({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:l2,withContext:Ea,useStyles:c2}=pi({key:"alert"}),u2=l2("div","root",{forwardAsChild:!0,wrapElement(e,t){return h.jsx(s2,{value:{status:t.status||"info"},children:e})}}),df=Ea("div","title"),d2=Ea("div","description"),h2=Ea("div","content"),f2={info:uf,warning:cf,success:o2,error:cf,neutral:uf},g2=O.forwardRef(function(t,n){const r=a2(),o=c2(),i=typeof r.status=="string"?f2[r.status]:O.Fragment,{children:s=h.jsx(i,{}),...a}=t;return h.jsx(be.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),p2=e=>e?"":void 0,{withContext:m2}=_t({key:"badge"}),Oa=m2("span");Oa.displayName="Badge";const{withContext:v2}=_t({key:"spinner"}),hf=v2("span");hf.displayName="Spinner";const ff=D.forwardRef(function(t,n){const{spinner:r=h.jsx(hf,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?h.jsxs(Or,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?h.jsxs(Or,{ref:n,display:"contents",...l,children:[h.jsx(lf,{display:"inline-flex",children:r}),h.jsx(Or,{visibility:"hidden",display:"contents",children:i})]}):h.jsx(Or,{ref:n,display:"contents",...l,children:i}):i});ff.displayName="Loader";const{useRecipeResult:b2,usePropsContext:y2}=_t({key:"button"}),Ie=O.forwardRef(function(t,n){const r=y2(),o=O.useMemo(()=>vr(r,t),[r,t]),i=b2(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return h.jsx(be.button,{type:"button",ref:n,...d,"data-loading":p2(s),disabled:s||d.disabled,className:Ke(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?h.jsx(ff,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})});Ie.displayName="Button";const vt=O.forwardRef(function(t,n){return h.jsx(Ie,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})});vt.displayName="IconButton";const qt=D.forwardRef(function(t,n){return h.jsx(vt,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??h.jsx(i2,{})})});qt.displayName="CloseButton";const gf=be("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});gf.displayName="Center";const{withContext:x2}=_t({key:"code"}),pf=x2("code");pf.displayName="Code";function k2(e){const{gap:t,direction:n}=e,r={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{"&":ih(n,o=>r[o])}}function C2(e){return O.Children.toArray(e).filter(t=>O.isValidElement(t))}const Ia=O.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,f=O.useMemo(()=>k2({gap:s,direction:r}),[s,r]),p=O.useMemo(()=>O.isValidElement(c)?C2(l).map((g,m,v)=>{const x=typeof g.key<"u"?g.key:m,k=c,y=O.cloneElement(k,{css:[f,k.props.css]});return h.jsxs(O.Fragment,{children:[g,m===v.length-1?null:y]},x)}):l,[l,c,f]);return h.jsx(be.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:Ke("chakra-stack",u),...d,children:p})});Ia.displayName="Stack";const{withRootProvider:mf,withContext:bt}=pi({key:"dialog"});mf(x1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const pn=mf(y1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});bt(od,"trigger",{forwardAsChild:!0});const mn=bt(Ju,"positioner",{forwardAsChild:!0}),vn=bt(Xu,"content",{forwardAsChild:!0});bt(Qu,"description",{forwardAsChild:!0});const bn=bt(rd,"title",{forwardAsChild:!0}),yn=bt(Yu,"closeTrigger",{forwardAsChild:!0}),xn=O.forwardRef(function(t,n){const r=Ut();return h.jsx(be.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),kn=bt(Ku,"backdrop",{forwardAsChild:!0}),Cn=bt("div","body"),Sn=bt("div","footer"),wn=bt("div","header");function S2(e){const{each:t,fallback:n,children:r}=e;return t?.length===0?n||null:t?.map(r)}const jr=O.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return h.jsx(be.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})});jr.displayName="Flex";const{withContext:w2}=_t({key:"input"}),E2=w2(sd),{withContext:O2}=_t({key:"link"}),vf=O2("a");vf.displayName="Link";const{withProvider:I2,withContext:bf}=pi({key:"list"}),yf=I2("ul","root",{defaultProps:{role:"list"}}),xf=bf("li","item");bf("span","indicator");const kf=O.forwardRef(function(t,n){return h.jsx(Ia,{align:"center",...t,direction:"row",ref:n})});kf.displayName="HStack";const Gr=O.forwardRef(function(t,n){return h.jsx(Ia,{align:"center",...t,direction:"column",ref:n})});Gr.displayName="VStack";const{StylesProvider:T2,ClassNamesProvider:P2,useRecipeResult:N2,withContext:Pt}=pi({key:"table"}),Cf=O.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=N2(n),a=O.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return h.jsx(P2,{value:s,children:h.jsx(T2,{value:o,children:h.jsx(be.table,{ref:r,...i,css:[a,n.css],className:Ke(s?.root,n.className)})})})}),mi=Pt("tr","row");be("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Sf=Pt("thead","header");Pt("tfoot","footer");const Ce=Pt("th","columnHeader"),Se=Pt("td","cell");Pt("caption","caption",{defaultProps:{captionSide:"bottom"}});const wf=Pt("tbody","body");Pt("colgroup"),Pt("col");const{withContext:R2}=_t({key:"textarea"}),Ta=R2(ld);Ta.displayName="Textarea";var ar=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},A2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},V2=class{#e=A2;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},En=new V2;function _2(e){setTimeout(e,0)}var On=typeof window>"u"||"Deno"in globalThis;function Ve(){}function F2(e,t){return typeof e=="function"?e(t):e}function Pa(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ef(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kt(e,t){return typeof e=="function"?e(t):e}function Je(e,t){return typeof e=="function"?e(t):e}function Of(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Na(s,t.options))return!1}else if(!qr(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function If(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(In(t.options.mutationKey)!==In(i))return!1}else if(!qr(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Na(e,t){return(t?.queryKeyHashFn||In)(e)}function In(e){return JSON.stringify(e,(t,n)=>Ra(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qr(e[n],t[n])):!1}var L2=Object.prototype.hasOwnProperty;function Tf(e,t){if(e===t)return e;const n=Pf(e)&&Pf(t);if(!n&&!(Ra(e)&&Ra(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c<s;c++){const u=n?c:i[c],d=e[u],f=t[u];if(d===f){a[u]=d,(n?c<o:L2.call(e,u))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){a[u]=f;continue}const p=Tf(d,f);a[u]=p,p===d&&l++}return o===s&&l===o?e:a}function vi(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ra(e){if(!Nf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Nf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Nf(e){return Object.prototype.toString.call(e)==="[object Object]"}function D2(e){return new Promise(t=>{En.setTimeout(t,e)})}function Aa(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tf(e,t):t}function z2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function M2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Va=Symbol();function Rf(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Va?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Af(e,t){return typeof e=="function"?e(...t):!!e}var $2=class extends ar{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!On&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_a=new $2;function Fa(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var B2=_2;function W2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=B2;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ve=W2(),H2=class extends ar{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!On&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},bi=new H2;function U2(e){return Math.min(1e3*2**e,3e4)}function Vf(e){return(e??"online")==="online"?bi.isOnline():!0}var La=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function _f(e){let t=!1,n=0,r;const o=Fa(),i=()=>o.status!=="pending",s=m=>{if(!i()){const v=new La(m);f(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>_a.isFocused()&&(e.networkMode==="always"||bi.isOnline())&&e.canRun(),u=()=>Vf(e.networkMode)&&e.canRun(),d=m=>{i()||(r?.(),o.resolve(m))},f=m=>{i()||(r?.(),o.reject(m))},p=()=>new Promise(m=>{r=v=>{(i()||c())&&m(v)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),g=()=>{if(i())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(x){m=Promise.reject(x)}Promise.resolve(m).then(d).catch(x=>{if(i())return;const k=e.retry??(On?0:3),y=e.retryDelay??U2,S=typeof y=="function"?y(n,x):y,b=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,x);if(t||!b){f(x);return}n++,e.onFail?.(n,x),D2(S).then(()=>c()?void 0:p()).then(()=>{t?f(x):g()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?g():p().then(g),o)}}var Ff=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pa(this.gcTime)&&(this.#e=En.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(On?1/0:300*1e3))}clearGcTimeout(){this.#e&&(En.clearTimeout(this.#e),this.#e=void 0)}},j2=class extends Ff{#e;#t;#n;#o;#r;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=zf(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=zf(this.options);t.data!==void 0&&(this.setState(Df(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Aa(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Ve).catch(Ve):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Je(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Va||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Kt(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ef(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const a=Rf(this.options,t),c=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=_f({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof La&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof La){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Lf(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...Df(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ve.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Lf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Df(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var G2=class extends ar{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=Fa(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Mf(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Da(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Da(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#k(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Je(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!vi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&$f(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||Je(this.options.enabled,this.#t)!==Je(t.enabled,this.#t)||Kt(this.options.staleTime,this.#t)!==Kt(t.staleTime,this.#t))&&this.#m();const o=this.#v();r&&(this.#t!==n||Je(this.options.enabled,this.#t)!==Je(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return K2(this,n)&&(this.#o=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ve)),t}#m(){this.#x();const e=Kt(this.options.staleTime,this.#t);if(On||this.#o.isStale||!Pa(e))return;const n=Ef(this.#o.dataUpdatedAt,e)+1;this.#c=En.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#k(),this.#l=e,!(On||Je(this.options.enabled,this.#t)===!1||!Pa(this.#l)||this.#l===0)&&(this.#u=En.setInterval(()=>{(this.options.refetchIntervalInBackground||_a.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(En.clearTimeout(this.#c),this.#c=void 0)}#k(){this.#u&&(En.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,i=this.#r,s=this.#s,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},d=!1,f;if(t._optimisticResults){const P=this.hasListeners(),A=!P&&Mf(e,t),V=P&&$f(e,n,t,r);(A||V)&&(u={...u,...Lf(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:g,status:m}=u;f=u.data;let v=!1;if(t.placeholderData!==void 0&&f===void 0&&m==="pending"){let P;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(P=o.data,v=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,P!==void 0&&(m="success",f=Aa(o?.data,P,t),d=!0)}if(t.select&&f!==void 0&&!v)if(o&&f===i?.data&&t.select===this.#p)f=this.#h;else try{this.#p=t.select,f=t.select(f),f=Aa(o?.data,f,t),this.#h=f,this.#i=null}catch(P){this.#i=P}this.#i&&(p=this.#i,f=this.#h,g=Date.now(),m="error");const x=u.fetchStatus==="fetching",k=m==="pending",y=m==="error",S=k&&x,b=f!==void 0,I={status:m,fetchStatus:u.fetchStatus,isPending:k,isSuccess:m==="success",isError:y,isInitialLoading:S,isLoading:S,data:f,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:y&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&b,isStale:za(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Je(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=N=>{I.status==="error"?N.reject(I.error):I.data!==void 0&&N.resolve(I.data)},A=()=>{const N=this.#a=I.promise=Fa();P(N)},V=this.#a;switch(V.status){case"pending":e.queryHash===n.queryHash&&P(V);break;case"fulfilled":(I.status==="error"||I.data!==V.value)&&A();break;case"rejected":(I.status!=="error"||I.error!==V.reason)&&A();break}}return I}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#f=this.#t),vi(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const a=s;return this.#o[a]!==e[a]&&i.has(a)})};this.#S({listeners:n()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(e){ve.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function q2(e,t){return Je(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Mf(e,t){return q2(e,t)||e.state.data!==void 0&&Da(e,t,t.refetchOnMount)}function Da(e,t,n){if(Je(t.enabled,e)!==!1&&Kt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&za(e,t)}return!1}function $f(e,t,n,r){return(e!==t||Je(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&za(e,n)}function za(e,t){return Je(t.enabled,e)!==!1&&e.isStaleByTime(Kt(t.staleTime,e))}function K2(e,t){return!vi(e.getCurrentResult(),t)}function Bf(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=Rf(t.options,t.fetchOptions),p=async(g,m,v)=>{if(u)return Promise.reject();if(m==null&&g.pages.length)return Promise.resolve(g);const k=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:m,direction:v?"backward":"forward",meta:t.options.meta};return d(E),E})(),y=await f(k),{maxPages:S}=t.options,b=v?M2:z2;return{pages:b(g.pages,y,S),pageParams:b(g.pageParams,m,S)}};if(o&&i.length){const g=o==="backward",m=g?Y2:Wf,v={pages:i,pageParams:s},x=m(r,v);a=await p(v,x,g)}else{const g=e??i.length;do{const m=l===0?s[0]??r.initialPageParam:Wf(r,a);if(l>0&&m==null)break;a=await p(a,m),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function Wf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Y2(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var X2=class extends Ff{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Hf(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=_f({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#r({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ve.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Hf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Q2=class extends ar{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new X2({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=yi(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=yi(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=yi(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=yi(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ve.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>If(t,n))}findAll(e={}){return this.getAll().filter(t=>If(e,t))}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ve.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ve))))}};function yi(e){return e.options.scope?.id}var J2=class extends ar{#e;#t=void 0;#n;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),vi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&In(t.mutationKey)!==In(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(e,t){return this.#o=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#r(){const e=this.#n?.state??Hf();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){ve.batch(()=>{if(this.#o&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#o.onSuccess?.(e.data,t,n,r),this.#o.onSettled?.(e.data,null,t,n,r)):e?.type==="error"&&(this.#o.onError?.(e.error,t,n,r),this.#o.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(t=>{t(this.#t)})})}},Z2=class extends ar{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Na(r,t);let i=this.get(o);return i||(i=new j2({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ve.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Of(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Of(e,n)):t}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},eO=class{#e;#t;#n;#o;#r;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new Z2,this.#t=e.mutationCache||new Q2,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=_a.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=bi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Kt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,s=F2(t,i);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ve.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ve.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ve.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ve).catch(Ve)}invalidateQueries(e,t={}){return ve.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ve)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ve)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Kt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ve).catch(Ve)}fetchInfiniteQuery(e){return e.behavior=Bf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ve).catch(Ve)}ensureInfiniteQueryData(e){return e.behavior=Bf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(In(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{qr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(In(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{qr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Na(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Va&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Uf=D.createContext(void 0),jf=e=>{const t=D.useContext(Uf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tO=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(Uf.Provider,{value:e,children:t})),Gf=D.createContext(!1),nO=()=>D.useContext(Gf);Gf.Provider;function rO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oO=D.createContext(rO()),iO=()=>D.useContext(oO),sO=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},aO=e=>{D.useEffect(()=>{e.clearReset()},[e])},lO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Af(n,[e.error,r])),cO=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uO=(e,t)=>e.isLoading&&e.isFetching&&!t,dO=(e,t)=>e?.suspense&&t.isPending,qf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hO(e,t,n){const r=nO(),o=iO(),i=jf(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",cO(s),sO(s,o),aO(o);const a=!i.getQueryCache().get(s.queryHash),[l]=D.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(d=>{const f=u?l.subscribe(ve.batchCalls(d)):Ve;return l.updateResult(),f},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(s)},[s,l]),dO(s,c))throw qf(s,l,o);if(lO({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!On&&uO(c,r)&&(a?qf(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(Ve).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function Kf(e,t){return hO(e,G2)}function Tn(e,t){const n=jf(),[r]=D.useState(()=>new J2(n,e));D.useEffect(()=>{r.setOptions(e)},[r,e]);const o=D.useSyncExternalStore(D.useCallback(s=>r.subscribe(ve.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=D.useCallback((s,a)=>{r.mutate(s,a).catch(Ve)},[r]);if(o.error&&Af(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}class Yf{_fns;constructor(){this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const yt={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new Yf,response:new Yf}};var fO=(e,t,n,r,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(p){(Array.isArray(e)?e:[e]).forEach(g=>{let m=g==="class",v=m&&i?o.map(x=>i[x]||x):o;m?(l.classList.remove(...v),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(g,p)}),d(p)}function d(p){a&&c.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let p=localStorage.getItem(t)||n,g=s&&p==="system"?f():p;u(g)}catch{}},Xf=["light","dark"],Qf="(prefers-color-scheme: dark)",gO=typeof window>"u",Jf=D.createContext(void 0),pO=e=>D.useContext(Jf)?D.createElement(D.Fragment,null,e.children):D.createElement(vO,{...e}),mO=["light","dark"],vO=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=mO,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[f,p]=D.useState(()=>yO(o,s)),[g,m]=D.useState(()=>f==="system"?Ma():f),v=l?Object.values(l):i,x=D.useCallback(b=>{let E=b;if(!E)return;b==="system"&&n&&(E=Ma());let I=l?l[E]:E,P=t?xO(u):null,A=document.documentElement,V=N=>{N==="class"?(A.classList.remove(...v),I&&A.classList.add(I)):N.startsWith("data-")&&(I?A.setAttribute(N,I):A.removeAttribute(N))};if(Array.isArray(a)?a.forEach(V):V(a),r){let N=Xf.includes(s)?s:null,C=Xf.includes(E)?E:N;A.style.colorScheme=C}P?.()},[u]),k=D.useCallback(b=>{let E=typeof b=="function"?b(f):b;p(E);try{localStorage.setItem(o,E)}catch{}},[f]),y=D.useCallback(b=>{let E=Ma(b);m(E),f==="system"&&n&&!e&&x("system")},[f,e]);D.useEffect(()=>{let b=window.matchMedia(Qf);return b.addListener(y),y(b),()=>b.removeListener(y)},[y]),D.useEffect(()=>{let b=E=>{E.key===o&&(E.newValue?p(E.newValue):k(s))};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[k]),D.useEffect(()=>{x(e??f)},[e,f]);let S=D.useMemo(()=>({theme:f,setTheme:k,forcedTheme:e,resolvedTheme:f==="system"?g:f,themes:n?[...i,"system"]:i,systemTheme:n?g:void 0}),[f,k,e,g,n,i]);return D.createElement(Jf.Provider,{value:S},D.createElement(bO,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:d}),c)},bO=D.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,i,e,a,s,r,o]).slice(1,-1);return D.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${fO.toString()})(${u})`}})}),yO=(e,t)=>{if(gO)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},xO=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Ma=e=>(e||(e=window.matchMedia(Qf)),e.matches?"dark":"light");const kO=e=>h.jsx(pO,{attribute:"class",disableTransitionOnChange:!0,...e}),CO="UiServiceWorker",SO=e=>[CO],wO="UiServiceJobs",EO=e=>[wO];function Zf(e,t){return function(){return e.apply(t,arguments)}}const{toString:OO}=Object.prototype,{getPrototypeOf:$a}=Object,{iterator:xi,toStringTag:eg}=Symbol,ki=(e=>t=>{const n=OO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ki(t)===e),Ci=e=>t=>typeof t===e,{isArray:lr}=Array,cr=Ci("undefined");function Kr(e){return e!==null&&!cr(e)&&e.constructor!==null&&!cr(e.constructor)&&$e(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tg=it("ArrayBuffer");function IO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tg(e.buffer),t}const TO=Ci("string"),$e=Ci("function"),ng=Ci("number"),Yr=e=>e!==null&&typeof e=="object",PO=e=>e===!0||e===!1,Si=e=>{if(ki(e)!=="object")return!1;const t=$a(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(eg in e)&&!(xi in e)},NO=e=>{if(!Yr(e)||Kr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},RO=it("Date"),AO=it("File"),VO=it("Blob"),_O=it("FileList"),FO=e=>Yr(e)&&$e(e.pipe),LO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$e(e.append)&&((t=ki(e))==="formdata"||t==="object"&&$e(e.toString)&&e.toString()==="[object FormData]"))},DO=it("URLSearchParams"),[zO,MO,$O,BO]=["ReadableStream","Request","Response","Headers"].map(it),WO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),lr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Kr(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function rg(e,t){if(Kr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,og=e=>!cr(e)&&e!==Pn;function Ba(){const{caseless:e,skipUndefined:t}=og(this)&&this||{},n={},r=(o,i)=>{const s=e&&rg(n,i)||i;Si(n[s])&&Si(o)?n[s]=Ba(n[s],o):Si(o)?n[s]=Ba({},o):lr(o)?n[s]=o.slice():(!t||!cr(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Xr(arguments[o],r);return n}const HO=(e,t,n,{allOwnKeys:r}={})=>(Xr(t,(o,i)=>{n&&$e(o)?e[i]=Zf(o,n):e[i]=o},{allOwnKeys:r}),e),UO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},GO=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&$a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},KO=e=>{if(!e)return null;if(lr(e))return e;let t=e.length;if(!ng(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},YO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$a(Uint8Array)),XO=(e,t)=>{const r=(e&&e[xi]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},QO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},JO=it("HTMLFormElement"),ZO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ig=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eI=it("RegExp"),sg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Xr(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},tI=e=>{sg(e,(t,n)=>{if($e(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if($e(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nI=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return lr(e)?r(e):r(String(e).split(t)),n},rI=()=>{},oI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function iI(e){return!!(e&&$e(e.append)&&e[eg]==="FormData"&&e[xi])}const sI=e=>{const t=new Array(10),n=(r,o)=>{if(Yr(r)){if(t.indexOf(r)>=0)return;if(Kr(r))return r;if(!("toJSON"in r)){t[o]=r;const i=lr(r)?[]:{};return Xr(r,(s,a)=>{const l=n(s,o+1);!cr(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},aI=it("AsyncFunction"),lI=e=>e&&(Yr(e)||$e(e))&&$e(e.then)&&$e(e.catch),ag=((e,t)=>e?setImmediate:t?((n,r)=>(Pn.addEventListener("message",({source:o,data:i})=>{o===Pn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$e(Pn.postMessage)),cI=typeof queueMicrotask<"u"?queueMicrotask.bind(Pn):typeof process<"u"&&process.nextTick||ag,w={isArray:lr,isArrayBuffer:tg,isBuffer:Kr,isFormData:LO,isArrayBufferView:IO,isString:TO,isNumber:ng,isBoolean:PO,isObject:Yr,isPlainObject:Si,isEmptyObject:NO,isReadableStream:zO,isRequest:MO,isResponse:$O,isHeaders:BO,isUndefined:cr,isDate:RO,isFile:AO,isBlob:VO,isRegExp:eI,isFunction:$e,isStream:FO,isURLSearchParams:DO,isTypedArray:YO,isFileList:_O,forEach:Xr,merge:Ba,extend:HO,trim:WO,stripBOM:UO,inherits:jO,toFlatObject:GO,kindOf:ki,kindOfTest:it,endsWith:qO,toArray:KO,forEachEntry:XO,matchAll:QO,isHTMLForm:JO,hasOwnProperty:ig,hasOwnProp:ig,reduceDescriptors:sg,freezeMethods:tI,toObjectSet:nI,toCamelCase:ZO,noop:rI,toFiniteNumber:oI,findKey:rg,global:Pn,isContextDefined:og,isSpecCompliantForm:iI,toJSONObject:sI,isAsyncFn:aI,isThenable:lI,setImmediate:ag,asap:cI,isIterable:e=>e!=null&&$e(e[xi])};function j(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const lg=j.prototype,cg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cg[e]={value:e}}),Object.defineProperties(j,cg),Object.defineProperty(lg,"isAxiosError",{value:!0}),j.from=(e,t,n,r,o,i)=>{const s=Object.create(lg);w.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return j.call(s,a,l,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const uI=null;function Wa(e){return w.isPlainObject(e)||w.isArray(e)}function ug(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function dg(e,t,n){return e?e.concat(t).map(function(o,i){return o=ug(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function dI(e){return w.isArray(e)&&!e.some(Wa)}const hI=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!w.isUndefined(v[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(w.isDate(g))return g.toISOString();if(w.isBoolean(g))return g.toString();if(!l&&w.isBlob(g))throw new j("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(g)||w.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,m,v){let x=g;if(g&&!v&&typeof g=="object"){if(w.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(w.isArray(g)&&dI(g)||(w.isFileList(g)||w.endsWith(m,"[]"))&&(x=w.toArray(g)))return m=ug(m),x.forEach(function(y,S){!(w.isUndefined(y)||y===null)&&t.append(s===!0?dg([m],S,i):s===null?m:m+"[]",c(y))}),!1}return Wa(g)?!0:(t.append(dg(v,m,i),c(g)),!1)}const d=[],f=Object.assign(hI,{defaultVisitor:u,convertValue:c,isVisitable:Wa});function p(g,m){if(!w.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),w.forEach(g,function(x,k){(!(w.isUndefined(x)||x===null)&&o.call(t,x,w.isString(k)?k.trim():k,m,f))===!0&&p(x,m?m.concat(k):[k])}),d.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return p(e),t}function hg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ha(e,t){this._pairs=[],e&&wi(e,this,t)}const fg=Ha.prototype;fg.append=function(t,n){this._pairs.push([t,n])},fg.toString=function(t){const n=t?function(r){return t.call(this,r,hg)}:hg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function fI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gg(e,t,n){if(!t)return e;const r=n&&n.encode||fI;w.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new Ha(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class pg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const mg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gI={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ha,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ua=typeof window<"u"&&typeof document<"u",ja=typeof navigator=="object"&&navigator||void 0,pI=Ua&&(!ja||["ReactNative","NativeScript","NS"].indexOf(ja.product)<0),mI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vI=Ua&&window.location.href||"http://localhost",Ne={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ua,hasStandardBrowserEnv:pI,hasStandardBrowserWebWorkerEnv:mI,navigator:ja,origin:vI},Symbol.toStringTag,{value:"Module"})),...gI};function bI(e,t){return wi(e,new Ne.classes.URLSearchParams,{visitor:function(n,r,o,i){return Ne.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function yI(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xI(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function vg(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&w.isArray(o)?o.length:s,l?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=xI(o[s])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,o)=>{t(yI(r),o,n,0)}),n}return null}function kI(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qr={transitional:mg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(vg(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bI(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return wi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),kI(t)):t}],transformResponse:[function(t){const n=this.transitional||Qr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?j.from(a,j.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Qr.headers[e]={}});const CI=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SI=e=>{const t={};let n,r,o;return e&&e.split(`
10
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&CI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bg=Symbol("internals");function Jr(e){return e&&String(e).trim().toLowerCase()}function Ei(e){return e===!1||e==null?e:w.isArray(e)?e.map(Ei):String(e)}function wI(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const EI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ga(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function OI(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function II(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Be=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Jr(l);if(!u)throw new Error("header name must be a non-empty string");const d=w.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Ei(a))}const s=(a,l)=>w.forEach(a,(c,u)=>i(c,u,l));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!EI(t))s(SI(t),n);else if(w.isObject(t)&&w.isIterable(t)){let a={},l,c;for(const u of t){if(!w.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?w.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Jr(t),t){const r=w.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return wI(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jr(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ga(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Jr(s),s){const a=w.findKey(r,s);a&&(!n||Ga(r,r[a],a,n))&&(delete r[a],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ga(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return w.forEach(this,(o,i)=>{const s=w.findKey(r,i);if(s){n[s]=Ei(o),delete n[i];return}const a=t?OI(i):String(i).trim();a!==i&&delete n[i],n[a]=Ei(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
11
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[bg]=this[bg]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Jr(s);r[a]||(II(o,s),r[a]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(Be.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),w.freezeMethods(Be);function qa(e,t){const n=this||Qr,r=t||n,o=Be.from(r.headers);let i=r.data;return w.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function yg(e){return!!(e&&e.__CANCEL__)}function ur(e,t,n){j.call(this,e??"canceled",j.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(ur,j,{__CANCEL__:!0});function xg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new j("Request failed with status code "+n.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function TI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function NI(e,t){let n=0,r=1e3/t,o,i;const s=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const Oi=(e,t,n=3)=>{let r=0;const o=PI(50,250);return NI(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},kg=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Cg=e=>(...t)=>w.asap(()=>e(...t)),RI=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,AI=Ne.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];w.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),w.isString(r)&&a.push(`path=${r}`),w.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),w.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function VI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _I(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sg(e,t,n){let r=!VI(t);return e&&(r||n==!1)?_I(e,t):t}const wg=e=>e instanceof Be?{...e}:e;function Nn(e,t){t=t||{};const n={};function r(c,u,d,f){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:f},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(c,u,d,f){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function i(c,u){if(!w.isUndefined(u))return r(void 0,u)}function s(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(wg(c),wg(u),d,!0)};return w.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,f=d(e[u],t[u],u);w.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Eg=e=>{const t=Nn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Be.from(s),t.url=gg(Sg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),w.isFormData(n)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(w.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Ne.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(t)),r||r!==!1&&RI(t.url))){const l=o&&i&&AI.read(i);l&&s.set(o,l)}return t},FI=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Eg(e);let i=o.data;const s=Be.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,p,g;function m(){p&&p(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;const y=Be.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};xg(function(I){n(I),m()},function(I){r(I),m()},b),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new j("Request aborted",j.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const b=S&&S.message?S.message:"Network Error",E=new j(b,j.ERR_NETWORK,e,v);E.event=S||null,r(E),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||mg;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new j(S,b.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&w.forEach(s.toJSON(),function(S,b){v.setRequestHeader(b,S)}),w.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([f,g]=Oi(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,p]=Oi(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=y=>{v&&(r(!y||y.type?new ur(null,e,v):y),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=TI(o.url);if(k&&Ne.protocols.indexOf(k)===-1){r(new j("Unsupported protocol "+k+":",j.ERR_BAD_REQUEST,e));return}v.send(i||null)})},LI=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof j?u:new ur(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>w.asap(a),l}},DI=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},zI=async function*(e,t){for await(const n of MI(e))yield*DI(n,t)},MI=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Og=(e,t,n,r)=>{const o=zI(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Ig=64*1024,{isFunction:Ii}=w,$I=(({Request:e,Response:t})=>({Request:e,Response:t}))(w.global),{ReadableStream:Tg,TextEncoder:Pg}=w.global,Ng=(e,...t)=>{try{return!!e(...t)}catch{return!1}},BI=e=>{e=w.merge.call({skipUndefined:!0},$I,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ii(t):typeof fetch=="function",i=Ii(n),s=Ii(r);if(!o)return!1;const a=o&&Ii(Tg),l=o&&(typeof Pg=="function"?(g=>m=>g.encode(m))(new Pg):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=i&&a&&Ng(()=>{let g=!1;const m=new n(Ne.origin,{body:new Tg,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!m}),u=s&&a&&Ng(()=>w.isReadableStream(new r("").body)),d={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(m,v)=>{let x=m&&m[g];if(x)return x.call(m);throw new j(`Response type '${g}' is not supported`,j.ERR_NOT_SUPPORT,v)})});const f=async g=>{if(g==null)return 0;if(w.isBlob(g))return g.size;if(w.isSpecCompliantForm(g))return(await new n(Ne.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(w.isArrayBufferView(g)||w.isArrayBuffer(g))return g.byteLength;if(w.isURLSearchParams(g)&&(g=g+""),w.isString(g))return(await l(g)).byteLength},p=async(g,m)=>{const v=w.toFiniteNumber(g.getContentLength());return v??f(m)};return async g=>{let{url:m,method:v,data:x,signal:k,cancelToken:y,timeout:S,onDownloadProgress:b,onUploadProgress:E,responseType:I,headers:P,withCredentials:A="same-origin",fetchOptions:V}=Eg(g),N=t||fetch;I=I?(I+"").toLowerCase():"text";let C=LI([k,y&&y.toAbortSignal()],S),R=null;const L=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let z;try{if(E&&c&&v!=="get"&&v!=="head"&&(z=await p(P,x))!==0){let Q=new n(m,{method:"POST",body:x,duplex:"half"}),ge;if(w.isFormData(x)&&(ge=Q.headers.get("content-type"))&&P.setContentType(ge),Q.body){const[Ze,kt]=kg(z,Oi(Cg(E)));x=Og(Q.body,Ig,Ze,kt)}}w.isString(A)||(A=A?"include":"omit");const U=i&&"credentials"in n.prototype,Z={...V,signal:C,method:v.toUpperCase(),headers:P.normalize().toJSON(),body:x,duplex:"half",credentials:U?A:void 0};R=i&&new n(m,Z);let te=await(i?N(R,V):N(m,Z));const W=u&&(I==="stream"||I==="response");if(u&&(b||W&&L)){const Q={};["status","statusText","headers"].forEach(At=>{Q[At]=te[At]});const ge=w.toFiniteNumber(te.headers.get("content-length")),[Ze,kt]=b&&kg(ge,Oi(Cg(b),!0))||[];te=new r(Og(te.body,Ig,Ze,()=>{kt&&kt(),L&&L()}),Q)}I=I||"text";let q=await d[w.findKey(d,I)||"text"](te,g);return!W&&L&&L(),await new Promise((Q,ge)=>{xg(Q,ge,{data:q,headers:Be.from(te.headers),status:te.status,statusText:te.statusText,config:g,request:R})})}catch(U){throw L&&L(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,g,R),{cause:U.cause||U}):j.from(U,U&&U.code,g,R)}}},WI=new Map,Rg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,l,c,u=WI;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:BI(t)),u=c;return c};Rg();const Ka={http:uI,xhr:FI,fetch:{get:Rg}};w.forEach(Ka,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ag=e=>`- ${e}`,HI=e=>w.isFunction(e)||e===null||e===!1;function UI(e,t){e=w.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let a;if(o=r,!HI(r)&&(o=Ka[(a=String(r)).toLowerCase()],o===void 0))throw new j(`Unknown adapter '${a}'`);if(o&&(w.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
12
+ `+s.map(Ag).join(`
13
+ `):" "+Ag(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Vg={getAdapter:UI,adapters:Ka};function Ya(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ur(null,e)}function _g(e){return Ya(e),e.headers=Be.from(e.headers),e.data=qa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vg.getAdapter(e.adapter||Qr.adapter,e)(e).then(function(r){return Ya(e),r.data=qa.call(e,e.transformResponse,r),r.headers=Be.from(r.headers),r},function(r){return yg(r)||(Ya(e),r&&r.response&&(r.response.data=qa.call(e,e.transformResponse,r.response),r.response.headers=Be.from(r.response.headers))),Promise.reject(r)})}const Fg="1.13.2",Ti={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ti[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Lg={};Ti.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Fg+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new j(o(s," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!Lg[s]&&(Lg[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Ti.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function jI(e,t,n){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new j("option "+i+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const Pi={assertOptions:jI,validators:Ti},xt=Pi.validators;let Rn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new pg,response:new pg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
14
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Pi.assertOptions(r,{silentJSONParsing:xt.transitional(xt.boolean),forcedJSONParsing:xt.transitional(xt.boolean),clarifyTimeoutError:xt.transitional(xt.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:Pi.assertOptions(o,{encode:xt.function,serialize:xt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Pi.assertOptions(n,{baseUrl:xt.spelling("baseURL"),withXsrfToken:xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Be.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const g=[_g.bind(this),void 0];for(g.unshift(...a),g.push(...c),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=a.length;let p=n;for(;d<f;){const g=a[d++],m=a[d++];try{p=g(p)}catch(v){m.call(this,v);break}}try{u=_g.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Nn(this.defaults,t);const n=Sg(t.baseURL,t.url,t.allowAbsoluteUrls);return gg(n,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){Rn.prototype[t]=function(n,r){return this.request(Nn(r||{},{method:t,url:n,data:(r||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Nn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Rn.prototype[t]=n(),Rn.prototype[t+"Form"]=n(!0)});let GI=class dp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new ur(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new dp(function(o){t=o}),cancel:t}}};function qI(e){return function(n){return e.apply(null,n)}}function KI(e){return w.isObject(e)&&e.isAxiosError===!0}const Xa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xa).forEach(([e,t])=>{Xa[t]=e});function Dg(e){const t=new Rn(e),n=Zf(Rn.prototype.request,t);return w.extend(n,Rn.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Dg(Nn(e,o))},n}const ue=Dg(Qr);ue.Axios=Rn,ue.CanceledError=ur,ue.CancelToken=GI,ue.isCancel=yg,ue.VERSION=Fg,ue.toFormData=wi,ue.AxiosError=j,ue.Cancel=ue.CanceledError,ue.all=function(t){return Promise.all(t)},ue.spread=qI,ue.isAxiosError=KI,ue.mergeConfig=Nn,ue.AxiosHeaders=Be,ue.formToJSON=e=>vg(w.isHTMLForm(e)?new FormData(e):e),ue.getAdapter=Vg.getAdapter,ue.HttpStatusCode=Xa,ue.default=ue;const{Axios:HP,AxiosError:UP,CanceledError:jP,isCancel:GP,CancelToken:qP,VERSION:KP,all:YP,Cancel:XP,isAxiosError:QP,spread:JP,toFormData:ZP,AxiosHeaders:e5,HttpStatusCode:t5,formToJSON:n5,getAdapter:r5,mergeConfig:o5}=ue;class zg extends Error{url;status;statusText;body;request;constructor(t,n,r){super(r),this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=t}}class YI extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class XI{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new YI("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Ni=e=>typeof e=="string",Qa=e=>Ni(e)&&e!=="",Mg=e=>e instanceof Blob,QI=e=>e instanceof FormData,$g=e=>e>=200&&e<300,JI=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},ZI=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},eT=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?n(String(t.path[s])):i),o=e.BASE+r;return t.query?o+ZI(t.query):o},tT=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{Ni(o)||Mg(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},Ri=async(e,t)=>t,nT=async(e,t)=>{const[n,r,o,i]=await Promise.all([Ri(t,e.TOKEN),Ri(t,e.USERNAME),Ri(t,e.PASSWORD),Ri(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(Qa(n)&&(s.Authorization=`Bearer ${n}`),Qa(r)&&Qa(o)){const a=JI(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Mg(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Ni(t.body)?s["Content-Type"]="text/plain":QI(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},rT=e=>{if(e.body)return e.body},oT=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},iT=(e,t)=>{if(t){const n=e.headers[t];if(Ni(n))return n}},sT=e=>{if(e.status!==204)return e.data},aT=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new zg(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new zg(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},Nt=(e,t,n=ue)=>new XI(async(r,o,i)=>{try{const s=eT(e,t),a=tT(t),l=rT(t),c=await nT(e,t);if(!i.isCancelled){let u=await oT(e,t,s,l,a,c,i,n);for(const m of e.interceptors.response._fns)u=await m(u);const d=sT(u),f=iT(u,t.responseHeader);let p=d;t.responseTransformer&&$g(u.status)&&(p=await t.responseTransformer(d));const g={url:s,ok:$g(u.status),status:u.status,statusText:u.statusText,body:f??p};aT(t,g),r(g.body)}}catch(s){o(s)}});class Rt{static worker(){return Nt(yt,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return Nt(yt,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return Nt(yt,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static updateWorkerMaintenance(t){return Nt(yt,{method:"PATCH",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return Nt(yt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return Nt(yt,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return Nt(yt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return Nt(yt,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return Nt(yt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const lT=(e,t)=>Kf({queryKey:SO(),queryFn:()=>Rt.worker(),...t}),cT=(e,t)=>Kf({queryKey:EO(),queryFn:()=>Rt.jobs(),...t}),uT=e=>Tn({mutationFn:({requestBody:t,workerName:n})=>Rt.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),dT=e=>Tn({mutationFn:({workerName:t})=>Rt.requestWorkerShutdown({workerName:t}),...e}),hT=e=>Tn({mutationFn:({queueName:t,workerName:n})=>Rt.addWorkerQueue({queueName:t,workerName:n}),...e}),fT=e=>Tn({mutationFn:({requestBody:t,workerName:n})=>Rt.updateWorkerMaintenance({requestBody:t,workerName:n}),...e}),gT=e=>Tn({mutationFn:({workerName:t})=>Rt.exitWorkerMaintenance({workerName:t}),...e}),pT=e=>Tn({mutationFn:({workerName:t})=>Rt.deleteWorker({workerName:t}),...e}),mT=e=>Tn({mutationFn:({queueName:t,workerName:n})=>Rt.removeWorkerQueue({queueName:t,workerName:n}),...e});function Ai(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const Zr=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ja.apply(null,arguments)}const eo=60,to=eo*60,dr=to*24,Vi=dr*7,Bg=dr*30,Wg=dr*365,vT=()=>Date.now();function _i({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Vi,title:s,now:a=vT,...l}){const[c,u]=O.useState(a());O.useEffect(()=>{if(!r)return;const I=(()=>{const P=Ai(e).valueOf();if(!P)return console.warn("[react-timeago] Invalid Date provided"),0;const A=Math.round(Math.abs(c-P)/1e3),V=A<eo?1e3:A<to?1e3*eo:A<dr?1e3*to:1e3*Vi,N=Math.min(Math.max(V,o*1e3),i*1e3);return N?setTimeout(()=>{u(a())},N):0})();return()=>{I&&clearTimeout(I)}},[e,r,i,o,a,c]),O.useEffect(()=>{u(a())},[e]);const d=n,f=Ai(e).valueOf();if(!f)return null;const p=Math.round(Math.abs(c-f)/1e3),g=f<c?"ago":"from now",[m,v]=p<eo?[Math.round(p),"second"]:p<to?[Math.round(p/eo),"minute"]:p<dr?[Math.round(p/to),"hour"]:p<Vi?[Math.round(p/dr),"day"]:p<Bg?[Math.round(p/Vi),"week"]:p<Wg?[Math.round(p/Bg),"month"]:[Math.round(p/Wg),"year"],x=typeof s>"u"?typeof e=="string"?e:Ai(e).toISOString().substring(0,16).replace("T"," "):s,k=d==="time"?{...l,dateTime:Ai(e).toISOString()}:l,y=(E=E,I=I,P=P,A=f,V=Zr,N=N)=>Zr(E,I,P),S=t||Zr;let b;try{b=S(m,v,g,f,y,a),b||(b=Zr(m,v,g,f,y,a))}catch(E){console.error("[react-timeago] Formatter threw an error:",E),b=Zr(m,v,g)}return D.createElement(d,Ja({},k,{title:x}),b)}var Hg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ug=O.createContext&&O.createContext(Hg),bT=["attr","size","title"];function yT(e,t){if(e==null)return{};var n=xT(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fi.apply(this,arguments)}function jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jg(Object(n),!0).forEach(function(r){kT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kT(e,t,n){return t=CT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CT(e){var t=ST(e,"string");return typeof t=="symbol"?t:t+""}function ST(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gg(e){return e&&e.map((t,n)=>O.createElement(t.tag,Li({key:n},t.attr),Gg(t.child)))}function oe(e){return t=>O.createElement(wT,Fi({attr:Li({},e.attr)},t),Gg(e.child))}function wT(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=yT(e,bT),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),O.createElement("svg",Fi({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Li(Li({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&O.createElement("title",null,i),e.children)};return Ug!==void 0?O.createElement(Ug.Consumer,null,n=>t(n)):t(Hg)}function ET(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function OT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function qg(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function IT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function TT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function Kg(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function Yg(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function PT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function NT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const RT=O.forwardRef((e,t)=>h.jsx(vt,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??h.jsx(NT,{})})),AT=O.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return h.jsxs(u2,{ref:t,...c,alignItems:"center",children:[a??h.jsx(g2,{children:i}),n?h.jsxs(h2,{children:[h.jsx(df,{children:l}),h.jsx(d2,{children:n})]}):h.jsx(df,{flex:"1",children:l}),o,r?h.jsx(RT,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),VT=tC({pauseOnPageIdle:!0,placement:"bottom-end"}),_T=({block:e="start",inline:t="nearest"})=>{const[n,r]=O.useState(()=>window.location.hash);return O.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),O.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},Xg=({error:e})=>{const t=e;if(!t)return;const n=t.body?.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(o=>`${o.loc.join(".")} ${o.msg}`):r=Object.keys(n).map(o=>`${o}: ${n[o]}`)),h.jsx(AT,{status:"error",children:h.jsxs(kf,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:h.jsx(Ae,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function Qg(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function FT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function LT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function DT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function zT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function MT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function $T(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Jg(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function BT(e){return oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function WT(e){return oe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const HT=({state:e,...t})=>{switch(e){case"deferred":return h.jsx(Jg,{...t});case"failed":return h.jsx(BT,{...t});case"queued":return h.jsx(WT,{...t});case"removed":return h.jsx($T,{...t});case"restarting":return h.jsx(zT,{...t});case"running":return h.jsx(Qg,{...t});case"scheduled":return h.jsx(LT,{...t});case"skipped":return h.jsx(MT,{...t});case"success":return h.jsx(OT,{...t});case"up_for_reschedule":return h.jsx(ET,{...t});case"up_for_retry":return h.jsx(PT,{...t});case"upstream_failed":return h.jsx(IT,{...t});default:return h.jsx(qg,{...t})}},UT=D.forwardRef(({children:e,state:t,...n},r)=>h.jsxs(Oa,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:h.jsx(HT,{state:t}),e]})),Zg=5e3,jT=e=>{const[t,n]=O.useState(0);return O.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(o=>{for(const i of o)n(i.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t},GT=()=>{const{data:e,error:t}=cT(void 0,{enabled:!0,refetchInterval:Zg});return e?.jobs&&e.jobs.length>0?h.jsx(yr,{p:2,children:h.jsxs(Cf,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(Sf,{children:h.jsxs(mi,{children:[h.jsx(Ce,{children:"Dag ID"}),h.jsx(Ce,{children:"Run ID"}),h.jsx(Ce,{children:"Task ID"}),h.jsx(Ce,{children:"Map Index"}),h.jsx(Ce,{children:"Try Number"}),h.jsx(Ce,{children:"State"}),h.jsx(Ce,{children:"Queue"}),h.jsx(Ce,{children:"Queued DTTM"}),h.jsx(Ce,{children:"Edge Worker"}),h.jsx(Ce,{children:"Last Update"})]})}),h.jsx(wf,{children:e.jobs.map(n=>h.jsxs(mi,{children:[h.jsx(Se,{children:h.jsx(et.Link,{to:`/dags/${n.dag_id}`,children:n.dag_id})}),h.jsx(Se,{children:h.jsx(et.Link,{to:`/dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),h.jsx(Se,{children:n.map_index>=0?h.jsx(et.Link,{to:`/dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):h.jsx(et.Link,{to:`/dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),h.jsx(Se,{children:n.map_index>=0?n.map_index:"-"}),h.jsx(Se,{children:n.try_number}),h.jsx(Se,{children:h.jsx(UT,{state:n.state,children:n.state})}),h.jsx(Se,{children:n.queue}),h.jsx(Se,{children:n.queued_dttm?h.jsx(_i,{date:n.queued_dttm,live:!1}):void 0}),h.jsx(Se,{children:h.jsx(et.Link,{to:`../worker#${n.edge_worker}`,children:n.edge_worker})}),h.jsx(Se,{children:n.last_update?h.jsx(_i,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):e?h.jsx(Ae,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?h.jsx(Ae,{as:"div",pl:4,pt:1,children:h.jsx(Xg,{error:t})}):h.jsx(Ae,{as:"div",pl:4,pt:1,children:"Loading..."})},qT=({onQueueUpdate:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),[i,s]=O.useState(""),a=hT({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),n(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:h.jsx(Yg,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Add Queue to ",t]})}),h.jsx(Cn,{children:h.jsxs(Gr,{gap:4,align:"stretch",children:[h.jsx(Ae,{children:"Enter the name of the queue to add to this worker:"}),h.jsx(E2,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"Cancel"})}),h.jsxs(Ie,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[h.jsx(Yg,{}),"Add Queue"]})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})},KT=({onEditComment:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),[i,s]=O.useState(""),a=fT({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),n()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:r,colorPalette:"warning",children:h.jsx(DT,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Edit maintenance comments for worker ",t]})}),h.jsx(Cn,{children:h.jsx(Ta,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"Cancel"})}),h.jsx(Ie,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})};function ep(e){return oe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function YT(e){return oe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const XT=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),[i,s]=O.useState(""),a=uT({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,colorPalette:"warning",children:h.jsx(ep,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Set maintenance for worker ",t]})}),h.jsx(Cn,{children:h.jsx(Ta,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"Cancel"})}),h.jsx(Ie,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})};function QT(e){return oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const JT=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),i=gT({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",colorPalette:"warning",children:h.jsx(QT,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Exit maintenance for worker ",t]})}),h.jsx(Cn,{children:h.jsxs(Ae,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"No"})}),h.jsx(Ie,{onClick:s,children:"Yes"})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})},ZT=({onQueueUpdate:e,worker:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),[i,s]=O.useState(""),a=mT({onError:u=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${u}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),n(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:h.jsx(Kg,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Remove Queue from ",t.worker_name]})}),h.jsx(Cn,{children:h.jsxs(Gr,{gap:4,align:"stretch",children:[h.jsx(Ae,{children:"Select a queue to remove from this worker:"}),h.jsx(Gr,{gap:2,align:"stretch",children:h.jsx(S2,{each:c,children:u=>h.jsx(Ie,{variant:i===u?"solid":"outline",colorPalette:i===u?"blue":"gray",onClick:()=>s(u),justifyContent:"flex-start",children:u},u)})})]})}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"Cancel"})}),h.jsxs(Ie,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[h.jsx(Kg,{}),"Remove Queue"]})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})};function tp(e){return oe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const np=({onDelete:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),i=pT({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:h.jsx(tp,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Delete worker ",t]})}),h.jsxs(Cn,{children:[h.jsxs(Ae,{children:["Are you sure you want to delete worker ",t,"?"]}),h.jsx(Ae,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"Cancel"})}),h.jsxs(Ie,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[h.jsx(tp,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})};function rp(e){return oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const op=({onShutdown:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=nn(),i=dT({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(vt,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:h.jsx(rp,{})}),h.jsx(pn,{onOpenChange:n,open:o,size:"md",children:h.jsxs(cn,{children:[h.jsx(kn,{}),h.jsx(mn,{children:h.jsxs(vn,{children:[h.jsx(wn,{children:h.jsxs(bn,{children:["Shutdown worker ",t]})}),h.jsxs(Cn,{children:[h.jsxs(Ae,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),h.jsx(Ae,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),h.jsxs(Sn,{children:[h.jsx(xn,{asChild:!0,children:h.jsx(Ie,{variant:"outline",children:"Cancel"})}),h.jsxs(Ie,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[h.jsx(rp,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),h.jsx(yn,{asChild:!0,children:h.jsx(qt,{size:"sm"})})]})})]})})]})},eP=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{VT.create(i),e()};return r==="idle"||r==="running"?h.jsxs(jr,{justifyContent:"end",gap:2,children:[h.jsx(qT,{onQueueUpdate:o,workerName:n}),h.jsx(ZT,{onQueueUpdate:o,worker:t}),h.jsx(XT,{onEnterMaintenance:o,workerName:n}),h.jsx(op,{onShutdown:o,workerName:n})]}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?h.jsxs(Gr,{gap:2,align:"stretch",children:[h.jsx(yr,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),h.jsxs(jr,{justifyContent:"end",gap:2,children:[h.jsx(KT,{onEditComment:o,workerName:n}),h.jsx(JT,{onExitMaintenance:o,workerName:n}),r==="offline maintenance"?h.jsx(np,{onDelete:o,workerName:n}):h.jsx(op,{onShutdown:o,workerName:n})]})]}):r==="offline"||r==="unknown"?h.jsx(jr,{justifyContent:"end",children:h.jsx(np,{onDelete:o,workerName:n})}):null};function tP(e){return oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function nP(e){return oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function rP(e){return oe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const oP=({state:e,...t})=>{switch(e){case"starting":return h.jsx(Jg,{...t});case"running":return h.jsx(Qg,{...t});case"idle":return h.jsx(tP,{...t});case"shutdown request":case"terminating":return h.jsx(FT,{...t});case"offline":return h.jsx(nP,{...t});case"unknown":return h.jsx(rP,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return h.jsx(YT,{...t});case"maintenance mode":case"offline maintenance":return h.jsx(ep,{...t});default:return h.jsx(qg,{...t})}},iP=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},sP=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},aP=D.forwardRef(({children:e,state:t,...n},r)=>h.jsxs(Oa,{borderRadius:"full",colorPalette:iP(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:sP(t),variant:"solid",...n,children:[t===void 0?void 0:h.jsx(oP,{state:t}),e]})),lP=()=>{const{data:e,error:t,refetch:n}=lT(void 0,{enabled:!0,refetchInterval:Zg});return e?.workers&&e.workers.length>0?h.jsxs(yr,{p:2,children:[h.jsxs(Cf,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(Sf,{children:h.jsxs(mi,{children:[h.jsx(Ce,{children:"Worker Name"}),h.jsx(Ce,{children:"State"}),h.jsx(Ce,{children:"Queues"}),h.jsx(Ce,{children:"First Online"}),h.jsx(Ce,{children:"Last Heartbeat"}),h.jsx(Ce,{children:"Active Jobs"}),h.jsx(Ce,{children:"System Information"}),h.jsx(Ce,{children:"Operations"})]})}),h.jsx(wf,{children:e.workers.map(r=>h.jsxs(mi,{id:r.worker_name,children:[h.jsx(Se,{children:r.worker_name}),h.jsx(Se,{children:h.jsx(aP,{state:r.state,children:r.state})}),h.jsx(Se,{children:r.queues?h.jsx(yf,{children:r.queues.map(o=>h.jsx(xf,{children:o},o))}):"(all queues)"}),h.jsx(Se,{children:r.first_online?h.jsx(_i,{date:r.first_online,live:!1}):void 0}),h.jsx(Se,{children:r.last_heartbeat?h.jsx(_i,{date:r.last_heartbeat,live:!1}):void 0}),h.jsx(Se,{children:r.jobs_active}),h.jsx(Se,{children:r.sysinfo?h.jsx(yf,{children:Object.entries(r.sysinfo).map(([o,i])=>h.jsxs(xf,{children:[o,": ",i]},o))}):"N/A"}),h.jsx(Se,{children:h.jsx(eP,{worker:r,onOperations:n})})]},r.worker_name))})]}),h.jsx(_T,{})]}):e?h.jsxs(Ae,{as:"div",pl:4,pt:1,children:["No known workers. Start one via ",h.jsx(pf,{children:"airflow edge worker [...]"}),". See"," ",h.jsxs(vf,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",h.jsx(TT,{})]})," ","how to deploy a new worker."]}):t?h.jsx(Ae,{as:"div",pl:4,pt:1,children:h.jsx(Xg,{error:t})}):h.jsx(Ae,{as:"div",pl:4,pt:1,children:"Loading..."})},cP=({tabs:e})=>{const t=O.useRef(null),n=jT(t);return h.jsx(jr,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>h.jsx(et.NavLink,{end:!0,title:o,to:i,children:({isActive:s})=>h.jsx(gf,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},uP=()=>{const e=[{label:"Edge Worker",value:"worker"},{label:"Edge Jobs",value:"jobs"}];return h.jsxs(yr,{p:2,children:[h.jsx(cP,{tabs:e}),h.jsxs(et.Routes,{children:[h.jsx(et.Route,{index:!0,element:h.jsx(et.Navigate,{to:"worker",replace:!0})}),h.jsx(et.Route,{path:"worker",element:h.jsx(lP,{})}),h.jsx(et.Route,{path:"jobs",element:h.jsx(GT,{})})]})]})},G=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),dP=va({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:G("brand"),danger:G("red"),info:G("blue"),warning:G("amber"),error:G("red"),active:G("blue"),success:G("green"),failed:G("red"),queued:G("stone"),skipped:G("pink"),up_for_reschedule:G("sky"),up_for_retry:G("yellow"),upstream_failed:G("orange"),running:G("cyan"),restarting:G("violet"),deferred:G("purple"),scheduled:G("zinc"),none:G("gray"),removed:G("slate"),red:G("red"),orange:G("orange"),amber:G("amber"),yellow:G("yellow"),lime:G("lime"),green:G("green"),emerald:G("emerald"),teal:G("teal"),cyan:G("cyan"),sky:G("sky"),blue:G("blue"),indigo:G("indigo"),violet:G("violet"),purple:G("purple"),fuchsia:G("fuchsia"),pink:G("pink"),rose:G("rose"),slate:G("slate"),gray:G("gray"),zinc:G("zinc"),neutral:G("neutral"),stone:G("stone")}}}}),hP=jh(af,dP);return()=>{const e=document.querySelector("head > base")?.getAttribute("href")??"",t=new URL(e,globalThis.location.origin);yt.BASE=t.pathname.replace(/\/$/,"");const n=new eO({defaultOptions:{queries:{staleTime:1/0}}});return h.jsx(fm,{value:hP,children:h.jsx(tO,{client:n,children:h.jsx(kO,{children:h.jsx(uP,{})})})})}}));